VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregateEngagementsPage.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 #include <QLabel>
16 
17 class QTabWidget;
18 
19 namespace makVrf
20 {
21  namespace makVrfGuiObjectInformationQt
22  {
24  {
25  public:
26  DtAggregateEngagementsTab(makVrv::DtDe&, QWidget* parent,
27  const QString& treeLabel, bool showAttrition, bool isPseudoAggregate);
28 
29  virtual ~DtAggregateEngagementsTab();
30 
31  QWidget* widget()
32  {
33  return myWidget;
34  }
35 
36  QStandardItemModel* model()
37  {
38  return myModel;
39  }
40 
41  QLabel* attritionLabel()
42  {
43  return myAttritionLabel;
44  }
45 
46  bool isPseudoAggregate() const
47  {
48  return myIsPseudoAggregate;
49  }
50 
51  void clear()
52  {
53  myModel->removeRows(0, myModel->rowCount());
54  if(myAttritionLabel)
55  {
56  myAttritionLabel->setText("");
57  }
58  }
59 
60  public:
61  QWidget* myWidget;
64  QStandardItemModel* myModel;
65 
66  protected:
68  };
69 
71  {
72  Q_OBJECT
73 
74  public:
75 
77  DtAggregateEngagementsPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
78 
80  virtual ~DtAggregateEngagementsPage();
81 
83  virtual QIcon icon();
84 
86  virtual QString title();
87 
89  virtual const std::string& pageClassName() const;
90 
92  static const std::string& thePageClassName();
93 
94  virtual DtInformationDialogPageLogic* createLogic();
95 
98 
100  {
101  return myAttacks;
102  }
103 
105  {
106  return myDefenses;
107  }
108 
109  bool isPseudoAggregate() const
110  {
111  return myIsPseudoAggregate;
112  }
113 
114  virtual QWidget* widgetRepresentation(QWidget* parent, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* state);
115 
116  virtual bool selectElement(const std::string& str);
117  virtual bool isSubElementSelected(const std::string& str) const;
118 
119  protected:
120  virtual void activate();
121  virtual void deactivate();
122  virtual QWidget* createPageContents(ShowStatus&);
123 
124  virtual QWidget* createAttacksTab();
125  virtual QWidget* createDefensesTab();
126 
127  public:
129 
132 
133  protected:
135  };
136 
139  }
140 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)