VR-Forces 4.8 Class Documentation
 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>
16 #include <QtWidgets/QDialog>
17 
18 class QButtonGroup;
19 
20 namespace makVrv
21 {
27  {
28  Q_OBJECT
29 
30  public:
31 
33  DtDefinitionPersistenceWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
34 
37 
38  virtual void restoreSelected(bool fromFactory);
39  virtual void restoreAll( bool fromFactory );
40  virtual void useDir(bool useDir);
41 
44  virtual void queryImportFilePath(DtDe& de, const std::string& importType,
45  const std::string& path, const std::string& fileFilter);
46 
49  virtual void queryExportFilePath(DtDe& de, const std::string& importType,
50  const std::string& path, const std::string& fileFilter);
51 
54  virtual void queryExportHierFilePath(DtDe& de, const std::string& importType,
55  const std::string& path, const std::string& fileFilter);
56 
60  virtual void queryExportAllFilePaths(DtDe& de, const std::string& importType,
61  const std::string& path, const std::string& fileFilter);
62 
65  virtual void queryExportLeafFilePath(DtDe& de, const std::string& importType,
66  const std::string& path, const std::string& fileFilter);
67 
70  virtual void queryMergeFilePath(DtDe& de, const std::string& importType,
71  const std::string& path, const std::string& fileFilter);
72 
75  virtual void setExportHierEnabled(bool b);
76 
77  virtual void disableAllButtons(bool b);
78 
82  virtual bool showImportLeavesFirstBox();
83 
84  virtual void setExportSelectedLeafButtonEnabled(bool enabled);
85 
86  protected slots:
87 
88  virtual void on_myExportHierButton_clicked();
89 
90  virtual void on_myExportLeafButton_clicked();
91 
92  virtual void on_myExportSelectedLeafButton_clicked();
93 
94  virtual void on_mySaveAllButton_clicked();
95 
96  protected:
97  void adjustGui();
98 
99  bool myUseDir;
104 
105  static bool myShowMergeDialog;
107  };
108 }
109 
110 
A widget that displays a persistence GUI in some way Operations presented are import, export, save, and restore.
Definition: DtPersistenceToolbarWidget.h:26
int myLoadedLeaveFileCount
Definition: DtDefinitionPersistenceWidget.h:106
QPushButton * myExportHierButton
Definition: DtDefinitionPersistenceWidget.h:100
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
bool myUseDir
Definition: DtDefinitionPersistenceWidget.h:99
QPushButton * myExportSelectedLeafButton
Definition: DtDefinitionPersistenceWidget.h:102
This class overrides the DtPersistenceToolbarWidget to provide specific functionality needed by the D...
Definition: DtDefinitionPersistenceWidget.h:25
QPushButton * myExportLeafButton
Definition: DtDefinitionPersistenceWidget.h:101
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
static bool myShowMergeDialog
Definition: DtDefinitionPersistenceWidget.h:105
QPushButton * mySaveAllButton
Definition: DtDefinitionPersistenceWidget.h:103

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)