VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiBallisticSystemListElements.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 
17 class QTableWidget;
18 class QGridLayout;
19 class QLabel;
20 class QToolButton;
21 
27 {
28  Q_OBJECT
29 
30 public:
32  virtual ~DtUiMunitionOverrideListElement() override;
33 
35 
36  virtual void setLabelText(const QString& s) override;
37  virtual void setFromSystemParameterData(
38  const DtSystemParameterData* data,
39  const DtComponentSystemDefinition* def) override;
40 
41 protected:
42  virtual void createControls(QWidget* widget) override;
43  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
44  virtual void setFromParameters(const std::vector<DtComponentSystemDefinition*>& parentRw) override;
45 
46 protected slots:
47  void onAdd();
48  void onEdit();
49  void onRemove();
50  void onSelectionChanged();
51 
52 private:
53  void refreshRow(int row);
54 
55  QGridLayout* myLayout;
61 };
62 
69 {
70  Q_OBJECT
71 
72 public:
74  virtual ~DtUiAdditionalWeaponListElement() override;
75 
77 
78  virtual void setLabelText(const QString& s) override;
79  virtual void setFromSystemParameterData(
80  const DtSystemParameterData* data,
81  const DtComponentSystemDefinition* def) override;
82 
83 protected:
84  virtual void createControls(QWidget* widget) override;
85  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
86  virtual void setFromParameters(const std::vector<DtComponentSystemDefinition*>& parentRw) override;
87 
88 protected slots:
89  void onAdd();
90  void onEdit();
91  void onRemove();
92  void onSelectionChanged();
93 
94 private:
95  void refreshRow(int row);
96 
97  QGridLayout* myLayout;
103 };
QToolButton * myRemoveButton
Definition: uiBallisticSystemListElements.h:101
QToolButton * myEditButton
Definition: uiBallisticSystemListElements.h:58
QToolButton * myAddButton
Definition: uiBallisticSystemListElements.h:99
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.
QGridLayout * myLayout
Definition: uiBallisticSystemListElements.h:55
QLabel * myTitleLabel
Definition: uiBallisticSystemListElements.h:98
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:198
QToolButton * myEditButton
Definition: uiBallisticSystemListElements.h:100
QToolButton * myAddButton
Definition: uiBallisticSystemListElements.h:57
Reader/Writer class which specifies the contents of a DtComponentSystem. This lists the sensors...
Definition: componentSystemDefinition.h:31
QLabel * myTitleLabel
Definition: uiBallisticSystemListElements.h:56
QTableWidget * myTable
Definition: uiBallisticSystemListElements.h:102
QGridLayout * myLayout
Definition: uiBallisticSystemListElements.h:97
Editable table widget that displays and allows editing of entries in a DtBallisticMunitionOverrideLis...
Definition: uiBallisticSystemListElements.h:26
Editable table widget that displays and allows editing of entries in a DtAdditionalWeaponList inside ...
Definition: uiBallisticSystemListElements.h:68
QTableWidget * myTable
Definition: uiBallisticSystemListElements.h:60
Base class for RW objects that describe a system parameter. This data is used by the entity editor to...
Definition: systemParameterData.h:30
QToolButton * myRemoveButton
Definition: uiBallisticSystemListElements.h:59
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
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
virtual void setLabelText(const QString &)
Base class of the ui element class chain. Properties available through designer for all ui elements a...
Definition: uiElement.h:193
virtual void setFromSystemParameterData(const DtSystemParameterData *data, const DtComponentSystemDefinition *)
Sets data of this UiElement from the specified system parameter data. Sets things like sourceUnits...

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)