![]() |
VR-Forces 5.0.2 Developer's Guide
|
The widget for display string keys to multiple mapped values.

Public Member Functions | |
| DtMultiMapEditorWidget (DtDe &de, QWidget *parent, Qt::WindowFlags f=0) | |
| virtual | ~DtMultiMapEditorWidget () |
| virtual void | setColumnTitles (QString keyTitle, QStringList valueTitles) |
| virtual QString | columnTitle (int col) const |
| virtual void | setPossibleValues (const QStringList &values, int column=1) |
| const QStringList & | possibleValues (int column) |
| virtual void | addValue (const std::string &key, const std::string &value, int index=1) |
| virtual void | changeValue (const std::string &key, const std::string &oldValue, const std::string &value, int index=1) |
| virtual void | deleteValue (const std::string &key, const std::string &value) |
| virtual void | deleteValues (const std::vector< std::string > &key, const std::vector< std::string > &value) |
| virtual void | replaceValue (const std::string &key, const std::string &oldValue, const std::string &newValue) |
| virtual void | clearValues () |
| virtual void | sortItems () |
| virtual void | changeFilePath () |
| virtual void | setTitle (const QString &) |
| virtual void | unableToRenameParameter (const std::string &oldName) |
| virtual void | selectValue (const std::string &key, const std::string &value) |
| virtual void | selectAdditionalValue (const std::string &key, const std::string &value) |
| virtual void | selectFirstValue (const std::string &key) |
| virtual void | filterValues (const std::vector< std::string > &keys) |
| virtual void | filterValues (const std::vector< std::pair< std::string, std::string > > &keys) |
| virtual void | setAllTopLevelTreeWidgetItemsHidden (bool hide) |
| virtual void | renameKey (const std::string &oldkey, const std::string &value, const std::string &newkey) |
| virtual QWidget * | widget () |
| virtual std::vector< std::string > | selectedInstancesNames () |
Public Member Functions inherited from makVrv::DtMultiMapEditorInterface | |
| DtMultiMapEditorInterface () | |
| virtual | ~DtMultiMapEditorInterface () |
| virtual void | showErrors ()=0 |
Protected Types | |
| typedef std::multimap < std::string, QTreeWidgetItem * > | FastTreeLoopkupMap |
Protected Slots | |
| virtual void | on_myTreeWidget_itemActivated (QTreeWidgetItem *item, int column) |
| virtual void | on_myTreeWidget_itemClicked (QTreeWidgetItem *item, int column) |
| virtual void | on_myTreeWidget_itemChanged (QTreeWidgetItem *item, int column) |
| virtual void | on_myAddButton_clicked () |
| virtual void | on_myChangeFileButton_clicked () |
| virtual void | on_myChangeFileFilterButton_clicked () |
| virtual void | on_myDeleteButton_clicked () |
| virtual void | on_keySelected (QAction *action) |
| virtual void | on_myTreeWidget_itemSelectionChanged () |
| void | editParameterName (QString nameInData) |
Protected Member Functions | |
| void | setupGui () |
| QTreeWidgetItem * | findItem (const std::string &key, const std::string &value) |
| bool | selectedInstanceNameAndValue (std::vector< std::string > &names, std::vector< std::string > &values) const |
| virtual void | setValid (const std::string &name, const std::string &value, bool valid, const QString &errorText) |
Protected Attributes | |
| DtDe & | myDe |
| QVBoxLayout * | myMainLayout |
| QHBoxLayout * | myButtonLayout |
| QTreeWidget * | myTreeWidget |
| QPushButton * | myAddButton |
| QPushButton * | myChangeFileButton |
| QPushButton * | myChangeFileFilterButton |
| QPushButton * | myDeleteButton |
| QMenu * | myMenu |
| QLabel * | myTitle |
| FastTreeLoopkupMap | myFastItemLookup |
| std::map< int, QStringList > | myPossibleValueMap |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtMultiMapEditorInterface | |
| boost::signalslib::signal < void(const std::string &oldName, const std::string &value, const std::string &newName)> | signal_renameValue |
| boost::signalslib::signal < void(const std::string &key, const std::string &value, int index)> | signal_addValue |
| boost::signalslib::signal< void()> | signal_changeFilePath |
| boost::signalslib::signal< void()> | signal_changeFileFilterPath |
| boost::signalslib::signal < void(const std::string &key, const std::string &oldValue, const std::string &value, int index)> | signal_valueChanged |
| boost::signalslib::signal < void(const std::vector < std::string > &keys, const std::vector< std::string > &values)> | signal_deleteValue |
| boost::signalslib::signal < void(const std::string &key)> | signal_itemSelected |
|
protected |
| makVrv::DtMultiMapEditorWidget::DtMultiMapEditorWidget | ( | DtDe & | de, |
| QWidget * | parent, | ||
| Qt::WindowFlags | f = 0 |
||
| ) |
CTOR.
|
virtual |
|
virtual |
Set strings to indicate the name of the keys and the name of the values.
|
virtual |
Returns the title at the particular column.
|
virtual |
Set the list of possible values for value. Optionally there may be multiple sets of values, specified by the index.
Implements makVrv::DtMultiMapEditorInterface.
| const QStringList& makVrv::DtMultiMapEditorWidget::possibleValues | ( | int | column | ) |
Get the possible values for a column.
|
virtual |
Called by the logic to add a key/value to the widget.
Implements makVrv::DtMultiMapEditorInterface.
|
virtual |
Called by the logic to change a key/value to the widget.
Implements makVrv::DtMultiMapEditorInterface.
|
virtual |
Called by the logic to delete a key/value to the widget.
Implements makVrv::DtMultiMapEditorInterface.
Reimplemented in makVrv::DtEntityTypeMapEditorWidget.
|
virtual |
Called by the logic to delete key/value to the widget.
Implements makVrv::DtMultiMapEditorInterface.
Reimplemented in makVrv::DtEntityTypeMapEditorWidget.
|
virtual |
Called by the logic to replace the old value with the new value for the specified key.
Implements makVrv::DtMultiMapEditorInterface.
|
virtual |
Called by the logic to clear all values on widget.
Implements makVrv::DtMultiMapEditorInterface.
Reimplemented in makVrv::DtEntityTypeMapEditorWidget.
|
virtual |
Sort the items.
Implements makVrv::DtMultiMapEditorInterface.
|
virtual |
Changes the path of currently selected definition to the file path currently displayed on the dropdown box.
Implements makVrv::DtMultiMapEditorInterface.
|
virtual |
Sets the title of the label next to dialog buttons.
Implements makVrv::DtMultiMapEditorInterface.
|
virtual |
Called by the logic when a renameValue fails.
Implements makVrv::DtMultiMapEditorInterface.
|
virtual |
Called by the logic to select a value in the widget.
Implements makVrv::DtMultiMapEditorInterface.
|
virtual |
Called by the logic to select a value in the widget without clearing previous selections.
Implements makVrv::DtMultiMapEditorInterface.
|
virtual |
Called by the logic to select a value in the widget.
Implements makVrv::DtMultiMapEditorInterface.
|
virtual |
Filters the tree by the given keys.
Implements makVrv::DtMultiMapEditorInterface.
|
virtual |
Filters the tree by the given key and name pairs.
Implements makVrv::DtMultiMapEditorInterface.
|
virtual |
Sets all the top level items hidden or not.
Implements makVrv::DtMultiMapEditorInterface.
|
virtual |
Called by the logic to rename a key Warning: This only does so visually and is primarily only used when using the map editor to display an ordered list with an invisible key.
Implements makVrv::DtMultiMapEditorInterface.
Reimplemented in makVrv::DtEntityTypeMapEditorWidget.
|
virtual |
Returns this widget.
Implements makVrv::DtMultiMapEditorInterface.
|
virtual |
get the current selected instances names
Implements makVrv::DtMultiMapEditorInterface.
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedslot |
|
protected |
|
protected |
|
protectedvirtual |
Returns the selected instance names and values in the supplied parameters. Will return true if there is something selected.
Implements makVrv::DtMultiMapEditorInterface.
|
protectedvirtual |
Sets value valid/invalid and gives text to display when selected if invalid. Invalid background color is 0.
Implements makVrv::DtMultiMapEditorInterface.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |