![]() |
VR-Forces 4.0.4 Class Documentation
|
The main widget for editing element definitions. More...

Public Slots | |
| void | slot_currentElementItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous) |
| void | slot_currentVisualizerDefItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous) |
| void | slot_addElementDefinition () |
| void | slot_removeElementDefinition () |
| void | slot_renameElementDefinition () |
| void | slot_addVisualizerDef () |
| void | slot_removeVisualizerDef () |
| void | slot_addAttribute () |
| void | slot_removeAttribute () |
| void | slot_removeOverrideAttribute () |
| void | slot_modelSetChanged (int index) |
| void | destroyEditors () |
Public Member Functions | |
| DtElementEditorWidget (DtElementDefinitionTypeManager::ElementDefinitionType type, DtStateVisualizer::Type visType, DtDe &de, QWidget *parent, DtPersistenceControlsInterface *persistenceToolbar) | |
| CTOR. | |
| ~DtElementEditorWidget () | |
| DTOR. | |
| virtual void | activate () |
| Activates the widget. | |
| virtual void | deactivate () |
| Deactivates the widget. | |
| virtual void | changeElementsStart () |
| Enable/Disable the remove element button. | |
| virtual void | addElement (const DtUnicode &name) |
| Enable/Disable the remove element button. | |
| virtual void | addElement (const DtUnicode &name, const DtUnicode &parentName) |
| Enable/Disable the remove element button. | |
| virtual void | removeElement (const DtUnicode &name) |
| Enable/Disable the remove element button. | |
| virtual void | changeElementsStop () |
| Enable/Disable the remove element button. | |
| virtual void | clearElements () |
| Enable/Disable the remove element button. | |
| virtual void | selectElement (const DtUnicode &name) |
| Enable/Disable the remove element button. | |
| virtual void | setModelSets (const std::vector< DtUnicode > &modelSets) |
| Enable/Disable the remove element button. | |
| virtual void | setCurrentModelSet (int index) |
| Enable/Disable the remove element button. | |
| virtual void | changeDefinitionStart () |
| Enable/Disable the remove element button. | |
| virtual void | clearDefinitions () |
| Enable/Disable the remove element button. | |
| virtual void | addDefinition (int index, const DtUnicode &name, bool inherited) |
| Enable/Disable the remove element button. | |
| virtual void | removeDefinition (int index) |
| Enable/Disable the remove element button. | |
| virtual void | changeDefinitionStop () |
| Enable/Disable the remove element button. | |
| virtual void | changeAttributeStart () |
| Enable/Disable the remove element button. | |
| virtual void | addAttribute (int defIndex, const std::string &name, const DtUnicode &value, bool inherited) |
| Enable/Disable the remove element button. | |
| virtual void | removeAttribute (int defIndex, const std::string &name) |
| Enable/Disable the remove element button. | |
| virtual void | changeAttributeStop () |
| Enable/Disable the remove element button. | |
| virtual void | selectAttribute (int defIndex, const std::string &name) |
| Enable/Disable the remove element button. | |
| virtual void | updateAttribute (int defIndex, const std::string &name, const DtUnicode &value) |
| Enable/Disable the remove element button. | |
| QTreeWidgetItem * | findAttributeItem (int defIndex, const std::string &name) |
| Enable/Disable the remove element button. | |
| virtual void | setAttributeDescription (const DtUnicode &desc) |
| Enable/Disable the remove element button. | |
| virtual void | createAttributeEditor (int defIndex, const std::string &name, const std::string &attrClass) |
| Enable/Disable the remove element button. | |
| virtual void | destroyAttributeEditor (int defIndex, const std::string &name) |
| Enable/Disable the remove element button. | |
| virtual std::string | chooseNewVisualizerDefinitionType () |
| Enable/Disable the remove element button. | |
| virtual int | chooseNewAttributeName (const std::vector< std::pair< std::string, DtUnicode > > &nameTypePairs) |
| Enable/Disable the remove element button. | |
| virtual void | setRemoveElementEnabled (bool b) |
| Enable/Disable the remove element button. | |
| virtual void | setAddVisualDefEnabled (bool b) |
| Enable/Disable the add visual defintion button. | |
| virtual void | setRemoveVisualDefEnabled (bool b) |
| Enable/Disable the remove visual definition button. | |
| virtual void | setAddAttributeEnabled (bool b) |
| Enable/Disable the add attribute button. | |
| virtual void | setRemoveAttributeEnabled (bool b) |
| Enable/Disable the remove attribute button. | |
| virtual void | showAddedElements (std::vector< DtUnicode > &addedNames, std::vector< DtUnicode > &skippedNames) |
| Display a list of added element names. | |
Protected Member Functions | |
| void | setupGui () |
| QString | nameOfSelectedElement () const |
| Get the name of the selected element. | |
| int | indexOfSelectedVisualizer () |
| QString | nameOfSelectedAttribute () const |
| Get the name of the selected attribute. | |
Protected Attributes | |
| DtDe & | myDe |
| DtElementDefinitionTypeManager::ElementDefinitionType | myType |
| DtStateVisualizer::Type | myVisType |
| DtElementEditorLogic * | myLogic |
| QMap< QString, QTreeWidgetItem * > | myCacheMap |
| QList< QTreeWidgetItem * > | myTopItemCache |
| QList< QTreeWidgetItem * > | myDeleteCache |
| QList< QTreeWidgetItem * > | myVisualizerDefinitionTreeItemDeleteWidgetCache |
| QVBoxLayout * | myMainLayout |
| QSplitter * | mySplitter |
| QWidget * | myLeftWidgetPane |
| QVBoxLayout * | myLeftWidgetLayout |
| QWidget * | myRightWidgetPane |
| QVBoxLayout * | myRightWidgetLayout |
| QLabel * | myElementDefinitionLabel |
| QTreeWidget * | myTreeWidget |
| QHBoxLayout * | myElementButtonLayout |
| QPushButton * | myAddElementButton |
| QPushButton * | myRemoveElementButton |
| QPushButton * | myRenameElementButton |
| QHBoxLayout * | myVisualizerDefinitionButtonLayout |
| QPushButton * | myAddVisualizerDefButton |
| QPushButton * | myRemoveVisualizerDefButton |
| QPushButton * | myAddVisualizerAttributeButton |
| QPushButton * | myRemoveVisualizerAttributeButton |
| QPushButton * | myRemoveLocalOverrideVisualizerButton |
| QLabel * | myVisualDefinitionLabel |
| QHBoxLayout * | myModelSetLayout |
| QLabel * | myModelSetLabel |
| QComboBox * | myModelSetComboBox |
| QTreeWidget * | myVisualizerDefinitionTreeWidget |
| QTextEdit * | myDescriptionText |
| DtPersistenceControlsInterface * | myPersistenceToolbar |
The main widget for editing element definitions.
| makVrv::DtElementEditorWidget::DtElementEditorWidget | ( | DtElementDefinitionTypeManager::ElementDefinitionType | type, |
| DtStateVisualizer::Type | visType, | ||
| DtDe & | de, | ||
| QWidget * | parent, | ||
| DtPersistenceControlsInterface * | persistenceToolbar | ||
| ) |
CTOR.
| virtual void makVrv::DtElementEditorWidget::activate | ( | ) | [virtual] |
Activates the widget.
| virtual void makVrv::DtElementEditorWidget::deactivate | ( | ) | [virtual] |
Deactivates the widget.
| virtual void makVrv::DtElementEditorWidget::changeElementsStart | ( | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::addElement | ( | const DtUnicode & | name | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::addElement | ( | const DtUnicode & | name, |
| const DtUnicode & | parentName | ||
| ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::removeElement | ( | const DtUnicode & | name | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::changeElementsStop | ( | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::clearElements | ( | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::selectElement | ( | const DtUnicode & | name | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::setModelSets | ( | const std::vector< DtUnicode > & | modelSets | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::setCurrentModelSet | ( | int | index | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::changeDefinitionStart | ( | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::clearDefinitions | ( | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::addDefinition | ( | int | index, |
| const DtUnicode & | name, | ||
| bool | inherited | ||
| ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::removeDefinition | ( | int | index | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::changeDefinitionStop | ( | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::changeAttributeStart | ( | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::addAttribute | ( | int | defIndex, |
| const std::string & | name, | ||
| const DtUnicode & | value, | ||
| bool | inherited | ||
| ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::removeAttribute | ( | int | defIndex, |
| const std::string & | name | ||
| ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::changeAttributeStop | ( | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::selectAttribute | ( | int | defIndex, |
| const std::string & | name | ||
| ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::updateAttribute | ( | int | defIndex, |
| const std::string & | name, | ||
| const DtUnicode & | value | ||
| ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| QTreeWidgetItem* makVrv::DtElementEditorWidget::findAttributeItem | ( | int | defIndex, |
| const std::string & | name | ||
| ) |
Enable/Disable the remove element button.
| virtual void makVrv::DtElementEditorWidget::setAttributeDescription | ( | const DtUnicode & | desc | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::createAttributeEditor | ( | int | defIndex, |
| const std::string & | name, | ||
| const std::string & | attrClass | ||
| ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::destroyAttributeEditor | ( | int | defIndex, |
| const std::string & | name | ||
| ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual std::string makVrv::DtElementEditorWidget::chooseNewVisualizerDefinitionType | ( | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual int makVrv::DtElementEditorWidget::chooseNewAttributeName | ( | const std::vector< std::pair< std::string, DtUnicode > > & | nameTypePairs | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::setRemoveElementEnabled | ( | bool | b | ) | [virtual] |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::setAddVisualDefEnabled | ( | bool | b | ) | [virtual] |
Enable/Disable the add visual defintion button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::setRemoveVisualDefEnabled | ( | bool | b | ) | [virtual] |
Enable/Disable the remove visual definition button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::setAddAttributeEnabled | ( | bool | b | ) | [virtual] |
Enable/Disable the add attribute button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::setRemoveAttributeEnabled | ( | bool | b | ) | [virtual] |
Enable/Disable the remove attribute button.
Implements makVrv::DtElementEditorInterface.
| virtual void makVrv::DtElementEditorWidget::showAddedElements | ( | std::vector< DtUnicode > & | addedNames, |
| std::vector< DtUnicode > & | skippedNames | ||
| ) | [virtual] |
Display a list of added element names.
Implements makVrv::DtElementEditorInterface.
| void makVrv::DtElementEditorWidget::setupGui | ( | ) | [protected] |
| QString makVrv::DtElementEditorWidget::nameOfSelectedElement | ( | ) | const [protected] |
Get the name of the selected element.
If an element is not selected returns empty string.
| int makVrv::DtElementEditorWidget::indexOfSelectedVisualizer | ( | ) | [protected] |
| QString makVrv::DtElementEditorWidget::nameOfSelectedAttribute | ( | ) | const [protected] |
Get the name of the selected attribute.
If an attribute is not selected returns empty string.
| void makVrv::DtElementEditorWidget::slot_currentElementItemChanged | ( | QTreeWidgetItem * | current, |
| QTreeWidgetItem * | previous | ||
| ) | [slot] |
| void makVrv::DtElementEditorWidget::slot_currentVisualizerDefItemChanged | ( | QTreeWidgetItem * | current, |
| QTreeWidgetItem * | previous | ||
| ) | [slot] |
| void makVrv::DtElementEditorWidget::slot_addElementDefinition | ( | ) | [slot] |
| void makVrv::DtElementEditorWidget::slot_removeElementDefinition | ( | ) | [slot] |
| void makVrv::DtElementEditorWidget::slot_renameElementDefinition | ( | ) | [slot] |
| void makVrv::DtElementEditorWidget::slot_addVisualizerDef | ( | ) | [slot] |
| void makVrv::DtElementEditorWidget::slot_removeVisualizerDef | ( | ) | [slot] |
| void makVrv::DtElementEditorWidget::slot_addAttribute | ( | ) | [slot] |
| void makVrv::DtElementEditorWidget::slot_removeAttribute | ( | ) | [slot] |
| void makVrv::DtElementEditorWidget::slot_removeOverrideAttribute | ( | ) | [slot] |
| void makVrv::DtElementEditorWidget::slot_modelSetChanged | ( | int | index | ) | [slot] |
| void makVrv::DtElementEditorWidget::destroyEditors | ( | ) | [slot] |
DtDe& makVrv::DtElementEditorWidget::myDe [protected] |
DtElementDefinitionTypeManager::ElementDefinitionType makVrv::DtElementEditorWidget::myType [protected] |
QMap<QString,QTreeWidgetItem*> makVrv::DtElementEditorWidget::myCacheMap [protected] |
QList<QTreeWidgetItem*> makVrv::DtElementEditorWidget::myDeleteCache [protected] |
QList<QTreeWidgetItem*> makVrv::DtElementEditorWidget::myVisualizerDefinitionTreeItemDeleteWidgetCache [protected] |
QVBoxLayout* makVrv::DtElementEditorWidget::myMainLayout [protected] |
QSplitter* makVrv::DtElementEditorWidget::mySplitter [protected] |
QWidget* makVrv::DtElementEditorWidget::myLeftWidgetPane [protected] |
QVBoxLayout* makVrv::DtElementEditorWidget::myLeftWidgetLayout [protected] |
QWidget* makVrv::DtElementEditorWidget::myRightWidgetPane [protected] |
QVBoxLayout* makVrv::DtElementEditorWidget::myRightWidgetLayout [protected] |
QTreeWidget* makVrv::DtElementEditorWidget::myTreeWidget [protected] |
QHBoxLayout* makVrv::DtElementEditorWidget::myElementButtonLayout [protected] |
QHBoxLayout* makVrv::DtElementEditorWidget::myVisualizerDefinitionButtonLayout [protected] |
QHBoxLayout* makVrv::DtElementEditorWidget::myModelSetLayout [protected] |
QLabel* makVrv::DtElementEditorWidget::myModelSetLabel [protected] |
QTextEdit* makVrv::DtElementEditorWidget::myDescriptionText [protected] |