VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
environmentControlArea.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
16 #include <vrvCoreQt/DtToolbar.h>
19 #include <matrix/geodeticCoord.h>
20 
21 #include <matrix/geodeticCoord.h>
22 
23 #include <QtWidgets/QWidget>
24 
25 class QHBoxLayout;
26 class QLabel;
27 class QToolButton;
28 class QTimer;
29 
30 namespace makVrv
31 {
32  class DtDe;
33 }
34 
35 namespace makVrf
36 {
37  class DtVrfBackendState;
38  class DtEnvironmentControlAreaLogic;
39 
43  {
44  public:
45 
48 
51 
53  virtual QToolBar* createToolbar(makVrv::DtDe&, QWidget* parent);
54 
55  };
56 
59  {
60  Q_OBJECT
61 
62  public:
64  DtEnvironmentControlAreaWidget( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
65 
68 
73  void updateEnabledStatus();
74 
75  virtual void updateWeatherIcon();
76 
77  protected:
79  void setupUi(QWidget* p);
80 
81  virtual void updateTimeZone();
82 
84  virtual void setTimeOfDay(int hours, int mins, int secs);
85 
87  virtual void setDateAndTimeOfDay(int year, int month, int day, int hours, int mins, int secs);
88 
91  virtual bool eventFilter(QObject* obj, QEvent * event);
92 
94  virtual void slot_backendUpdated(const DtVrfBackendState&, int);
95 
96  virtual void setIllumination(double, int sunState, const std::string&);
97 
98  virtual void showEvent(QShowEvent *);
99  virtual void hideEvent(QHideEvent *);
100 
101  protected slots:
102 
103  virtual void updateTimeOfDay();
104 
105  public:
106  QHBoxLayout* myMainLayout;
110 
111  protected:
117  DtGeodeticCoord myEyepoint;
118  };
119 
121  {
122 
123  public:
124 
126 
128 
129  virtual QWidget* create( makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
130  };
131 }
132 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)