|
Developer Documentation
|
#include <OpenFlipper/widgets/glWidget/QtMultiViewLayout.hh>
Public Types | |
| enum | MultiViewMode { SingleView , DoubleView , Grid , HSplit } |
| MultiView display modes. More... | |
Public Member Functions | |
| QtMultiViewLayout (QGraphicsLayoutItem *_parent=0) | |
| void | addItem (QGraphicsWidget *_item, unsigned int _pos) |
| Adds Widget to Layout. | |
| void | setMode (MultiViewMode _mode) |
| Sets layout mode. | |
| MultiViewMode | mode () const |
| Retruns current layout modes. | |
| void | setSpacing (unsigned int _s) |
| Sets space between items. | |
| void | setPrimary (unsigned int _i) |
| Sets primary element for SingleView and HSplit. | |
| virtual int | count () const |
| Pure virtual functions that have to be implemented. | |
| virtual QGraphicsLayoutItem * | itemAt (int _i) const |
| virtual void | removeAt (int _index) |
| virtual QSizeF | sizeHint (Qt::SizeHint _which, const QSizeF &_constraint=QSizeF()) const |
| virtual void | setGeometry (const QRectF &rect) |
| Tracks geometry changes. | |
Private Member Functions | |
| void | reLayout () |
| Recalculate layout. | |
Private Attributes | |
| MultiViewMode | mode_ |
| current modes | |
| unsigned int | spacing_ |
| Spacing. | |
| QGraphicsWidget * | items_ [4] |
| Items. | |
| unsigned int | primary_ |
| Primary element. | |
Graphics scene layout for multi view.
Definition at line 68 of file QtMultiViewLayout.hh.
MultiView display modes.
Definition at line 73 of file QtMultiViewLayout.hh.
|
explicit |
Definition at line 60 of file QtMultiViewLayout.cc.
| void QtMultiViewLayout::addItem | ( | QGraphicsWidget * | _item, |
| unsigned int | _pos | ||
| ) |
Adds Widget to Layout.
Definition at line 74 of file QtMultiViewLayout.cc.
|
virtual |
Pure virtual functions that have to be implemented.
Definition at line 109 of file QtMultiViewLayout.cc.
|
virtual |
Definition at line 122 of file QtMultiViewLayout.cc.
|
inline |
Retruns current layout modes.
Definition at line 125 of file QtMultiViewLayout.hh.
|
private |
Recalculate layout.
Definition at line 155 of file QtMultiViewLayout.cc.
|
virtual |
Definition at line 131 of file QtMultiViewLayout.cc.
|
virtual |
Tracks geometry changes.
Definition at line 147 of file QtMultiViewLayout.cc.
| void QtMultiViewLayout::setMode | ( | MultiViewMode | _mode | ) |
Sets layout mode.
Definition at line 83 of file QtMultiViewLayout.cc.
| void QtMultiViewLayout::setPrimary | ( | unsigned int | _i | ) |
Sets primary element for SingleView and HSplit.
Definition at line 91 of file QtMultiViewLayout.cc.
| void QtMultiViewLayout::setSpacing | ( | unsigned int | _s | ) |
Sets space between items.
Definition at line 101 of file QtMultiViewLayout.cc.
|
virtual |
Definition at line 140 of file QtMultiViewLayout.cc.
|
private |
Items.
Definition at line 157 of file QtMultiViewLayout.hh.
|
private |
current modes
Definition at line 151 of file QtMultiViewLayout.hh.
|
private |
Primary element.
Definition at line 160 of file QtMultiViewLayout.hh.
|
private |
Spacing.
Definition at line 154 of file QtMultiViewLayout.hh.