VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions
makVrv::DtObserverModePersistenceWidget Class Reference

This class overrides the DtPersistenceToolbarWidget to provide specific functionality needed by the DtObserverMode. More...

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

Public Member Functions

 DtObserverModePersistenceWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 CTOR.
virtual ~DtObserverModePersistenceWidget ()
 DTOR.
virtual void restoreSelected (bool fromFactory)
virtual void restoreAll (bool fromFactory)
- Public Member Functions inherited from makVrv::DtPersistenceToolbarWidget
 DtPersistenceToolbarWidget (DtDe &de, QWidget *p=0, Qt::WindowFlags f=0)
 CTOR.
virtual ~DtPersistenceToolbarWidget ()
 DTOR.
virtual void setPersistentStateName (const QString &name)
 Set the name of thing being saved.
virtual void queryImportFilePath (DtDe &de, const std::string &importType, const std::string &path, const std::string &fileFilter)
 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)
 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)
 Ask for a filename to export to fileFilter is the desired extension with no dot.
virtual void queryExportHierFilePath (DtDe &de, const std::string &importType, const std::string &path, const std::string &fileFilter)
 Ask for a filename to export the element definition hierarchy fileFilter is the desired extension with no dot.
virtual void queryExportLeafFilePath (DtDe &de, const std::string &importType, const std::string &path, const std::string &fileFilter)
 Ask for a filename to export the element definition leaves fileFilter is the desired extension with no dot.
virtual void setSaveButtonShown (bool shown)
 Shows/hides save button. Default is hidden.
virtual void setSeparatorShown (bool shown)
 Shows/hides horizontal separator. Default is shown.
virtual void setMergeShown (bool shown)
 If true, shows merge button to allow merging of settings.
virtual void setExportShown (bool)
 If true will export selected item(s) to a file.
virtual void setImportShown (bool)
 If true will import settings.
virtual void setExportEnabled (bool)
 Sets whether or not export button is enabled.
virtual void setMergeEnabled (bool)
 Sets whether or not merge button is enabled.
virtual void setImportEnabled (bool)
 Sets whether or not import button is enabled.
virtual void setExportSelectedEnabled (bool)
 Sets whether or not export selected button is enabled.
virtual void setBackupRestoreEnabled (bool shown)
 Sets whether or not the restore from backup button is enabled.
virtual void setFactoryRestoreEnabled (bool shown)
 Sets whether or not the restore from factory button is enabled.
virtual void setSaveDefaultsEnabled (bool b)
 Sets whether or not the save defaults button is enabled.
virtual void setBackup (DtBackupInterface *)
 Sets the backup object that will be used to restore from.
virtual void disableAllButtons (bool)
 Quick way to disable/enable all buttons.
virtual void activateSaveDefaults ()
 Prompt to save (usually on exit from a page)
virtual int activateRememberToExport (bool &dontShowAagin)
 Remind user to export (usually prompting on page exit) with a checkbox allow user to not show it again the user check the "dont show again".
- Public Member Functions inherited from makVrv::DtPersistenceControlsInterface
virtual ~DtPersistenceControlsInterface ()
 DTOR.
virtual bool showImportLeavesFirstBox ()
 show the messabge box to remind the user to import leave before import hireachy(for entity,unit,tactical graphics)

Protected Member Functions

virtual void on_myRestoreButton_clicked ()
virtual void on_myRestoreFactoryButton_clicked ()
- Protected Member Functions inherited from makVrv::DtPersistenceToolbarWidget
virtual void backupFileChanged (const DtBackupInterface *)
 Called from the backup manager when the status of restoring from backup or factory changes.
virtual void rememberToExportDialog ()
 For the VRF style definitions, entity type mappings reminder user to export to keep their changes.
std::string labelNameToExportDialogDisplayName (const std::string &name)
 map label name to the name displayed in the rememberToExport dialog name
void setupGui ()
virtual QString willAlsoRestore (int) const
 If other items will be restored by either restoring local or factory, return text string which describes what will be restored.

Additional Inherited Members

- Public Attributes inherited from makVrv::DtPersistenceControlsInterface
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_exportHier
 Signal emitted when the user wants to export an element definition hierarchy to a file.
boost::signal< void()> signal_exportLeaves
 Signal emitted when the user wants to export element definition leaves to a file.
boost::signal< void()> signal_exportSelectedLeaves
 Signal emitted when the user wants to export selected element definition leaves 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.
boost::signal< void(const
std::string &)> 
signal_exportHierFilenameChosen
 Signal emitted when the user has chosen a filename to export the hierarchy element definitions to.
boost::signal< void(const
std::string &)> 
signal_exportLeafFilenameChosen
 Signal emitted when the user has chosen a filename to export the leaf element definitions to.
- Protected Slots inherited from makVrv::DtPersistenceToolbarWidget
virtual void on_myImportButton_clicked ()
virtual void on_myExportButton_clicked ()
virtual void on_myMergeButton_clicked ()
virtual void on_myExportSelectedButton_clicked ()
virtual void on_mySaveButton_clicked ()
- Protected Attributes inherited from makVrv::DtPersistenceToolbarWidget
DtDemyDe
DtBackupInterfacemyBackup
QLabelmyLabel
QPushButtonmyImportButton
QPushButtonmyExportButton
QPushButtonmyMergeButton
QPushButtonmyExportSelectedButton
QPushButtonmySaveButton
QPushButtonmyRestoreButton
QPushButtonmyRestoreFactoryButton
QFrame * mySeparator
QHBoxLayout * myButtonLayout

Detailed Description

This class overrides the DtPersistenceToolbarWidget to provide specific functionality needed by the DtObserverMode.

Constructor & Destructor Documentation

makVrv::DtObserverModePersistenceWidget::DtObserverModePersistenceWidget ( DtDe de,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

CTOR.

virtual makVrv::DtObserverModePersistenceWidget::~DtObserverModePersistenceWidget ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtObserverModePersistenceWidget::restoreSelected ( bool  fromFactory)
virtual
virtual void makVrv::DtObserverModePersistenceWidget::restoreAll ( bool  fromFactory)
virtual
virtual void makVrv::DtObserverModePersistenceWidget::on_myRestoreButton_clicked ( )
protectedvirtual
virtual void makVrv::DtObserverModePersistenceWidget::on_myRestoreFactoryButton_clicked ( )
protectedvirtual

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)