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();
40 
42 
43 protected:
44  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
45 
47  virtual void createControls(QWidget* widget);
48 
49  virtual void elementChanged();
50 
51  virtual bool isModified() const;
52 
53 public:
55 };
56 
60 {
61  Q_OBJECT
62 
63 public:
64 
67 
69  virtual ~DtUiGuiDescription();
70 
72 
73  virtual void setEnabled(bool) override;
74  virtual bool eventFilter(QObject*, QEvent*) override;
75 
76  virtual bool isModified() const;
77 
78 protected:
79  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
80 
82  virtual void createControls(QWidget* widget);
83 
84  virtual void elementChanged();
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();
107 
109 
110 protected:
111  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
112 
114  virtual void createControls(QWidget* widget);
115 
116  virtual void elementChanged();
117 
118  virtual bool isModified() const;
119 
120 public:
122 };
123 
127 {
128  Q_OBJECT
129 
130 public:
131 
134 
136  virtual ~DtUiPlatformUsed();
137 
139 
140 protected:
141  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
142 
144  virtual void createControls(QWidget* widget);
145 
146 public:
148 };
149 
153 {
154  Q_OBJECT
155 
156 public:
157 
160 
162  virtual ~DtUiGuiEntityFile();
163 
165 
166 protected:
167  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
168 
170  virtual void createControls(QWidget* widget);
171 
172 public:
174 };
175 
179 {
180  Q_OBJECT
181 
182 public:
183 
186 
188  virtual ~DtUiEntityEnumeration();
189 
191 
192  virtual void toggleDisplayed(bool display);
193 
194 protected:
195  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
196 
198  virtual void createControls(QWidget* widget);
199 
200  virtual QWidget* createAndInitEnumerationWidget(QWidget* parent);
201 
202  virtual bool isModified() const;
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 
227 
229 
230  virtual void setControllingCheckBox(QCheckBox*);
231  virtual void enableIfChecked();
232  virtual void disableIfChecked();
233 
234 protected:
235  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
237  const makVrf::DtEntityMapperKey&, std::list<makVrf::DtEntityMapperKey> additionalMatchTypes,
238  bool applyToSubordinates);
239 };
240 
244 {
245  Q_OBJECT
246 
247 public:
248 
251 
253  virtual ~DtUiCanCreateObject();
254 
256 
257 protected:
258  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
259 
261  virtual void createControls(QWidget* widget);
262 
263  virtual bool isModified() const;
264  virtual void decorateElement();
265 
266 protected slots:
267  virtual void createChanged();
268 
269 public:
271 };
272 
276 {
277  Q_OBJECT
278 
279 public:
280 
283 
285  virtual ~DtUiCanAggregate();
286 
288 
289 protected:
290  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
291 
293  virtual void createControls(QWidget* widget);
294 
295  virtual bool isModified() const;
296  virtual void decorateElement();
297 
298  protected slots:
299  virtual void canAggregateChanged();
300 
301 public:
303 };
304 
308 {
309  Q_OBJECT
310 
311 public:
312 
315 
317  virtual ~DtUiSimulationObjectTags();
318 
320 
321 protected:
322  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
323 
325  virtual void createControls(QWidget* widget);
326 
327  virtual bool isModified() const;
328  virtual void decorateElement();
329 
330  virtual QWidget* createAndInitCategories(QWidget*);
331 
332 protected slots:
333  virtual void categoriesChanged();
334 
335 public:
337 };
338 
342 {
343  Q_OBJECT
344 
345 public:
346 
349 
352 
354 
355 protected:
356  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
357 
359  virtual void createControls(QWidget* widget);
360 
361  virtual bool isModified() const;
362  virtual void decorateElement();
363 
364  virtual QWidget* createAndInitDeployableCountries(QWidget*);
365 
366  protected slots:
367  virtual void deployableCountriesChanged();
368 
369 public:
371 };
372 
376 {
377  Q_OBJECT
378 
379 public:
380 
383 
385  virtual ~DtUiGuiMenuIcon();
386 
388 
389 protected:
390  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
391 
393  virtual void createControls(QWidget* widget);
394 
395  virtual bool isModified() const;
396 
397  protected slots:
398  virtual void onSelectMenuIcon();
399  virtual void onClearMenuIcon();
400 
401 public:
405 };
406 
410 {
411  Q_OBJECT
412 
413 public:
414 
417 
419  virtual ~DtUiGuiIconLists();
420 
422 
423 protected:
424  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
425 
427  virtual void createControls(QWidget* widget);
428 
429  virtual void processUiEvent(const DtUiElementEvent& e);
430 
431  virtual void setupIconLists();
432 
433  virtual bool isModified() const;
434  virtual void onSelectMenuIcon();
435  virtual void onClearMenuIcon();
436 
437 protected slots:
438  virtual void onIconListChanged();
439 
440 public:
442  static QString theLastSelectedIconList;
443 };
444 
448 {
449  Q_OBJECT
450 
451 public:
452 
455 
457  virtual ~DtUiGuiScrollArea();
458 
460 
461 protected:
462  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
463 
465  virtual void createControls(QWidget* widget);
466 
467  virtual void setEnabled(bool);
468 
469 public:
470  QScrollArea* myScrollArea;
471 };
QCheckBox * myCanAggregate
Definition: uiGuiSpecificInformation.h:302
Definition: entityMapperKey.h:23
virtual void onSelectMenuIcon()
makVrf::DtEntityMapperKey myOriginalObjectType
Definition: uiGuiSpecificInformation.h:211
static QString theLastSelectedIconList
Definition: uiGuiSpecificInformation.h:442
QLabel * myMenuIcon
Definition: uiGuiSpecificInformation.h:402
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)
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:470
DtCategoriesWidget * myCategories
Definition: uiGuiSpecificInformation.h:336
virtual void processUiEvent(const DtUiElementEvent &)
Process ui event. Default does nothing.
Definition: uiElement.h:234
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:188
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:409
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 &)
QLineEdit * myGuiLabel
Definition: uiGuiSpecificInformation.h:54
QToolButton * myClearMenuIcon
Definition: uiGuiSpecificInformation.h:404
virtual void createControls(QWidget *widget)
If any additional controls or initialization needs to be done, it is done here.
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:275
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:403
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:243
QLineEdit * myGuiKeywords
Definition: uiGuiSpecificInformation.h:121
QComboBox * myIconLists
Definition: uiGuiSpecificInformation.h:441
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:447
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:307
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:72
DtUiSimulationObjectCountries The deployable countries that are assigned to this simulation object...
Definition: uiGuiSpecificInformation.h:341
DtEnumerationWidget * myEnumerationSelectionWidget
Definition: uiGuiSpecificInformation.h:214
QCheckBox * myCreate
Definition: uiGuiSpecificInformation.h:270
virtual void setFromParameters(const std::vector< DtReaderWriter * > &parentRw)
DtDeployableCountriesWidget * myDeployableCountries
Definition: uiGuiSpecificInformation.h:370
#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:183
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:375
QLineEdit * myEntityFile
Definition: uiGuiSpecificInformation.h:173
virtual bool isModified() const

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)