![]() |
VR-Forces 4.0.4 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 makVrv::DtSelectionWidget::~DtSelectionWidget | ( | ) | [virtual] |
destructor
| virtual bool makVrv::DtSelectionWidget::init | ( | int | iNumListBoxes = 1 | ) | [virtual] |
Initializer.
Reimplemented in makVrv::DtObjectsSelectionList.
| virtual void makVrv::DtSelectionWidget::tick | ( | ) | [virtual] |
Reimplemented in makVrv::DtObjectsSelectionList.
| virtual DtElementData::UniqueIdList makVrv::DtSelectionWidget::selectedObjects | ( | int | iListBox = -1 | ) | const [virtual] |
-1 means all objects selected in all list boxes
| virtual QString makVrv::DtSelectionWidget::selectedName | ( | unsigned int | iListBox = 0 | ) | [virtual] |
| virtual bool makVrv::DtSelectionWidget::selectedNames | ( | QString & | name1, |
| QString & | name2 | ||
| ) | [virtual] |
| virtual void makVrv::DtSelectionWidget::addFilter | ( | const DtFilter & | filter, |
| unsigned int | iForListBox = 0, |
||
| bool | executeForFilter = false |
||
| ) | [virtual] |
| virtual DtFilteredListView* makVrv::DtSelectionWidget::filteredListView | ( | unsigned int | iListBox = 0 | ) | [virtual] |
| virtual void makVrv::DtSelectionWidget::clearAllSelections | ( | ) | [virtual] |
| virtual QString makVrv::DtSelectionWidget::filterFor | ( | const QString & | windowTitle, |
| const QString & | listTitle | ||
| ) | [virtual] |
| virtual void makVrv::DtSelectionWidget::addFinalFilter | ( | const DtFilter & | f | ) | [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 void makVrv::DtSelectionWidget::removeFinalFilter | ( | ) | [virtual] |
| virtual void makVrv::DtSelectionWidget::removeButtons | ( | ) | [virtual] |
Removes/shows OK and Cancel buttons.
| virtual void makVrv::DtSelectionWidget::showButtons | ( | ) | [virtual] |
| virtual void makVrv::DtSelectionWidget::makeConnections | ( | bool | connectMap = true | ) | [virtual] |
Makes/disconnects connections for this widget and all child windows.
| virtual void makVrv::DtSelectionWidget::disconnectConnections | ( | ) | [virtual] |
| void DtSelectionWidget::setContinueAccept | ( | bool | b | ) | [inline] |
References myContinueAccept.
| bool DtSelectionWidget::continueAccept | ( | ) | const [inline] |
References myContinueAccept.
| virtual void makVrv::DtSelectionWidget::setSelectedName | ( | const QString & | name, |
| int | iListBox = 0 |
||
| ) | [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 | ||
| ) |
| virtual bool makVrv::DtSelectionWidget::initConnections | ( | ) | [protected, virtual] |
| virtual bool makVrv::DtSelectionWidget::initConnections | ( | DtFilteredListView * | ) | [protected, virtual] |
Reimplemented in makVrv::DtObjectsSelectionList.
| virtual bool makVrv::DtSelectionWidget::disconnectConnections | ( | DtFilteredListView * | ) | [protected, virtual] |
| virtual DtFilteredListView* makVrv::DtSelectionWidget::createFilteredListView | ( | unsigned int | iForListBox | ) | [protected, virtual] |
Creates the filtered list window as defined by the factory.
By default only has it show published objects.
Reimplemented in makVrv::DtObjectsSelectionList.
| virtual bool makVrv::DtSelectionWidget::initFilters | ( | unsigned int | iForListBox = 0 | ) | [protected, virtual] |
Reimplemented in makVrv::DtEntityList.
| virtual QString makVrv::DtSelectionWidget::listTitle | ( | unsigned int | iForListBox = 0 | ) | const [protected, virtual] |
Reimplemented in makVrv::DtEntityList.
| virtual QString makVrv::DtSelectionWidget::listCaption | ( | unsigned int | iForListBox = 0 | ) | const [protected, virtual] |
| virtual bool makVrv::DtSelectionWidget::initSelectionMode | ( | ) | [protected, virtual] |
| virtual QString makVrv::DtSelectionWidget::windowTitle | ( | ) | const [protected, virtual] |
Reimplemented in makVrv::DtEntityList.
| virtual DtFilteredListView* makVrv::DtSelectionWidget::createFilteredListView | ( | ) | [protected, pure virtual] |
Implemented in makVrv::DtObjectsSelectionList.
| virtual void makVrv::DtSelectionWidget::slot_activate | ( | DtDe * | subject | ) | [protected, virtual] |
| virtual void makVrv::DtSelectionWidget::slot_deactivate | ( | DtDe * | subject | ) | [protected, virtual] |
| void makVrv::DtSelectionWidget::externalSelectionChanged | ( | const DtSelectionManager::IdSet & | selected, |
| const DtSelectionManager::IdSet & | deselected | ||
| ) | [protected] |
Differs from changeSelection in that the filtered windows will be blocked from sending signals that their selections have been updated.
| void makVrv::DtSelectionWidget::cancelActivated | ( | ) | [signal] |
emitted to tell the map area about changes These were used to update the map in vrforces.
| void makVrv::DtSelectionWidget::accepted | ( | ) | [signal] |
| virtual void makVrv::DtSelectionWidget::accept | ( | ) | [virtual, slot] |
| virtual void makVrv::DtSelectionWidget::cancelAndClose | ( | ) | [virtual, slot] |
| virtual void makVrv::DtSelectionWidget::listSelectionUpdated | ( | const DtElementData::UniqueIdList & | d | ) | [virtual, slot] |
These two simply propagate the same signal name when it arrives from the filtered list window.
| virtual void makVrv::DtSelectionWidget::filterChanged | ( | DtFilteredListView * | window, |
| const QString & | filter | ||
| ) | [virtual, slot] |
Called when the filter for the list box has changed, make sure to set.
| virtual void makVrv::DtSelectionWidget::comboTextChanged | ( | DtFilteredListView * | window, |
| const QString & | filter | ||
| ) | [virtual, slot] |
By default, does nothing.
| virtual bool makVrv::DtSelectionWidget::createFilteredListViews | ( | ) | [virtual, slot] |
| virtual void makVrv::DtSelectionWidget::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Reimplemented in makVrv::DtObjectsSelectionList.
| virtual void makVrv::DtSelectionWidget::closeEvent | ( | QCloseEvent * | e | ) | [protected, virtual] |
| Ui::DtSelectionWidgetUi makVrv::DtSelectionWidget::myUiImpl |
DtDe& makVrv::DtSelectionWidget::myDe [protected] |
int makVrv::DtSelectionWidget::myNumListBoxes [protected] |
bool makVrv::DtSelectionWidget::myClosing [protected] |
QHash<QString, QString> makVrv::DtSelectionWidget::gCurrentFilter [static, protected] |
bool makVrv::DtSelectionWidget::mySelectedOne [protected] |
Only valid for multiple list box selections.
bool makVrv::DtSelectionWidget::myContinueAccept [protected] |
Referenced by continueAccept(), and setContinueAccept().