-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathNovacViewerView.h
More file actions
158 lines (118 loc) · 4.19 KB
/
NovacViewerView.h
File metadata and controls
158 lines (118 loc) · 4.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
// NovacViewerView.h : interface of the CNovacViewerView class
//
#pragma once
#include "afxwin.h"
#include "Configuration/Configuration.h"
#include "Configuration/Configuration.h"
#include "Configuration/EvaluationConfigurationDlg.h"
#include "Dialogs/ConfigurationDlg.h"
#include "EvaluatedDataStorage.h"
#include "CommunicationDataStorage.h"
#include "MeteorologicalData.h"
#include "View_OverView.h"
#include "View_WindMeasOverView.h"
#include "View_Instrument.h"
#include "View_Scanner.h"
#include "Dialogs/ChangeSelectedDateDlg.h"
#include "ResizablePropertySheet.h"
class CNovacViewerView : public CFormView
{
protected: // create from serialization only
CNovacViewerView();
DECLARE_DYNCREATE(CNovacViewerView)
public:
enum{ IDD = IDD_NOVACVIEWER_FORM };
// Attributes
public:
CNovacViewerDoc* GetDocument() const;
// Operations
public:
// Overrides
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
afx_msg void OnSize(UINT nType, int cx, int cy);
/** Fixes the layout of the components to fit the screen resolution*/
void SetLayout();
// Implementation
public:
virtual ~CNovacViewerView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
DECLARE_MESSAGE_MAP()
afx_msg LRESULT OnShowMessage(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnEvalSucess(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnChangedDate(WPARAM wParam, LPARAM lParam);
// analysis
afx_msg void OnMenuAnalysisFlux();
afx_msg void OnMenuAnalysisWind();
afx_msg void OnMenuAnalysisBrowseData();
// configuration
afx_msg void OnMenuShowConfigurationDialog();
// language
afx_msg void OnMenuSetLanguageEnglish();
afx_msg void OnMenuSetLanguageSpanish();
afx_msg void OnUpdateSetLanguageEnglish(CCmdUI *pCmdUI);
afx_msg void OnUpdateSetLanguageSpanish(CCmdUI *pCmdUI);
// units
afx_msg void OnChangeUnitOfFluxToKgS();
afx_msg void OnChangeUnitOfFluxToTonDay();
afx_msg void OnChangeUnitOfColumnToPPMM();
afx_msg void OnChangeUnitOfColumnToMolecCm2();
afx_msg void OnUpdateChangeUnitOfFluxToKgS(CCmdUI *pCmdUI);
afx_msg void OnUpdateChangeUnitOfFluxToTonDay(CCmdUI *pCmdUI);
afx_msg void OnUpdateChangeUnitOfColumnToPPMM(CCmdUI *pCmdUI);
afx_msg void OnUpdateChangeUnitOfColumnToMolecCm2(CCmdUI *pCmdUI);
public:
// --------------- DIALOG COMPONENTS ------------------------------
// the status messages
CListBox m_statusListBox;
CStatic m_statusFrame;
// the tool tips
CToolTipCtrl m_toolTip;
// The property pages
CArray<CView_Scanner *, CView_Scanner *> m_scannerPages;
// The overview page
CView_OverView *m_overView;
// The wind-measurements overview page
CView_WindMeasOverView *m_windOverView;
bool m_showWindOverView;
// The instrument page
CView_Instrument *m_instrumentView;
bool m_instrumentViewVisible; // true if the Instrument-page is shown
// The property sheet, holds the property pages
CResizablePropertySheet m_sheet;
/** */
CTabCtrl m_spectrometerTab;
/** */
CStatic m_masterFrame;
CChangeSelectedDateDlg m_dateChangeDlg;
// ---------------------- AUXILLIARY FUNCTIONS -----------------------
/** Called when the configuration file has been read */
int InitializeControls();
/** Forwards messages to the different views */
void ForwardMessage(int message, WPARAM wParam, LPARAM lParam);
private:
// --------------- DATA STRUCTURES FOR SHOWING THE EVALUATION RESULT -------------
/** This object holds all the evaluated data that we need for plotting */
CEvaluatedDataStorage *m_evalDataStorage;
/** This object holds the communication status */
CCommunicationDataStorage *m_commDataStorage;
/** A common object for doing common things */
Common m_common;
/** This class contains critical sections of code */
// CCriticalSection m_critSect;
public:
afx_msg void OnViewChangeSelectedDate();
};
#ifndef _DEBUG // debug version in NovacViewerView.cpp
inline CNovacViewerDoc* CNovacViewerView::GetDocument() const
{ return reinterpret_cast<CNovacViewerDoc*>(m_pDocument); }
#endif