VR-Forces 4.2 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes
makVrf::DtVrfSessionSettingsManager Class Reference

The class that will contain information about various scenario settings. More...

Inheritance diagram for makVrf::DtVrfSessionSettingsManager:
Inheritance graph
[legend]

Public Member Functions

 DtVrfSessionSettingsManager (makVrv::DtDe &)
virtual ~DtVrfSessionSettingsManager ()
virtual void setHelpFile (const std::string &, bool save=false)
 Sets the help file to use when pressing the F1 key.
virtual std::string helpFile () const
virtual void setDefaultScenarioFile (const std::string &f, bool save=false)
 Sets the scenario file used as the default when creating a new scenario.
virtual std::string defaultScenarioFile () const
virtual void setDefaultSimulationModelSetFile (const std::string &f, bool save=false)
 Sets the default .sms file to use when loading a scenario if none is found in the scenario to be loaded.
virtual std::string defaultSimulationModelSetFile () const
virtual void setFromRecord (const DtVrfSessionSettingsRecord &rec)
virtual void loadDefaultSessionSettings (bool loadOnlyFactorySettings=false)
virtual void getRecord (DtVrfSessionSettingsRecord &rec) const
virtual void setAutoSave (bool)
 Set to false to not save on settings change. Default is true.
virtual bool autoSave () const
virtual bool autoJoinSession () const
 Access to session record information.
virtual bool askToJoin () const
virtual bool alwaysJoinWithSessionDatabase () const
virtual bool zoomToScenarioExtentsOnLoad () const
virtual bool alwaysJoinWithOpenDatabase () const
makVrv::DtRecordSettingsBackupInterface * sessionSettingsBackup ()
void exportSessionSettings (const std::string &fileName)
 Exports the current cache settings to a file.
void importSessionSettings (const std::string &fileName)
 Import the current cache settings from a file.
virtual void setDoNotShowSessionStartupDialog (bool)
 Sets whether or not to show the startup session dialog.
bool showSessionStartupDialog () const
virtual void setDisplaySessionDialogs (bool)
 Shows/does not show session settings dialog.
virtual bool displaySessionDialogs () const
virtual void setDisplayCorrelationWarningMessages (bool)
 Shows/does not show correlation warnings dialog.
virtual bool displayCorrelationWarningMessages () const
virtual void setStartupPreference (int)
 Preference on startup (new scenario on VR-TheWorldServer, new scenario, or load scenario)
int startupPreference () const
virtual void setAggregateOnCreate (bool)
 Sets to whether or not create aggregates as true aggregates (true) or psuedo aggregates (false) when initially created.
bool aggregateOnCreate () const
virtual void setUserDefinedSmoothing (bool)
 Sets whether or not the user or system is defining smoothing in performance options.
bool userDefinedSmoothing () const
virtual void setShowScenarioDescriptionDialog (bool b)
 Sets whether or not to show scenario description message box.
virtual bool showScenarioDescriptionDialog () const
virtual void saveSettingsAsDefault ()
 Saves if auto-save is turned on.

Static Public Member Functions

static
DtVrfSessionSettingsManager
instance (makVrv::DtDe &de)
 Returns instance of the messager.
static void registerInstance (makVrv::DtDe &de, DtVrfSessionSettingsManager *)

Public Attributes

boost::signal< void(const
DtVrfSessionSettingsRecord &)> 
signal_sessionSettingsChanged
 Sent when session settings have changed.

Protected Attributes

makVrv::DtDe & myDe
DtVrfSessionSettingsRecord mySessionSettings
makVrv::DtRecordSettingsBackupInterface * mySessionSettingsBackup

Detailed Description

The class that will contain information about various scenario settings.

Constructor & Destructor Documentation

makVrf::DtVrfSessionSettingsManager::DtVrfSessionSettingsManager ( makVrv::DtDe &  )
virtual makVrf::DtVrfSessionSettingsManager::~DtVrfSessionSettingsManager ( )
virtual

Member Function Documentation

static DtVrfSessionSettingsManager& makVrf::DtVrfSessionSettingsManager::instance ( makVrv::DtDe &  de)
static

Returns instance of the messager.

static void makVrf::DtVrfSessionSettingsManager::registerInstance ( makVrv::DtDe &  de,
DtVrfSessionSettingsManager  
)
static
virtual void makVrf::DtVrfSessionSettingsManager::setHelpFile ( const std::string &  ,
bool  save = false 
)
virtual

Sets the help file to use when pressing the F1 key.

Note this will be a permanent change and will be using that file the next time the application is started if the save flag is true. By default is false

virtual std::string makVrf::DtVrfSessionSettingsManager::helpFile ( ) const
virtual
virtual void makVrf::DtVrfSessionSettingsManager::setDefaultScenarioFile ( const std::string &  f,
bool  save = false 
)
virtual

Sets the scenario file used as the default when creating a new scenario.

If save is true will make this change permanent

virtual std::string makVrf::DtVrfSessionSettingsManager::defaultScenarioFile ( ) const
virtual
virtual void makVrf::DtVrfSessionSettingsManager::setDefaultSimulationModelSetFile ( const std::string &  f,
bool  save = false 
)
virtual

Sets the default .sms file to use when loading a scenario if none is found in the scenario to be loaded.

If save is true will make change permanent

virtual std::string makVrf::DtVrfSessionSettingsManager::defaultSimulationModelSetFile ( ) const
virtual
virtual void makVrf::DtVrfSessionSettingsManager::setFromRecord ( const DtVrfSessionSettingsRecord rec)
virtual
virtual void makVrf::DtVrfSessionSettingsManager::loadDefaultSessionSettings ( bool  loadOnlyFactorySettings = false)
virtual
virtual void makVrf::DtVrfSessionSettingsManager::getRecord ( DtVrfSessionSettingsRecord rec) const
virtual
virtual void makVrf::DtVrfSessionSettingsManager::setAutoSave ( bool  )
virtual

Set to false to not save on settings change. Default is true.

virtual bool makVrf::DtVrfSessionSettingsManager::autoSave ( ) const
virtual
virtual bool makVrf::DtVrfSessionSettingsManager::autoJoinSession ( ) const
virtual

Access to session record information.

To set, get record and then reset vis setFromRecord

virtual bool makVrf::DtVrfSessionSettingsManager::askToJoin ( ) const
virtual
virtual bool makVrf::DtVrfSessionSettingsManager::alwaysJoinWithSessionDatabase ( ) const
virtual
virtual bool makVrf::DtVrfSessionSettingsManager::zoomToScenarioExtentsOnLoad ( ) const
virtual
virtual bool makVrf::DtVrfSessionSettingsManager::alwaysJoinWithOpenDatabase ( ) const
virtual
makVrv::DtRecordSettingsBackupInterface* makVrf::DtVrfSessionSettingsManager::sessionSettingsBackup ( )
inline
void makVrf::DtVrfSessionSettingsManager::exportSessionSettings ( const std::string &  fileName)

Exports the current cache settings to a file.

void makVrf::DtVrfSessionSettingsManager::importSessionSettings ( const std::string &  fileName)

Import the current cache settings from a file.

virtual void makVrf::DtVrfSessionSettingsManager::setDoNotShowSessionStartupDialog ( bool  )
virtual

Sets whether or not to show the startup session dialog.

bool makVrf::DtVrfSessionSettingsManager::showSessionStartupDialog ( ) const
virtual void makVrf::DtVrfSessionSettingsManager::setDisplaySessionDialogs ( bool  )
virtual

Shows/does not show session settings dialog.

virtual bool makVrf::DtVrfSessionSettingsManager::displaySessionDialogs ( ) const
virtual
virtual void makVrf::DtVrfSessionSettingsManager::setDisplayCorrelationWarningMessages ( bool  )
virtual

Shows/does not show correlation warnings dialog.

virtual bool makVrf::DtVrfSessionSettingsManager::displayCorrelationWarningMessages ( ) const
virtual
virtual void makVrf::DtVrfSessionSettingsManager::setStartupPreference ( int  )
virtual

Preference on startup (new scenario on VR-TheWorldServer, new scenario, or load scenario)

int makVrf::DtVrfSessionSettingsManager::startupPreference ( ) const
virtual void makVrf::DtVrfSessionSettingsManager::setAggregateOnCreate ( bool  )
virtual

Sets to whether or not create aggregates as true aggregates (true) or psuedo aggregates (false) when initially created.

Default is false

bool makVrf::DtVrfSessionSettingsManager::aggregateOnCreate ( ) const
virtual void makVrf::DtVrfSessionSettingsManager::setUserDefinedSmoothing ( bool  )
virtual

Sets whether or not the user or system is defining smoothing in performance options.

bool makVrf::DtVrfSessionSettingsManager::userDefinedSmoothing ( ) const
virtual void makVrf::DtVrfSessionSettingsManager::setShowScenarioDescriptionDialog ( bool  b)
virtual

Sets whether or not to show scenario description message box.

virtual bool makVrf::DtVrfSessionSettingsManager::showScenarioDescriptionDialog ( ) const
virtual
virtual void makVrf::DtVrfSessionSettingsManager::saveSettingsAsDefault ( )
virtual

Saves if auto-save is turned on.

Member Data Documentation

boost::signal<void (const DtVrfSessionSettingsRecord&)> makVrf::DtVrfSessionSettingsManager::signal_sessionSettingsChanged

Sent when session settings have changed.

makVrv::DtDe& makVrf::DtVrfSessionSettingsManager::myDe
protected
DtVrfSessionSettingsRecord makVrf::DtVrfSessionSettingsManager::mySessionSettings
protected
makVrv::DtRecordSettingsBackupInterface* makVrf::DtVrfSessionSettingsManager::mySessionSettingsBackup
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)