VR-Forces 4.1 Class Documentation
List of all members | Public Member Functions | Public Attributes
makVrv::DtPersistenceControlsInterface Class Reference

Abstract interface for controlling persistence of state in a dialog. More...

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

Public Member Functions

virtual ~DtPersistenceControlsInterface ()
 DTOR.
virtual void queryImportFilePath (DtDe &de, const std::string &importType, const std::string &path, const std::string &fileFilter)=0
 Ask for a filename to import from fileFilter is the desired extension with no dot.
virtual void queryMergeFilePath (DtDe &de, const std::string &importType, const std::string &path, const std::string &fileFilter)=0
 Ask for a filename to merge from fileFilter is the desired extension with no dot.
virtual void queryExportFilePath (DtDe &de, const std::string &importType, const std::string &path, const std::string &fileFilter)=0
 Ask for a filename to export to fileFilter is the desired extension with no dot.
virtual void setSaveButtonShown (bool)=0
 Shows/hides save button. Default is hidden.
virtual void setSeparatorShown (bool)=0
 Shows/hides horizontal separator. Default is shown.
virtual void setMergeShown (bool)=0
 If true, shows merge button to allow merging of settings.
virtual void setExportShown (bool)=0
 If true will export selected item(s) to a file.
virtual void setImportShown (bool)=0
 If true will import settings.
virtual void setExportEnabled (bool)=0
 Enable/diable export button. Default is enabled.
virtual void setMergeEnabled (bool)=0
 If true, enabled merge button.
virtual void setImportEnabled (bool)=0
 If true will enable import settings.
virtual void setExportSelectedEnabled (bool)=0
 Sets whether or not export selected is enabled.
virtual void setBackupRestoreEnabled (bool)=0
 Sets whether or not the restore from backup button is enabled.
virtual void setFactoryRestoreEnabled (bool)=0
 Sets whether or not the restore from factory button is enabled.
virtual void setBackup (DtBackupInterface *)=0
 Sets the backup object that will be used to restore from.
virtual void disableAllButtons (bool)=0
 Quick way to disable/enable all buttons.

Public Attributes

boost::signal< void()> signal_saveDefaults
 Signal emitted when the user wants to save to a default file.
boost::signal< void()> signal_restoreDefaults
 Signal emitted when the user wants to load the default file.
boost::signal< void()> signal_restoreFactoryDefaults
 Signal emitted when the user wants to load the factory settings file.
boost::signal< void()> signal_defaultsAboutToBeRestored
 Signal emitted right before the defaults are about to be restored to the settings backup object.
boost::signal< void()> signal_defaultsRestored
 Signal emitted when the defaults have been restored via the settings backup object.
boost::signal< void()> signal_factoryDefaultsAboutToBeRestored
 Signal emitted when factory is about to be restored via the settings backup object.
boost::signal< void()> signal_factoryDefaultsRestored
 Signal emitted when factory has been restored via the settings backup object.
boost::signal< void()> signal_export
 Signal emitted when the user wants to export to a file.
boost::signal< void()> signal_import
 Signal emitted when the user wants to import.
boost::signal< void()> signal_exportSelected
 Signal emitted when the user wants to export selected item(s) to a file.
boost::signal< void()> signal_merge
 Signal emitted when the user wants to merge.
boost::signal< void(const
std::string &)> 
signal_importFilenameChosen
 Signal emitted when the user has chosen a filename to import from.
boost::signal< void(const
std::string &)> 
signal_mergeFilenameChosen
 Signal emitted when the user has chosen a filename to merge from.
boost::signal< void(const
std::string &)> 
signal_exportFilenameChosen
 Signal emitted when the user has chosen a filename to export to.

Detailed Description

Abstract interface for controlling persistence of state in a dialog.

Constructor & Destructor Documentation

virtual makVrv::DtPersistenceControlsInterface::~DtPersistenceControlsInterface ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtPersistenceControlsInterface::queryImportFilePath ( DtDe de,
const std::string &  importType,
const std::string &  path,
const std::string &  fileFilter 
)
pure virtual

Ask for a filename to import from fileFilter is the desired extension with no dot.

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::queryMergeFilePath ( DtDe de,
const std::string &  importType,
const std::string &  path,
const std::string &  fileFilter 
)
pure virtual

Ask for a filename to merge from fileFilter is the desired extension with no dot.

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::queryExportFilePath ( DtDe de,
const std::string &  importType,
const std::string &  path,
const std::string &  fileFilter 
)
pure virtual

Ask for a filename to export to fileFilter is the desired extension with no dot.

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::setSaveButtonShown ( bool  )
pure virtual

Shows/hides save button. Default is hidden.

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::setSeparatorShown ( bool  )
pure virtual

Shows/hides horizontal separator. Default is shown.

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::setMergeShown ( bool  )
pure virtual

If true, shows merge button to allow merging of settings.

Merge will add or replace, not remove items. Default is hidden

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::setExportShown ( bool  )
pure virtual

If true will export selected item(s) to a file.

Default is hidden

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::setImportShown ( bool  )
pure virtual

If true will import settings.

Default is shown

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::setExportEnabled ( bool  )
pure virtual

Enable/diable export button. Default is enabled.

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::setMergeEnabled ( bool  )
pure virtual

If true, enabled merge button.

Merge will add or replace, not remove items. Default is enabled

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::setImportEnabled ( bool  )
pure virtual

If true will enable import settings.

Default is enabled

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::setExportSelectedEnabled ( bool  )
pure virtual

Sets whether or not export selected is enabled.

Default is false

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::setBackupRestoreEnabled ( bool  )
pure virtual

Sets whether or not the restore from backup button is enabled.

Initially disabled

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::setFactoryRestoreEnabled ( bool  )
pure virtual

Sets whether or not the restore from factory button is enabled.

Initially disabled

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::setBackup ( DtBackupInterface )
pure virtual

Sets the backup object that will be used to restore from.

If the object is NULL, and the restore buttons are pressed, the signal to restore factory and defaults will be sent. If the object is not NULL, the object will be restored by the toolbar and the defaults Restored and factoryDefaultsRestored signals will be sent

Implemented in makVrv::DtPersistenceToolbarWidget.

virtual void makVrv::DtPersistenceControlsInterface::disableAllButtons ( bool  )
pure virtual

Quick way to disable/enable all buttons.

Implemented in makVrv::DtPersistenceToolbarWidget.

Member Data Documentation

boost::signal<void ()> makVrv::DtPersistenceControlsInterface::signal_saveDefaults

Signal emitted when the user wants to save to a default file.

boost::signal<void ()> makVrv::DtPersistenceControlsInterface::signal_restoreDefaults

Signal emitted when the user wants to load the default file.

boost::signal<void ()> makVrv::DtPersistenceControlsInterface::signal_restoreFactoryDefaults

Signal emitted when the user wants to load the factory settings file.

boost::signal<void ()> makVrv::DtPersistenceControlsInterface::signal_defaultsAboutToBeRestored

Signal emitted right before the defaults are about to be restored to the settings backup object.

boost::signal<void ()> makVrv::DtPersistenceControlsInterface::signal_defaultsRestored

Signal emitted when the defaults have been restored via the settings backup object.

boost::signal<void ()> makVrv::DtPersistenceControlsInterface::signal_factoryDefaultsAboutToBeRestored

Signal emitted when factory is about to be restored via the settings backup object.

boost::signal<void ()> makVrv::DtPersistenceControlsInterface::signal_factoryDefaultsRestored

Signal emitted when factory has been restored via the settings backup object.

boost::signal<void ()> makVrv::DtPersistenceControlsInterface::signal_export

Signal emitted when the user wants to export to a file.

boost::signal<void ()> makVrv::DtPersistenceControlsInterface::signal_import

Signal emitted when the user wants to import.

boost::signal<void ()> makVrv::DtPersistenceControlsInterface::signal_exportSelected

Signal emitted when the user wants to export selected item(s) to a file.

boost::signal<void ()> makVrv::DtPersistenceControlsInterface::signal_merge

Signal emitted when the user wants to merge.

boost::signal<void (const std::string&)> makVrv::DtPersistenceControlsInterface::signal_importFilenameChosen

Signal emitted when the user has chosen a filename to import from.

boost::signal<void (const std::string&)> makVrv::DtPersistenceControlsInterface::signal_mergeFilenameChosen

Signal emitted when the user has chosen a filename to merge from.

boost::signal<void (const std::string&)> makVrv::DtPersistenceControlsInterface::signal_exportFilenameChosen

Signal emitted when the user has chosen a filename to export to.


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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)