VR-Forces 4.10 Class Documentation
 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)
16 #endif
17 
19 class DtRwPropertyString;
20 
22 {
23  Q_OBJECT
24 
25 public:
28 
31 
33 
34 protected:
35 
37 
38  virtual void updateAvailableItems();
39  virtual void removeSystem(DtComponentSystemDefinition*);
40 
42  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
43  virtual std::string type() const { return "Loadouts"; };
44 
45  virtual void processUiEvent(const DtUiElementEvent& e);
46  virtual void fillInTableFromSelection(DtReaderWriter* rw);
47 
48  virtual DtAssembliesReaderWriter::RwRootNode* rootNodeFor(const std::string& keyword) const;
49  virtual DtAssembliesReaderWriter::RwRootNode* rollupRootNodeFor(const std::string& keyword) const;
50  virtual DtAssembliesReaderWriter::RwRootNode* addAssemblyItem(const std::string& keyword) const;
51 
52 protected slots:
53 
54  virtual void setDefaultLoadout();
55 
56 protected:
57  struct LoadoutItem
58  {
60  LoadoutItem(const DtString& c, const DtString& t) : category(c), type(t) {};
61  LoadoutItem(const LoadoutItem& orig) : category(orig.category), type(orig.type) {};
62 
63  DtString category;
65  };
66 
67  std::map<std::string, std::string> mySystemLoadoutItems;
68  std::map<std::string, LoadoutItem> myLoadoutItems;
69 
71 
74 };
virtual void processUiEvent(const DtUiElementEvent &e)
Process ui event. Default does nothing.
virtual void fillInTableFromSelection(DtReaderWriter *rw)
Definition: uiAggregateElements.h:15
Definition: uiPropertiesTable.h:141
virtual bool initForPossibleMultiMap(DtRwPropertiesMap *)
std::map< std::string, LoadoutItem > myLoadoutItems
Definition: uiAggregateLoadoutsElement.h:68
Definition: uiAggregateLoadoutsElement.h:57
QPushButton * mySetDefaultLoadout
Definition: uiAggregateLoadoutsElement.h:70
virtual DtAssembliesReaderWriter::RwRootNode * rootNodeFor(const std::string &keyword) const =0
Definition: uiAggregateLoadoutsElement.h:21
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:67
Definition: rwProperty.h:214
LoadoutItem(const LoadoutItem &orig)
Definition: uiAggregateLoadoutsElement.h:61
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:25
LoadoutItem()
Definition: uiAggregateLoadoutsElement.h:59
static DtUiElement * CreatorFunction(makVrv::DtDe &)
DtRwString * myModifiedDefaultLoadout
Definition: uiAggregateLoadoutsElement.h:72
virtual std::string type() const
Definition: uiAggregateLoadoutsElement.h:43
Acts as a map for properties.
Definition: rwPropertiesMap.h:41
QIcon myDefaultIcon
Definition: uiAggregateLoadoutsElement.h:73
virtual DtAssembliesReaderWriter::RwRootNode * rollupRootNodeFor(const std::string &keyword) const
LoadoutItem(const DtString &c, const DtString &t)
Definition: uiAggregateLoadoutsElement.h:60
DtString type
Definition: uiAggregateLoadoutsElement.h:64
virtual void setFromParameters(const std::vector< DtReaderWriter * > &parentRw)
The DtUiElement class is the base for which all UI elements are defined.
Definition: uiElement.h:95
virtual void initializeCombo(DtUiTableWidgetComboBox *)=0
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:32
Base class of the ui element class chain.
Definition: uiElement.h:172

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)