VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiGuiAmmunitionSpecificInformation.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 QComboBox;
15 class QListWidget;
16 class QToolButton;
18 class QHBoxLayout;
19 
20 namespace makVrf
21 {
22  class DtEntityMapperKey;
23 }
24 
27 
31 {
32  Q_OBJECT
33 
34 public:
35 
38 
40  virtual ~DtUiGuiAmmunitionWarhead();
41 
43 
44 protected:
45  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
46 
48  virtual void createControls(QWidget* widget);
49 
50 protected slots:
51  virtual void warheadChanged();
52 
53 public:
55 };
56 
60 {
61  Q_OBJECT
62 
63 public:
64 
67 
70 
72 
73 protected:
74  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
75 
77  virtual void createControls(QWidget* widget);
78 
79  virtual void addUsedBySystem(DtComponentSystemDefinition* def);
80 
81  virtual void decorateElement();
82 
83 protected slots:
84  virtual void itemDoubleClicked();
85 
86 public:
87  QListWidget* mySystems;
88 };
89 
93 {
94  Q_OBJECT
95 
96 public:
97 
100 
103 
105 
106 protected:
107  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
108 
110  virtual void createControls(QWidget* widget);
111 
112  virtual bool isModified() const;
113 
114 protected slots:
115  virtual void addTarget();
116  virtual void removeTarget();
117  virtual void editTarget();
118  virtual void changeTargetType(const makVrf::DtEntityMapperKey& newType);
119  virtual void itemSelectionChanged();
120 
121 public:
122  QHBoxLayout* myButtonLayout;
123  QListWidget* myTargets;
127 };
Definition: entityMapperKey.h:23
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.
QToolButton * myEditTargetButton
Definition: uiGuiAmmunitionSpecificInformation.h:126
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:188
QListWidget * myTargets
Definition: uiGuiAmmunitionSpecificInformation.h:123
virtual void decorateElement()
Sets element decoration depending on the isModified state of the element. This version changes myLabe...
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:25
QListWidget * mySystems
Definition: uiGuiAmmunitionSpecificInformation.h:87
QToolButton * myRemoveTargetButton
Definition: uiGuiAmmunitionSpecificInformation.h:125
virtual bool isModified() const
QHBoxLayout * myButtonLayout
Definition: uiGuiAmmunitionSpecificInformation.h:122
DtUiGuiAmmunitionApplicableTargets Targets that are applicable to the given ammunition and can be use...
Definition: uiGuiAmmunitionSpecificInformation.h:92
QComboBox * myWarheads
Definition: uiGuiAmmunitionSpecificInformation.h:54
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
QToolButton * myAddTargetButton
Definition: uiGuiAmmunitionSpecificInformation.h:124
This file will contain multiple classes which are responsible for changing elements of the ammunition...
Definition: uiGuiAmmunitionSpecificInformation.h:30
#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
DtUiGuiAmmunitionUsedBySystems Will show systems that this ammunition is used by. ...
Definition: uiGuiAmmunitionSpecificInformation.h:59

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)