VR-Forces 4.8 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 
21 {
22  Q_OBJECT
23 
24 public:
27 
30 
32 
33 protected:
34  virtual void updateAvailableItems();
35  virtual void removeSystem(DtComponentSystemDefinition*);
36 
38  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
39  virtual std::string type() const { return "Loadouts"; };
40 
41  virtual void processUiEvent(const DtUiElementEvent& e);
42  virtual void fillInTableFromSelection(DtReaderWriter* rw);
43 
44  virtual DtAssembliesReaderWriter::RwRootNode* rootNodeFor(const std::string& keyword) const;
45  virtual DtAssembliesReaderWriter::RwRootNode* rollupRootNodeFor(const std::string& keyword) const;
46  virtual DtAssembliesReaderWriter::RwRootNode* addAssemblyItem(const std::string& keyword) const;
47 
48 protected:
49  struct LoadoutItem
50  {
52  LoadoutItem(const DtString& c, const DtString& t) : category(c), type(t) {};
53  LoadoutItem(const LoadoutItem& orig) : category(orig.category), type(orig.type) {};
54 
55  DtString category;
57  };
58 
59  std::map<std::string, std::string> mySystemLoadoutItems;
60  std::map<std::string, LoadoutItem> myLoadoutItems;
61 };
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
std::map< std::string, LoadoutItem > myLoadoutItems
Definition: uiAggregateLoadoutsElement.h:60
Definition: uiAggregateLoadoutsElement.h:49
virtual DtAssembliesReaderWriter::RwRootNode * rootNodeFor(const std::string &keyword) const =0
Definition: uiAggregateLoadoutsElement.h:20
Definition: readerWriter.h:85
Definition: assembliesReaderWriter.h:31
std::map< std::string, std::string > mySystemLoadoutItems
Definition: uiAggregateLoadoutsElement.h:59
LoadoutItem(const LoadoutItem &orig)
Definition: uiAggregateLoadoutsElement.h:53
DtComponentSystemDefinition.
Definition: componentSystemDefinition.h:25
LoadoutItem()
Definition: uiAggregateLoadoutsElement.h:51
static DtUiElement * CreatorFunction(makVrv::DtDe &)
virtual std::string type() const
Definition: uiAggregateLoadoutsElement.h:39
virtual DtAssembliesReaderWriter::RwRootNode * rollupRootNodeFor(const std::string &keyword) const
LoadoutItem(const DtString &c, const DtString &t)
Definition: uiAggregateLoadoutsElement.h:52
DtString type
Definition: uiAggregateLoadoutsElement.h:56
virtual void setFromParameters(const std::vector< DtReaderWriter * > &parentRw)
The DtUiElement class is the base for which all UI elements are defined.
Definition: uiElement.h:92
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:169

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)