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

Public Slots | |
| virtual void | accept () |
| virtual void | cancelAndClose () |
| virtual void | listSelectionUpdated (const DtElementData::UniqueIdList &d) |
| These two simply propagate the same signal name when it arrives from the filtered list window. | |
| virtual void | filterChanged (DtFilteredListView *window, const QString &filter) |
| Called when the filter for the list box has changed, make sure to set. | |
| virtual void | comboTextChanged (DtFilteredListView *window, const QString &filter) |
| By default, does nothing. | |
| virtual bool | createFilteredListViews () |
Signals | |
| void | cancelActivated () |
| emitted to tell the map area about changes These were used to update the map in vrforces. | |
| void | accepted () |
Public Member Functions | |
| DtSelectionWidget (DtDe &de, QWidget *parent=NULL, const Qt::WindowFlags &f=0) | |
| default constructor | |
| virtual | ~DtSelectionWidget () |
| destructor | |
| virtual bool | init (int iNumListBoxes=1) |
| Initializer. | |
| virtual void | tick () |
| virtual DtElementData::UniqueIdList | 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 void | addFilter (const DtFilter &filter, unsigned int iForListBox=0, bool executeForFilter=false) |
| 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 windows 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 windows. | |
| 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 window. | |
| void | onExternalSelectionChanged (const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected) |
Public Attributes | |
| Ui::DtSelectionWidgetUi | 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 window 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 ()=0 |
| virtual void | slot_activate (DtDe *subject) |
| virtual void | slot_deactivate (DtDe *subject) |
| void | externalSelectionChanged (const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected) |
| Differs from changeSelection in that the filtered windows will be blocked from sending signals that their selections have been updated. | |
| virtual void | keyPressEvent (QKeyEvent *e) |
| virtual void | closeEvent (QCloseEvent *e) |
Protected Attributes | |
| DtDe & | myDe |
| int | myNumListBoxes |
| QList< DtFilteredListView * > | myFilteredListViews |
| bool | myClosing |
| bool | myUpdatingSelectionManager |
| bool | mySelectedOne |
| Only valid for multiple list box selections. | |
| bool | myContinueAccept |
Static Protected Attributes | |
| 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
| makVrv::DtSelectionWidget::DtSelectionWidget | ( | DtDe & | de, |
| QWidget * | parent = NULL, |
||
| const Qt::WindowFlags & | f = 0 |
||
| ) |
default constructor
|
virtual |
destructor
Initializer.
Reimplemented in makVrv::DtObjectsSelectionList.
|
virtual |
Reimplemented in makVrv::DtObjectsSelectionList.
|
virtual |
-1 means all objects selected in all list boxes
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
This filter will be passed down to all list windows and used as a final filter check.
This filter is not displayed in the pull down.
|
virtual |
|
virtual |
Removes/shows OK and Cancel buttons.
|
virtual |
|
virtual |
Makes/disconnects connections for this widget and all child windows.
|
virtual |
|
inline |
References myContinueAccept.
|
inline |
References myContinueAccept.
|
virtual |
Sets the name that is currently selected in the specified filtered list window.
| void makVrv::DtSelectionWidget::onExternalSelectionChanged | ( | const DtSelectionManager::IdSet & | selected, |
| const DtSelectionManager::IdSet & | deselected | ||
| ) |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in makVrv::DtObjectsSelectionList.
|
protectedvirtual |
|
protectedvirtual |
Creates the filtered list window as defined by the factory.
By default only has it show published objects.
Reimplemented in makVrv::DtObjectsSelectionList.
|
protectedvirtual |
Reimplemented in makVrv::DtEntityList.
|
protectedvirtual |
Reimplemented in makVrv::DtEntityList.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in makVrv::DtEntityList.
|
protectedpure virtual |
Implemented in makVrv::DtObjectsSelectionList.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Differs from changeSelection in that the filtered windows will be blocked from sending signals that their selections have been updated.
|
signal |
emitted to tell the map area about changes These were used to update the map in vrforces.
|
signal |
|
virtualslot |
|
virtualslot |
|
virtualslot |
These two simply propagate the same signal name when it arrives from the filtered list window.
|
virtualslot |
Called when the filter for the list box has changed, make sure to set.
|
virtualslot |
By default, does nothing.
|
virtualslot |
|
protectedvirtual |
Reimplemented in makVrv::DtObjectsSelectionList.
|
protectedvirtual |
| Ui::DtSelectionWidgetUi makVrv::DtSelectionWidget::myUiImpl |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
Only valid for multiple list box selections.
|
protected |
Referenced by continueAccept(), and setContinueAccept().