![]() |
VR-Forces 4.8 Class Documentation
|
Editor widget for editing model definitions. More...

Public Member Functions | |
| DtModelDefinitionEditorWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| CTOR. More... | |
| virtual void | setSchema (const std::vector< std::string > &schema) |
| Set the current schema list for the widget. More... | |
| virtual void | setFileLocationBar (const std::vector< std::string > &schema) |
| Fill the file location dropdown bar with all file name in //! directory. More... | |
| virtual void | setCurrentSchema (const std::string ¤tSchema) |
| Set the current schema. More... | |
| virtual void | setCurrentFileLocation (const std::string ¤tSchema) |
| Refresh file location dropdown bar to display the location of the currently selected definition. More... | |
| std::string | getCurrentFileLocation () |
| returns the file location currently displayed in the file location dropdown box More... | |
| virtual void | updateErrorMessages (const QStringList &messages) |
| Set the error messages. More... | |
Public Member Functions inherited from makVrv::DtMapEditorWidget | |
| DtMapEditorWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| CTOR. More... | |
| virtual | ~DtMapEditorWidget () |
| DTOR. More... | |
| virtual void | setColumnTitles (QString keyTitle, QStringList valueTitles) |
| Set strings to indicate the name of the keys and the name of the values. More... | |
| virtual void | setPossibleValues (QStringList values, int column) |
| Set the possible value selection for a column. More... | |
| const QStringList & | possibleValues (int column) |
| Get the possible values for a column. More... | |
| 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. More... | |
| virtual void | deleteValue (const std::string &key) |
| Called by the logic to delete a key/value to the widget. More... | |
| virtual void | clearValues () |
| Called by the logic to clear all values on widget. More... | |
| virtual void | renameKey (const std::string &oldkey, const std::string &newkey) |
| Called by the logic to rename a key. More... | |
| virtual void | selectValue (const std::string &key) |
| Called by the logic to select a value in the widget. More... | |
| virtual void | unableToRenameParameter (const std::string &oldName) |
| Called by the logic when a rename fails. More... | |
| virtual void | setKeyVisible (bool visible) |
| Called by the logic to show/hide key column. More... | |
| virtual void | setLabelText (const std::string &) |
| Sets label text for label next to buttons. More... | |
| virtual void | setFilterVisible (const bool &isVisible) |
| Hides the file location buttons for Schema editor. More... | |
| virtual void | setUseSpacer (bool) |
| Sets whether or not to show a spacer underneath the label. More... | |
| virtual void | sortValues () |
| Sorts all items in ascending order. More... | |
Public Member Functions inherited from makVrv::DtMapEditorInterface | |
| virtual | ~DtMapEditorInterface () |
Public Member Functions inherited from makVrv::DtModelDefinitionEditorInterface | |
| DtModelDefinitionEditorInterface () | |
| CTOR. More... | |
| virtual | ~DtModelDefinitionEditorInterface () |
Protected Slots | |
| virtual void | on_mySchemaComboBox_currentIndexChanged (int index) |
| virtual void | on_myFileComboBox_currentIndexChanged (int index) |
| Updates the current file path in the dropdown whenever a new element is selected. More... | |
Protected Slots inherited from makVrv::DtMapEditorWidget | |
| 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 | |
| void | setupGui () |
Protected Member Functions inherited from makVrv::DtMapEditorWidget | |
| QString | askForNewName (QString initial, const QString &title) |
| void | setupGui () |
| QTreeWidgetItem * | findItem (const std::string &key) |
| QString | selectedInstanceName () const |
Protected Attributes | |
| QHBoxLayout * | myVisualizerDefinitionButtonLayout |
| QLabel * | mySchemaLabel |
| QLabel * | myFileLabel |
| QComboBox * | mySchemaComboBox |
| QComboBox * | myFileComboBox |
| QTextEdit * | myErrorMessages |
Protected Attributes inherited from makVrv::DtMapEditorWidget | |
| 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::signal< void(const std::string &oldName, const std::string &newName)> | signal_renameValue |
| Signal emitted when the user wants to rename a key. More... | |
| boost::signal< void(const std::string &key, const std::string &value, int index)> | signal_addValue |
| Signal emitted when the user wants to add a new key/value. More... | |
| boost::signal< void()> | signal_changeFileName |
| boost::signal< void()> | signal_changeFileFilter |
| boost::signal< void(const std::string &key)> | signal_deleteValue |
| Signal emitted when the user wants to delete a key value. More... | |
| boost::signal< void(const std::string &key)> | signal_itemSelected |
| Signal emitted when a value is selected. More... | |
Public Attributes inherited from makVrv::DtModelDefinitionEditorInterface | |
| boost::signal< void(const std::string &schema)> | signal_schemaChanged |
| boost::signal< void(const std::string &schema)> | signal_fileChanged |
Protected Types inherited from makVrv::DtMapEditorWidget | |
| typedef std::map< std::string, QTreeWidgetItem * > | FastTreeLoopkupMap |
| typedef std::map< int, QStringList > | ComboValueMap |
Editor widget for editing model definitions.
| makVrv::DtModelDefinitionEditorWidget::DtModelDefinitionEditorWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
CTOR.
|
virtual |
Set the current schema list for the widget.
Implements makVrv::DtModelDefinitionEditorInterface.
|
virtual |
Fill the file location dropdown bar with all file name in //! directory.
Implements makVrv::DtModelDefinitionEditorInterface.
|
virtual |
Set the current schema.
Implements makVrv::DtModelDefinitionEditorInterface.
|
virtual |
Refresh file location dropdown bar to display the location of the currently selected definition.
Implements makVrv::DtModelDefinitionEditorInterface.
|
virtual |
returns the file location currently displayed in the file location dropdown box
Implements makVrv::DtModelDefinitionEditorInterface.
|
virtual |
Set the error messages.
Implements makVrv::DtModelDefinitionEditorInterface.
|
protectedvirtualslot |
|
protectedvirtualslot |
Updates the current file path in the dropdown whenever a new element is selected.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |