VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
aggregateSuppliesPage.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
13 #include <QTreeView>
14 #include <QStandardItemModel>
15 
16 class QTabWidget;
17 class QLabel;
18 class QTreeWidget;
19 
20 namespace makVrf
21 {
22  namespace makVrfGuiObjectInformationQt
23  {
25  {
26  public:
28 
29  virtual ~DtAggregateSuppliesTab();
30 
31  QWidget* widget()
32  {
33  return myTree;
34  }
35 
36  QTreeView* tree()
37  {
38  return myTree;
39  }
40 
41  QStandardItemModel* model()
42  {
43  return myModel;
44  }
45 
46  void clear()
47  {
48  myModel->removeRows(0, myModel->rowCount());
49  }
50 
51  protected:
52 
55  QStandardItemModel* myModel;
56  };
57 
59  {
60  public:
62 
63  virtual ~DtAggregateAmmunitionTab();
64 
65  QWidget* widget()
66  {
67  return myTree;
68  }
69 
70  QTreeView* tree()
71  {
72  return myTree;
73  }
74 
75  QStandardItemModel* model()
76  {
77  return myModel;
78  }
79 
80  void clear()
81  {
82  myModel->removeRows(0, myModel->rowCount());
83  }
84 
85  protected:
86 
88  QStandardItemModel* myModel;
89  };
90 
92  {
93  Q_OBJECT
94 
95  public:
96 
98  DtAggregateSuppliesPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
99 
101  virtual ~DtAggregateSuppliesPage();
103  virtual QIcon icon();
104 
106  virtual QString title();
107 
109  virtual const std::string& pageClassName() const;
110 
112  static const std::string& thePageClassName();
113 
114  virtual bool selectElement(const std::string&);
115 
117  virtual bool isSubElementSelected(const std::string&) const;
118 
119  virtual DtInformationDialogPageLogic* createLogic();
120 
122  {
123  return mySupplies;
124  }
125 
127  virtual ShowStatus setupGui(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* s);
128 
130  {
131  return myAmmunition;
132  }
133 
134  QTreeWidget* suppliers()
135  {
136  return mySuppliers;
137  }
138 
139  virtual void setResupplyModeText(const QString&);
140 
141  protected:
142  virtual void activate();
143  virtual void deactivate();
144  virtual QWidget* createPageContents(ShowStatus&);
145 
146  virtual QWidget* createSuppliesTab();
147  virtual QWidget* createAmmunitionTab();
148  virtual QWidget* createSuppliersTab();
149 
150  public:
152 
156 
159  };
160 
163  }
164 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)