![]() |
VR-Forces 4.2 Class Documentation
|
Abstract interface for the back end slection list widget. More...

Public Types | |
| 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 |
Public Member Functions | |
| virtual | ~DtVariableColumnTreeWidgetInterface () |
| Virtual DTOR. | |
| virtual void | addColumn (const QString &, const Flags &, DtDisplayFunction *display, DtSortFunction *sort=defaultSort())=0 |
| Adds a new columns to the list box. | |
| virtual void | setFlagsForColumn (const QString &s, const Flags &)=0 |
| Sets the new flags for the column. | |
| virtual int | addColumn (const QString &s, const Flags &)=0 |
| Adds a new column with the given flags. Returns column index. | |
| virtual int | removeColumn (const QString &)=0 |
| Removes the column and returns the column index of where it was. | |
| virtual QColor | backgroundColor () const =0 |
| Returns background color of tree view. | |
| virtual void | createMenuButton (int iCol, const QPixmap &arrow)=0 |
| Creates a menu button at the specified column. | |
| virtual void | clear ()=0 |
| Removes all rows. | |
| virtual void | addRow (const QString &)=0 |
| Adds a new row and updates the view based on column callbacks. | |
| virtual void | removeRow (const QString &)=0 |
| Removes a row and updates the view based on the column callbacks. | |
| virtual void | setLogic (DtVariableColumnTreeWidgetLogic *)=0 |
| Sets new logic. Deletes old. New logic must at least be a subclass of DtVariableColumnTreeWidgetLogic. | |
| virtual QPoint | menuPointForColumn (int) const =0 |
| Returns the point to place the menu on the header at the given column. | |
| virtual bool | isColumnVisible (int) const =0 |
| Returns true if column is visible. | |
| virtual void | setColumnVisible (int, bool)=0 |
| Sets column visibility state. | |
Static Public Member Functions | |
| static DtSortFunction * | defaultSort () |
Static Protected Member Functions | |
| static int | defaultSort (QTreeWidgetItem *lhs, QTreeWidgetItem *rhs) |
Abstract interface for the back end slection list widget.
| typedef boost::function< QVariant ( const QString& rowKey, const QString& colKey, int role )> makVrf::DtVariableColumnTreeWidgetInterface::DtDisplayFunction |
| typedef boost::function< int ( QTreeWidgetItem*, QTreeWidgetItem* )> makVrf::DtVariableColumnTreeWidgetInterface::DtSortFunction |
|
virtual |
Virtual DTOR.
|
pure virtual |
Adds a new columns to the list box.
If column named already exists, replaces with new information
Implemented in makVrf::DtVariableColumnTreeWidget.
|
pure virtual |
Sets the new flags for the column.
Implemented in makVrf::DtVariableColumnTreeWidget.
|
pure virtual |
Adds a new column with the given flags. Returns column index.
Implemented in makVrf::DtVariableColumnTreeWidget.
|
pure virtual |
Removes the column and returns the column index of where it was.
Implemented in makVrf::DtVariableColumnTreeWidget.
|
pure virtual |
Returns background color of tree view.
Implemented in makVrf::DtVariableColumnTreeWidget.
|
pure virtual |
Creates a menu button at the specified column.
Implemented in makVrf::DtVariableColumnTreeWidget.
|
pure virtual |
Removes all rows.
Implemented in makVrf::DtVariableColumnTreeWidget.
|
pure 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
Implemented in makVrf::DtVariableColumnTreeWidget.
|
pure virtual |
Removes a row and updates the view based on the column callbacks.
Implemented in makVrf::DtVariableColumnTreeWidget.
|
pure virtual |
Sets new logic. Deletes old. New logic must at least be a subclass of DtVariableColumnTreeWidgetLogic.
Implemented in makVrf::DtVariableColumnTreeWidget.
|
pure virtual |
Returns the point to place the menu on the header at the given column.
Implemented in makVrf::DtVariableColumnTreeWidget.
|
pure virtual |
Returns true if column is visible.
Implemented in makVrf::DtVariableColumnTreeWidget.
|
pure virtual |
Sets column visibility state.
Implemented in makVrf::DtVariableColumnTreeWidget.
|
static |
|
staticprotected |