![]() |
VR-Forces 4.0.4 Class Documentation
|
Logic class for editing definition schema. More...
Public Member Functions | |
| DtSchemaEditorLogic (DtDe &de, DtInstanceEditorInterface *instanceEditor, DtMapEditorInterface *mapEditor, DtPersistenceControlsInterface *toolbar) | |
| CTOR. | |
| ~DtSchemaEditorLogic () | |
| DTOR. | |
Protected Member Functions | |
| virtual void | createSchema (const std::string &schemaName) |
| virtual void | copySchema (const std::string &oldName, const std::string &newName) |
| virtual void | deleteSchema (const std::string &schemaName) |
| virtual void | setSelectedSchema (const std::string &schemaName) |
| virtual void | setupSchemas () |
| virtual void | renameParameter (const std::string &oldName, const std::string &newName) |
| virtual void | renameSchema (const std::string &oldName, const std::string &newName) |
| virtual void | modifyValue (const std::string &key, const std::string &val, int index) |
| virtual void | deleteValue (const std::string &key) |
| virtual void | schemaRestored (const DtSettingsBackup *) |
| Called when a schema is restored, reset gui if the restored schema is the one being displayed. | |
| void | setupInstances () |
| setup the instances. | |
| void | setupMap () |
| virtual void | onExport () |
| Called when user wants to export contents of selected schema to a file. | |
| virtual void | onExportSelected () |
| Called when a user wants to export selected items of the current schema to a file. | |
| virtual void | onExportFilenameChosen (const std::string &) |
| Called when the export filename has been chosen. | |
| virtual void | onExportSelectedChosen (const std::string &) |
| Called when the export filename has been chosen. | |
| virtual void | onImport () |
| Called when a user wants to import (replace) selected schema with contents of selected file. | |
| virtual void | onImportFilenameChosen (const std::string &) |
| Called when the import filename has been chose. | |
| virtual void | onMerge () |
| Called when a user wants to merge selected file into currently selected schema. | |
| virtual void | onMergeFilenameChosen (const std::string &) |
| Called when the merge filename has been chose. | |
Static Protected Member Functions | |
| static std::string | parameterTypeToString (unsigned int type) |
| static unsigned int | parameterTypeFromString (const std::string &str) |
| static std::string | requiredToString (bool required) |
| static bool | requiredFromString (const std::string &str) |
Protected Attributes | |
| DtDe & | myDe |
| DtInstanceEditorInterface * | myInstanceInterface |
| DtMapEditorInterface * | myMapInterface |
| DtPersistenceControlsInterface * | myToolbarInterface |
| DtSignalConnectionManager | mySignals |
Logic class for editing definition schema.
| makVrv::DtSchemaEditorLogic::DtSchemaEditorLogic | ( | DtDe & | de, |
| DtInstanceEditorInterface * | instanceEditor, | ||
| DtMapEditorInterface * | mapEditor, | ||
| DtPersistenceControlsInterface * | toolbar | ||
| ) |
CTOR.
| virtual void makVrv::DtSchemaEditorLogic::createSchema | ( | const std::string & | schemaName | ) | [protected, virtual] |
| virtual void makVrv::DtSchemaEditorLogic::copySchema | ( | const std::string & | oldName, |
| const std::string & | newName | ||
| ) | [protected, virtual] |
| virtual void makVrv::DtSchemaEditorLogic::deleteSchema | ( | const std::string & | schemaName | ) | [protected, virtual] |
| virtual void makVrv::DtSchemaEditorLogic::setSelectedSchema | ( | const std::string & | schemaName | ) | [protected, virtual] |
| virtual void makVrv::DtSchemaEditorLogic::setupSchemas | ( | ) | [protected, virtual] |
| virtual void makVrv::DtSchemaEditorLogic::renameParameter | ( | const std::string & | oldName, |
| const std::string & | newName | ||
| ) | [protected, virtual] |
| virtual void makVrv::DtSchemaEditorLogic::renameSchema | ( | const std::string & | oldName, |
| const std::string & | newName | ||
| ) | [protected, virtual] |
| virtual void makVrv::DtSchemaEditorLogic::modifyValue | ( | const std::string & | key, |
| const std::string & | val, | ||
| int | index | ||
| ) | [protected, virtual] |
| virtual void makVrv::DtSchemaEditorLogic::deleteValue | ( | const std::string & | key | ) | [protected, virtual] |
| virtual void makVrv::DtSchemaEditorLogic::schemaRestored | ( | const DtSettingsBackup * | ) | [protected, virtual] |
Called when a schema is restored, reset gui if the restored schema is the one being displayed.
| void makVrv::DtSchemaEditorLogic::setupInstances | ( | ) | [protected] |
setup the instances.
| void makVrv::DtSchemaEditorLogic::setupMap | ( | ) | [protected] |
| static std::string makVrv::DtSchemaEditorLogic::parameterTypeToString | ( | unsigned int | type | ) | [static, protected] |
| static unsigned int makVrv::DtSchemaEditorLogic::parameterTypeFromString | ( | const std::string & | str | ) | [static, protected] |
| static std::string makVrv::DtSchemaEditorLogic::requiredToString | ( | bool | required | ) | [static, protected] |
| static bool makVrv::DtSchemaEditorLogic::requiredFromString | ( | const std::string & | str | ) | [static, protected] |
| virtual void makVrv::DtSchemaEditorLogic::onExport | ( | ) | [protected, virtual] |
Called when user wants to export contents of selected schema to a file.
| virtual void makVrv::DtSchemaEditorLogic::onExportSelected | ( | ) | [protected, virtual] |
Called when a user wants to export selected items of the current schema to a file.
| virtual void makVrv::DtSchemaEditorLogic::onExportFilenameChosen | ( | const std::string & | ) | [protected, virtual] |
Called when the export filename has been chosen.
Will export contents of schema to given file
| virtual void makVrv::DtSchemaEditorLogic::onExportSelectedChosen | ( | const std::string & | ) | [protected, virtual] |
Called when the export filename has been chosen.
Will export selected items to the given file
| virtual void makVrv::DtSchemaEditorLogic::onImport | ( | ) | [protected, virtual] |
Called when a user wants to import (replace) selected schema with contents of selected file.
| virtual void makVrv::DtSchemaEditorLogic::onImportFilenameChosen | ( | const std::string & | ) | [protected, virtual] |
Called when the import filename has been chose.
Will import contents of file to selected schema
| virtual void makVrv::DtSchemaEditorLogic::onMerge | ( | ) | [protected, virtual] |
Called when a user wants to merge selected file into currently selected schema.
Merge will replace or add, not delete items
| virtual void makVrv::DtSchemaEditorLogic::onMergeFilenameChosen | ( | const std::string & | ) | [protected, virtual] |
Called when the merge filename has been chose.
Will merge contents of file to selected schema
DtDe& makVrv::DtSchemaEditorLogic::myDe [protected] |