VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtCigiSettingsLogic Class Reference

This class provides the logic to handle multiple named CIGI settings, including adding, removing, importing, exporting, renaming, etc. More...

Inheritance diagram for makVrv::DtCigiSettingsLogic:
Inheritance graph
[legend]

List of all members.

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

DtDemyDe
DtCigiSettingsInterfacemySettingsInterface
DtPersistenceControlsInterfacemyToolbarInterface
DtSharedCigiSettingsManagermySettingsManager
DtSignalConnectionManager myConnectionManager

Detailed Description

This class provides the logic to handle multiple named CIGI settings, including adding, removing, importing, exporting, renaming, etc.

them.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

virtual void makVrv::DtCigiSettingsLogic::updateValues ( ) [protected, virtual]
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.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)