VR-Forces 5.0.3 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 
33 
35 
36 protected:
37 
39 
40  virtual void updateAvailableItems();
41  virtual void removeSystem(DtComponentSystemDefinition*);
42 
44  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
45  virtual std::string type() const { return "Loadouts"; };
46 
47  virtual void processUiEvent(const DtUiElementEvent& e);
48  virtual void fillInTableFromSelection(DtReaderWriter* rw);
49 
50  virtual DtAssembliesReaderWriter::RwRootNode* rootNodeFor(const std::string& keyword) const;
51  virtual DtAssembliesReaderWriter::RwRootNode* rollupRootNodeFor(const std::string& keyword) const;
52  virtual DtAssembliesReaderWriter::RwRootNode* addAssemblyItem(const std::string& keyword) const;
53  virtual void updateContainedItemsIcon();
54 
55 protected slots:
56 
57  virtual void setDefaultLoadout();
58 
59 protected:
60  struct LoadoutItem
61  {
63  LoadoutItem(const DtString& c, const DtString& t) : category(c), type(t) {};
64  LoadoutItem(const LoadoutItem& orig) : category(orig.category), type(orig.type) {};
65 
66  DtString category;
68  };
69 
70  std::map<std::string, std::string> mySystemLoadoutItems;
71  std::map<std::string, LoadoutItem> myLoadoutItems;
72 
74 
77 };
virtual void processUiEvent(const DtUiElementEvent &e)
Process ui event. Default does nothing.
virtual void fillInTableFromSelection(DtReaderWriter *rw)
Definition: uiAggregateElements.h:15
Definition: uiPropertiesTable.h:130
virtual bool initForPossibleMultiMap(DtRwPropertiesMap *)
std::map< std::string, LoadoutItem > myLoadoutItems
Definition: uiAggregateLoadoutsElement.h:71
Definition: uiAggregateLoadoutsElement.h:60
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:70
Definition: rwProperty.h:220
LoadoutItem(const LoadoutItem &orig)
Definition: uiAggregateLoadoutsElement.h:64
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:25
LoadoutItem()
Definition: uiAggregateLoadoutsElement.h:62
static DtUiElement * CreatorFunction(makVrv::DtDe &)
DtRwString * myModifiedDefaultLoadout
Definition: uiAggregateLoadoutsElement.h:75
virtual std::string type() const
Definition: uiAggregateLoadoutsElement.h:45
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:76
LoadoutItem(const DtString &c, const DtString &t)
Definition: uiAggregateLoadoutsElement.h:63
QToolButton * mySetDefaultLoadout
Definition: uiAggregateLoadoutsElement.h:73
DtString type
Definition: uiAggregateLoadoutsElement.h:67
virtual void setFromParameters(const std::vector< DtReaderWriter * > &parentRw)
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:70
#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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)