libyui-qt-graph
Loading...
Searching...
No Matches
YQGraph Class Reference
Inheritance diagram for YQGraph:
Collaboration diagram for YQGraph:

Public Member Functions

 YQGraph (YWidget *parent, const std::string &filename, const std::string &layoutAlgorithm)
 
 YQGraph (YWidget *parent, void *graph)
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 
void renderGraph (const std::string &filename, const std::string &layoutAlgorithm)
 
void renderGraph (void *graph)
 
std::string activatedNode () const
 
- Public Member Functions inherited from QY2Graph
 QY2Graph (const std::string &filename, const std::string &layoutAlgorithm, QWidget *parent=0)
 
 QY2Graph (graph_t *graph, QWidget *parent=0)
 
virtual void renderGraph (const std::string &filename, const std::string &layoutAlgorithm)
 
virtual void renderGraph (graph_t *graph)
 
void clearGraph ()
 

Additional Inherited Members

- Signals inherited from QY2Graph
void backgroundContextMenuEvent (QContextMenuEvent *event)
 
void nodeContextMenuEvent (QContextMenuEvent *event, const QString &name)
 
void nodeDoubleClickEvent (QMouseEvent *event, const QString &name)
 
- Protected Member Functions inherited from QY2Graph
void keyPressEvent (QKeyEvent *event)
 
void wheelEvent (QWheelEvent *event)
 
void contextMenuEvent (QContextMenuEvent *event)
 
void mouseDoubleClickEvent (QMouseEvent *event)
 

Member Function Documentation

◆ preferredHeight()

int YQGraph::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

◆ preferredWidth()

int YQGraph::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

◆ renderGraph()

void YQGraph::renderGraph ( const std::string &  filename,
const std::string &  layoutAlgorithm 
)
virtual

Reimplemented from QY2Graph.

◆ setSize()

void YQGraph::setSize ( int  newWidth,
int  newHeight 
)
virtual

Set the new size of the widget.

Reimplemented from YWidget.


The documentation for this class was generated from the following files: