![]() |
VR-Forces Developer's Guide
|
The main widget for editing element definitions.

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_changeFileName () |
| void | slot_addAttribute () |
| void | slot_removeAttribute () |
| void | slot_removeOverrideAttribute () |
| void | slot_changeFileFilter () |
| void | slot_copyVisualizerDefinition () |
| void | slot_pasteAndReplaceVisualizerDefinition () |
| void | slot_pasteAndAddVisualizerDefinition () |
| void | slot_clearVisualizerDefinitions () |
| void | slot_modelSetChanged (int index) |
| void | slot_fileSaveToChanged (int index) |
| void | destroyEditors () |
| void | slot_displayContextMenu (const QPoint &point) |
| void | slot_jumpToModelDefinition () |
Public Member Functions | |
| DtElementEditorWidget (DtElementDefinitionTypeManager::ElementDefinitionType type, DtStateVisualizer::Type visType, DtDe &de, QWidget *parent, DtPersistenceControlsInterface *persistenceToolbar) | |
| virtual | ~DtElementEditorWidget () |
| virtual void | activate () |
| virtual void | deactivate () |
| virtual void | checkIfModified () |
| virtual void | changeElementsStart () |
| virtual void | setDuplicate (const DtUnicode &name, bool isDuplicate) |
| virtual void | addElement (const DtUnicode &name, bool valid, bool bold=false) |
| virtual void | addElement (const DtUnicode &name, const DtUnicode &parentName, bool valid, bool bold=false) |
| virtual void | setBold (const DtUnicode &name, bool bold) |
| virtual void | removeElement (const DtUnicode &name) |
| virtual void | changeElementsStop () |
| virtual void | clearElements () |
| virtual void | modifiedList (std::string &list) |
| virtual void | selectElement (const DtUnicode &name) |
| virtual void | setModelSets (const std::vector< DtUnicode > &modelSets) |
| virtual void | setFileSaveTo (const std::vector< std::string > &FileSaveTo) |
| virtual void | setCurrentModelSet (int index) |
| virtual void | setCurrentFileSaveTo (int index) |
| virtual std::string | getCurrentFileSaveTo () |
| virtual void | setVisDefList (std::vector< std::string > &visDefList) |
| virtual void | changeDefinitionStart () |
| virtual void | clearDefinitions () |
| virtual void | addDefinition (int index, const std::string &uuidString, const DtUnicode &schemaName, const DtUnicode &visualName, bool inherited) |
| virtual void | updateDefinition (int index, const DtUnicode &schemaName, const DtUnicode &visualName, 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) |
| virtual std::string | chooseNewVisualizerDefinitionType () |
| virtual std::string | chooseNewAttributeName (const DtVisualizerSchema::SchemaParameters &unusedSchemaParameters) |
| virtual void | setRemoveElementEnabled (bool b) |
| virtual void | setRemoveElementToolTip (const std::string &s) |
| virtual void | setAddVisualDefEnabled (bool b) |
| virtual void | setRemoveVisualDefEnabled (bool b) |
| virtual void | setChangeFileNameEnabled (bool b) |
| virtual void | setAddAttributeEnabled (bool b) |
| virtual void | setRemoveAttributeEnabled (bool b) |
| virtual void | showAddedElements (std::vector< DtUnicode > &addedNames, std::vector< DtUnicode > &skippedNames) |
| virtual const std::string & | selectedInstanceName () |
| virtual const DtUnicode | getElementNameAbove (const DtUnicode &name) |
| virtual const DtUnicode | getElementNameBelow (const DtUnicode &name) |
| virtual bool | isLastElementUnder (const DtUnicode &name, const DtUnicode &parentName) |
| virtual bool | isFirstElementUnder (const DtUnicode &name, const DtUnicode &parentName) |
| virtual void | expandItem (const DtUnicode &name) |
| virtual void | invalidateColorQtProperties () |
| virtual void | queryLeafFilePath (DtDe &de, const std::string &importType, const std::string &path, const std::string &fileFilter) |
Public Member Functions inherited from makVrv::DtElementEditorInterface | |
| DtElementEditorInterface () | |
| virtual | ~DtElementEditorInterface () |
Protected Member Functions | |
| void | setupGui () |
| QString | nameOfSelectedElement () const |
| int | indexOfSelectedVisualizer () |
| std::string | uuidStringOfSelectedVisualizer () |
| QString | nameOfSelectedAttribute () const |
| virtual bool | isEmpty () |
| virtual void | slot_jumpToDefinition (const DtUnicode &element) |
| virtual void | slot_jumpToDefByModelDef (const DtUnicode &modelDef) |
| virtual std::string | uuidStringFromVisDefTreeItem (QTreeWidgetItem *item) |
Properties | |
| QColor | NormalDefinitionColor |
| QColor | InheritedDefinitionColor |
| QColor | DuplicateDefinitionColor |
| QColor | InvalidDefinitionColor |
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(const std::string &uuidString)> | signal_visualizerDefSelected |
| boost::signalslib::signal< void()> | signal_visualizerDefDeselected |
| boost::signalslib::signal < void(int index, const std::string &uuidString, const std::string &attrName)> | signal_attributeSelected |
| boost::signalslib::signal < void(int index, const std::string &attrName)> | signal_attributeDeselected |
| boost::signalslib::signal< void()> | signal_noVisualizerOrAttributeSelected |
| boost::signalslib::signal< void()> | signal_addVisualizer |
| boost::signalslib::signal < void(const std::string &uuidString)> | 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, const std::string &uuidString)> | signal_addAttribute |
| boost::signalslib::signal < void(const std::string &uuidString, const std::string &attrName)> | signal_removeAttribute |
| boost::signalslib::signal < void(const std::string &uuidString, const std::string &attrName)> | signal_removeLocalAttribute |
| boost::signalslib::signal < void(int index, const std::string &uuidString, const std::string &, DtVisualizerAttributeEditorInterface *iface)> | signal_attributeEditorCreated |
| boost::signalslib::signal < void(const std::string &leafFilePath)> | signal_leafFilenameChosen |
| 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 |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
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 |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Fill the file location dropdown bar with all file name in directory.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
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 |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
| QTreeWidgetItem* makVrv::DtElementEditorWidget::findAttributeItem | ( | int | defIndex, |
| const std::string & | name | ||
| ) |
Sets passed in text as either bold or not bold.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
Reimplemented in makVrf::DtSpotReportElementEditorWidget.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets the hints to describe why the definition is not valid.
| hints | The hints indicate errors. |
Implements makVrv::DtElementEditorInterface.
|
virtual |
Sets passed in text as either bold or not bold.
Implements makVrv::DtElementEditorInterface.
Reimplemented in makVrf::DtSpotReportElementEditorWidget.
|
virtual |
Sets passed in text as either bold or not bold.
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; returns "" if none selected
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 |
invalidate the current color Qt properties for this widget
Implements makVrv::DtElementEditorInterface.
|
virtual |
Get a path for a new leaf file.
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 |
|
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.
|
protectedvirtual |
|
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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| QColor makVrv::DtElementEditorWidget::NormalDefinitionColor |
| QColor makVrv::DtElementEditorWidget::InheritedDefinitionColor |
| QColor makVrv::DtElementEditorWidget::DuplicateDefinitionColor |
| QColor makVrv::DtElementEditorWidget::InvalidDefinitionColor |