![]() |
VR-Forces Developer's Guide
|
Logic class for the DtElementEditorWidget.

Public Member Functions | |
| DtElementEditorLogic (DtElementDefinitionTypeManager::ElementDefinitionType type, DtDe &de, DtElementEditorInterface *iface, DtPersistenceControlsInterface *persistenceControls, DtPage *page=0) | |
| virtual | ~DtElementEditorLogic () |
| DtElementEditorLogic ()=delete | |
| DtElementEditorLogic (const DtElementEditorLogic ©)=delete | |
| DtElementEditorLogic & | operator= (const DtElementEditorLogic &)=delete |
| virtual void | selectElement (const DtUnicode &elementName, bool valid) |
| virtual void | setElementRemoveAllowed (const DtUnicode &elementName) |
| virtual void | checkIfModified () |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Protected Member Functions | |
| virtual void | selectVisualizerDefinition (const std::string &uuidString) |
| virtual void | selectAttribute (int index, const std::string &uuidString, const std::string &attrName) |
| virtual void | deselectAttribute (int index, const std::string &attrName) |
| virtual void | refreshElementDefinitions () |
| virtual void | refreshVisualizerDefinitionView () |
| virtual void | clearElementSelection () |
| virtual void | setupModifiedEntitiesDialog () |
| virtual void | runThroughChildren (DtElementDefinition *elem, std::map< std::string, std::string > &names) |
| virtual void | addVisualizerDefinition () |
| virtual void | removeVisualizerDefinition (const std::string &uuidString) |
| virtual void | deselectVisualizerDefinition () |
| virtual void | addElement (const DtUnicode &name) |
| virtual void | removeElement () |
| virtual void | renameElement (const DtUnicode &oldName, const DtUnicode &newName) |
| virtual void | addAttributeRequested (int index, const std::string &uuidString) |
| virtual void | removeAttribute (const std::string &uuidString, const std::string &name) |
| virtual void | removeLocalAttribute (const std::string &uuidString, const std::string &name) |
| virtual void | changeAttribute (const DtUnicode &origin, int index, const std::string &uuidString, const std::string &name) |
| virtual void | cancelAttributeChange (int defIndex, const std::string &name) |
| virtual bool | visualizerDefinitionInherited (DtElementDefinition *, DtVisualizerDefinition *) const |
| virtual void | refreshModelSets () |
| virtual void | refreshFileSaveTo () |
| void | changeFileLocation () |
| virtual void | reloadFile (const std::string &filePath) |
| virtual void | updateAttributeEditorInterface (int index, const std::string &uuidString, const std::string &name, DtVisualizerAttributeEditorInterface *iface) |
| virtual void | changeModelSet (int index) |
| virtual void | changeFileSaveTo (int index) |
| virtual void | changeFileFilter () |
| virtual void | on_import () |
| virtual void | on_restoreFactory () |
| virtual void | on_restoreStartup () |
| virtual void | on_saveAll () |
| virtual void | on_saveAllHier () |
| virtual void | on_saveAllLeaves () |
| virtual void | on_exportSelectedNode () |
| virtual void | on_reloadFiles () |
| virtual void | on_merge () |
| virtual void | on_exportSelected () |
| virtual void | on_importFilePathChosen (const std::string &filePath) |
| virtual void | on_exportFilePathChosen (const std::string &filePath) |
| virtual void | on_leafFilePathChosen (const std::string &filePath) |
| virtual void | on_mergeFilePathChosen (const std::string &filePath) |
| virtual void | on_exportSelectedFilePathChosen (const std::string &filePath) |
| virtual void | on_exportSelectedNodeFilePathChosen (const std::string &filePath) |
| virtual void | on_saveDefaults () |
| virtual void | on_copyVisualizerDefinition () |
| virtual void | on_pasteAndReplaceVisualizerDefinition () |
| virtual void | on_pasteAndAddVisualizerDefinition () |
| virtual void | on_clearVisualizerDefinitions () |
| virtual bool | shouldDisableSave () |
| virtual void | mapTypeToDirectoryPath (DtElementDefinitionTypeManager::ElementDefinitionType type) |
| virtual void | slot_managerAboutToBeDeleted () |
| virtual void | slot_currentStyleSheetsPathAboutToBeChanged () |
| virtual void | slot_postCurrentStyleSheetsPathChanged () |
| virtual DtElementDefinitionManager & | elementDefinitionManager () |
Protected Attributes | |
| DtUnicode | mySelectedElement |
| DtModelSetId | mySelectedModelSet |
| unsigned int | mySelectedFileSaveTo |
| DtPage * | myPage |
| DtDe & | myDe |
| DtSignalConnectionManager | myConnections |
| DtSignalConnectionManager | myManagerConnections |
| DtElementDefinitionManager * | myManager |
| int | myManagerType |
| DtElementEditorInterface * | myInterface |
| DtPersistenceControlsInterface * | myPersistenceControls |
| std::string | myDirectoryPath |
| std::string | myPathofSelectedModel |
| std::vector< std::string > | myNewList |
| std::vector< std::string > | myVisualList |
| DtVisualizerDefinition * | myCopiedVisualizerDefinition |
| std::vector < DtVisualizerDefinition * > | myCopiedVisDefs |
| std::vector< std::string > | myListOfCopiedVisDefs |
| bool | myAdjustDropDown |
| std::string | mySelectedVisualizerUuid |
| DtVisualizerAttribute * | myEditAttribute |
| makVrv::DtElementEditorLogic::DtElementEditorLogic | ( | DtElementDefinitionTypeManager::ElementDefinitionType | type, |
| DtDe & | de, | ||
| DtElementEditorInterface * | iface, | ||
| DtPersistenceControlsInterface * | persistenceControls, | ||
| DtPage * | page = 0 |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Default Constructor.
|
delete |
Copy Constructor Not implemented.
|
delete |
Assignment Operator Not implemented.
|
virtual |
Populate the visualizer definitions for a element definition.
| elementName | The definition of the selected element. |
| valid | Whether the element is valid. |
|
virtual |
Check if this element entity definition is being used by other systems (i.e. entity type maps)
|
virtual |
check if the element definitions have changed since the start up
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Populate the element definitions.
|
protectedvirtual |
|
protectedvirtual |
Called to clear the element.
|
protectedvirtual |
Create map of modified entities, and open a Message Box displaying the list of modified entities.
|
protectedvirtual |
Runs recursively through incoming elem defs and checks if they have children If so, run again through each child. If not, add child to modified names map.
|
protectedvirtual |
Slot called by elementEditorWidget to add a visualizer definition.
Reimplemented in DtVrfElementEditorLogic.
|
protectedvirtual |
Slot called by elementEditorWidget to remove a visualizer definition.
Reimplemented in DtVrfElementEditorLogic.
|
protectedvirtual |
|
protectedvirtual |
Slot called by elementEditorWidget to add an element.
Reimplemented in DtVrfElementEditorLogic.
|
protectedvirtual |
Slot called by elementEditorWidget to remove an element.
Reimplemented in DtVrfElementEditorLogic.
|
protectedvirtual |
Reimplemented in DtVrfElementEditorLogic.
|
protectedvirtual |
Slot called by elementEditorWidget to add an attribute.
Reimplemented in DtVrfElementEditorLogic.
|
protectedvirtual |
Slot called by elementEditorWidget to remove an attribute from the specified visualizer definition (via the uuidString) and all ancestors.
Reimplemented in DtVrfElementEditorLogic.
|
protectedvirtual |
Slot called by elementEditorWidget to remove an attribute from the specified visualizer definition (via the uuidString)
Reimplemented in DtVrfElementEditorLogic.
|
protectedvirtual |
Slot called by elementEditorWidget to change an attribute value.
Reimplemented in DtVrfElementEditorLogic.
|
protectedvirtual |
Slot called by elementEditorWidget when a user cancels out of the attribute editor.
|
protectedvirtual |
|
protectedvirtual |
Update the widget definitions list when the user changes the model set in view.
|
protectedvirtual |
Fill the file location dropdown bar with all file name in directory.
|
protected |
Changes the file location of the currently selected element to the file location currently displayed on the dropdown box.
|
protectedvirtual |
Reloads file from specified path.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Update file location dropdown box when new definition is selected.
|
protectedvirtual |
Filters out all definitions whose file names don't match the file name in the dropdown box.
|
protectedvirtual |
imports settings
|
protectedvirtual |
restores factory settings
|
protectedvirtual |
restores startup settings
|
protectedvirtual |
Starts save of element definition hierarchy and leaf files to their current filenames Equivalent to calling on_saveAllHier and on_saveAllLeaves.
|
protectedvirtual |
Starts save of element definition hierarchy files to their current filenames.
|
protectedvirtual |
Starts save of element definition leaf files to their current filenames.
|
protectedvirtual |
Starts export selected element definition leaf or hier node by allowing user to select export file.
|
protectedvirtual |
Adjusts what and how many files will be reloaded.
|
protectedvirtual |
Starts merge procedure by allowing user to select merge file.
|
protectedvirtual |
Starts export preselected items procedure by allowing user to select export file.
|
protectedvirtual |
Replaces hierarchy with contents of file.
|
protectedvirtual |
Saves hierarchy to file.
|
protectedvirtual |
Sets a new leaf element definition's filename. Called by signal from a queryPath dialog.
|
protectedvirtual |
Merges hierarchy from file.
|
protectedvirtual |
Exports a node to a .elem file.
|
protectedvirtual |
Saves Selected leaf element (but not hierarchy) to file.
|
protectedvirtual |
Save the hierarchy and leaves to default location (usually appData/definitions/Entity/)
|
protectedvirtual |
Copies the currently selected visualizer def.
|
protectedvirtual |
Pastes the currently saved visualizer def to the currently selected element, replacing a matching vis def if one exists.
|
protectedvirtual |
Pastes the currently saved visualizer def to the currently selected element, localizing its attributes.
|
protectedvirtual |
Clears vector of all Visualizer Definitions currently stored.
|
protectedvirtual |
Should we disable the save button.
|
protectedvirtual |
map the ElementDefinitionType type to the correct folder path
|
protectedvirtual |
Called when the element definition manager this class represents is deleted. This will set the backup in the persistent controls to NULL as the backup is deleted when the manager is deleted.
|
protectedvirtual |
Invoked when the application stylesheets are about to change. This function is used to invalidate text colors of the widget being managed by this logic class.
|
protectedvirtual |
Invoked when the application stylesheets have been changed. This function is used refresh everything so that new text colors are used.
|
protectedvirtual |
Returns the element definition manager for the given manager type of this dialog.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |