VR-Forces Developer's Guide
 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) 2021 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 std::string queryExportFilePathString(DtDe& de, const std::string& importType,
44  const std::string& path, const std::string& fileFilter) = 0;
45 
48  virtual void queryExportHierFilePath(DtDe& de, const std::string& importType,
49  const std::string& path, const std::string& fileFilter) = 0;
50 
53  virtual void queryExportAllFilePaths(DtDe& de, const std::string& importType,
54  const std::string& path, const std::string& fileFilter) = 0;
55 
58  virtual void queryExportLeafFilePath(DtDe& de, const std::string& importType,
59  const std::string& path, const std::string& fileFilter) = 0;
60 
62  virtual void setSaveButtonShown(bool) = 0;
63 
65  virtual void setSeparatorShown(bool) = 0;
66 
70  virtual void setMergeShown(bool) = 0;
71 
74  virtual void setExportShown(bool) = 0;
75 
78  virtual void setImportShown(bool) = 0;
79 
81  virtual void setExportEnabled(bool) = 0;
82 
86  virtual void setMergeEnabled(bool) = 0;
87 
91  virtual void setSaveDefaultsEnabled(bool) = 0;
92 
95  virtual void setImportEnabled(bool) = 0;
96 
99  virtual void setExportSelectedEnabled(bool) = 0;
100 
103  virtual void setBackupRestoreEnabled(bool) = 0;
104 
107  virtual void setFactoryRestoreEnabled(bool) = 0;
108 
115  virtual void setBackup(DtBackupInterface* backup, bool showFactoryButton) = 0;
116 
118  virtual void disableAllButtons(bool) = 0;
119 
121  virtual void activateSaveDefaults() = 0;
122 
126  virtual int activateRememberToExport(bool& dontShowAgain);
127 
131  virtual bool showImportLeavesFirstBox();
132 
133  public:
135  boost::signalslib::signal<void ()> signal_saveDefaults;
136 
138  boost::signalslib::signal<void ()> signal_restoreDefaults;
139 
142  boost::signalslib::signal<void ()> signal_restoreFactoryDefaults;
143 
146  boost::signalslib::signal<void ()> signal_defaultsAboutToBeRestored;
147 
150  boost::signalslib::signal<void ()> signal_defaultsRestored;
151 
154  boost::signalslib::signal<void ()> signal_factoryDefaultsAboutToBeRestored;
155 
158  boost::signalslib::signal<void ()> signal_factoryDefaultsRestored;
159 
162  boost::signalslib::signal<void ()> signal_export;
163 
165  boost::signalslib::signal<void ()> signal_import;
166 
169  boost::signalslib::signal<void ()> signal_exportSelected;
170 
173  boost::signalslib::signal<void()> signal_exportHier;
174 
177  boost::signalslib::signal<void()> signal_saveAll;
178 
180  boost::signalslib::signal<void()> signal_reload;
181 
184  boost::signalslib::signal<void()> signal_exportLeaves;
185 
188  boost::signalslib::signal<void()> signal_exportSelectedLeaves;
189 
191  boost::signalslib::signal<void ()> signal_merge;
192 
194  boost::signalslib::signal<void (const std::string&)> signal_importFilenameChosen;
195 
197  boost::signalslib::signal<void (const std::string&)> signal_mergeFilenameChosen;
198 
200  boost::signalslib::signal<void (const std::string&)> signal_exportFilenameChosen;
201 
204  boost::signalslib::signal<void(const std::string&)> signal_exportHierFilenameChosen;
205 
208  boost::signalslib::signal<void(const std::string&)> signal_exportAllFilenamesChosen;
209 
212  boost::signalslib::signal<void(const std::string&)> signal_exportLeafFilenameChosen;
213  };
214 }
boost::signalslib::signal< void()> signal_reload
Reloads all hier and leaf files in editor.
Definition: DtPersistenceControlsInterface.h:180
boost::signalslib::signal< void()> signal_defaultsRestored
Signal emitted when the defaults have been restored via the settings backup object.
Definition: DtPersistenceControlsInterface.h:150
boost::signalslib::signal< void(const std::string &)> signal_importFilenameChosen
Signal emitted when the user has chosen a filename to import from.
Definition: DtPersistenceControlsInterface.h:194
boost::signalslib::signal< void()> signal_exportSelectedLeaves
Signal emitted when the user wants to export selected element definition leaves to a file...
Definition: DtPersistenceControlsInterface.h:188
boost::signalslib::signal< void()> signal_factoryDefaultsRestored
Signal emitted when factory has been restored via the settings backup object.
Definition: DtPersistenceControlsInterface.h:158
boost::signalslib::signal< void(const std::string &)> signal_mergeFilenameChosen
Signal emitted when the user has chosen a filename to merge from.
Definition: DtPersistenceControlsInterface.h:197
boost::signalslib::signal< void()> signal_export
Signal emitted when the user wants to export to a file.
Definition: DtPersistenceControlsInterface.h:162
boost::signalslib::signal< void()> signal_merge
Signal emitted when the user wants to merge.
Definition: DtPersistenceControlsInterface.h:191
boost::signalslib::signal< void()> signal_factoryDefaultsAboutToBeRestored
Signal emitted when factory is about to be restored via the settings backup object.
Definition: DtPersistenceControlsInterface.h:154
boost::signalslib::signal< void(const std::string &)> signal_exportFilenameChosen
Signal emitted when the user has chosen a filename to export to.
Definition: DtPersistenceControlsInterface.h:200
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
Abstract interface for controlling persistence of state in a dialog.
Definition: DtPersistenceControlsInterface.h:20
boost::signalslib::signal< void()> signal_exportLeaves
Signal emitted when the user wants to export element definition leaves to a file. ...
Definition: DtPersistenceControlsInterface.h:184
boost::signalslib::signal< void()> signal_exportHier
Signal emitted when the user wants to export an element definition hierarchy to a file...
Definition: DtPersistenceControlsInterface.h:173
boost::signalslib::signal< void()> signal_import
Signal emitted when the user wants to import.
Definition: DtPersistenceControlsInterface.h:165
boost::signalslib::signal< void()> signal_restoreFactoryDefaults
Signal emitted when the user wants to load the factory settings file.
Definition: DtPersistenceControlsInterface.h:142
boost::signalslib::signal< void()> signal_exportSelected
Signal emitted when the user wants to export selected item(s) to a file.
Definition: DtPersistenceControlsInterface.h:169
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...
Definition: DtPersistenceControlsInterface.h:204
boost::signalslib::signal< void()> signal_saveDefaults
Signal emitted when the user wants to save to a default file.
Definition: DtPersistenceControlsInterface.h:135
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
boost::signalslib::signal< void()> signal_saveAll
Signal emitted when the user wants to export all item(s)
Definition: DtPersistenceControlsInterface.h:177
boost::signalslib::signal< void(const std::string &)> signal_exportAllFilenamesChosen
Signal emitted when the user has chosen a filename to export.
Definition: DtPersistenceControlsInterface.h:208
boost::signalslib::signal< void()> signal_restoreDefaults
Signal emitted when the user wants to load the default file.
Definition: DtPersistenceControlsInterface.h:138
The backup interface, is used by components to control backups of a state.
Definition: DtBackupInterface.h:19
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...
Definition: DtPersistenceControlsInterface.h:212
boost::signalslib::signal< void()> signal_defaultsAboutToBeRestored
Signal emitted right before the defaults are about to be restored to the settings backup object...
Definition: DtPersistenceControlsInterface.h:146

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)