![]() |
VR-Forces 4.8 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. More... | |
| virtual | ~DtPersistenceToolbarWidget () |
| DTOR. More... | |
| virtual void | setPersistentStateName (const QString &name) |
| Set the name of thing being saved. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| virtual void | queryExportAllFilePaths (DtDe &de, const std::string &importType, const std::string &path, const std::string &fileFilter) |
| Ask for a filename to export all element definitions. More... | |
| 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. More... | |
| virtual void | setSaveButtonShown (bool shown) |
| Shows/hides save button. Default is hidden. More... | |
| virtual void | setSeparatorShown (bool shown) |
| Shows/hides horizontal separator. Default is shown. More... | |
| virtual void | setMergeShown (bool shown) |
| If true, shows merge button to allow merging of settings. More... | |
| virtual void | setExportShown (bool) |
| If true will export selected item(s) to a file. More... | |
| virtual void | setImportShown (bool) |
| If true will import settings. More... | |
| virtual void | setExportEnabled (bool) |
| Sets whether or not export button is enabled. More... | |
| virtual void | setMergeEnabled (bool) |
| Sets whether or not merge button is enabled. More... | |
| virtual void | setImportEnabled (bool) |
| Sets whether or not import button is enabled. More... | |
| virtual void | setExportSelectedEnabled (bool) |
| Sets whether or not export selected button is enabled. More... | |
| virtual void | setBackupRestoreEnabled (bool shown) |
| Sets whether or not the restore from backup button is enabled. More... | |
| virtual void | setFactoryRestoreEnabled (bool shown) |
| Sets whether or not the restore from factory button is enabled. More... | |
| virtual void | setSaveDefaultsEnabled (bool b) |
| Sets whether or not the save defaults button is enabled. More... | |
| virtual void | setBackup (DtBackupInterface *) |
| Sets the backup object that will be used to restore from. More... | |
| virtual void | disableAllButtons (bool) |
| Quick way to disable/enable all buttons. More... | |
| virtual void | activateSaveDefaults () |
| Prompt to save (usually on exit from a page) More... | |
| 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". More... | |
Public Member Functions inherited from makVrv::DtPersistenceControlsInterface | |
| virtual | ~DtPersistenceControlsInterface () |
| DTOR. More... | |
| virtual bool | showImportLeavesFirstBox () |
| show the messabge box to remind the user to import leave before import hireachy(for entity,unit,tactical graphics) More... | |
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_mySaveAllButton_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. More... | |
| virtual void | rememberToExportDialog () |
| For the VRF style definitions, entity type mappings reminder user to export to keep their changes. More... | |
| std::string | labelNameToExportDialogDisplayName (const std::string &name) |
| map label name to the name displayed in the rememberToExport dialog name More... | |
| 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. More... | |
Protected Attributes | |
| DtDe & | myDe |
| DtBackupInterface * | myBackup |
| QLabel * | myLabel |
| QPushButton * | myImportButton |
| QPushButton * | myExportButton |
| QPushButton * | myMergeButton |
| QPushButton * | myExportSelectedButton |
| QPushButton * | mySaveButton |
| QPushButton * | mySaveAllButton |
| QPushButton * | myRestoreButton |
| QPushButton * | myRestoreFactoryButton |
| QFrame * | mySeparator |
| QHBoxLayout * | myButtonLayout |
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. More... | |
| boost::signal< void()> | signal_restoreDefaults |
| Signal emitted when the user wants to load the default file. More... | |
| boost::signal< void()> | signal_restoreFactoryDefaults |
| Signal emitted when the user wants to load the factory settings file. More... | |
| boost::signal< void()> | signal_defaultsAboutToBeRestored |
| Signal emitted right before the defaults are about to be restored to the settings backup object. More... | |
| boost::signal< void()> | signal_defaultsRestored |
| Signal emitted when the defaults have been restored via the settings backup object. More... | |
| boost::signal< void()> | signal_factoryDefaultsAboutToBeRestored |
| Signal emitted when factory is about to be restored via the settings backup object. More... | |
| boost::signal< void()> | signal_factoryDefaultsRestored |
| Signal emitted when factory has been restored via the settings backup object. More... | |
| boost::signal< void()> | signal_export |
| Signal emitted when the user wants to export to a file. More... | |
| boost::signal< void()> | signal_import |
| Signal emitted when the user wants to import. More... | |
| boost::signal< void()> | signal_exportSelected |
| Signal emitted when the user wants to export selected item(s) to a file. More... | |
| boost::signal< void()> | signal_exportHier |
| Signal emitted when the user wants to export an element definition hierarchy to a file. More... | |
| boost::signal< void()> | signal_saveAll |
| Signal emitted when the user wants to export all item(s) More... | |
| boost::signal< void()> | signal_exportLeaves |
| Signal emitted when the user wants to export element definition leaves to a file. More... | |
| boost::signal< void()> | signal_exportSelectedLeaves |
| Signal emitted when the user wants to export selected element definition leaves to a file. More... | |
| boost::signal< void()> | signal_merge |
| Signal emitted when the user wants to merge. More... | |
| boost::signal< void(const std::string &)> | signal_importFilenameChosen |
| Signal emitted when the user has chosen a filename to import from. More... | |
| boost::signal< void(const std::string &)> | signal_mergeFilenameChosen |
| Signal emitted when the user has chosen a filename to merge from. More... | |
| boost::signal< void(const std::string &)> | signal_exportFilenameChosen |
| Signal emitted when the user has chosen a filename to export to. More... | |
| boost::signal< void(const std::string &)> | signal_exportHierFilenameChosen |
| Signal emitted when the user has chosen a filename to export the hierarchy element definitions to. More... | |
| boost::signal< void(const std::string &)> | signal_exportAllFilenamesChosen |
| Signal emitted when the user has chosen a filename to export. More... | |
| boost::signal< void(const std::string &)> | signal_exportLeafFilenameChosen |
| Signal emitted when the user has chosen a filename to export the leaf element definitions to. More... | |
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 |
DTOR.
|
virtual |
Set the name of thing being saved.
|
virtual |
Ask for a filename to import from fileFilter is the desired extension with no dot.
Implements makVrv::DtPersistenceControlsInterface.
Reimplemented in makVrv::DtDefinitionPersistenceWidget.
|
virtual |
Ask for a filename to merge from fileFilter is the desired extension with no dot.
Implements makVrv::DtPersistenceControlsInterface.
Reimplemented in makVrv::DtDefinitionPersistenceWidget.
|
virtual |
Ask for a filename to export to fileFilter is the desired extension with no dot.
Implements makVrv::DtPersistenceControlsInterface.
Reimplemented in makVrv::DtDefinitionPersistenceWidget.
|
virtual |
Ask for a filename to export the element definition hierarchy fileFilter is the desired extension with no dot.
Implements makVrv::DtPersistenceControlsInterface.
Reimplemented in makVrv::DtDefinitionPersistenceWidget.
|
virtual |
Ask for a filename to export all element definitions.
Implements makVrv::DtPersistenceControlsInterface.
Reimplemented in makVrv::DtDefinitionPersistenceWidget.
|
virtual |
Ask for a filename to export the element definition leaves fileFilter is the desired extension with no dot.
Implements makVrv::DtPersistenceControlsInterface.
Reimplemented in makVrv::DtDefinitionPersistenceWidget.
|
virtual |
Shows/hides save button. Default is hidden.
Implements makVrv::DtPersistenceControlsInterface.
|
virtual |
Shows/hides horizontal separator. Default is shown.
Implements makVrv::DtPersistenceControlsInterface.
|
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 |
If true will export selected item(s) to a file.
Default is hidden
Implements makVrv::DtPersistenceControlsInterface.
|
virtual |
|
virtual |
Sets whether or not export button is enabled.
Initially enabled.
Implements makVrv::DtPersistenceControlsInterface.
|
virtual |
Sets whether or not merge button is enabled.
Merge will add or replace, not remove items. Initially disabled.
Implements makVrv::DtPersistenceControlsInterface.
|
virtual |
Sets whether or not import button is enabled.
Initially enabled
Implements makVrv::DtPersistenceControlsInterface.
|
virtual |
Sets whether or not export selected button is enabled.
Initially disabled
Implements makVrv::DtPersistenceControlsInterface.
|
virtual |
Sets whether or not the restore from backup button is enabled.
Initially disabled
Implements makVrv::DtPersistenceControlsInterface.
|
virtual |
Sets whether or not the restore from factory button is enabled.
Initially disabled
Implements makVrv::DtPersistenceControlsInterface.
|
virtual |
Sets whether or not the save defaults button is enabled.
Initially enabled
Implements makVrv::DtPersistenceControlsInterface.
|
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 |
Quick way to disable/enable all buttons.
Implements makVrv::DtPersistenceControlsInterface.
Reimplemented in makVrv::DtDefinitionPersistenceWidget.
|
virtual |
Prompt to save (usually on exit from a page)
Implements makVrv::DtPersistenceControlsInterface.
|
virtual |
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".
Reimplemented from makVrv::DtPersistenceControlsInterface.
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
Reimplemented in makVrv::DtObserverModePersistenceWidget.
|
protectedvirtualslot |
Reimplemented in makVrv::DtObserverModePersistenceWidget.
|
protectedvirtual |
Called from the backup manager when the status of restoring from backup or factory changes.
Will enable/disable appropriate button
|
protectedvirtual |
For the VRF style definitions, entity type mappings reminder user to export to keep their changes.
|
protected |
map label name to the name displayed in the rememberToExport dialog name
|
protected |
|
protectedvirtual |
If other items will be restored by either restoring local or factory, return text string which describes what will be restored.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |