![]() |
VR-Forces 4.0.4 Class Documentation
|
class DtSelectionWidget: More...

Public Slots | |
| virtual void | accept () |
| virtual void | cancelAndClose () |
| virtual void | listSelectionUpdated (const QVector< DtModelKey > &d) |
| virtual void | listSelectionChanged (const QVector< DtModelKey > &d) |
| virtual void | mapAreaSelectionUpdated (const QVector< DtModelKey > &) |
| virtual void | mapAreaSelectionChanged (const QVector< DtModelKey > &) |
| Differs from changeSelection in that the filtered views will be blocked from sending signals that their selections have been updated. | |
| virtual void | filterChanged (DtFilteredListView *view, const QString &filter) |
| Called when the filter for the list box has changed, make sure to set. | |
| virtual void | comboTextChanged (DtFilteredListView *view, const QString &filter) |
| By default, does nothing. | |
Signals | |
| void | selectionUpdated (const QVector< DtModelKey > &d) |
| void | selectionChanged (const QVector< DtModelKey > &d) |
| void | cancelActivated () |
| void | accepted () |
Public Member Functions | |
| DtSelectionWidget (QWidget *parent=NULL, const Qt::WindowFlags &f=0) | |
| default constructor | |
| virtual | ~DtSelectionWidget () |
| destructor | |
| virtual bool | init (DtTMMapArea *map, int iNumListBoxes=1) |
| Initializer. | |
| virtual QVector< DtModelKey > | selectedObjects (int iListBox=-1) const |
| -1 means all objects selected in all list boxes | |
| virtual QString | selectedName (unsigned int iListBox=0) |
| virtual bool | selectedNames (QString &name1, QString &name2) |
| virtual DtFilter * | addFilter (const QString &name, const DtEntityMapperKey &key, unsigned int iForListBox=0, bool executeForFilter=false) |
| virtual DtFilter * | addFilter (DtFilter *filter, unsigned int iForListBox=0, bool executeForFilter=false) |
| virtual void | watchDictionary (const DtModelDataDict *dict, unsigned int iListBox=0) |
| Adds a model data dictionary to watch for symbol additions/removals. | |
| virtual void | stopWatching (const DtModelDataDict *dict, unsigned int iListBox=0) |
| virtual void | addForceLevelItem (int iForce, unsigned int iForListBox=0) |
| Adds a new "force level" item to this list box. | |
| virtual DtFilteredListView * | filteredListView (unsigned int iListBox=0) |
| virtual void | clearAllSelections () |
| virtual QString | filterFor (const QString &windowTitle, const QString &listTitle) |
| virtual void | addFinalFilter (const DtFilter &f) |
| This filter will be passed down to all list views and used as a final filter check. | |
| virtual void | removeFinalFilter () |
| virtual void | removeButtons () |
| Removes/shows OK and Cancel buttons. | |
| virtual void | showButtons () |
| virtual void | makeConnections (bool connectMap=true) |
| Makes/disconnects connections for this widget and all child views. | |
| virtual void | disconnectConnections () |
| void | setContinueAccept (bool) |
| bool | continueAccept () const |
| virtual void | setSelectedName (const QString &name, int iListBox=0) |
| Sets the name that is currently selected in the specified filtered list view. | |
Public Attributes | |
| Ui::SelectionWidgetUi | myUiImpl |
Protected Member Functions | |
| virtual bool | initConnections () |
| virtual bool | initConnections (DtFilteredListView *) |
| virtual bool | disconnectConnections (DtFilteredListView *) |
| virtual DtFilteredListView * | createFilteredListView (unsigned int iForListBox) |
| Creates the filtered list view as defined by the factory. | |
| virtual bool | initFilters (unsigned int iForListBox=0) |
| virtual QString | listTitle (unsigned int iForListBox=0) const |
| virtual QString | listCaption (unsigned int iForListBox=0) const |
| virtual bool | initSelectionMode () |
| virtual QString | windowTitle () const |
| virtual DtFilteredListView * | createFilteredListView () |
| virtual void | keyPressEvent (QKeyEvent *e) |
| virtual void | closeEvent (QCloseEvent *e) |
Protected Attributes | |
| DtTMMapArea * | myMapArea |
| QList< DtFilteredListView * > | myFilteredListViews |
| bool | myClosing |
| bool | myReflectingToMap |
| bool | mySelectedOne |
| Only valid for multiple list box selections. | |
| bool | myContinueAccept |
Static Protected Attributes | |
| static DtEntityMapperKey | gForceLevel |
| static QHash< QString, QString > | gCurrentFilter |
class DtSelectionWidget:
Instances of DtSelectionWidget are common widgets that users can use to select a single object type from a list box. The object types are defined by adding the specified "filter" to this object. That filter will then be passed down to the filtered list box
| DtSelectionWidget::DtSelectionWidget | ( | QWidget * | parent = NULL, |
| const Qt::WindowFlags & | f = 0 |
||
| ) |
default constructor
| virtual DtSelectionWidget::~DtSelectionWidget | ( | ) | [virtual] |
destructor
| virtual bool DtSelectionWidget::init | ( | DtTMMapArea * | map, |
| int | iNumListBoxes = 1 |
||
| ) | [virtual] |
Initializer.
| virtual QVector<DtModelKey> DtSelectionWidget::selectedObjects | ( | int | iListBox = -1 | ) | const [virtual] |
-1 means all objects selected in all list boxes
| virtual QString DtSelectionWidget::selectedName | ( | unsigned int | iListBox = 0 | ) | [virtual] |
| virtual bool DtSelectionWidget::selectedNames | ( | QString & | name1, |
| QString & | name2 | ||
| ) | [virtual] |
| virtual DtFilter* DtSelectionWidget::addFilter | ( | const QString & | name, |
| const DtEntityMapperKey & | key, | ||
| unsigned int | iForListBox = 0, |
||
| bool | executeForFilter = false |
||
| ) | [virtual] |
| virtual DtFilter* DtSelectionWidget::addFilter | ( | DtFilter * | filter, |
| unsigned int | iForListBox = 0, |
||
| bool | executeForFilter = false |
||
| ) | [virtual] |
| virtual void DtSelectionWidget::watchDictionary | ( | const DtModelDataDict * | dict, |
| unsigned int | iListBox = 0 |
||
| ) | [virtual] |
Adds a model data dictionary to watch for symbol additions/removals.
| virtual void DtSelectionWidget::stopWatching | ( | const DtModelDataDict * | dict, |
| unsigned int | iListBox = 0 |
||
| ) | [virtual] |
| virtual void DtSelectionWidget::addForceLevelItem | ( | int | iForce, |
| unsigned int | iForListBox = 0 |
||
| ) | [virtual] |
Adds a new "force level" item to this list box.
Force level items have a set entity key, but add the force as the supplied value
| virtual DtFilteredListView* DtSelectionWidget::filteredListView | ( | unsigned int | iListBox = 0 | ) | [virtual] |
| virtual void DtSelectionWidget::clearAllSelections | ( | ) | [virtual] |
| virtual QString DtSelectionWidget::filterFor | ( | const QString & | windowTitle, |
| const QString & | listTitle | ||
| ) | [virtual] |
| virtual void DtSelectionWidget::addFinalFilter | ( | const DtFilter & | f | ) | [virtual] |
This filter will be passed down to all list views and used as a final filter check.
This filter is not displayed in the pulldown
| virtual void DtSelectionWidget::removeFinalFilter | ( | ) | [virtual] |
| virtual void DtSelectionWidget::removeButtons | ( | ) | [virtual] |
Removes/shows OK and Cancel buttons.
| virtual void DtSelectionWidget::showButtons | ( | ) | [virtual] |
| virtual void DtSelectionWidget::makeConnections | ( | bool | connectMap = true | ) | [virtual] |
Makes/disconnects connections for this widget and all child views.
| virtual void DtSelectionWidget::disconnectConnections | ( | ) | [virtual] |
| void DtSelectionWidget::setContinueAccept | ( | bool | b | ) | [inline] |
References myContinueAccept.
| bool DtSelectionWidget::continueAccept | ( | ) | const [inline] |
References myContinueAccept.
| virtual void DtSelectionWidget::setSelectedName | ( | const QString & | name, |
| int | iListBox = 0 |
||
| ) | [virtual] |
Sets the name that is currently selected in the specified filtered list view.
| virtual bool DtSelectionWidget::initConnections | ( | ) | [protected, virtual] |
| virtual bool DtSelectionWidget::initConnections | ( | DtFilteredListView * | ) | [protected, virtual] |
| virtual bool DtSelectionWidget::disconnectConnections | ( | DtFilteredListView * | ) | [protected, virtual] |
| virtual DtFilteredListView* DtSelectionWidget::createFilteredListView | ( | unsigned int | iForListBox | ) | [protected, virtual] |
Creates the filtered list view as defined by the factory.
By default only has it show published objects.
| virtual bool DtSelectionWidget::initFilters | ( | unsigned int | iForListBox = 0 | ) | [protected, virtual] |
| virtual QString DtSelectionWidget::listTitle | ( | unsigned int | iForListBox = 0 | ) | const [protected, virtual] |
| virtual QString DtSelectionWidget::listCaption | ( | unsigned int | iForListBox = 0 | ) | const [protected, virtual] |
| virtual bool DtSelectionWidget::initSelectionMode | ( | ) | [protected, virtual] |
| virtual QString DtSelectionWidget::windowTitle | ( | ) | const [protected, virtual] |
| virtual DtFilteredListView* DtSelectionWidget::createFilteredListView | ( | ) | [protected, virtual] |
| void DtSelectionWidget::selectionUpdated | ( | const QVector< DtModelKey > & | d | ) | [signal] |
| void DtSelectionWidget::selectionChanged | ( | const QVector< DtModelKey > & | d | ) | [signal] |
| void DtSelectionWidget::cancelActivated | ( | ) | [signal] |
| void DtSelectionWidget::accepted | ( | ) | [signal] |
| virtual void DtSelectionWidget::accept | ( | ) | [virtual, slot] |
| virtual void DtSelectionWidget::cancelAndClose | ( | ) | [virtual, slot] |
| virtual void DtSelectionWidget::listSelectionUpdated | ( | const QVector< DtModelKey > & | d | ) | [virtual, slot] |
| virtual void DtSelectionWidget::listSelectionChanged | ( | const QVector< DtModelKey > & | d | ) | [virtual, slot] |
| virtual void DtSelectionWidget::mapAreaSelectionUpdated | ( | const QVector< DtModelKey > & | ) | [virtual, slot] |
| virtual void DtSelectionWidget::mapAreaSelectionChanged | ( | const QVector< DtModelKey > & | ) | [virtual, slot] |
Differs from changeSelection in that the filtered views will be blocked from sending signals that their selections have been updated.
| virtual void DtSelectionWidget::filterChanged | ( | DtFilteredListView * | view, |
| const QString & | filter | ||
| ) | [virtual, slot] |
Called when the filter for the list box has changed, make sure to set.
| virtual void DtSelectionWidget::comboTextChanged | ( | DtFilteredListView * | view, |
| const QString & | filter | ||
| ) | [virtual, slot] |
By default, does nothing.
| virtual void DtSelectionWidget::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
| virtual void DtSelectionWidget::closeEvent | ( | QCloseEvent * | e | ) | [protected, virtual] |
| Ui::SelectionWidgetUi DtSelectionWidget::myUiImpl |
DtTMMapArea* DtSelectionWidget::myMapArea [protected] |
QList<DtFilteredListView*> DtSelectionWidget::myFilteredListViews [protected] |
bool DtSelectionWidget::myClosing [protected] |
DtEntityMapperKey DtSelectionWidget::gForceLevel [static, protected] |
QHash<QString, QString> DtSelectionWidget::gCurrentFilter [static, protected] |
bool DtSelectionWidget::myReflectingToMap [protected] |
bool DtSelectionWidget::mySelectedOne [protected] |
Only valid for multiple list box selections.
bool DtSelectionWidget::myContinueAccept [protected] |
Referenced by continueAccept(), and setContinueAccept().