libyui-qt-graph  2.44.6
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 ()
 Preferred width of the widget. More...
 
virtual int preferredHeight ()
 Preferred height of the widget. More...
 
virtual void setSize (int newWidth, int newHeight)
 Set the new size of the widget. More...
 
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 (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)
 

Detailed Description

Definition at line 30 of file YQGraph.h.

Member Function Documentation

◆ preferredHeight()

int YQGraph::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 96 of file YQGraph.cc.

◆ preferredWidth()

int YQGraph::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 89 of file YQGraph.cc.

◆ setSize()

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

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 103 of file YQGraph.cc.


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