![]() |
VR-Forces 4.5 Class Documentation
|
A widget class for putting simulation Time buttons on that are tied to existing menu items. More...

Public Member Functions | |
| DtVariableColumnTreeWidget (makVrv::DtDe &, QWidget *, const Qt::WindowFlags &f=0) | |
| virtual | ~DtVariableColumnTreeWidget () |
| virtual void | addColumn (const QString &, const Flags &, DtDisplayFunction *display, DtSortFunction *sort=defaultSort()) |
| Adds a new columns to the list box. | |
| virtual void | setFlagsForColumn (const QString &s, const Flags &) |
| Sets the new flags for the column. | |
| virtual int | addColumn (const QString &s, const Flags &) |
| Adds a new column with the given flags. Returns column index. | |
| virtual int | removeColumn (const QString &) |
| Removes the column and returns the column index of where it was. | |
| virtual int | columnFor (const QString &) const |
| Returns the index of the given column. | |
| virtual QColor | backgroundColor () const |
| Returns color of the widget. | |
| virtual void | createMenuButton (int iCol, const QPixmap &arrow) |
| Creates a menu button at the specified column. | |
| virtual void | clear () |
| Removes all rows. | |
| virtual void | addRow (const QString &) |
| Adds a new row and updates the view based on column callbacks. | |
| virtual DtVariableColumnItem * | createVariableColumnItem (const QString &key) |
| Creates a new widget item. | |
| virtual void | removeRow (const QString &) |
| Removes a row and updates the view based on the column callbacks. | |
| virtual void | setLogic (DtVariableColumnTreeWidgetLogic *) |
| Sets new logic. Deletes old. New logic must at least be a subclass of DtVariableColumnTreeWidgetLogic. | |
| virtual QPoint | menuPointForColumn (int) const |
| Returns the point to place the menu on the header at the given column. | |
| virtual bool | isColumnVisible (int) const |
| Returns true if column is visible. | |
| virtual void | setColumnVisible (int, bool) |
| Sets column visibility state. | |
Public Member Functions inherited from makVrf::DtTreeWidget | |
| DtTreeWidget (makVrv::DtDe &de, QWidget *parent) | |
| Constructor. | |
| virtual | ~DtTreeWidget () |
| DTOR. | |
| virtual QTreeWidgetItem * | lastItem () const |
| Returns the last item in the list. | |
| QTreeWidgetItem * | itemFromIndex (const QModelIndex &idx) |
| QModelIndex | indexFromItem (QTreeWidgetItem *item, int column=0) const |
| virtual void | setMinimumSizeHint (const QSize &) |
| Set the minimum size hint. If either width or height is -1 uses default. | |
| virtual QSize | minimumSizeHint () const |
| virtual int | indexOfChild (QTreeWidgetItem *) const |
| Returns the index of the child. | |
| unsigned int | depth (QTreeWidgetItem *) const |
| Returns the number of levels down this item is. | |
| QTreeWidgetItem * | nextSibling (QTreeWidgetItem *) const |
| Returns the next item after the supplied item. | |
| void | setAllowEmptySelection (bool) |
| Only valid in single selection mode. | |
| bool | allowEmptySelection () const |
| virtual bool | edit (const QModelIndex &index, EditTrigger trigger, QEvent *event) |
| Override to prevent keystrokes from going to vantage while editing. | |
| virtual void | closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint) |
| virtual void | itemRightClickedOn (QTreeWidgetItem *, QMouseEvent *, int col) |
| virtual void | mousePressEvent (QMouseEvent *event) |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
| virtual void | itemLeftClickedOn (QTreeWidgetItem *, QMouseEvent *, int) |
| virtual bool | editingCanceled () const |
Public Member Functions inherited from makVrf::DtVariableColumnTreeWidgetInterface | |
| virtual | ~DtVariableColumnTreeWidgetInterface () |
| Virtual DTOR. | |
Protected Slots | |
| virtual void | showObjectOptions (int) |
| Calls down to logic to show toggle menu for columns. | |
Protected Attributes | |
| DtVariableColumnTreeWidgetLogic * | myLogic |
| QHash< QString, DtVariableColumnItem * > | myItems |
Protected Attributes inherited from makVrf::DtTreeWidget | |
| bool | myMouseRightClick |
| bool | myAllowEmptySelection |
| makVrv::DtDe & | myDe |
| bool | myEditingCanceled |
| QSize | myMinimumSizeHint |
Additional Inherited Members | |
Public Types inherited from makVrf::DtVariableColumnTreeWidgetInterface | |
| enum | Flags { Show = 0x00000001, Permenant = 0x00000002 } |
| typedef boost::function < QVariant(const QString &rowKey, const QString &colKey, int role)> | DtDisplayFunction |
| typedef boost::function< int(QTreeWidgetItem *, QTreeWidgetItem *)> | DtSortFunction |
Signals inherited from makVrf::DtTreeWidget | |
| void | mouseLeftPressed (QTreeWidgetItem *, QMouseEvent *, int col) |
| Emitted when the mouse button is pressed. | |
| void | rightClickOnItem (QTreeWidgetItem *, QMouseEvent *, int col) |
| Emitted when right button is released. | |
| void | contentsMoving (int, int) |
Static Public Member Functions inherited from makVrf::DtVariableColumnTreeWidgetInterface | |
| static DtSortFunction * | defaultSort () |
Protected Member Functions inherited from makVrf::DtTreeWidget | |
| virtual void | scrollContentsBy (int, int) |
| virtual QSize | sizeHint () const |
| Need to do this as default sizeHint() for an abstract scroll area (in Qt 4.2.2) is too large. | |
| virtual QItemSelectionModel::SelectionFlags | selectionCommand (const QModelIndex &index, const QEvent *event=0) const |
| Override to allow empty selection in single selection mode. | |
| virtual QItemSelectionModel::SelectionFlags | selectionBehaviorFlags () const |
Static Protected Member Functions inherited from makVrf::DtVariableColumnTreeWidgetInterface | |
| static int | defaultSort (QTreeWidgetItem *lhs, QTreeWidgetItem *rhs) |
A widget class for putting simulation Time buttons on that are tied to existing menu items.
| makVrf::DtVariableColumnTreeWidget::DtVariableColumnTreeWidget | ( | makVrv::DtDe & | , |
| QWidget * | , | ||
| const Qt::WindowFlags & | f = 0 |
||
| ) |
|
virtual |
|
virtual |
Adds a new columns to the list box.
If column named already exists, replaces with new information. Calls down to logic to do the actial add
Implements makVrf::DtVariableColumnTreeWidgetInterface.
|
virtual |
Sets the new flags for the column.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
|
virtual |
Adds a new column with the given flags. Returns column index.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
|
virtual |
Removes the column and returns the column index of where it was.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
|
virtual |
Returns the index of the given column.
|
virtual |
Returns color of the widget.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
|
virtual |
Creates a menu button at the specified column.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
|
virtual |
Removes all rows.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
|
virtual |
Adds a new row and updates the view based on column callbacks.
Since all data is updated in a callback, this value will only serve as the key to creating the new item
Implements makVrf::DtVariableColumnTreeWidgetInterface.
|
virtual |
Creates a new widget item.
|
virtual |
Removes a row and updates the view based on the column callbacks.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
|
virtual |
Sets new logic. Deletes old. New logic must at least be a subclass of DtVariableColumnTreeWidgetLogic.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
|
virtual |
Returns the point to place the menu on the header at the given column.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
Returns true if column is visible.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
Sets column visibility state.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
|
protectedvirtualslot |
Calls down to logic to show toggle menu for columns.
|
protected |
|
protected |