VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
includeFilesEditor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 
14 #include <QtWidgets/QDialog>
15 #include <QtCore/QStringList>
16 
17 #include <set>
18 #include <map>
19 
20 class QPushButton;
21 class QToolButton;
22 class QLabel;
23 class QHBoxLayout;
24 class QCheckBox;
25 class QVBoxLayout;
26 class QFrame;
27 
28 namespace makVrv
29 {
30  class DtDe;
31 }
32 
33 namespace makVrf
34 {
35  class DtFileListWidget;
36 }
37 
39 {
40  Q_OBJECT
41 
42 public:
44  virtual ~DtIncludeFilesWidget() override;
45 
46  virtual void setFiles(const QStringList&);
47  virtual QStringList smsFiles() const;
48  virtual void setStartingDirectory(const QString&);
49  virtual void setPathsRelativeToApplication(bool);
50 
51  void setCheckAgainstOpenedSMS(bool b) { myCheckAgainstOpenedSMS = b; };
52 
53 protected slots:
54  virtual void itemSelectionChanged();
55  virtual void onMoveUp();
56  virtual void onMoveDown();
57  virtual void modelSetFilesChanged(const QStringList&);
58 
59 signals:
60  void filesChanged(const QStringList&);
61 
62 protected:
65 
66 public:
73  QHBoxLayout* myButtonLayout;
74 };
75 
78 {
79  Q_OBJECT
80 
81 public:
82  DtIncludeFilesEditor(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = Qt::Tool);
83  virtual ~DtIncludeFilesEditor() override;
84 
85  virtual QStringList smsFiles() const;
86 
87  virtual bool smsFilesChanged() const;
88 
89 protected slots:
90  virtual void onFilesChanged(const QStringList&);
91  virtual void updateOKButton();
92 
93 protected:
95 
96 public:
97  QVBoxLayout* myMainLayout;
100  QHBoxLayout* myButtonLayout;
103 
104 protected:
105  QStringList mySmsFiles;
106 };
107 
110 {
111 public:
114 
116  virtual ~DtIncludeFilesEditorCreator() override;
117 
119  static DtIncludeFilesEditorCreator& instance(makVrv::DtDe&);
120 
122  static void registerInstance(makVrv::DtDe&, DtIncludeFilesEditorCreator*);
123 
125  virtual DtIncludeFilesEditor* create(QWidget* parent);
126 
127 protected:
129 };
130 
133 
136 {
137  Q_OBJECT
138 
139 public:
140  DtPropertiesEditor(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = Qt::Tool);
141  virtual ~DtPropertiesEditor() override;
142 
143  virtual bool readOnly();
144  virtual void setReadOnly(bool);
145 
146 protected:
147  virtual void updateOKButton() override;
148 
149 protected slots:
150  virtual void readOnlyChanged();
151 
152 public:
155 
156 protected:
158 };
159 
162 {
163 public:
166 
168  virtual ~DtPropertiesEditorCreator() override;
169 
171  static DtPropertiesEditorCreator& instance(makVrv::DtDe&);
172 
174  static void registerInstance(makVrv::DtDe&, DtPropertiesEditorCreator*);
175 
177  virtual DtPropertiesEditor* create(QWidget* parent);
178 
179 protected:
181 };
QToolButton * myMoveUp
Definition: includeFilesEditor.h:70
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
This class will allow editing of the simulation model sets included.
Definition: includeFilesEditor.h:77
bool myReadOnlyFlag
Definition: includeFilesEditor.h:157
Properties editor extends the include files editor to also allow the editing of the read only flag...
Definition: includeFilesEditor.h:135
Creator for the DtIncludeFilesEditor.
Definition: includeFilesEditor.h:109
DtIncludeFilesWidget * myIncludeFiles
Definition: includeFilesEditor.h:102
QLabel * myLabel
Definition: includeFilesEditor.h:101
QPushButton * myCancelButton
Definition: includeFilesEditor.h:99
makVrv::DtDe & myDe
Definition: includeFilesEditor.h:63
void setCheckAgainstOpenedSMS(bool b)
Definition: includeFilesEditor.h:51
virtual void updateOKButton()
Contains makVrv::DtVirtualBaseClass class.
QToolButton * myAdd
Definition: includeFilesEditor.h:68
QHBoxLayout * myButtonLayout
Definition: includeFilesEditor.h:73
QToolButton * myMoveDown
Definition: includeFilesEditor.h:71
Creator for the DtPropertiesEditor.
Definition: includeFilesEditor.h:161
makVrv::DtDe & myDe
Definition: includeFilesEditor.h:180
makVrf::DtFileListWidget * myIncludeFiles
Definition: includeFilesEditor.h:67
bool myCheckAgainstOpenedSMS
Definition: includeFilesEditor.h:64
QToolButton * myRemove
Definition: includeFilesEditor.h:69
QHBoxLayout * myButtonLayout
Definition: includeFilesEditor.h:100
QLabel * myTitle
Definition: includeFilesEditor.h:72
makVrv::DtDe & myDe
Definition: includeFilesEditor.h:94
QVBoxLayout * myMainLayout
Definition: includeFilesEditor.h:97
Widget version of the dialog. Use this class if you want the file selection in another dialog...
Definition: fileListDialog.h:125
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
QCheckBox * myReadOnly
Definition: includeFilesEditor.h:153
QStringList mySmsFiles
Definition: includeFilesEditor.h:105
QFrame * mySeparator
Definition: includeFilesEditor.h:154
Definition: includeFilesEditor.h:38
QPushButton * myOKButton
Definition: includeFilesEditor.h:98
makVrv::DtDe & myDe
Definition: includeFilesEditor.h:128
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33

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)