![]() |
VR-Forces 4.0.4 Class Documentation
|
A widget for editing a map. More...

Public Member Functions | |
| DtMapEditorWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| CTOR. | |
| virtual | ~DtMapEditorWidget () |
| DTOR. | |
| virtual void | setColumnTitles (QString keyTitle, QStringList valueTitles) |
| Set strings to indicate the name of the keys and the name of the values. | |
| virtual void | setPossibleValues (QStringList values, int column) |
| Set the possible value selection for a column. | |
| const QStringList & | possibleValues (int column) |
| Get the possible values for a column. | |
| virtual void | setValue (const std::string &key, const std::string &value, int index=1, DtCustomTreeWidgetEditor::EditorType defaultEditor=DtCustomTreeWidgetEditor::DefaultEditor) |
| Called by the logic to add a key/value to the widget as well as a description of that value. | |
| virtual void | deleteValue (const std::string &key) |
| Called by the logic to delete a key/value to the widget. | |
| virtual void | clearValues () |
| Called by the logic to clear all values on widget. | |
| virtual void | renameKey (const std::string &oldkey, const std::string &newkey) |
| Called by the logic to rename a key. | |
| virtual void | selectValue (const std::string &key) |
| Called by the logic to select a value in the widget. | |
| virtual void | unableToRenameParameter (const std::string &oldName) |
| Called by the logic when a rename fails. | |
| virtual void | setKeyVisible (bool visible) |
| Called by the logic to show/hide key column. | |
| virtual void | setLabelText (const std::string &) |
| Sets label text for label next to buttons. | |
| virtual void | setUseSpacer (bool) |
| Sets whether or not to show a spacer underneath the label. | |
| virtual void | sortValues () |
| Sorts all items in ascending order. | |
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_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 |
| QMenu * | myMenu |
| FastTreeLoopkupMap | myFastItemLookup |
| ComboValueMap | myPossibleValues |
A widget for editing a map.
typedef std::map<std::string,QTreeWidgetItem*> makVrv::DtMapEditorWidget::FastTreeLoopkupMap [protected] |
typedef std::map<int, QStringList> makVrv::DtMapEditorWidget::ComboValueMap [protected] |
| makVrv::DtMapEditorWidget::DtMapEditorWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
CTOR.
| virtual makVrv::DtMapEditorWidget::~DtMapEditorWidget | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtMapEditorWidget::setColumnTitles | ( | QString | keyTitle, |
| QStringList | valueTitles | ||
| ) | [virtual] |
Set strings to indicate the name of the keys and the name of the values.
| virtual void makVrv::DtMapEditorWidget::setPossibleValues | ( | QStringList | values, |
| int | column | ||
| ) | [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 void makVrv::DtMapEditorWidget::setValue | ( | const std::string & | key, |
| const std::string & | value, | ||
| int | index = 1, |
||
| DtCustomTreeWidgetEditor::EditorType | defaultEditor = DtCustomTreeWidgetEditor::DefaultEditor |
||
| ) | [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 void makVrv::DtMapEditorWidget::deleteValue | ( | const std::string & | key | ) | [virtual] |
Called by the logic to delete a key/value to the widget.
Implements makVrv::DtMapEditorInterface.
| virtual void makVrv::DtMapEditorWidget::clearValues | ( | ) | [virtual] |
Called by the logic to clear all values on widget.
Implements makVrv::DtMapEditorInterface.
| virtual void makVrv::DtMapEditorWidget::renameKey | ( | const std::string & | oldkey, |
| const std::string & | newkey | ||
| ) | [virtual] |
Called by the logic to rename a key.
Implements makVrv::DtMapEditorInterface.
| virtual void makVrv::DtMapEditorWidget::selectValue | ( | const std::string & | key | ) | [virtual] |
Called by the logic to select a value in the widget.
Implements makVrv::DtMapEditorInterface.
| virtual void makVrv::DtMapEditorWidget::unableToRenameParameter | ( | const std::string & | oldName | ) | [virtual] |
Called by the logic when a rename fails.
Implements makVrv::DtMapEditorInterface.
| virtual void makVrv::DtMapEditorWidget::setKeyVisible | ( | bool | visible | ) | [virtual] |
Called by the logic to show/hide key column.
| virtual void makVrv::DtMapEditorWidget::setLabelText | ( | const std::string & | ) | [virtual] |
Sets label text for label next to buttons.
Implements makVrv::DtMapEditorInterface.
| virtual void makVrv::DtMapEditorWidget::setUseSpacer | ( | bool | ) | [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 void makVrv::DtMapEditorWidget::sortValues | ( | ) | [virtual] |
Sorts all items in ascending order.
Implements makVrv::DtMapEditorInterface.
| virtual void makVrv::DtMapEditorWidget::on_myTreeWidget_itemActivated | ( | QTreeWidgetItem * | item, |
| int | column | ||
| ) | [protected, virtual, slot] |
| virtual void makVrv::DtMapEditorWidget::on_myTreeWidget_itemDoubleClicked | ( | QTreeWidgetItem * | item, |
| int | column | ||
| ) | [protected, virtual, slot] |
| virtual void makVrv::DtMapEditorWidget::on_myTreeWidget_itemClicked | ( | QTreeWidgetItem * | item, |
| int | column | ||
| ) | [protected, virtual, slot] |
| virtual void makVrv::DtMapEditorWidget::on_myTreeWidget_itemChanged | ( | QTreeWidgetItem * | item, |
| int | column | ||
| ) | [protected, virtual, slot] |
| virtual void makVrv::DtMapEditorWidget::on_myTreeWidget_itemSelectionChanged | ( | ) | [protected, virtual, slot] |
| virtual void makVrv::DtMapEditorWidget::on_myAddButton_clicked | ( | ) | [protected, virtual, slot] |
| virtual void makVrv::DtMapEditorWidget::on_myDeleteButton_clicked | ( | ) | [protected, virtual, slot] |
| virtual void makVrv::DtMapEditorWidget::on_myRenameButton_clicked | ( | ) | [protected, virtual, slot] |
| virtual void makVrv::DtMapEditorWidget::on_addKey | ( | QAction * | action | ) | [protected, virtual, slot] |
| void makVrv::DtMapEditorWidget::editParameterName | ( | QString | nameInData | ) | [protected, slot] |
| QString makVrv::DtMapEditorWidget::askForNewName | ( | QString | initial, |
| const QString & | title | ||
| ) | [protected] |
| void makVrv::DtMapEditorWidget::setupGui | ( | ) | [protected] |
Reimplemented in makVrv::DtModelDefinitionEditorWidget.
| QTreeWidgetItem* makVrv::DtMapEditorWidget::findItem | ( | const std::string & | key | ) | [protected] |
| QString makVrv::DtMapEditorWidget::selectedInstanceName | ( | ) | const [protected] |
DtDe& makVrv::DtMapEditorWidget::myDe [protected] |
Reimplemented in makVrv::DtModelDefinitionEditorWidget.
QVBoxLayout* makVrv::DtMapEditorWidget::myMainLayout [protected] |
QLabel* makVrv::DtMapEditorWidget::myLabel [protected] |
QLabel* makVrv::DtMapEditorWidget::mySpacer [protected] |
QHBoxLayout* makVrv::DtMapEditorWidget::myButtonLayout [protected] |
QPushButton* makVrv::DtMapEditorWidget::myAddButton [protected] |
QPushButton* makVrv::DtMapEditorWidget::myDeleteButton [protected] |
QPushButton* makVrv::DtMapEditorWidget::myRenameButton [protected] |
QMenu* makVrv::DtMapEditorWidget::myMenu [protected] |