![]() |
VR-Forces 5.0.2 Developer's Guide
|
A widget for editing a map.

Public Member Functions | |
| DtMapEditorWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| virtual | ~DtMapEditorWidget () |
| virtual void | setColumnTitles (QString keyTitle, QStringList valueTitles) |
| virtual void | setPossibleValues (QStringList values, int column) |
| const QStringList & | possibleValues (int column) |
| virtual void | setValue (const std::string &key, const std::string &value, int index=1, DtCustomTreeWidgetEditor::EditorType defaultEditor=DtCustomTreeWidgetEditor::DefaultEditor) |
| virtual void | deleteValue (const std::string &key) |
| virtual void | clearValues () |
| virtual void | renameKey (const std::string &oldkey, const std::string &newkey) |
| virtual void | selectValue (const std::string &key) |
| virtual void | unableToRenameParameter (const std::string &oldName) |
| virtual void | setKeyVisible (bool visible) |
| virtual void | setLabelText (const std::string &) |
| virtual void | setFilterVisible (const bool &isVisible) |
| virtual void | setUseSpacer (bool) |
| virtual void | sortValues () |
| virtual void | setKeyTextColour (const std::string &key, int r, int g, int b, int a, int index=1) |
Public Member Functions inherited from makVrv::DtMapEditorInterface | |
| virtual | ~DtMapEditorInterface () |
Protected Types | |
| typedef std::map< std::string, QTreeWidgetItem * > | FastTreeLoopkupMap |
| typedef std::map< int, QStringList > | ComboValueMap |
Protected Slots | |
| virtual void | on_myTreeWidget_itemActivated (QTreeWidgetItem *item, int column) |
| virtual void | on_myTreeWidget_itemDoubleClicked (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_myTreeWidget_itemSelectionChanged () |
| virtual void | on_myAddButton_clicked () |
| virtual void | on_myDeleteButton_clicked () |
| virtual void | on_myRenameButton_clicked () |
| virtual void | on_myChangeFileLocationButton_clicked () |
| virtual void | on_myChangeFileFilterButton_clicked () |
| virtual void | on_addKey (QAction *action) |
| void | editParameterName (QString nameInData) |
Protected Member Functions | |
| QString | askForNewName (QString initial, const QString &title) |
| void | setupGui () |
| QTreeWidgetItem * | findItem (const std::string &key) |
| QString | selectedInstanceName () const |
Protected Attributes | |
| DtDe & | myDe |
| QVBoxLayout * | myMainLayout |
| QLabel * | myLabel |
| QLabel * | mySpacer |
| QHBoxLayout * | myButtonLayout |
| DtContextTreeWidget * | myTreeWidget |
| QPushButton * | myAddButton |
| QPushButton * | myDeleteButton |
| QPushButton * | myRenameButton |
| QPushButton * | myChangeFilePathButton |
| QPushButton * | myChangeFileFilterButton |
| QMenu * | myMenu |
| FastTreeLoopkupMap | myFastItemLookup |
| ComboValueMap | myPossibleValues |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtMapEditorInterface | |
| boost::signalslib::signal < void(const std::string &oldName, 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_changeFileName |
| boost::signalslib::signal< void()> | signal_changeFileFilter |
| boost::signalslib::signal < void(const std::string &key)> | signal_deleteValue |
| boost::signalslib::signal < void(const std::string &key)> | signal_itemSelected |
|
protected |
|
protected |
| makVrv::DtMapEditorWidget::DtMapEditorWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set strings to indicate the name of the keys and the name of the values.
|
virtual |
Set the possible value selection for a column.
Implements makVrv::DtMapEditorInterface.
| const QStringList& makVrv::DtMapEditorWidget::possibleValues | ( | int | column | ) |
Get the possible values for a column.
|
virtual |
Called by the logic to add a key/value to the widget as well as a description of that value.
Implements makVrv::DtMapEditorInterface.
|
virtual |
Called by the logic to delete a key/value to the widget.
Implements makVrv::DtMapEditorInterface.
|
virtual |
Called by the logic to clear all values on widget.
Implements makVrv::DtMapEditorInterface.
Reimplemented in makVrv::DtModelDefinitionEditorWidget.
|
virtual |
Called by the logic to rename a key.
Implements makVrv::DtMapEditorInterface.
|
virtual |
Called by the logic to select a value in the widget.
Implements makVrv::DtMapEditorInterface.
|
virtual |
Called by the logic when a rename fails.
Implements makVrv::DtMapEditorInterface.
|
virtual |
Called by the logic to show/hide key column.
|
virtual |
Sets label text for label next to buttons.
Implements makVrv::DtMapEditorInterface.
|
virtual |
Hides the file location buttons for Schema editor.
|
virtual |
Sets whether or not to show a spacer underneath the label. Default is true (used for layout with other widgets on screen)
Implements makVrv::DtMapEditorInterface.
|
virtual |
Sorts all items in ascending order.
Implements makVrv::DtMapEditorInterface.
|
virtual |
Called by the logic to setKeyTextColour used when definitions are not valid.
Implements makVrv::DtMapEditorInterface.
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedslot |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |