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.
|
| | 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 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) |
Public Member Functions inherited from makVrf::DtVariableColumnTreeWidgetInterface |
| virtual | ~DtVariableColumnTreeWidgetInterface () |
| | Virtual DTOR.
|
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 |
| 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 () |
| virtual void | mousePressEvent (QMouseEvent *event) |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
| 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.