![]() |
VR-Forces 5.0.2 Developer's Guide
|
The logic for editing model definitions.

Public Member Functions | |
| DtModelDefinitionEditorLogic (DtDe &de, DtInstanceEditorInterface *instanceInterface, DtModelDefinitionEditorInterface *modelDefInterface, DtMapEditorInterface *mapInterface, DtPersistenceControlsInterface *toolbar, DtPage *page=0) | |
| virtual | ~DtModelDefinitionEditorLogic () |
| virtual void | checkIfModified () |
| void | setFileName (const std::string ¤tLocation) |
| void | setupFileLocationBar () |
| void | changeFileLocation () |
Protected Member Functions | |
| virtual void | createModelDefinition (const std::string &definitionName, const std::string &schema) |
| virtual void | copyModelDefinition (const std::string &definitionName, const std::string &newName) |
| virtual void | deleteModelDefinition (const std::vector< std::string > &definitionNames) |
| virtual void | setSelectedDefinition (const std::string &definitionName, const std::string &schema) |
| virtual void | setDefinitionFilter (const std::string &schema) |
| virtual void | renameInstance (const std::string &oldName, const std::string &definitionName, int) |
| virtual void | setDefinitionSchema (const std::string &schema) |
| virtual void | renameParameter (const std::string &oldName, const std::string &newName) |
| virtual void | modifyValue (const std::string &key, const std::string &value) |
| virtual void | deleteValue (const std::string &key) |
| std::string | generateDefinitionName (const std::string &rootName) const |
| void | setupInstances () |
| void | setupFileFilter (const std::string &fileName) |
| void | changeFileFilter () |
| virtual void | slot_currentStyleSheetsPathAboutToBeChanged () |
| virtual void | slot_postCurrentStyleSheetsPathChanged () |
| bool | isDefinitionValid (const DtModelDefinition &definition) |
| void | setupFilters () |
| void | setupSchema () |
| void | setupModelDefinition () |
| void | setupMap () |
| virtual void | onExportSelected () |
| virtual void | onExportAllFiles () |
| virtual void | onExportSelectedChosen (const std::string &) |
| virtual void | onImport () |
| virtual void | onImportFilenameChosen (const std::string &) |
| virtual void | onMerge () |
| virtual void | onMergeFilenameChosen (const std::string &) |
| virtual void | onSaveDefaults () |
| virtual void | modelDefinitionsRestored (const DtSettingsBackup *s) |
| virtual void | schemaChanged (DtSettingsChangeObject *) |
| virtual DtModelDefinitionManager & | definitionManager () |
| virtual const DtModelDefinitionManager & | definitionManager () const |
| virtual void | addModelDefinition (const DtModelDefinition &newDef) |
| virtual void | renameModelDefinition (const DtModelDefinition &old, const DtModelDefinition &newDef) |
Protected Attributes | |
| DtDe & | myDe |
| DtSignalConnectionManager | myConnections |
| DtInstanceEditorInterface * | myInstanceInterface |
| DtModelDefinitionEditorInterface * | myModelDefinitionInterface |
| DtMapEditorInterface * | myMapInterface |
| DtPersistenceControlsInterface * | myToolbarInterface |
| DtPage * | myPage |
| std::string | mySelectedDefinition |
| std::string | myFilter |
| std::string | mySchema |
| std::string | myDirectoryPath |
| makVrv::DtModelDefinitionEditorLogic::DtModelDefinitionEditorLogic | ( | DtDe & | de, |
| DtInstanceEditorInterface * | instanceInterface, | ||
| DtModelDefinitionEditorInterface * | modelDefInterface, | ||
| DtMapEditorInterface * | mapInterface, | ||
| DtPersistenceControlsInterface * | toolbar, | ||
| DtPage * | page = 0 |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
check if the model definitions have changed since the start up
| void makVrv::DtModelDefinitionEditorLogic::setFileName | ( | const std::string & | currentLocation | ) |
Sets the file path displayed in the dropdown to match the path of the currently selected model.
| void makVrv::DtModelDefinitionEditorLogic::setupFileLocationBar | ( | ) |
Fill dropdown with list of files.
| void makVrv::DtModelDefinitionEditorLogic::changeFileLocation | ( | ) |
Change displayed file location to the model def currently slected.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
Filters out all definitions whose file names don't match the file name in the dropdown box.
|
protected |
Filter out model defs based on filter.
|
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.
|
protected |
Get whether a definition is valid or not.
|
protected |
Sets up list of file paths to filer model definitions by.
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Called when a user wants to export selected items of the current model definitions to a file.
|
protectedvirtual |
Called when user wants to export all the model definitions to a file.
|
protectedvirtual |
Called when the export filename has been chosen. Will export selected items to the given file.
|
protectedvirtual |
Called when a user wants to import (replace) selected schema with contents of selected file.
|
protectedvirtual |
Called when the import filename has been chose. Will import contents of file to selected schema.
|
protectedvirtual |
Called when a user wants to merge selected file into currently selected schema. Merge will replace or add, not delete items.
|
protectedvirtual |
Called when the merge filename has been chose. Will merge contents of file to selected schema.
|
protectedvirtual |
Called when a user wants to save the current model definitions to the default location (usually appData/definitions) Note: no need for onDefaultSaveFilenameChosen since we know the name already.
|
protectedvirtual |
Called when restored, restore gui.
|
protectedvirtual |
Called when something about the schema has changed. Resets filters.
|
protectedvirtual |
Returns model definition dictionary being used.
Reimplemented in makVrv::DtModelDefinitionInstanceEditorLogic.
|
protectedvirtual |
Reimplemented in makVrv::DtModelDefinitionInstanceEditorLogic.
|
protectedvirtual |
Adds a new model definition into the system.
Reimplemented in makVrv::DtModelDefinitionInstanceEditorLogic.
|
protectedvirtual |
Renames model definition.
Reimplemented in makVrv::DtModelDefinitionInstanceEditorLogic.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |