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

Public Member Functions | |
| DtVariableColumnTreeWidget (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. | |
Protected Slots | |
| virtual void | showObjectOptions (int) |
| Calls down to logic to show toggle menu for columns. | |
Protected Attributes | |
| DtVariableColumnTreeWidgetLogic * | myLogic |
| QHash< QString, DtVariableColumnItem * > | myItems |
A widget class for putting simulation Time buttons on that are tied to existing menu items.
| makVrf::DtVariableColumnTreeWidget::DtVariableColumnTreeWidget | ( | QWidget * | , |
| const Qt::WindowFlags & | f = 0 |
||
| ) |
| virtual makVrf::DtVariableColumnTreeWidget::~DtVariableColumnTreeWidget | ( | ) | [virtual] |
| virtual void makVrf::DtVariableColumnTreeWidget::addColumn | ( | const QString & | , |
| const Flags & | , | ||
| DtDisplayFunction * | display, | ||
| DtSortFunction * | sort = defaultSort() |
||
| ) | [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 void makVrf::DtVariableColumnTreeWidget::setFlagsForColumn | ( | const QString & | s, |
| const Flags & | |||
| ) | [virtual] |
Sets the new flags for the column.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
| virtual int makVrf::DtVariableColumnTreeWidget::addColumn | ( | const QString & | s, |
| const Flags & | |||
| ) | [virtual] |
Adds a new column with the given flags. Returns column index.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
| virtual int makVrf::DtVariableColumnTreeWidget::removeColumn | ( | const QString & | ) | [virtual] |
Removes the column and returns the column index of where it was.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
| virtual int makVrf::DtVariableColumnTreeWidget::columnFor | ( | const QString & | ) | const [virtual] |
Returns the index of the given column.
| virtual QColor makVrf::DtVariableColumnTreeWidget::backgroundColor | ( | ) | const [virtual] |
Returns color of the widget.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
| virtual void makVrf::DtVariableColumnTreeWidget::createMenuButton | ( | int | iCol, |
| const QPixmap & | arrow | ||
| ) | [virtual] |
Creates a menu button at the specified column.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
| virtual void makVrf::DtVariableColumnTreeWidget::clear | ( | ) | [virtual] |
Removes all rows.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
| virtual void makVrf::DtVariableColumnTreeWidget::addRow | ( | const QString & | ) | [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 DtVariableColumnItem* makVrf::DtVariableColumnTreeWidget::createVariableColumnItem | ( | const QString & | key | ) | [virtual] |
Creates a new widget item.
| virtual void makVrf::DtVariableColumnTreeWidget::removeRow | ( | const QString & | ) | [virtual] |
Removes a row and updates the view based on the column callbacks.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
| virtual void makVrf::DtVariableColumnTreeWidget::setLogic | ( | DtVariableColumnTreeWidgetLogic * | ) | [virtual] |
Sets new logic. Deletes old. New logic must at least be a subclass of DtVariableColumnTreeWidgetLogic.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
| virtual QPoint makVrf::DtVariableColumnTreeWidget::menuPointForColumn | ( | int | ) | const [virtual] |
Returns the point to place the menu on the header at the given column.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
| virtual bool makVrf::DtVariableColumnTreeWidget::isColumnVisible | ( | int | ) | const [virtual] |
Returns true if column is visible.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
| virtual void makVrf::DtVariableColumnTreeWidget::setColumnVisible | ( | int | , |
| bool | |||
| ) | [virtual] |
Sets column visibility state.
Implements makVrf::DtVariableColumnTreeWidgetInterface.
| virtual void makVrf::DtVariableColumnTreeWidget::showObjectOptions | ( | int | ) | [protected, virtual, slot] |
Calls down to logic to show toggle menu for columns.
QHash<QString, DtVariableColumnItem*> makVrf::DtVariableColumnTreeWidget::myItems [protected] |