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

Public Member Functions | |
| DtElementEditorWidget (DtElementDefinitionTypeManager::ElementDefinitionType type, DtStateVisualizer::Type visType, DtDe &de, QWidget *parent, DtPersistenceControlsInterface *persistenceToolbar) | |
| CTOR. More... | |
| virtual | ~DtElementEditorWidget () |
| DTOR. More... | |
| virtual void | activate () |
| Activates the widget. More... | |
| virtual void | deactivate () |
| Deactivates the widget. More... | |
| virtual void | changeElementsStart () |
| virtual void | setDuplicate (const DtUnicode &name, bool isDuplicate) |
| virtual void | addElement (const DtUnicode &name, bool valid, bool bold=false) |
| Add an element to the editor, marking it valid or invalid. More... | |
| 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. More... | |
| virtual void | setBold (const DtUnicode &name, bool bold) |
| Sets passed in text as either bold or not bold. More... | |
| virtual void | removeElement (const DtUnicode &name) |
| virtual void | changeElementsStop () |
| virtual void | clearElements () |
| virtual void | modifiedList (std::string &list) |
| Open window before export that displays a list of all entities that have been modified as well as their file locations. More... | |
| virtual void | selectElement (const DtUnicode &name) |
| virtual void | setModelSets (const std::vector< DtUnicode > &modelSets) |
| virtual void | setFileSaveTo (const std::vector< std::string > &FileSaveTo) |
| Fill the file location dropdown bar with all file name in directory. More... | |
| virtual void | setCurrentModelSet (int index) |
| virtual void | setCurrentFileSaveTo (int index) |
| Refresh file location dropdown bar to display the location of the currently selected definition. More... | |
| virtual std::string | getCurrentFileSaveTo () |
| returns the file location currently displayed in the file location dropdown box More... | |
| virtual void | setVisDefList (std::vector< std::string > &visDefList) |
| Updates list of currently copied Visual Definitions for the widget. More... | |
| 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, bool valid=true) |
| 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 void | setDefinitionErrorHint (const DtUnicode &hints) |
| Sets the hints to describe why the definition is not valid. More... | |
| virtual std::string | chooseNewVisualizerDefinitionType () |
| Causes the user interface to select a the visualizer definition type a new type of visualizer. More... | |
| virtual int | chooseNewAttributeName (const std::vector< std::pair< std::string, DtUnicode > > &nameTypePairs) |
| virtual void | setRemoveElementEnabled (bool b) |
| Enable/Disable the remove element button. More... | |
| virtual void | setRemoveElementToolTip (const std::string &s) |
| Set the tool tip string for the remove element button This is used to indicate why an entity element definition can't be removed (in use by entity type map for example) More... | |
| virtual void | setAddVisualDefEnabled (bool b) |
| Enable/Disable the add visual definition button. More... | |
| virtual void | setRemoveVisualDefEnabled (bool b) |
| Enable/Disable the remove visual definition button. More... | |
| virtual void | setChangeFileNameEnabled (bool b) |
| Enable/Disable the file name change button. More... | |
| virtual void | setAddAttributeEnabled (bool b) |
| Enable/Disable the add attribute button. More... | |
| virtual void | setRemoveAttributeEnabled (bool b) |
| Enable/Disable the remove attribute button. More... | |
| virtual void | showAddedElements (std::vector< DtUnicode > &addedNames, std::vector< DtUnicode > &skippedNames) |
| Display a list of added element names. More... | |
| virtual std::vector< std::string > | selectedInstancesNames () |
| get the current selected instances names More... | |
| virtual const DtUnicode | getElementNameAbove (const DtUnicode &name) |
| get the name of the element above the selected element in the UI tree list More... | |
| virtual const DtUnicode | getElementNameBelow (const DtUnicode &name) |
| get the name of the element above the selected element in the UI tree list More... | |
| virtual bool | isLastElementUnder (const DtUnicode &name, const DtUnicode &parentName) |
| is this element the last element under a parent item More... | |
| virtual bool | isFirstElementUnder (const DtUnicode &name, const DtUnicode &parentName) |
| is this element the last element under a parent item More... | |
| virtual void | expandItem (const DtUnicode &name) |
| expand this item and reveal it's children More... | |
| virtual void | checkIfModified () |
| check if the entity definitions have changed since the start up More... | |
Public Member Functions inherited from makVrv::DtElementEditorInterface | |
| DtElementEditorInterface () | |
| CTOR. More... | |
| virtual | ~DtElementEditorInterface () |
| DTOR. More... | |
Protected Member Functions | |
| void | setupGui () |
| QString | nameOfSelectedElement () const |
| Get the name of the selected element. More... | |
| int | indexOfSelectedVisualizer () |
| QString | nameOfSelectedAttribute () const |
| Get the name of the selected attribute. More... | |
| virtual bool | isEmpty () |
| return whether nothing has beed loaded in the element editor More... | |
| virtual void | slot_jumpToDefinition (const DtUnicode &element) |
| boost slot for connecting to the DtDialogJumpToSignal for jumping to a definition will have the UI select the specified definition in the list of definitions More... | |
| virtual void | slot_jumpToDefByModelDef (const DtUnicode &modelDef) |
| boost slot for connecting to the DtDialogJumpToSignal for jumping to a definition using a model definition will have the UI select the first definition in the list of definitions which uses that model definition. More... | |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtElementEditorInterface | |
| boost::signalslib::signal < void(const DtUnicode &)> | signal_addElement |
| boost::signalslib::signal< void()> | signal_removeElement |
| boost::signalslib::signal < void(const DtUnicode &, const DtUnicode &)> | signal_renameElement |
| boost::signalslib::signal < void(const DtUnicode &, bool valid)> | signal_elementSelected |
| boost::signalslib::signal < void(const DtUnicode &)> | signal_elementDeselected |
| boost::signalslib::signal< void()> | signal_noElementSelected |
| boost::signalslib::signal < void(int index)> | signal_modelSetChanged |
| boost::signalslib::signal < void(int index)> | signal_fileSaveToChanged |
| boost::signalslib::signal < void(int index)> | signal_visualizerDefSelected |
| boost::signalslib::signal < void(int index)> | signal_visualizerDefDeselected |
| boost::signalslib::signal < void(int index, const std::string &)> | signal_attributeSelected |
| boost::signalslib::signal < void(int index, const std::string &)> | signal_attributeDeselected |
| boost::signalslib::signal< void()> | signal_noVisualizerOrAttributeSelected |
| boost::signalslib::signal< void()> | signal_addVisualizer |
| boost::signalslib::signal < void(int index)> | signal_removeVisualizer |
| boost::signalslib::signal< void()> | signal_changeFileName |
| boost::signalslib::signal< void()> | signal_changeFileFilter |
| boost::signalslib::signal< void()> | signal_copyVisualizerDefinition |
| boost::signalslib::signal< void()> | signal_pasteAndReplaceVisualizerDefinition |
| boost::signalslib::signal< void()> | signal_pasteAndAddVisualizerDefinition |
| boost::signalslib::signal< void()> | signal_clearVisualizerDefinitions |
| boost::signalslib::signal < void(int index)> | signal_addAttribute |
| boost::signalslib::signal < void(int index, const std::string &)> | signal_removeAttribute |
| boost::signalslib::signal < void(int index, const std::string &)> | signal_removeLocalAttribute |
| boost::signalslib::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 |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Add an element to the editor, marking it valid or invalid.
Should be marked invalid if it has any invalid visualizer definitions
Implements makVrv::DtElementEditorInterface.
|
virtual |
Add a parented element to the editor, marking it valid or invalid.
Should be marked invalid if it has any invalid visualizer definitions
Implements makVrv::DtElementEditorInterface.
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Open window before export that displays a list of all entities that have been modified as well as their file locations.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Fill the file location dropdown bar with all file name in directory.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Refresh file location dropdown bar to display the location of the currently selected definition.
Implements makVrv::DtElementEditorInterface.
|
virtual |
returns the file location currently displayed in the file location dropdown box
Implements makVrv::DtElementEditorInterface.
|
virtual |
Updates list of currently copied Visual Definitions for the widget.
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 |
Sets the hints to describe why the definition is not valid.
| hints | The hints indicate errors. |
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 |
Set the tool tip string for the remove element button This is used to indicate why an entity element definition can't be removed (in use by entity type map for example)
Implements makVrv::DtElementEditorInterface.
|
virtual |
Enable/Disable the add visual definition button.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Enable/Disable the remove visual definition button.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Enable/Disable the file name change 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.
|
protectedvirtual |
boost slot for connecting to the DtDialogJumpToSignal for jumping to a definition will have the UI select the specified definition in the list of definitions
|
protectedvirtual |
boost slot for connecting to the DtDialogJumpToSignal for jumping to a definition using a model definition will have the UI select the first definition in the list of definitions which uses that model definition.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
QT slot for handling the signal for creating a context menu.
|
slot |
QT slot for handling the button that is in the context menu will request a jump to the model definition.
|
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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |