VR-Forces 5.0.2 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 
25 
29 {
30  Q_OBJECT
31 
32 public:
33 
36 
38  virtual ~DtUiGuiLabel();
39 
41 
42 protected:
43  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
44 
46  virtual void createControls(QWidget* widget);
47 
48  virtual void elementChanged();
49 
50  virtual bool isModified() const;
51 
52 public:
54 };
55 
59 {
60  Q_OBJECT
61 
62 public:
63 
66 
68  virtual ~DtUiGuiKeywords();
69 
71 
72 protected:
73  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
74 
76  virtual void createControls(QWidget* widget);
77 
78  virtual void elementChanged();
79 
80  virtual bool isModified() const;
81 
82 public:
84 };
85 
89 {
90  Q_OBJECT
91 
92 public:
93 
96 
98  virtual ~DtUiPlatformUsed();
99 
101 
102 protected:
103  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
104 
106  virtual void createControls(QWidget* widget);
107 
108 public:
110 };
111 
115 {
116  Q_OBJECT
117 
118 public:
119 
122 
124  virtual ~DtUiGuiEntityFile();
125 
127 
128 protected:
129  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
130 
132  virtual void createControls(QWidget* widget);
133 
134 public:
136 };
137 
141 {
142  Q_OBJECT
143 
144 public:
145 
148 
150  virtual ~DtUiEntityEnumeration();
151 
153 
154  virtual void toggleDisplayed(bool display);
155 
156 protected:
157  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
158 
160  virtual void createControls(QWidget* widget);
161 
162  virtual QWidget* createAndInitEnumerationWidget(QWidget* parent);
163 
164  virtual bool isModified() const;
165 
166 protected slots:
167  virtual void typeChanged(const makVrf::DtEntityMapperKey&, bool applyToSubordinates);
168  virtual void typeChangedWithMatchingType(const makVrf::DtEntityMapperKey&,
169  const makVrf::DtEntityMapperKey&, std::list<makVrf::DtEntityMapperKey> additionalMatchTypes,
170  bool applyToSubordinates);
171 
172 protected:
174 
175 public:
177 };
178 
182 {
183 public:
186 
189 
191 
192  virtual void setControllingCheckBox(QCheckBox*);
193  virtual void enableIfChecked();
194  virtual void disableIfChecked();
195 
196 protected:
197  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
199  const makVrf::DtEntityMapperKey&, std::list<makVrf::DtEntityMapperKey> additionalMatchTypes,
200  bool applyToSubordinates);
201 };
202 
206 {
207  Q_OBJECT
208 
209 public:
210 
213 
215  virtual ~DtUiCanCreateObject();
216 
218 
219 protected:
220  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
221 
223  virtual void createControls(QWidget* widget);
224 
225  virtual bool isModified() const;
226  virtual void decorateElement();
227 
228 protected slots:
229  virtual void createChanged();
230 
231 public:
233 };
234 
238 {
239  Q_OBJECT
240 
241 public:
242 
245 
247  virtual ~DtUiCanAggregate();
248 
250 
251 protected:
252  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
253 
255  virtual void createControls(QWidget* widget);
256 
257  virtual bool isModified() const;
258  virtual void decorateElement();
259 
260  protected slots:
261  virtual void canAggregateChanged();
262 
263 public:
265 };
266 
270 {
271  Q_OBJECT
272 
273 public:
274 
277 
279  virtual ~DtUiGuiCreatePalette();
280 
282 
283 protected:
284  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
285 
287  virtual void createControls(QWidget* widget);
288 
289  virtual bool isModified() const;
290 
291 protected slots:
292  virtual void onPaletteChanged();
293 
294 public:
296 };
297 
301 {
302  Q_OBJECT
303 
304 public:
305 
308 
310  virtual ~DtUiGuiDefaultOverlay();
311 
313 
314 protected:
315  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
316 
318  virtual void createControls(QWidget* widget);
319 
320  virtual bool isModified() const;
321 
322 protected slots:
323  virtual void onDefaultOverlayLayerChanged();
324 
325 public:
327 };
328 
332 {
333  Q_OBJECT
334 
335 public:
336 
339 
341  virtual ~DtUiSimulationObjectTags();
342 
344 
345 protected:
346  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
347 
349  virtual void createControls(QWidget* widget);
350 
351  virtual bool isModified() const;
352  virtual void decorateElement();
353 
354  virtual QWidget* createAndInitCategories(QWidget*);
355 
356 protected slots:
357  virtual void categoriesChanged();
358 
359 public:
361 };
362 
366 {
367  Q_OBJECT
368 
369 public:
370 
373 
376 
378 
379 protected:
380  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
381 
383  virtual void createControls(QWidget* widget);
384 
385  virtual bool isModified() const;
386  virtual void decorateElement();
387 
388  virtual QWidget* createAndInitDeployableCountries(QWidget*);
389 
390  protected slots:
391  virtual void deployableCountriesChanged();
392 
393 public:
395 };
396 
400 {
401  Q_OBJECT
402 
403 public:
404 
407 
409  virtual ~DtUiGuiMenuIcon();
410 
412 
413 protected:
414  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
415 
417  virtual void createControls(QWidget* widget);
418 
419  virtual bool isModified() const;
420 
421  protected slots:
422  virtual void onSelectMenuIcon();
423  virtual void onClearMenuIcon();
424 
425 public:
429 };
430 
434 {
435  Q_OBJECT
436 
437 public:
438 
441 
443  virtual ~DtUiGuiIconLists();
444 
446 
447 protected:
448  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
449 
451  virtual void createControls(QWidget* widget);
452 
453  virtual void processUiEvent(const DtUiElementEvent& e);
454 
455  virtual void setupIconLists();
456 
457  virtual bool isModified() const;
458  virtual void onSelectMenuIcon();
459  virtual void onClearMenuIcon();
460 
461 protected slots:
462  virtual void onIconListChanged();
463 
464 public:
466  static QString theLastSelectedIconList;
467 };
468 
472 {
473  Q_OBJECT
474 
475 public:
476 
479 
481  virtual ~DtUiGuiScrollArea();
482 
484 
485 protected:
486  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
487 
489  virtual void createControls(QWidget* widget);
490 
491  virtual void setEnabled(bool);
492 
493 public:
494  QScrollArea* myScrollArea;
495 };
QCheckBox * myCanAggregate
Definition: uiGuiSpecificInformation.h:264
Definition: entityMapperKey.h:23
virtual void onSelectMenuIcon()
makVrf::DtEntityMapperKey myOriginalObjectType
Definition: uiGuiSpecificInformation.h:173
static QString theLastSelectedIconList
Definition: uiGuiSpecificInformation.h:466
QLabel * myMenuIcon
Definition: uiGuiSpecificInformation.h:426
DtUiEntityEnumeration The enumeration of the entity selected.
Definition: uiGuiSpecificInformation.h:140
DtUiGuiEntityFile The .entity file used.
Definition: uiGuiSpecificInformation.h:114
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:494
DtCategoriesWidget * myCategories
Definition: uiGuiSpecificInformation.h:360
virtual void processUiEvent(const DtUiElementEvent &)
Process ui event. Default does nothing.
Definition: uiElement.h:231
virtual void setControllingCheckBox(QCheckBox *)
QLineEdit * myPlatform
Definition: uiGuiSpecificInformation.h:109
This file will contain multiple classes which are responsible for changing elements of the model entr...
Definition: uiGuiSpecificInformation.h:28
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:185
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:433
DtUiPlatformUsed The platform (ope) used by this object.
Definition: uiGuiSpecificInformation.h:88
virtual void decorateElement()
Sets element decoration depending on the isModified state of the element. This version changes myLabe...
static DtUiElement * CreatorFunction(makVrv::DtDe &)
DtUiGuiDefaultOverlay The default overlay this VRF published item will appear on. Only applied to VRF...
Definition: uiGuiSpecificInformation.h:300
QLineEdit * myGuiLabel
Definition: uiGuiSpecificInformation.h:53
QToolButton * myClearMenuIcon
Definition: uiGuiSpecificInformation.h:428
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:181
DtUiCanAggregate Whether or not this item shows up in the aggregate as dialog.
Definition: uiGuiSpecificInformation.h:237
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:427
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:205
QLineEdit * myGuiKeywords
Definition: uiGuiSpecificInformation.h:83
QComboBox * myIconLists
Definition: uiGuiSpecificInformation.h:465
virtual void setEnabled(bool)
If this item is not enabled it cannot be modified.
DtUiGuiScrollArea Puts element into a scroll area.
Definition: uiGuiSpecificInformation.h:471
QComboBox * myOnPalette
Definition: uiGuiSpecificInformation.h:295
static DtUiElement * CreatorFunction(makVrv::DtDe &)
DtUiGuiKeywords The keywords that can be used for an object.
Definition: uiGuiSpecificInformation.h:58
Definition: categoriesWidget.h:49
DtUiGuiCreatePalette The creation palette this object will appear on.
Definition: uiGuiSpecificInformation.h:269
DtUiSimulationObjectTags The tags that are assigned to this simulation object.
Definition: uiGuiSpecificInformation.h:331
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:70
DtUiSimulationObjectCountries The deployable countries that are assigned to this simulation object...
Definition: uiGuiSpecificInformation.h:365
DtEnumerationWidget * myEnumerationSelectionWidget
Definition: uiGuiSpecificInformation.h:176
QCheckBox * myCreate
Definition: uiGuiSpecificInformation.h:232
virtual void setFromParameters(const std::vector< DtReaderWriter * > &parentRw)
DtDeployableCountriesWidget * myDeployableCountries
Definition: uiGuiSpecificInformation.h:394
#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:180
QComboBox * myDefaultOverlayLayer
Definition: uiGuiSpecificInformation.h:326
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:399
QLineEdit * myEntityFile
Definition: uiGuiSpecificInformation.h:135
virtual bool isModified() const

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)