OpenCPN Partial API docs
Loading...
Searching...
No Matches
GribUIDialogBase.h
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version Jun 5 2014)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO "NOT" EDIT THIS FILE!
7
32#ifndef __GRIBUIDIALOGBASE_H__
33#define __GRIBUIDIALOGBASE_H__
34
35#include <wx/artprov.h>
36#include <wx/xrc/xmlres.h>
37#include <wx/intl.h>
38#include <wx/bitmap.h>
39#include <wx/image.h>
40#include <wx/icon.h>
41#include <wx/bmpbuttn.h>
42#include <wx/gdicmn.h>
43#include <wx/font.h>
44#include <wx/colour.h>
45#include <wx/settings.h>
46#include <wx/string.h>
47#include <wx/button.h>
48#include <wx/choice.h>
49#include <wx/slider.h>
50#include <wx/sizer.h>
51#include <wx/dialog.h>
52#include <wx/stattext.h>
53#include <wx/checkbox.h>
54#include <wx/textctrl.h>
55#include <wx/panel.h>
56#include <wx/spinctrl.h>
57#include <wx/statbox.h>
58#include <wx/scrolwin.h>
59#include <wx/radiobut.h>
60#include <wx/statbmp.h>
61#include <wx/notebook.h>
62#include <wx/radiobox.h>
63#include <wx/statline.h>
64#include <wx/notebook.h>
65#include <wx/treectrl.h>
66#include <wx/html/htmlwin.h>
67#include "CustomGrid.h"
68#include "XyGribPanel.h"
69
71
72// GRIBUICtrlBarBase
73#define CONTROL_BAR 1000
74#define ID_BTNPREV 1001
75#define ID_CTRLTIME 1002
76#define ID_BTNNEXT 1003
77#define ID_CTRLALTITUDE 1004
78#define ID_BTNNOW 1005
79#define ID_BTNZOOMTC 1006
80#define ID_BTNSHOWCDATA 1007
81#define ID_BTNPLAY 1008
82#define ID_TIMELINE 1009
83#define ID_BTNOPENFILE 1010
84#define ID_BTNSETTING 1011
85#define ID_BTNREQUEST 1012
86// GRIBUICDataBase
87#define CURSOR_DATA 1013
88#define ID_CB_WIND 1014
89#define ID_CB_WIND_GUSTS 1015
90#define ID_CB_PRESSURE 1016
91#define ID_CB_WAVES 1017
92#define ID_CB_CURRENT 1018
93#define ID_CB_RAINFALL 1019
94#define ID_CB_CLOUD_COVER 1020
95#define ID_CB_AIR_TEMP 1021
96#define ID_CB_SEA_TEMP 1022
97#define ID_CB_CAPE 1023
98#define ID_CB_COMP_REFL 1024
99// GribSettingsDialogBase
100#define BARBFIXSPACING 1025
101#define BARBMINSPACING 1026
102#define DIRFIXSPACING 1027
103#define DIRMINSPACING 1028
104#define NUMFIXSPACING 1029
105#define NUMMINSPACING 1030
106#define AC0 1031
107#define AC1 1032
108#define NW0 1033
109#define NW1 1034
110#define ZC0 1035
111#define ZC1 1036
112#define SCD0 1037
113#define SCD1 1038
114#define PB0 1039
115#define PB1 1040
116#define TL0 1041
117#define TL1 1042
118#define OF0 1043
119#define OF1 1044
120#define STS0 1045
121#define STS1 1046
122#define RQ0 1047
123#define RQ1 1048
124// GribRequestDialogBase
125#define MAXLAT 1049
126#define MAXLON 1050
127#define MINLAT 1051
128#define MINLON 1052
129#define MANSELECT 1053
130#define SAVEDZONE 1054
131
135class ProjectBoatPanel : public wxPanel {
136private:
137protected:
138 wxCheckBox* m_cbProjectPosition;
139 wxStaticText* m_stCourse;
140 wxTextCtrl* m_tCourse;
141 wxStaticText* m_stSpeed;
142 wxTextCtrl* m_tSpeed;
143 wxStaticText* m_stSpeedUnit;
144
145public:
146 ProjectBoatPanel(wxWindow* parent, wxWindowID id = wxID_ANY,
147 const wxPoint& pos = wxDefaultPosition,
148 const wxSize& size = wxSize(580, 40),
149 long style = wxTAB_TRAVERSAL,
150 const wxString& name = wxEmptyString);
151
153
154 double GetCourse();
155 double GetSpeed();
156 bool ProjectionEnabled();
157 void SetCourse(const double course) {
158 m_tCourse->SetValue(!wxIsNaN(course) ? wxString::FromDouble(course)
159 : "0.0");
160 };
161 void SetSpeed(const double speed) {
162 m_tSpeed->SetValue(!wxIsNaN(speed) ? wxString::FromDouble(speed) : "6.0");
163 };
164 void EnableProjection(bool enabled) {
165 m_cbProjectPosition->SetValue(enabled);
166 };
167};
168
172class GRIBUICtrlBarBase : public wxDialog {
173private:
174protected:
175 wxFlexGridSizer* m_fgCtrlBarSizer;
176 wxBitmapButton* m_bpPrev;
177 wxChoice* m_cRecordForecast;
178 wxBitmapButton* m_bpNext;
179 wxBitmapButton* m_bpNow;
180 wxBitmapButton* m_bpZoomToCenter;
181 wxBitmapButton* m_bpShowCursorData;
182 wxBitmapButton* m_bpPlay;
183 wxBitmapButton* m_bpOpenFile;
184 wxBitmapButton* m_bpSettings;
185 wxBitmapButton* m_bpRequest;
186 wxFlexGridSizer* m_fgCDataSizer;
187 wxFlexGridSizer* m_fgCtrlGrabberSize;
188 ProjectBoatPanel* m_ProjectBoatPanel;
189
190 // Virtual event handlers, overide them in your derived class
191 virtual void OnClose(wxCloseEvent& event) { event.Skip(); }
192 virtual void OnMouseEvent(wxMouseEvent& event) { event.Skip(); }
193 virtual void OnPaint(wxPaintEvent& event) { event.Skip(); }
194 virtual void OnSize(wxSizeEvent& event) { event.Skip(); }
195 virtual void OnPrev(wxCommandEvent& event) { event.Skip(); }
196 virtual void OnRecordForecast(wxCommandEvent& event) { event.Skip(); }
197 virtual void OnNext(wxCommandEvent& event) { event.Skip(); }
198 virtual void OnAltitude(wxCommandEvent& event) { event.Skip(); }
199 virtual void OnNow(wxCommandEvent& event) { event.Skip(); }
200 virtual void OnZoomToCenterClick(wxCommandEvent& event) { event.Skip(); }
201 virtual void OnShowCursorData(wxCommandEvent& event) { event.Skip(); }
202 virtual void OnPlayStop(wxCommandEvent& event) { event.Skip(); }
203 virtual void OnTimeline(wxScrollEvent& event) { event.Skip(); }
204 virtual void OnOpenFile(wxCommandEvent& event) { event.Skip(); }
205 virtual void OnSettings(wxCommandEvent& event) { event.Skip(); }
206 virtual void OnRequest(wxCommandEvent& event) { event.Skip(); }
207 virtual void OnCompositeDialog(wxCommandEvent& event) { event.Skip(); }
208
209public:
210 wxBitmapButton* m_bpAltitude;
211 wxSlider* m_sTimeline;
212
213 GRIBUICtrlBarBase(wxWindow* parent, wxWindowID id = CONTROL_BAR,
214 const wxString& title = wxEmptyString,
215 const wxPoint& pos = wxDefaultPosition,
216 const wxSize& size = wxDefaultSize,
217 long style = wxDEFAULT_DIALOG_STYLE | wxSYSTEM_MENU);
219};
220
224class GRIBUICDataBase : public wxDialog {
225private:
226protected:
227 wxFlexGridSizer* m_fgCdataSizer;
228
229public:
230 GRIBUICDataBase(wxWindow* parent, wxWindowID id = CURSOR_DATA,
231 const wxString& title = _("GRIB Display Control"),
232 const wxPoint& pos = wxDefaultPosition,
233 const wxSize& size = wxSize(-1, -1),
234 long style = wxSYSTEM_MENU | wxNO_BORDER);
236};
237
241class CursorDataBase : public wxPanel {
242private:
243protected:
244 wxFlexGridSizer* fgSizer30;
245 wxStaticText* m_stTrackingText;
246 wxFlexGridSizer* m_fgTrackingControls;
247 wxTextCtrl* m_tcWindSpeed;
248 wxTextCtrl* m_tcWindSpeedBf;
249 wxTextCtrl* m_tcWindDirection;
250 wxTextCtrl* m_tcWindGust;
251 wxTextCtrl* m_tcPressure;
252 wxTextCtrl* m_tcWaveHeight;
253 wxTextCtrl* m_tcWavePeriode;
254 wxTextCtrl* m_tcWaveDirection;
255 wxTextCtrl* m_tcCurrentVelocity;
256 wxTextCtrl* m_tcCurrentDirection;
257 wxTextCtrl* m_tcPrecipitation;
258 wxTextCtrl* m_tcCloud;
259 wxTextCtrl* m_tcAirTemperature;
260 wxTextCtrl* m_tcSeaTemperature;
261 wxTextCtrl* m_tcCAPE;
262 wxTextCtrl* m_tcReflC;
263 wxCheckBox* m_cbAltitude;
264 wxTextCtrl* m_tcAltitude;
265 wxCheckBox* m_cbTemp;
266 wxTextCtrl* m_tcTemp;
267 wxCheckBox* m_cbRelHumid;
268 wxTextCtrl* m_tcRelHumid;
269
270 // Virtual event handlers, overide them in your derived class
271 virtual void OnMouseEvent(wxMouseEvent& event) { event.Skip(); }
272 virtual void OnCBAny(wxCommandEvent& event) { event.Skip(); }
273 virtual void OnMenuCallBack(wxMouseEvent& event) { event.Skip(); }
274
275public:
276 wxCheckBox* m_cbWind;
277 wxCheckBox* m_cbWindGust;
278 wxCheckBox* m_cbPressure;
279 wxCheckBox* m_cbWave;
280 wxCheckBox* m_cbCurrent;
281 wxCheckBox* m_cbPrecipitation;
282 wxCheckBox* m_cbCloud;
283 wxCheckBox* m_cbAirTemperature;
284 wxCheckBox* m_cbSeaTemperature;
285 wxCheckBox* m_cbCAPE;
286 wxCheckBox* m_cbReflC;
287
288 CursorDataBase(wxWindow* parent, wxWindowID id = wxID_ANY,
289 const wxPoint& pos = wxDefaultPosition,
290 const wxSize& size = wxSize(-1, -1),
291 long style = wxNO_BORDER | wxTAB_TRAVERSAL);
293};
294
298class GribSettingsDialogBase : public wxDialog {
299private:
300protected:
301 wxFlexGridSizer* m_fgSetDataSizer;
302 wxChoice* m_cDataType;
303 wxChoice* m_cDataUnits;
304 wxCheckBox* m_cbBarbedArrows;
305 wxFlexGridSizer* m_fgBarbedData1;
306 wxChoice* m_cBarbedColours;
307 wxCheckBox* m_cBarbArrFixSpac;
308 wxCheckBox* m_cBarbArrMinSpac;
309 wxFlexGridSizer* m_fgBarbedData2;
310 wxCheckBox* m_cBarbedVisibility;
311 wxSpinCtrl* m_sBarbArrSpacing;
312 wxCheckBox* m_cbIsoBars;
313 wxFlexGridSizer* m_fIsoBarSpacing;
314 wxStaticText* m_tIsoBarSpacing;
315 wxSpinCtrl* m_sIsoBarSpacing;
316 wxFlexGridSizer* m_fIsoBarVisibility;
317 wxCheckBox* m_sIsoBarVisibility;
318 wxCheckBox* m_cbAbbrIsoBarsNumbers;
319 wxCheckBox* m_cbDirectionArrows;
320 wxFlexGridSizer* m_fgDirArrData1;
321 wxChoice* m_cDirectionArrowForm;
322 wxCheckBox* m_cDirArrFixSpac;
323 wxCheckBox* m_cDirArrMinSpac;
324 wxFlexGridSizer* m_fgDirArrData2;
325 wxChoice* m_cDirectionArrowSize;
326 wxSpinCtrl* m_sDirArrSpacing;
327 wxCheckBox* m_cbOverlayMap;
328 wxStaticText* m_tOverlayColors;
329 wxChoice* m_cOverlayColors;
330 wxCheckBox* m_cbNumbers;
331 wxFlexGridSizer* m_fgNumData1;
332 wxCheckBox* m_cNumFixSpac;
333 wxCheckBox* m_cNumMinSpac;
334 wxSpinCtrl* m_sNumbersSpacing;
335 wxCheckBox* m_cbParticles;
336 wxStaticText* m_ctParticles;
337 wxSlider* m_sParticleDensity;
338 wxStaticText* m_staticText24;
339 wxSlider* m_sTransparency;
340 wxFlexGridSizer* m_fgSetPlaybackSizer;
341 wxStaticText* m_staticText26;
342 wxChoice* m_cLoopStartPoint;
343 wxSlider* m_sUpdatesPerSecond;
344 wxStaticText* m_tSlicesPerUpdate;
345 wxFlexGridSizer* m_fgSetGuiSizer;
346 wxRadioButton* m_rbCurDataAttaWCap;
347 wxRadioButton* m_rbCurDataAttaWoCap;
348 wxRadioButton* m_rbCurDataIsolHoriz;
349 wxRadioButton* m_rbCurDataIsolVertic;
350 wxStaticBitmap* m_biAltitude;
351 wxStaticBitmap* m_biNow;
352 wxStaticBitmap* m_biZoomToCenter;
353 wxStaticBitmap* m_biShowCursorData;
354 wxStaticBitmap* m_biPlay;
355 wxStaticBitmap* m_biTimeSlider;
356 wxStaticBitmap* m_biOpenFile;
357 wxStaticBitmap* m_biSettings;
358 wxStaticBitmap* m_biRequest;
359
360 // Virtual event handlers, overide them in your derived class
361 virtual void OnPageChange(wxNotebookEvent& event) { event.Skip(); }
362 virtual void OnDataTypeChoice(wxCommandEvent& event) { event.Skip(); }
363 virtual void OnUnitChange(wxCommandEvent& event) { event.Skip(); }
364 virtual void OnSpacingModeChange(wxCommandEvent& event) { event.Skip(); }
365 virtual void OnTransparencyChange(wxScrollEvent& event) { event.Skip(); }
366 virtual void OnIntepolateChange(wxCommandEvent& event) { event.Skip(); }
367 virtual void OnCtrlandDataStyleChanged(wxCommandEvent& event) {
368 event.Skip();
369 }
370 virtual void OnApply(wxCommandEvent& event) { event.Skip(); }
371
372public:
373 wxNotebook* m_nSettingsBook;
374 wxCheckBox* m_cLoopMode;
375 wxCheckBox* m_cInterpolate;
376 wxChoice* m_sSlicesPerUpdate;
377 wxStdDialogButtonSizer* m_sButton;
378 wxButton* m_sButtonOK;
379 wxButton* m_sButtonApply;
380 wxButton* m_sButtonCancel;
381
382 GribSettingsDialogBase(wxWindow* parent, wxWindowID id = wxID_ANY,
383 const wxString& title = _("Settings"),
384 const wxPoint& pos = wxDefaultPosition,
385 const wxSize& size = wxSize(-1, -1),
386 long style = wxDEFAULT_DIALOG_STYLE);
388};
389
393class GribPreferencesDialogBase : public wxDialog {
394private:
395protected:
396 // Virtual event handlers, overide them in your derived class
397 virtual void OnStartOptionChange(wxCommandEvent& event) { event.Skip(); }
398 virtual void OnOKClick(wxCommandEvent& event) { event.Skip(); }
399 void OnDirSelClick(wxCommandEvent& event);
400
401public:
402 wxCheckBox* m_cbUseHiDef;
403 wxCheckBox* m_cbUseGradualColors;
404 wxCheckBox* m_cbCopyFirstCumulativeRecord;
405 wxCheckBox* m_cbCopyMissingWaveRecord;
406 wxCheckBox* m_cbDrawBarbedArrowHead;
407 wxCheckBox* m_cZoomToCenterAtInit;
408 wxRadioBox* m_rbLoadOptions;
409 wxRadioBox* m_rbStartOptions;
410 wxRadioBox* m_rbTimeFormat;
411 wxString m_grib_dir_sel;
412#ifdef __WXMSW__
413 wxSlider* m_sIconSizeFactor;
414#endif
415
416 GribPreferencesDialogBase(wxWindow* parent, wxWindowID id = wxID_ANY,
417 const wxString& title = _("Preferences"),
418 const wxPoint& pos = wxDefaultPosition,
419 const wxSize& size = wxDefaultSize,
420 long style = wxDEFAULT_DIALOG_STYLE);
422};
423
427class GribRequestSettingBase : public wxDialog {
428private:
429protected:
430 wxNotebook* m_notebookGetGrib;
431 wxPanel* m_panelWorld;
432 wxHtmlWindow* m_htmlWinWorld;
433 wxStaticText* m_staticTextInfo;
434 wxStaticText* m_stForecastLength;
435 wxChoice* m_chForecastLength;
436 wxStaticText* m_stECMWFResolution;
437 wxChoice* m_chECMWFResolution;
438 wxButton* m_btnDownloadWorld;
439 wxPanel* m_panelLocalModels;
440 wxTreeCtrl* m_SourcesTreeCtrl1;
441 wxStaticText* m_stLocalDownloadInfo;
442 wxHtmlWindow* m_htmlInfoWin;
443 wxButton* m_buttonUpdateCatalog;
444 wxButton* m_btnDownloadLocal;
445 wxPanel* m_panelEmail;
446 wxFlexGridSizer* m_fgScrollSizer;
447 wxFlexGridSizer* m_pSenderSizer;
448 wxTextCtrl* m_pSenderAddress;
449 wxChoice* m_pMailTo;
450 wxChoice* m_pModel;
451 wxCheckBox* m_cMovingGribEnabled;
452 wxFlexGridSizer* m_fgMovingParams;
453 wxSpinCtrl* m_sMovingSpeed;
454 wxSpinCtrl* m_sMovingCourse;
455 wxStaticText* m_sCourseUnit;
456 wxFlexGridSizer* m_fgLog;
457 wxTextCtrl* m_pLogin;
458 wxTextCtrl* m_pCode;
459 wxChoice* m_pResolution;
460 wxStaticText* m_tResUnit;
461 wxChoice* m_pInterval;
462 wxChoice* m_pTimeRange;
463 wxStaticText* m_staticText21;
464 wxCheckBox* m_cManualZoneSel;
465 wxFlexGridSizer* fgZoneCoordinatesSizer;
466 wxCheckBox* m_cUseSavedZone;
467 wxSpinCtrl* m_spMaxLat;
468 wxStaticText* m_stMaxLatNS;
469 wxStaticText* m_staticText36;
470 wxSpinCtrl* m_spMaxLon;
471 wxStaticText* m_stMaxLonEW;
472 wxSpinCtrl* m_spMinLat;
473 wxStaticText* m_stMinLatNS;
474 wxSpinCtrl* m_spMinLon;
475 wxStaticText* m_stMinLonEW;
476 wxCheckBox* m_pWind;
477 wxCheckBox* m_pPress;
478 wxCheckBox* m_pWindGust;
479 wxCheckBox* m_pRainfall;
480 wxCheckBox* m_pCloudCover;
481 wxCheckBox* m_pAirTemp;
482 wxCheckBox* m_pCAPE;
483 wxCheckBox* m_pReflectivity;
484 wxCheckBox* m_pSeaTemp;
485 wxCheckBox* m_pCurrent;
486 wxCheckBox* m_pWaves;
487 wxChoice* m_pWModel;
488 wxCheckBox* m_pAltitudeData;
489 wxFlexGridSizer* m_fgAltitudeData;
490 wxCheckBox* m_p850hpa;
491 wxCheckBox* m_p700hpa;
492 wxCheckBox* m_p500hpa;
493 wxCheckBox* m_p300hpa;
494 wxTextCtrl* m_MailImage;
495 wxFlexGridSizer* m_fgFixedSizer;
496 wxStaticText* m_tFileSize;
497 wxStaticText* m_tLimit;
498 wxStdDialogButtonSizer* m_rButton;
499 wxButton* m_rButtonYes;
500 wxButton* m_rButtonApply;
501 wxButton* m_rButtonCancel;
502 XyGribPanel* m_xygribPanel;
503
504 // Virtual event handlers, overide them in your derived class
505 virtual void OnClose(wxCloseEvent& event) { event.Skip(); }
506 virtual void OnNotebookPageChanged(wxNotebookEvent& event) { event.Skip(); }
507 virtual void OnWorldLengthChoice(wxCommandEvent& event) { event.Skip(); }
508 virtual void OnWorldResolutionChoice(wxCommandEvent& event) { event.Skip(); }
509 virtual void OnWorldDownload(wxCommandEvent& event) { event.Skip(); }
510 virtual void OnLocalTreeItemExpanded(wxTreeEvent& event) { event.Skip(); }
511 virtual void OnLocalTreeSelChanged(wxTreeEvent& event) { event.Skip(); }
512 virtual void OnUpdateLocalCatalog(wxCommandEvent& event) { event.Skip(); }
513 virtual void OnDownloadLocal(wxCommandEvent& event) { event.Skip(); }
514 virtual void OnTopChange(wxCommandEvent& event) { event.Skip(); }
515 virtual void OnMovingClick(wxCommandEvent& event) { event.Skip(); }
516 virtual void OnAnySpinChange(wxSpinEvent& event) { event.Skip(); }
517 virtual void OnAnyChange(wxCommandEvent& event) { event.Skip(); }
518 virtual void OnTimeRangeChange(wxCommandEvent& event) { event.Skip(); }
519 virtual void OnZoneSelectionModeChange(wxCommandEvent& event) {
520 event.Skip();
521 }
522 virtual void OnCoordinatesChange(wxSpinEvent& event) { event.Skip(); }
523 virtual void OnSaveMail(wxCommandEvent& event) { event.Skip(); }
524 virtual void OnCancel(wxCommandEvent& event) { event.Skip(); }
525 virtual void OnSendMaiL(wxCommandEvent& event) { event.Skip(); }
526 virtual void OnXyGribDownloadButton(wxCommandEvent& event) { event.Skip(); }
527 virtual void OnXyGribAtmModelChoice(wxCommandEvent& event) { event.Skip(); }
528 virtual void OnXyGribWaveModelChoice(wxCommandEvent& event) { event.Skip(); }
529 virtual void OnXyGribConfigChange(wxCommandEvent& event) { event.Skip(); }
530
531public:
532 wxScrolledWindow* m_sScrolledDialog;
533
534 GribRequestSettingBase(wxWindow* parent, wxWindowID id = wxID_ANY,
535 const wxString& title = _("Get forecast..."),
536 const wxPoint& pos = wxDefaultPosition,
537 const wxSize& size = wxSize(-1, -1),
538 long style = wxDEFAULT_DIALOG_STYLE);
540};
541
545class GRIBTableBase : public wxDialog {
546private:
547protected:
548 wxStaticText* m_pPositionText;
549 wxStaticText* m_pCursorPosition;
550
551 // Virtual event handlers, overide them in your derived class
552 virtual void OnClose(wxCloseEvent& event) { event.Skip(); }
553 virtual void OnClick(wxGridEvent& event) { event.Skip(); }
554 virtual void OnRangeClick(wxGridRangeSelectEvent& event) { event.Skip(); }
555 virtual void OnOKButton(wxCommandEvent& event) { event.Skip(); }
556
557public:
558 CustomGrid* m_pGribTable;
559 wxButton* m_pButtonTableOK;
560 int m_pIndex;
561
562 GRIBTableBase(wxWindow* parent, wxWindowID id = wxID_ANY,
563 const wxString& title = _("Grib Data Table"),
564 const wxPoint& pos = wxDefaultPosition,
565 const wxSize& size = wxSize(-1, -1),
566 long style = wxDEFAULT_DIALOG_STYLE | wxMAXIMIZE_BOX |
567 wxRESIZE_BORDER);
569};
570
571#endif //__GRIBUIDIALOGBASE_H__
Specialized Grid Control for GRIB Data Display.
Class CursorDataBase.
Class GRIBTableBase.
Class GRIBUICDataBase.
Class GRIBUICtrlBarBase.
Class GribPreferencesDialogBase.
Class GribRequestSettingBase.
Class GribSettingsDialogBase.
Class ProjectBoatPanel.
Class XyGribPanel.
Definition XyGribPanel.h:37