VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
airBaseReadinessPage.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 #include <QTreeView>
14 #include <QStandardItemModel>
15 
16 class QVBoxLayout;
17 class QGridLayout;
18 
19 namespace makVrf
20 {
21  namespace makVrfGuiObjectInformationQt
22  {
23  class DtAggregateSuppliesTab;
24 
26  {
27  Q_OBJECT
28 
29  public:
30 
32  DtAirBaseReadinessPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
33 
35  virtual ~DtAirBaseReadinessPage() override;
37  virtual QIcon icon() override;
38 
41  virtual makVrv::DtQIconConfigurations qIconConfigurations() const override;
42 
44  virtual QString title() override;
45 
47  virtual const std::string& pageClassName() const override;
48 
50  static const std::string& thePageClassName();
51 
52  virtual DtInformationDialogPageLogic* createLogic() override;
53 
55  virtual ShowStatus setupGui(DtSimObjectReference s) override;
56 
58  {
59  return myHangarCapacity;
60  }
61 
63  {
64  return myApronArea;
65  }
66 
67  virtual void setCrewTotal(int);
68  virtual void setCrewInHangar(int current, int needed);
69  virtual void setCrewOnApron(int current, int needed);
70 
71  protected:
72  virtual void activate() override;
73  virtual void deactivate() override;
74  virtual QWidget* createPageContents(DtInformationDialogPage::ShowStatus& status) override;
75  virtual QWidget* createHangarTab();
76  virtual QWidget* createApronTab();
77 
78  public:
81 
82  QWidget* myMainCanvas;
83  QVBoxLayout* myCanvasLayout;
84 
85  QGridLayout* myCrewLayout;
92  };
93 
96  }
97 }
makVrv::DtPageCreatorTemplate< DtAirBaseReadinessPage > DtAirBaseReadinessPageCreator
Definition: airBaseReadinessPage.h:95
DtAggregateSuppliesTab * apronArea()
Definition: airBaseReadinessPage.h:62
QVBoxLayout * myCanvasLayout
Definition: airBaseReadinessPage.h:83
DtAggregateSuppliesTab * myApronArea
Definition: airBaseReadinessPage.h:80
QLabel * myCrewApron
Definition: airBaseReadinessPage.h:91
QLabel * myCrewHangar
Definition: airBaseReadinessPage.h:89
QWidget * myMainCanvas
Definition: airBaseReadinessPage.h:82
Definition: DtPage.h:181
DtAggregateSuppliesTab * myHangarCapacity
Definition: airBaseReadinessPage.h:79
Contains makVrv::DtInformationDialogPage class.
QLabel * myCrewTotal
Definition: airBaseReadinessPage.h:87
DtAggregateSuppliesTab * hangarCapacity()
Definition: airBaseReadinessPage.h:57
QLabel * myCrewTotalLabel
Definition: airBaseReadinessPage.h:86
QLabel * myCrewApronLabel
Definition: airBaseReadinessPage.h:90
QGridLayout * myCrewLayout
Definition: airBaseReadinessPage.h:85
#define DT_DLL_VRFGUIOBJECTINFORMATIONQT
Contains DLL export macros.
Definition: vrfGuiObjectInformationQt.h:24
ShowStatus
Definition: informationDialogPage.h:264
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:76
A collection of icon configurations. The collection maintains flags indicating whether to generate ic...
Definition: DtQIconConfiguration.h:131
QLabel * myCrewHangarLabel
Definition: airBaseReadinessPage.h:88

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)