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

A widget that displays a persistence GUI in some way Operations presented are import, export, save, and restore. More...

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

List of all members.

Public Member Functions

 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 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)
 Enable/diable export button. Default is enabled.
virtual void setMergeEnabled (bool)
 If true, enabled merge button.
virtual void setImportEnabled (bool)
 If true will enable import settings.
virtual void setExportSelectedEnabled (bool)
 Sets whether or not export selected 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 setBackup (DtBackupInterface *)
 Sets the backup object that will be used to restore from.
virtual void disableAllButtons (bool)
 Quick way to disable/enable all buttons.

Protected Slots

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 ()
virtual void on_myRestoreButton_clicked ()
virtual void on_myRestoreFactoryButton_clicked ()

Protected Member Functions

virtual void backupFileChanged (const DtBackupInterface *)
 Called from the backup manager when the status of restoring from backup or factory changes.
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.

Protected Attributes

DtDemyDe
DtBackupInterfacemyBackup
QLabelmyLabel
QPushButtonmyImportButton
QPushButtonmyExportButton
QPushButtonmyMergeButton
QPushButtonmyExportSelectedButton
QPushButtonmySaveButton
QPushButtonmyRestoreButton
QPushButtonmyRestoreFactoryButton
QFramemySeparator
QHBoxLayout * myButtonLayout

Detailed Description

A widget that displays a persistence GUI in some way Operations presented are import, export, save, and restore.


Constructor & Destructor Documentation

makVrv::DtPersistenceToolbarWidget::DtPersistenceToolbarWidget ( DtDe de,
QWidget p = 0,
Qt::WindowFlags  f = 0 
)

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtPersistenceToolbarWidget::setPersistentStateName ( const QString &  name) [virtual]

Set the name of thing being saved.

virtual void makVrv::DtPersistenceToolbarWidget::queryImportFilePath ( DtDe de,
const std::string &  importType,
const std::string &  path,
const std::string &  fileFilter 
) [virtual]

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

Implements makVrv::DtPersistenceControlsInterface.

virtual void makVrv::DtPersistenceToolbarWidget::queryMergeFilePath ( DtDe de,
const std::string &  importType,
const std::string &  path,
const std::string &  fileFilter 
) [virtual]

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

Implements makVrv::DtPersistenceControlsInterface.

virtual void makVrv::DtPersistenceToolbarWidget::queryExportFilePath ( DtDe de,
const std::string &  importType,
const std::string &  path,
const std::string &  fileFilter 
) [virtual]

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

Implements makVrv::DtPersistenceControlsInterface.

Shows/hides save button. Default is hidden.

Implements makVrv::DtPersistenceControlsInterface.

Shows/hides horizontal separator. Default is shown.

Implements makVrv::DtPersistenceControlsInterface.

virtual void makVrv::DtPersistenceToolbarWidget::setMergeShown ( bool  shown) [virtual]

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

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

Implements makVrv::DtPersistenceControlsInterface.

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

Default is hidden

Implements makVrv::DtPersistenceControlsInterface.

If true will import settings.

Default is shown

Implements makVrv::DtPersistenceControlsInterface.

Enable/diable export button. Default is enabled.

Implements makVrv::DtPersistenceControlsInterface.

If true, enabled merge button.

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

Implements makVrv::DtPersistenceControlsInterface.

If true will enable import settings.

Default is enabled

Implements makVrv::DtPersistenceControlsInterface.

Sets whether or not export selected is enabled.

Default is false

Implements makVrv::DtPersistenceControlsInterface.

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

Initially disabled

Implements makVrv::DtPersistenceControlsInterface.

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

Initially disabled

Implements makVrv::DtPersistenceControlsInterface.

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 defaultsRestored and factoryDefaultsRestored signals will be sent

Implements makVrv::DtPersistenceControlsInterface.

Quick way to disable/enable all buttons.

Implements makVrv::DtPersistenceControlsInterface.

virtual void makVrv::DtPersistenceToolbarWidget::on_myImportButton_clicked ( ) [protected, virtual, slot]
virtual void makVrv::DtPersistenceToolbarWidget::on_myExportButton_clicked ( ) [protected, virtual, slot]
virtual void makVrv::DtPersistenceToolbarWidget::on_myMergeButton_clicked ( ) [protected, virtual, slot]
virtual void makVrv::DtPersistenceToolbarWidget::on_myExportSelectedButton_clicked ( ) [protected, virtual, slot]
virtual void makVrv::DtPersistenceToolbarWidget::on_mySaveButton_clicked ( ) [protected, virtual, slot]
virtual void makVrv::DtPersistenceToolbarWidget::on_myRestoreButton_clicked ( ) [protected, virtual, slot]
virtual void makVrv::DtPersistenceToolbarWidget::on_myRestoreFactoryButton_clicked ( ) [protected, virtual, slot]
virtual void makVrv::DtPersistenceToolbarWidget::backupFileChanged ( const DtBackupInterface ) [protected, virtual]

Called from the backup manager when the status of restoring from backup or factory changes.

Will enable/disable appropriate button

virtual QString makVrv::DtPersistenceToolbarWidget::willAlsoRestore ( int  ) const [protected, virtual]

If other items will be restored by either restoring local or factory, return text string which describes what will be restored.


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)