![]() |
VR-Forces 4.0.4 Class Documentation
|
This class provides the logic to handle multiple named CIGI settings, including adding, removing, importing, exporting, renaming, etc. More...

Public Member Functions | |
| DtCigiSettingsLogic (DtDe &de, DtCigiSettingsInterface *settingsIf, DtPersistenceControlsInterface *toolbarIf) | |
| Constructor. | |
| virtual | ~DtCigiSettingsLogic () |
| Destructor. | |
Protected Member Functions | |
| virtual void | updateValues () |
| No-op. Should be overridden. | |
| virtual void | on_newSettingsRequested () |
| Called when new settings are added. | |
| virtual void | on_deleteSettingsRequested (const std::string &mapperName) |
| Called when settings are deleted. | |
| virtual void | on_renameSettingsRequested (const std::string &oldName, const std::string &newName) |
| Called when settings are renamed. | |
| virtual void | on_currentSettingsChanged (const std::string &name) |
| Called when the current settings change. | |
| virtual void | on_pageEnabled (bool trueFalse) |
| Called when the page is enabled. | |
| virtual std::string | generateName () const |
| Generates a new name. Used when new settings are created. | |
| virtual void | on_import () |
| Called when import is requested. | |
| virtual void | on_importFilenameChosen (const std::string &name) |
| Called when the user chooses a file to import. | |
| virtual void | on_export () |
| Called when export is requested. | |
| virtual void | on_exportFilenameChosen (const std::string &name) |
| Called when the user chooses a file to import to. | |
| virtual void | on_settingsToBeDeletedExternal (const std::string &name) |
| Called when the settngs manager reports a settings object is to be deleted. | |
| int | stringToInt (const std::string &str) |
| Utility function translates str into an integer. Returns -1 if fails. | |
Protected Attributes | |
| DtDe & | myDe |
| DtCigiSettingsInterface & | mySettingsInterface |
| DtPersistenceControlsInterface & | myToolbarInterface |
| DtSharedCigiSettingsManager & | mySettingsManager |
| DtSignalConnectionManager | myConnectionManager |
This class provides the logic to handle multiple named CIGI settings, including adding, removing, importing, exporting, renaming, etc.
them.
| makVrv::DtCigiSettingsLogic::DtCigiSettingsLogic | ( | DtDe & | de, |
| DtCigiSettingsInterface * | settingsIf, | ||
| DtPersistenceControlsInterface * | toolbarIf | ||
| ) |
Constructor.
| virtual makVrv::DtCigiSettingsLogic::~DtCigiSettingsLogic | ( | ) | [virtual] |
Destructor.
| virtual void makVrv::DtCigiSettingsLogic::updateValues | ( | ) | [protected, virtual] |
No-op. Should be overridden.
Reimplemented in makVrv::DtCigiComponentMappingLogic, makVrv::DtCigiEntityMappingLogic, makVrv::DtCigiAnimationMappingLogic, makVrv::DtCigiModelStateMappingLogic, and makVrv::DtCigiDatabaseMappingLogic.
| virtual void makVrv::DtCigiSettingsLogic::on_newSettingsRequested | ( | ) | [protected, virtual] |
Called when new settings are added.
| virtual void makVrv::DtCigiSettingsLogic::on_deleteSettingsRequested | ( | const std::string & | mapperName | ) | [protected, virtual] |
Called when settings are deleted.
| virtual void makVrv::DtCigiSettingsLogic::on_renameSettingsRequested | ( | const std::string & | oldName, |
| const std::string & | newName | ||
| ) | [protected, virtual] |
Called when settings are renamed.
| virtual void makVrv::DtCigiSettingsLogic::on_currentSettingsChanged | ( | const std::string & | name | ) | [protected, virtual] |
Called when the current settings change.
Reimplemented in makVrv::DtCigiEntityMappingLogic.
| virtual void makVrv::DtCigiSettingsLogic::on_pageEnabled | ( | bool | trueFalse | ) | [protected, virtual] |
Called when the page is enabled.
| virtual std::string makVrv::DtCigiSettingsLogic::generateName | ( | ) | const [protected, virtual] |
Generates a new name. Used when new settings are created.
| virtual void makVrv::DtCigiSettingsLogic::on_import | ( | ) | [protected, virtual] |
Called when import is requested.
| virtual void makVrv::DtCigiSettingsLogic::on_importFilenameChosen | ( | const std::string & | name | ) | [protected, virtual] |
Called when the user chooses a file to import.
| virtual void makVrv::DtCigiSettingsLogic::on_export | ( | ) | [protected, virtual] |
Called when export is requested.
| virtual void makVrv::DtCigiSettingsLogic::on_exportFilenameChosen | ( | const std::string & | name | ) | [protected, virtual] |
Called when the user chooses a file to import to.
| virtual void makVrv::DtCigiSettingsLogic::on_settingsToBeDeletedExternal | ( | const std::string & | name | ) | [protected, virtual] |
Called when the settngs manager reports a settings object is to be deleted.
We need this so we can update the persitence toolbar widget's ptr to the settings backup
| int makVrv::DtCigiSettingsLogic::stringToInt | ( | const std::string & | str | ) | [protected] |
Utility function translates str into an integer. Returns -1 if fails.
DtDe& makVrv::DtCigiSettingsLogic::myDe [protected] |
Reimplemented in makVrv::DtCigiEntityMappingLogic.