VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDefinitionPersistenceWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
11 
12 #pragma once
13 
14 #include <vrvCoreQt/vrvCoreQt.h>
17 #include <QtWidgets/QDialog>
18 
19 class QButtonGroup;
20 
21 namespace makVrv
22 {
28  {
29  Q_OBJECT
30 
31  public:
32 
34  DtDefinitionPersistenceWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
35 
38 
39  virtual void restoreSelected(bool fromFactory);
40  virtual void restoreAll( bool fromFactory );
41  virtual void useDir(bool useDir);
42 
45  virtual void queryImportFilePath(DtDe& de, const std::string& importType,
46  const std::string& path, const std::string& fileFilter);
47 
50  virtual void queryExportFilePath(DtDe& de, const std::string& importType,
51  const std::string& path, const std::string& fileFilter);
52 
55  virtual std::string queryExportFilePathString(DtDe& de, const std::string& importType,
56  const std::string& path, const std::string& fileFilter);
57 
60  virtual void queryExportHierFilePath(DtDe& de, const std::string& importType,
61  const std::string& path, const std::string& fileFilter);
62 
66  virtual void queryExportAllFilePaths(DtDe& de, const std::string& importType,
67  const std::string& path, const std::string& fileFilter);
68 
71  virtual void queryExportLeafFilePath(DtDe& de, const std::string& importType,
72  const std::string& path, const std::string& fileFilter);
73 
76  virtual void queryMergeFilePath(DtDe& de, const std::string& importType,
77  const std::string& path, const std::string& fileFilter);
78 
81  virtual void setExportHierEnabled(bool b);
82 
83  virtual void disableAllButtons(bool b);
84 
88  virtual bool showImportLeavesFirstBox();
89 
90  virtual void setExportSelectedLeafButtonEnabled(bool enabled);
91 
92  protected slots:
93 
94  virtual void on_myExportHierButton_clicked();
95 
96  virtual void on_myExportLeafButton_clicked();
97 
98  virtual void on_myExportSelectedLeafButton_clicked();
99 
100  virtual void on_mySaveAllButton_clicked();
101 
102  protected:
103  void adjustGui();
104 
105  bool myUseDir;
109 
110  static bool myShowMergeDialog;
112  };
113 
118  {
119  public:
122 
125 
127  static DtDefinitionPersistenceWidgetCreator& instance(DtDe&);
128 
130  static void registerInstance(DtDe&, DtDefinitionPersistenceWidgetCreator*);
131 
132  virtual DtDefinitionPersistenceWidget* create(QWidget* parent = nullptr, Qt::WindowFlags f = 0);
133 
134  protected:
136  };
137 }
138 
139 
A widget that displays a persistence GUI in some way Operations presented are import, export, save, and restore.
Definition: DtPersistenceToolbarWidget.h:26
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
int myLoadedLeaveFileCount
Definition: DtDefinitionPersistenceWidget.h:111
QPushButton * myExportHierButton
Definition: DtDefinitionPersistenceWidget.h:106
The DtDefinitionPersistenceWidgetCreator class presents a factory creator for the DtDefinitionPersist...
Definition: DtDefinitionPersistenceWidget.h:117
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
Contains makVrv::DtVirtualBaseClass class.
bool myUseDir
Definition: DtDefinitionPersistenceWidget.h:105
QPushButton * myExportSelectedLeafButton
Definition: DtDefinitionPersistenceWidget.h:108
DtDe & myDe
Definition: DtDefinitionPersistenceWidget.h:135
This class overrides the DtPersistenceToolbarWidget to provide specific functionality needed by the D...
Definition: DtDefinitionPersistenceWidget.h:26
QPushButton * myExportLeafButton
Definition: DtDefinitionPersistenceWidget.h:107
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:70
static bool myShowMergeDialog
Definition: DtDefinitionPersistenceWidget.h:110

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)