VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtPersistenceControlsInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCoreQt/vrvCoreQt.h>
12 
13 namespace makVrv
14 {
15  class DtBackupInterface;
16 
21  {
22  public:
25 
28  virtual void queryImportFilePath(DtDe& de, const std::string& importType,
29  const std::string& path, const std::string& fileFilter) = 0;
30 
33  virtual void queryMergeFilePath(DtDe& de, const std::string& importType,
34  const std::string& path, const std::string& fileFilter) = 0;
35 
38  virtual void queryExportFilePath(DtDe& de, const std::string& importType,
39  const std::string& path, const std::string& fileFilter) = 0;
40 
43  virtual void queryExportHierFilePath(DtDe& de, const std::string& importType,
44  const std::string& path, const std::string& fileFilter) = 0;
45 
48  virtual void queryExportAllFilePaths(DtDe& de, const std::string& importType,
49  const std::string& path, const std::string& fileFilter) = 0;
50 
53  virtual void queryExportLeafFilePath(DtDe& de, const std::string& importType,
54  const std::string& path, const std::string& fileFilter) = 0;
55 
57  virtual void setSaveButtonShown(bool) = 0;
58 
60  virtual void setSeparatorShown(bool) = 0;
61 
65  virtual void setMergeShown(bool) = 0;
66 
69  virtual void setExportShown(bool) = 0;
70 
73  virtual void setImportShown(bool) = 0;
74 
76  virtual void setExportEnabled(bool) = 0;
77 
81  virtual void setMergeEnabled(bool) = 0;
82 
86  virtual void setSaveDefaultsEnabled(bool) = 0;
87 
90  virtual void setImportEnabled(bool) = 0;
91 
94  virtual void setExportSelectedEnabled(bool) = 0;
95 
98  virtual void setBackupRestoreEnabled(bool) = 0;
99 
102  virtual void setFactoryRestoreEnabled(bool) = 0;
103 
109  virtual void setBackup(DtBackupInterface*) = 0;
110 
112  virtual void disableAllButtons(bool) = 0;
113 
115  virtual void activateSaveDefaults() = 0;
116 
120  virtual int activateRememberToExport(bool& dontShowAgain);
121 
125  virtual bool showImportLeavesFirstBox();
126 
127  public:
129  boost::signal<void ()> signal_saveDefaults;
130 
132  boost::signal<void ()> signal_restoreDefaults;
133 
136  boost::signal<void ()> signal_restoreFactoryDefaults;
137 
140  boost::signal<void ()> signal_defaultsAboutToBeRestored;
141 
144  boost::signal<void ()> signal_defaultsRestored;
145 
149 
152  boost::signal<void ()> signal_factoryDefaultsRestored;
153 
156  boost::signal<void ()> signal_export;
157 
159  boost::signal<void ()> signal_import;
160 
163  boost::signal<void ()> signal_exportSelected;
164 
167  boost::signal<void()> signal_exportHier;
168 
171  boost::signal<void()> signal_saveAll;
172 
175  boost::signal<void()> signal_exportLeaves;
176 
179  boost::signal<void()> signal_exportSelectedLeaves;
180 
182  boost::signal<void ()> signal_merge;
183 
185  boost::signal<void (const std::string&)> signal_importFilenameChosen;
186 
188  boost::signal<void (const std::string&)> signal_mergeFilenameChosen;
189 
191  boost::signal<void (const std::string&)> signal_exportFilenameChosen;
192 
195  boost::signal<void(const std::string&)> signal_exportHierFilenameChosen;
196 
199  boost::signal<void(const std::string&)> signal_exportAllFilenamesChosen;
200 
203  boost::signal<void(const std::string&)> signal_exportLeafFilenameChosen;
204  };
205 }
boost::signal< void()> signal_factoryDefaultsRestored
Signal emitted when factory has been restored via the settings backup object.
Definition: DtPersistenceControlsInterface.h:152
boost::signal< void()> signal_export
Signal emitted when the user wants to export to a file.
Definition: DtPersistenceControlsInterface.h:156
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
boost::signal< void()> signal_saveAll
Signal emitted when the user wants to export all item(s)
Definition: DtPersistenceControlsInterface.h:171
Contains DLL export macros.
boost::signal< void()> signal_exportHier
Signal emitted when the user wants to export an element definition hierarchy to a file...
Definition: DtPersistenceControlsInterface.h:167
boost::signal< void(const std::string &)> signal_exportHierFilenameChosen
Signal emitted when the user has chosen a filename to export the hierarchy element definitions to...
Definition: DtPersistenceControlsInterface.h:195
Abstract interface for controlling persistence of state in a dialog.
Definition: DtPersistenceControlsInterface.h:20
boost::signal< void()> signal_restoreFactoryDefaults
Signal emitted when the user wants to load the factory settings file.
Definition: DtPersistenceControlsInterface.h:136
boost::signal< void(const std::string &)> signal_exportFilenameChosen
Signal emitted when the user has chosen a filename to export to.
Definition: DtPersistenceControlsInterface.h:191
boost::signal< void(const std::string &)> signal_mergeFilenameChosen
Signal emitted when the user has chosen a filename to merge from.
Definition: DtPersistenceControlsInterface.h:188
boost::signal< void()> signal_merge
Signal emitted when the user wants to merge.
Definition: DtPersistenceControlsInterface.h:182
boost::signal< void(const std::string &)> signal_exportLeafFilenameChosen
Signal emitted when the user has chosen a filename to export the leaf element definitions to...
Definition: DtPersistenceControlsInterface.h:203
boost::signal< void()> signal_exportSelectedLeaves
Signal emitted when the user wants to export selected element definition leaves to a file...
Definition: DtPersistenceControlsInterface.h:179
boost::signal< void(const std::string &)> signal_importFilenameChosen
Signal emitted when the user has chosen a filename to import from.
Definition: DtPersistenceControlsInterface.h:185
boost::signal< void()> signal_import
Signal emitted when the user wants to import.
Definition: DtPersistenceControlsInterface.h:159
boost::signal< void()> signal_saveDefaults
Signal emitted when the user wants to save to a default file.
Definition: DtPersistenceControlsInterface.h:129
boost::signal< void()> signal_defaultsRestored
Signal emitted when the defaults have been restored via the settings backup object.
Definition: DtPersistenceControlsInterface.h:144
boost::signal< void()> signal_factoryDefaultsAboutToBeRestored
Signal emitted when factory is about to be restored via the settings backup object.
Definition: DtPersistenceControlsInterface.h:148
boost::signal< void()> signal_restoreDefaults
Signal emitted when the user wants to load the default file.
Definition: DtPersistenceControlsInterface.h:132
boost::signal< void()> signal_exportSelected
Signal emitted when the user wants to export selected item(s) to a file.
Definition: DtPersistenceControlsInterface.h:163
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
boost::signal< void(const std::string &)> signal_exportAllFilenamesChosen
Signal emitted when the user has chosen a filename to export.
Definition: DtPersistenceControlsInterface.h:199
boost::signal< void()> signal_exportLeaves
Signal emitted when the user wants to export element definition leaves to a file. ...
Definition: DtPersistenceControlsInterface.h:175
The backup interface, is used by components to control backups of a state.
Definition: DtBackupInterface.h:22
boost::signal< void()> signal_defaultsAboutToBeRestored
Signal emitted right before the defaults are about to be restored to the settings backup object...
Definition: DtPersistenceControlsInterface.h:140

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)