VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiGuiSpecificInformation.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2018 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
11 
12 #include <vlutil/vlFilename.h>
13 
14 class QCheckBox;
15 class QLineEdit;
17 class QComboBox;
18 class DtCategoriesWidget;
20 class QToolButton;
21 class QScrollArea;
22 class QTextBrowser;
23 
26 
30 {
31  Q_OBJECT
32 
33 public:
34 
37 
39  virtual ~DtUiGuiLabel() override;
40 
42 
43 protected:
44  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
45 
47  virtual void createControls(QWidget* widget) override;
48 
49  virtual void elementChanged() override;
50 
51  virtual bool isModified() const override;
52 
53 public:
55 };
56 
60 {
61  Q_OBJECT
62 
63 public:
64 
67 
69  virtual ~DtUiGuiDescription() override;
70 
72 
73  virtual void setEnabled(bool) override;
74  virtual bool eventFilter(QObject*, QEvent*) override;
75 
76  virtual bool isModified() const override;
77 
78 protected:
79  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
80 
82  virtual void createControls(QWidget* widget) override;
83 
84  virtual void elementChanged() override;
85 
86 protected slots:
87  virtual void changeEditMode();
88 
89 public:
90  QTextBrowser* myGuiDescription;
92 };
93 
97 {
98  Q_OBJECT
99 
100 public:
101 
104 
106  virtual ~DtUiGuiKeywords() override;
107 
109 
110 protected:
111  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
112 
114  virtual void createControls(QWidget* widget) override;
115 
116  virtual void elementChanged() override;
117 
118  virtual bool isModified() const override;
119 
120 public:
122 };
123 
127 {
128  Q_OBJECT
129 
130 public:
131 
134 
136  virtual ~DtUiPlatformUsed() override;
137 
139 
140 protected:
141  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
142 
144  virtual void createControls(QWidget* widget) override;
145 
146 public:
148 };
149 
153 {
154  Q_OBJECT
155 
156 public:
157 
160 
162  virtual ~DtUiGuiEntityFile() override;
163 
165 
166 protected:
167  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
168 
170  virtual void createControls(QWidget* widget) override;
171 
172 public:
174 };
175 
179 {
180  Q_OBJECT
181 
182 public:
183 
186 
188  virtual ~DtUiEntityEnumeration() override;
189 
191 
192  virtual void toggleDisplayed(bool display) override;
193 
194 protected:
195  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
196 
198  virtual void createControls(QWidget* widget) override;
199 
200  virtual QWidget* createAndInitEnumerationWidget(QWidget* parent);
201 
202  virtual bool isModified() const override;
203 
204 protected slots:
205  virtual void typeChanged(const makVrf::DtEntityMapperKey&, bool applyToSubordinates);
206  virtual void typeChangedWithMatchingType(const makVrf::DtEntityMapperKey&,
207  const makVrf::DtEntityMapperKey&, std::list<makVrf::DtEntityMapperKey> additionalMatchTypes,
208  bool applyToSubordinates);
209 
210 protected:
212 
213 public:
215 };
216 
220 {
221 public:
224 
226  virtual ~DtUiNonPropagatingEntityTypeEnumeration() override;
227 
229 
230  virtual void setControllingCheckBox(QCheckBox*) override;
231  virtual void enableIfChecked() override;
232  virtual void disableIfChecked() override;
233 
234 protected:
235  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
237  std::list<makVrf::DtEntityMapperKey> additionalMatchTypes, bool applyToSubordinates) override;
238 };
239 
243 {
244  Q_OBJECT
245 
246 public:
247 
250 
252  virtual ~DtUiCanCreateObject() override;
253 
255 
256 protected:
257  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
258 
260  virtual void createControls(QWidget* widget) override;
261 
262  virtual bool isModified() const override;
263  virtual void decorateElement() override;
264 
265 protected slots:
266  virtual void createChanged();
267 
268 public:
270 };
271 
275 {
276  Q_OBJECT
277 
278 public:
279 
282 
284  virtual ~DtUiCanAggregate() override;
285 
287 
288 protected:
289  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
290 
292  virtual void createControls(QWidget* widget) override;
293 
294  virtual bool isModified() const override;
295  virtual void decorateElement() override;
296 
297  protected slots:
298  virtual void canAggregateChanged();
299 
300 public:
302 };
303 
307 {
308  Q_OBJECT
309 
310 public:
311 
314 
316  virtual ~DtUiSimulationObjectTags() override;
317 
319 
320 protected:
321  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
322 
324  virtual void createControls(QWidget* widget) override;
325 
326  virtual bool isModified() const override;
327  virtual void decorateElement() override;
328 
329  virtual QWidget* createAndInitCategories(QWidget*);
330 
331 protected slots:
332  virtual void categoriesChanged();
333 
334 public:
336 };
337 
341 {
342  Q_OBJECT
343 
344 public:
345 
348 
350  virtual ~DtUiSimulationObjectCountries() override;
351 
353 
354 protected:
355  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
356 
358  virtual void createControls(QWidget* widget) override;
359 
360  virtual bool isModified() const override;
361  virtual void decorateElement() override;
362 
363  virtual QWidget* createAndInitDeployableCountries(QWidget*);
364 
365  protected slots:
366  virtual void deployableCountriesChanged();
367 
368 public:
370 };
371 
375 {
376  Q_OBJECT
377 
378 public:
379 
382 
384  virtual ~DtUiGuiMenuIcon() override;
385 
387 
388 protected:
389  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
390 
392  virtual void createControls(QWidget* widget) override;
393 
394  virtual bool isModified() const override;
395 
396  protected slots:
397  virtual void onSelectMenuIcon();
398  virtual void onClearMenuIcon();
399 
400 public:
404 };
405 
409 {
410  Q_OBJECT
411 
412 public:
413 
416 
418  virtual ~DtUiGuiIconLists() override;
419 
421 
422 protected:
423  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
424 
426  virtual void createControls(QWidget* widget) override;
427 
428  virtual void processUiEvent(const DtUiElementEvent& e) override;
429 
430  virtual void setupIconLists();
431 
432  virtual bool isModified() const override;
433  virtual void onSelectMenuIcon() override;
434  virtual void onClearMenuIcon() override;
435 
436 protected slots:
437  virtual void onIconListChanged();
438 
439 public:
441  static QString theLastSelectedIconList;
442 };
443 
447 {
448  Q_OBJECT
449 
450 public:
451 
454 
456  virtual ~DtUiGuiScrollArea() override;
457 
459 
460 protected:
461  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
462 
464  virtual void createControls(QWidget* widget) override;
465 
466  virtual void setEnabled(bool) override;
467 
468 public:
470 };
virtual void createControls(QWidget *widget) override
If any additional controls or initialization needs to be done, it is done here.
QCheckBox * myCanAggregate
Definition: uiGuiSpecificInformation.h:301
Definition: entityMapperKey.h:19
virtual void onSelectMenuIcon()
makVrf::DtEntityMapperKey myOriginalObjectType
Definition: uiGuiSpecificInformation.h:211
static QString theLastSelectedIconList
Definition: uiGuiSpecificInformation.h:441
QLabel * myMenuIcon
Definition: uiGuiSpecificInformation.h:401
DtUiEntityEnumeration The enumeration of the entity selected.
Definition: uiGuiSpecificInformation.h:178
DtUiGuiEntityFile The .entity file used.
Definition: uiGuiSpecificInformation.h:152
virtual void createControls(QWidget *parent)
If additional widgets or connections need to be made do it here. The parent is the myWidget member...
virtual void setFromParameters(DtReaderWriter *parentRw)
Calls setFromParameters with std::vector of parameter.
virtual void setFromParameters(const std::vector< DtReaderWriter * > &parentRw) override
virtual void toggleDisplayed(bool display)
virtual void typeChangedWithMatchingType(const makVrf::DtEntityMapperKey &, const makVrf::DtEntityMapperKey &, std::list< makVrf::DtEntityMapperKey > additionalMatchTypes, bool applyToSubordinates)
QScrollArea * myScrollArea
Definition: uiGuiSpecificInformation.h:469
DtCategoriesWidget * myCategories
Definition: uiGuiSpecificInformation.h:335
virtual void processUiEvent(const DtUiElementEvent &)
Process ui event. Default does nothing.
Definition: uiElement.h:236
virtual void setControllingCheckBox(QCheckBox *)
QLineEdit * myPlatform
Definition: uiGuiSpecificInformation.h:147
This file will contain multiple classes which are responsible for changing elements of the model entr...
Definition: uiGuiSpecificInformation.h:29
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:190
virtual void elementChanged()
DtUiGuiIconLists Show a combo box of all the availale icon lists and then allow the user to pick an i...
Definition: uiGuiSpecificInformation.h:408
DtUiPlatformUsed The platform (ope) used by this object.
Definition: uiGuiSpecificInformation.h:126
virtual void decorateElement()
Sets element decoration depending on the isModified state of the element. This version changes myLabe...
static DtUiElement * CreatorFunction(makVrv::DtDe &)
virtual bool isModified() const override
QLineEdit * myGuiLabel
Definition: uiGuiSpecificInformation.h:54
QToolButton * myClearMenuIcon
Definition: uiGuiSpecificInformation.h:403
DtUiEntityEnumeration The enumeration of the entity selected.
Definition: uiGuiSpecificInformation.h:219
DtUiCanAggregate Whether or not this item shows up in the aggregate as dialog.
Definition: uiGuiSpecificInformation.h:274
QToolButton * myEditMode
Definition: uiGuiSpecificInformation.h:91
QTextBrowser * myGuiDescription
Definition: uiGuiSpecificInformation.h:90
virtual bool isModified() const
virtual void disableIfChecked()
Connected to if the disable_if_checked property is set, and there is a matching check box for the dis...
QToolButton * mySelectMenuIcon
Definition: uiGuiSpecificInformation.h:402
virtual void enableIfChecked()
Connected to if the enable_if_checked property is set, and there is a matching check box for the enab...
DtUiCanCreateObject Whether or not this object will show up on the create palette.
Definition: uiGuiSpecificInformation.h:242
virtual void setFromParameters(const std::vector< DtReaderWriter * > &parentRw) override
QLineEdit * myGuiKeywords
Definition: uiGuiSpecificInformation.h:121
QComboBox * myIconLists
Definition: uiGuiSpecificInformation.h:440
virtual void setEnabled(bool)
If this item is not enabled it cannot be modified.
DtUiGuiLabel The description that is shown on the simulation object create palette.
Definition: uiGuiSpecificInformation.h:59
DtUiGuiScrollArea Puts element into a scroll area.
Definition: uiGuiSpecificInformation.h:446
static DtUiElement * CreatorFunction(makVrv::DtDe &)
DtUiGuiKeywords The keywords that can be used for an object.
Definition: uiGuiSpecificInformation.h:96
Definition: categoriesWidget.h:49
DtUiSimulationObjectTags The tags that are assigned to this simulation object.
Definition: uiGuiSpecificInformation.h:306
Definition: enumerationWidget.h:24
virtual void onClearMenuIcon()
The DtUiElement class is the base for which all UI elements are defined. If you wish to create a new ...
Definition: uiElement.h:97
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
DtUiSimulationObjectCountries The deployable countries that are assigned to this simulation object...
Definition: uiGuiSpecificInformation.h:340
DtEnumerationWidget * myEnumerationSelectionWidget
Definition: uiGuiSpecificInformation.h:214
QCheckBox * myCreate
Definition: uiGuiSpecificInformation.h:269
DtDeployableCountriesWidget * myDeployableCountries
Definition: uiGuiSpecificInformation.h:369
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
Base class of the ui element class chain. Properties available through designer for all ui elements a...
Definition: uiElement.h:185
DtDeployableCountriesWidget.
Definition: categoriesWidget.h:126
DtUiGuiMenuIcon If used, an icon to show for this item on the create palette rather than the mil std ...
Definition: uiGuiSpecificInformation.h:374
QLineEdit * myEntityFile
Definition: uiGuiSpecificInformation.h:173

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)