VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiAggregateLoadoutsElement.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2018 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
13 
14 #if !defined(Q_MOC_RUN)
17 #endif
18 
20 class DtRwPropertyString;
21 class QToolButton;
22 
24 {
25  Q_OBJECT
26 
27 public:
30 
32  virtual ~DtUiAggregateLoadoutsElement() override;
33 
35 
36 protected:
37  virtual void updateEnableStatus() override;
38 
39  virtual bool initForPossibleMultiMap(DtRwPropertiesMap*) override;
40 
41  virtual void updateAvailableItems();
42  virtual void removeSystem(DtComponentSystemDefinition*);
43 
44  virtual void initializeCombo(DtUiTableWidgetComboBox*) override;
45  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
46  virtual std::string type() const override { return "Loadouts"; };
47 
48  virtual void processUiEvent(const DtUiElementEvent& e) override;
49  virtual void fillInTableFromSelection(DtReaderWriter* rw) override;
50 
51  virtual DtAssembliesReaderWriter::RwRootNode* rootNodeFor(const std::string& keyword) const override;
52  virtual DtAssembliesReaderWriter::RwRootNode* rollupRootNodeFor(const std::string& keyword) const override;
53  virtual DtAssembliesReaderWriter::RwRootNode* addAssemblyItem(const std::string& keyword) const;
54  virtual void updateContainedItemsIcon();
55  virtual void containedItemSelected() override;
56 
57 protected slots:
58 
59  virtual void setDefaultLoadout();
60 
61 protected:
62  struct LoadoutItem
63  {
65  LoadoutItem(const DtString& c, const DtString& t) : category(c), type(t) {};
66  LoadoutItem(const LoadoutItem& orig) : category(orig.category), type(orig.type) {};
67 
68  DtString category;
70  };
71 
72  std::map<std::string, std::string> mySystemLoadoutItems;
73  std::map<std::string, LoadoutItem> myLoadoutItems;
74 
76 
79 };
Definition: uiAggregateElements.h:42
Definition: uiPropertiesTable.h:135
virtual void processUiEvent(const DtUiElementEvent &e) override
Process ui event. Default does nothing.
virtual bool initForPossibleMultiMap(DtRwPropertiesMap *)
std::map< std::string, LoadoutItem > myLoadoutItems
Definition: uiAggregateLoadoutsElement.h:73
Definition: uiAggregateLoadoutsElement.h:62
virtual DtAssembliesReaderWriter::RwRootNode * rootNodeFor(const std::string &keyword) const =0
Definition: uiAggregateLoadoutsElement.h:23
Definition: readerWriter.h:85
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: assembliesReaderWriter.h:31
std::map< std::string, std::string > mySystemLoadoutItems
Definition: uiAggregateLoadoutsElement.h:72
Definition: rwProperty.h:272
LoadoutItem(const LoadoutItem &orig)
Definition: uiAggregateLoadoutsElement.h:66
virtual void containedItemSelected()
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:27
LoadoutItem()
Definition: uiAggregateLoadoutsElement.h:64
virtual void setFromParameters(const std::vector< DtReaderWriter * > &parentRw) override
static DtUiElement * CreatorFunction(makVrv::DtDe &)
virtual void updateEnableStatus()
DtRwString * myModifiedDefaultLoadout
Definition: uiAggregateLoadoutsElement.h:77
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Acts as a map for properties. A map is a definition that has a key and a prototype, with values being the key and prototype pair. The key can only be a string (DtRwStringType), int (DtRwIntType, DtRwInt8Type, DtRwInt16Type, DtRwInt32Type), or real (DtRwRealType, DtRwReal32Type, DtRwReal64Type).
Definition: rwPropertiesMap.h:41
virtual DtAssembliesReaderWriter::RwRootNode * rollupRootNodeFor(const std::string &keyword) const
Base class to provide boost signal/slot management.
makVrv::DtSignalConnectionManager myConnections
Definition: uiAggregateLoadoutsElement.h:78
LoadoutItem(const DtString &c, const DtString &t)
Definition: uiAggregateLoadoutsElement.h:65
QToolButton * mySetDefaultLoadout
Definition: uiAggregateLoadoutsElement.h:75
DtString type
Definition: uiAggregateLoadoutsElement.h:69
virtual void fillInTableFromSelection(DtReaderWriter *rw) override
The DtUiElement class is the base for which all UI elements are defined. If you wish to create a new ...
Definition: uiElement.h:97
virtual void initializeCombo(DtUiTableWidgetComboBox *)=0
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
virtual std::string type() const override
Definition: uiAggregateLoadoutsElement.h:46
#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

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)