![]() |
VR-Forces 4.6 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. | |
| virtual | ~DtElementEditorWidget () |
| DTOR. | |
| virtual void | activate () |
| Activates the widget. | |
| virtual void | deactivate () |
| Deactivates the widget. | |
| virtual void | changeElementsStart () |
| virtual void | addElement (const DtUnicode &name, bool valid, bool bold=false) |
| Add an element to the editor, marking it valid or invalid. | |
| virtual void | addElement (const DtUnicode &name, const DtUnicode &parentName, bool valid, bool bold=false) |
| Add a parented element to the editor, marking it valid or invalid. | |
| virtual void | removeElement (const DtUnicode &name) |
| virtual void | changeElementsStop () |
| virtual void | clearElements () |
| virtual void | selectElement (const DtUnicode &name) |
| virtual void | setModelSets (const std::vector< DtUnicode > &modelSets) |
| virtual void | setCurrentModelSet (int index) |
| virtual void | changeDefinitionStart () |
| virtual void | clearDefinitions () |
| virtual void | addDefinition (int index, const DtUnicode &name, bool inherited) |
| virtual void | removeDefinition (int index) |
| virtual void | changeDefinitionStop () |
| virtual void | changeAttributeStart () |
| virtual void | addAttribute (int defIndex, const std::string &name, const DtUnicode &value, bool inherited) |
| virtual void | removeAttribute (int defIndex, const std::string &name) |
| virtual void | changeAttributeStop () |
| virtual void | selectAttribute (int defIndex, const std::string &name) |
| virtual void | updateAttribute (int defIndex, const std::string &name, const DtUnicode &value) |
| QTreeWidgetItem * | findAttributeItem (int defIndex, const std::string &name) |
| virtual void | setAttributeDescription (const DtUnicode &desc) |
| virtual void | createAttributeEditor (int defIndex, const std::string &name, const std::string &attrClass) |
| virtual void | destroyAttributeEditor (int defIndex, const std::string &name) |
| bool | wasAttributeEditorValueModified (int defIndex, const std::string &name) |
| virtual std::string | chooseNewVisualizerDefinitionType () |
| Causes the user interface to select a the visualizer definition type a new type of visualizer. | |
| virtual int | chooseNewAttributeName (const std::vector< std::pair< std::string, DtUnicode > > &nameTypePairs) |
| 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. | |
| virtual std::vector< std::string > | selectedInstancesNames () |
| get the current selected instances names | |
| virtual const DtUnicode | getElementNameAbove (const DtUnicode &name) |
| get the name of the element above the selected element in the UI tree list | |
| virtual const DtUnicode | getElementNameBelow (const DtUnicode &name) |
| get the name of the element above the selected element in the UI tree list | |
| virtual bool | isLastElementUnder (const DtUnicode &name, const DtUnicode &parentName) |
| is this element the last element under a parent item | |
| virtual bool | isFirstElementUnder (const DtUnicode &name, const DtUnicode &parentName) |
| is this element the last element under a parent item | |
| virtual void | expandItem (const DtUnicode &name) |
| expand this item and reveal it's children | |
| virtual void | checkIfModified () |
| check if the entity definitions have changed since the start up | |
Public Member Functions inherited from makVrv::DtElementEditorInterface | |
| DtElementEditorInterface () | |
| CTOR. | |
| virtual | ~DtElementEditorInterface () |
| DTOR. | |
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. | |
| virtual bool | isEmpty () |
| return whether nothing has beed loaded in the element editor | |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtElementEditorInterface | |
| boost::signal< void(const DtUnicode &)> | signal_addElement |
| boost::signal< void()> | signal_removeElement |
| boost::signal< void(const DtUnicode &, const DtUnicode &)> | signal_renameElement |
| boost::signal< void(const DtUnicode &)> | signal_elementSelected |
| boost::signal< void(const DtUnicode &)> | signal_elementDeselected |
| boost::signal< void()> | signal_noElementSelected |
| boost::signal< void(int index)> | signal_modelSetChanged |
| boost::signal< void(int index)> | signal_visualizerDefSelected |
| boost::signal< void(int index)> | signal_visualizerDefDeselected |
| boost::signal< void(int index, const std::string &)> | signal_attributeSelected |
| boost::signal< void(int index, const std::string &)> | signal_attributeDeselected |
| boost::signal< void()> | signal_noVisualizerOrAttributeSelected |
| boost::signal< void()> | signal_addVisualizer |
| boost::signal< void(int index)> | signal_removeVisualizer |
| boost::signal< void(int index)> | signal_addAttribute |
| boost::signal< void(int index, const std::string &)> | signal_removeAttribute |
| boost::signal< void(int index, const std::string &)> | signal_removeLocalAttribute |
| boost::signal< void(int index, const std::string &, DtVisualizerAttributeEditorInterface *iface)> | signal_attributeEditorCreated |
The main widget for editing element definitions.
| makVrv::DtElementEditorWidget::DtElementEditorWidget | ( | DtElementDefinitionTypeManager::ElementDefinitionType | type, |
| DtStateVisualizer::Type | visType, | ||
| DtDe & | de, | ||
| QWidget * | parent, | ||
| DtPersistenceControlsInterface * | persistenceToolbar | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Activates the widget.
|
virtual |
Deactivates the widget.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Add an element to the editor, marking it valid or invalid.
It should be marked invalid if it contains any invalid visualizer definitions
Implements makVrv::DtElementEditorInterface.
|
virtual |
Add a parented element to the editor, marking it valid or invalid.
It should be marked invalid if it contains any invalid visualizer definitions
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
| QTreeWidgetItem* makVrv::DtElementEditorWidget::findAttributeItem | ( | int | defIndex, |
| const std::string & | name | ||
| ) |
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
Reimplemented in makVrf::DtSpotReportElementEditorWidget.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Causes the user interface to select a the visualizer definition type a new type of visualizer.
The function will return the index of the types selected or -1.
Implements makVrv::DtElementEditorInterface.
Reimplemented in makVrf::DtSpotReportElementEditorWidget.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Enable/Disable the remove element button.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Enable/Disable the add visual defintion button.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Enable/Disable the remove visual definition button.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Enable/Disable the add attribute button.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Enable/Disable the remove attribute button.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Display a list of added element names.
Implements makVrv::DtElementEditorInterface.
|
virtual |
get the current selected instances names
Implements makVrv::DtElementEditorInterface.
|
virtual |
get the name of the element above the selected element in the UI tree list
Implements makVrv::DtElementEditorInterface.
|
virtual |
get the name of the element above the selected element in the UI tree list
Implements makVrv::DtElementEditorInterface.
|
virtual |
is this element the last element under a parent item
Implements makVrv::DtElementEditorInterface.
|
virtual |
is this element the last element under a parent item
Implements makVrv::DtElementEditorInterface.
|
virtual |
expand this item and reveal it's children
Implements makVrv::DtElementEditorInterface.
|
virtual |
check if the entity definitions have changed since the start up
|
protected |
|
protected |
Get the name of the selected element.
If an element is not selected returns empty string.
|
protected |
|
protected |
Get the name of the selected attribute.
If an attribute is not selected returns empty string.
|
protectedvirtual |
return whether nothing has beed loaded in the element editor
Implements makVrv::DtElementEditorInterface.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |