![]() |
VR-Forces 4.0.4 Class Documentation
|
A widget that displays a persistence GUI in some way Operations presented are import, export, save, and restore. More...

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 | |
| DtDe & | myDe |
| DtBackupInterface * | myBackup |
| QLabel * | myLabel |
| QPushButton * | myImportButton |
| QPushButton * | myExportButton |
| QPushButton * | myMergeButton |
| QPushButton * | myExportSelectedButton |
| QPushButton * | mySaveButton |
| QPushButton * | myRestoreButton |
| QPushButton * | myRestoreFactoryButton |
| QFrame * | mySeparator |
| QHBoxLayout * | myButtonLayout |
A widget that displays a persistence GUI in some way Operations presented are import, export, save, and restore.
| makVrv::DtPersistenceToolbarWidget::DtPersistenceToolbarWidget | ( | DtDe & | de, |
| QWidget * | p = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
CTOR.
| virtual makVrv::DtPersistenceToolbarWidget::~DtPersistenceToolbarWidget | ( | ) | [virtual] |
DTOR.
| 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.
| virtual void makVrv::DtPersistenceToolbarWidget::setSaveButtonShown | ( | bool | shown | ) | [virtual] |
Shows/hides save button. Default is hidden.
Implements makVrv::DtPersistenceControlsInterface.
| virtual void makVrv::DtPersistenceToolbarWidget::setSeparatorShown | ( | bool | shown | ) | [virtual] |
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.
| virtual void makVrv::DtPersistenceToolbarWidget::setExportShown | ( | bool | ) | [virtual] |
If true will export selected item(s) to a file.
Default is hidden
Implements makVrv::DtPersistenceControlsInterface.
| virtual void makVrv::DtPersistenceToolbarWidget::setImportShown | ( | bool | ) | [virtual] |
| virtual void makVrv::DtPersistenceToolbarWidget::setExportEnabled | ( | bool | ) | [virtual] |
Enable/diable export button. Default is enabled.
Implements makVrv::DtPersistenceControlsInterface.
| virtual void makVrv::DtPersistenceToolbarWidget::setMergeEnabled | ( | bool | ) | [virtual] |
If true, enabled merge button.
Merge will add or replace, not remove items. Default is enabled
Implements makVrv::DtPersistenceControlsInterface.
| virtual void makVrv::DtPersistenceToolbarWidget::setImportEnabled | ( | bool | ) | [virtual] |
If true will enable import settings.
Default is enabled
Implements makVrv::DtPersistenceControlsInterface.
| virtual void makVrv::DtPersistenceToolbarWidget::setExportSelectedEnabled | ( | bool | ) | [virtual] |
Sets whether or not export selected is enabled.
Default is false
Implements makVrv::DtPersistenceControlsInterface.
| virtual void makVrv::DtPersistenceToolbarWidget::setBackupRestoreEnabled | ( | bool | shown | ) | [virtual] |
Sets whether or not the restore from backup button is enabled.
Initially disabled
Implements makVrv::DtPersistenceControlsInterface.
| virtual void makVrv::DtPersistenceToolbarWidget::setFactoryRestoreEnabled | ( | bool | shown | ) | [virtual] |
Sets whether or not the restore from factory button is enabled.
Initially disabled
Implements makVrv::DtPersistenceControlsInterface.
| virtual void makVrv::DtPersistenceToolbarWidget::setBackup | ( | DtBackupInterface * | ) | [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 defaultsRestored and factoryDefaultsRestored signals will be sent
Implements makVrv::DtPersistenceControlsInterface.
| virtual void makVrv::DtPersistenceToolbarWidget::disableAllButtons | ( | bool | ) | [virtual] |
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] |
Reimplemented in makVrv::DtObserverModePersistenceWidget.
| virtual void makVrv::DtPersistenceToolbarWidget::on_myRestoreFactoryButton_clicked | ( | ) | [protected, virtual, slot] |
Reimplemented in makVrv::DtObserverModePersistenceWidget.
| 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
| void makVrv::DtPersistenceToolbarWidget::setupGui | ( | ) | [protected] |
| 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.
DtDe& makVrv::DtPersistenceToolbarWidget::myDe [protected] |
QLabel* makVrv::DtPersistenceToolbarWidget::myLabel [protected] |
QFrame* makVrv::DtPersistenceToolbarWidget::mySeparator [protected] |
QHBoxLayout* makVrv::DtPersistenceToolbarWidget::myButtonLayout [protected] |