![]() |
VR-Forces 4.10 Class Documentation
|
This class overrides the DtPersistenceToolbarWidget to provide specific functionality needed by the DtObserverMode. More...

Public Member Functions | |
| DtDefinitionPersistenceWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| CTOR. More... | |
| virtual | ~DtDefinitionPersistenceWidget () |
| DTOR. More... | |
| virtual void | restoreSelected (bool fromFactory) |
| virtual void | restoreAll (bool fromFactory) |
| virtual void | useDir (bool useDir) |
| virtual void | queryImportFilePath (DtDe &de, const std::string &importType, const std::string &path, const std::string &fileFilter) |
| Ask for a filename to import to 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 std::string | queryExportFilePathString (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) |
| Get the file names of all definitions from both the hier and leaf files, then exports them all to their respective file locations. 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 | 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 | setExportHierEnabled (bool b) |
| Sets whether or not export hierarchy button is enabled. More... | |
| virtual void | disableAllButtons (bool b) |
| Quick way to disable/enable all buttons. More... | |
| virtual bool | showImportLeavesFirstBox () |
| show the messabge box to remind the user to import leave before import hireachy(for entity,unit,tactical graphics) More... | |
| virtual void | setExportSelectedLeafButtonEnabled (bool enabled) |
Public Member Functions inherited from makVrv::DtPersistenceToolbarWidget | |
| 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 | 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 *backup, bool showFactoryButton) override |
| Sets the backup object that will be used to restore from. 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... | |
Protected Slots | |
| virtual void | on_myExportHierButton_clicked () |
| virtual void | on_myExportLeafButton_clicked () |
| virtual void | on_myExportSelectedLeafButton_clicked () |
| virtual void | on_mySaveAllButton_clicked () |
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 () |
| virtual void | on_mySaveAllButton_clicked () |
| virtual void | on_myRestoreButton_clicked () |
| virtual void | on_myRestoreFactoryButton_clicked () |
Protected Member Functions | |
| void | adjustGui () |
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. 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 | |
| bool | myUseDir |
| QPushButton * | myExportHierButton |
| QPushButton * | myExportLeafButton |
| QPushButton * | myExportSelectedLeafButton |
| int | myLoadedLeaveFileCount |
Protected Attributes inherited from makVrv::DtPersistenceToolbarWidget | |
| 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 |
Static Protected Attributes | |
| static bool | myShowMergeDialog |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtPersistenceControlsInterface | |
| boost::signalslib::signal< void()> | signal_saveDefaults |
| Signal emitted when the user wants to save to a default file. More... | |
| boost::signalslib::signal< void()> | signal_restoreDefaults |
| Signal emitted when the user wants to load the default file. More... | |
| boost::signalslib::signal< void()> | signal_restoreFactoryDefaults |
| Signal emitted when the user wants to load the factory settings file. More... | |
| boost::signalslib::signal< void()> | signal_defaultsAboutToBeRestored |
| Signal emitted right before the defaults are about to be restored to the settings backup object. More... | |
| boost::signalslib::signal< void()> | signal_defaultsRestored |
| Signal emitted when the defaults have been restored via the settings backup object. More... | |
| boost::signalslib::signal< void()> | signal_factoryDefaultsAboutToBeRestored |
| Signal emitted when factory is about to be restored via the settings backup object. More... | |
| boost::signalslib::signal< void()> | signal_factoryDefaultsRestored |
| Signal emitted when factory has been restored via the settings backup object. More... | |
| boost::signalslib::signal< void()> | signal_export |
| Signal emitted when the user wants to export to a file. More... | |
| boost::signalslib::signal< void()> | signal_import |
| Signal emitted when the user wants to import. More... | |
| boost::signalslib::signal< void()> | signal_exportSelected |
| Signal emitted when the user wants to export selected item(s) to a file. More... | |
| boost::signalslib::signal< void()> | signal_exportHier |
| Signal emitted when the user wants to export an element definition hierarchy to a file. More... | |
| boost::signalslib::signal< void()> | signal_saveAll |
| Signal emitted when the user wants to export all item(s) More... | |
| boost::signalslib::signal< void()> | signal_reload |
| Reloads all hier and leaf files in editor. More... | |
| boost::signalslib::signal< void()> | signal_exportLeaves |
| Signal emitted when the user wants to export element definition leaves to a file. More... | |
| boost::signalslib::signal< void()> | signal_exportSelectedLeaves |
| Signal emitted when the user wants to export selected element definition leaves to a file. More... | |
| boost::signalslib::signal< void()> | signal_merge |
| Signal emitted when the user wants to merge. More... | |
| boost::signalslib::signal < void(const std::string &)> | signal_importFilenameChosen |
| Signal emitted when the user has chosen a filename to import from. More... | |
| boost::signalslib::signal < void(const std::string &)> | signal_mergeFilenameChosen |
| Signal emitted when the user has chosen a filename to merge from. More... | |
| boost::signalslib::signal < void(const std::string &)> | signal_exportFilenameChosen |
| Signal emitted when the user has chosen a filename to export to. More... | |
| boost::signalslib::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::signalslib::signal < void(const std::string &)> | signal_exportAllFilenamesChosen |
| Signal emitted when the user has chosen a filename to export. More... | |
| boost::signalslib::signal < void(const std::string &)> | signal_exportLeafFilenameChosen |
| Signal emitted when the user has chosen a filename to export the leaf element definitions to. More... | |
This class overrides the DtPersistenceToolbarWidget to provide specific functionality needed by the DtObserverMode.
| makVrv::DtDefinitionPersistenceWidget::DtDefinitionPersistenceWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Ask for a filename to import to fileFilter is the desired extension with no dot.
Reimplemented from makVrv::DtPersistenceToolbarWidget.
|
virtual |
Ask for a filename to export to fileFilter is the desired extension with no dot.
Reimplemented from makVrv::DtPersistenceToolbarWidget.
|
virtual |
Ask for a filename to export to fileFilter is the desired extension with no dot.
Reimplemented from makVrv::DtPersistenceToolbarWidget.
|
virtual |
Ask for a filename to export the element definition hierarchy fileFilter is the desired extension with no dot.
Reimplemented from makVrv::DtPersistenceToolbarWidget.
|
virtual |
Get the file names of all definitions from both the hier and leaf files, then exports them all to their respective file locations.
Reimplemented from makVrv::DtPersistenceToolbarWidget.
|
virtual |
Ask for a filename to export the element definition leaves fileFilter is the desired extension with no dot.
Reimplemented from makVrv::DtPersistenceToolbarWidget.
|
virtual |
Ask for a filename to merge from fileFilter is the desired extension with no dot.
Reimplemented from makVrv::DtPersistenceToolbarWidget.
|
virtual |
Sets whether or not export hierarchy button is enabled.
Initially enabled.
|
virtual |
Quick way to disable/enable all buttons.
Reimplemented from makVrv::DtPersistenceToolbarWidget.
|
virtual |
show the messabge box to remind the user to import leave before import hireachy(for entity,unit,tactical graphics)
Reimplemented from makVrv::DtPersistenceControlsInterface.
|
virtual |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |