OpenCPN Partial API docs
Loading...
Searching...
No Matches
canvas_options.h
Go to the documentation of this file.
1/**************************************************************************
2 * Copyright (C) 2018 by David S. Register *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, see <https://www.gnu.org/licenses/>. *
16 **************************************************************************/
17
24#ifndef __canvasoption_H__
25#define __canvasoption_H__
26
27#include <wx/checkbox.h>
28#include <wx/dialog.h>
29#include <wx/event.h>
30#include <wx/scrolwin.h>
31#include <wx/string.h>
32
36enum {
114};
115
120class CanvasOptions : public wxDialog {
121public:
122 CanvasOptions(wxWindow *parent);
123
124 void OnClose(wxCloseEvent &event);
125 void OnOptionChange(wxCommandEvent &event);
126
127 void RefreshControlValues(void);
128 void UpdateCanvasOptions(void);
129 void OnEraseBackground(wxEraseEvent &event);
130 void SetENCAvailable(bool avail);
131
132private:
133 int m_style;
134 bool m_ENCAvail;
135 wxScrolledWindow *m_sWindow;
136
137 wxCheckBox *pShowStatusBar, *pShowMenuBar, *pShowChartBar, *pShowCompassWin;
138 wxCheckBox *pPrintShowIcon, *pCDOOutlines, *pSDepthUnits, *pSDisplayGrid;
139 wxCheckBox *pAutoAnchorMark, *pCDOQuilting, *pCBRaster, *pCBVector;
140 wxCheckBox *pCBCM93, *pCBLookAhead, *pSkewComp, *pOpenGL, *pSmoothPanZoom;
141 wxCheckBox *pFullScreenQuilt, *pMobile, *pResponsive, *pOverzoomEmphasis;
142 wxCheckBox *pOZScaleVector, *pToolbarAutoHideCB, *pInlandEcdis;
143 wxTextCtrl *pCOGUPUpdateSecs, *m_pText_OSCOG_Predictor, *pScreenMM;
144 wxTextCtrl *pToolbarHideSecs, *m_pText_OSHDT_Predictor;
145 wxChoice *m_pShipIconType, *m_pcTCDatasets;
146 wxSlider *m_pSlider_Zoom, *m_pSlider_GUI_Factor, *m_pSlider_Chart_Factor,
147 *m_pSlider_Ship_Factor;
148 wxSlider *m_pSlider_Zoom_Vector;
149 wxRadioButton *pCBCourseUp, *pCBNorthUp, *pCBHeadUp, *pRBSizeAuto,
150 *pRBSizeManual;
151 wxCheckBox *pEnableZoomToCursor, *pPreserveScale;
152
153 wxCheckBox *pCDOTides, *pCDOCurrents;
154 wxCheckBox *pCDOENCText, *pCBToolbar;
155 wxChoice *m_pDispCat;
156 wxCheckBox *pCBENCDepth, *pCBENCLightDesc, *pCBENCBuoyLabels, *pCBENCLights,
157 *pCBENCAnchorDetails;
158 wxCheckBox *pCBShowAIS, *pCBAttenAIS, *pCBENCVisibleSectors,
159 *pCBENCDataQuality;
160 bool m_bmode_change_while_hidden; // Coming from compass icon click
161
162 DECLARE_EVENT_TABLE()
163};
164
165#endif // guard
@ IDCO_QUILTCHECKBOX1
ID for checkbox to enable chart quilting.
@ IDCO_ENCTEXT_CHECKBOX1
ID for checkbox to show ENC (Electronic Navigational Chart) text.
@ IDCO_CURRENTS_CHECKBOX
ID for checkbox to show currents.
@ IDCO_ENCVISIBLESECTORS_CHECKBOX1
ID for checkbox to show ENC visible light sectors.
@ IDCO_SHOW_AIS_CHECKBOX
ID for checkbox to show AIS (Automatic Identification System) targets.
@ ID_CODISPCAT
ID for control to set ENC display category.
@ IDCO_PRESERVECHECKBOX
ID for checkbox to preserve scale during operations.
@ IDCO_ENCDEPTH_CHECKBOX1
ID for checkbox to show ENC depths.
@ IDCO_TIDES_CHECKBOX
ID for checkbox to show tides.
@ IDCO_ZTCCHECKBOX
ID for checkbox related to zoom-to-cursor functionality.
@ IDCO_OUTLINECHECKBOX1
ID for checkbox to show chart outlines.
@ IDCO_ATTEN_AIS_CHECKBOX
ID for checkbox to attenuate AIS targets.
@ IDCO_ENCDATAQUALITY_CHECKBOX
ID for checkbox to show ENC data quality indicators.
@ ID_TOOLBARCHECKBOX
ID for checkbox to show/hide toolbar.
@ IDCO_ENCBUOYLABEL_CHECKBOX1
ID for checkbox to show ENC buoy labels.
@ IDCO_SMOOTHPANZOOMBOX
ID for checkbox to enable smooth pan/zoom.
@ IDCO_HEADUPCHECKBOX
ID for checkbox to set head-up orientation.
@ IDCO_ENCBUOY_CHECKBOX1
ID for checkbox to show ENC buoys.
@ IDCO_ENCANCHOR_CHECKBOX1
ID for checkbox to show ENC anchor details.
@ IDCO_CHECK_LOOKAHEAD
ID for checkbox to enable look-ahead mode.
@ IDCO_COURSEUPCHECKBOX
ID for checkbox to set course-up orientation.
@ IDCO_CHECK_DISPLAYGRID
ID for checkbox to display grid.
@ IDCO_SHOWDEPTHUNITSBOX1
ID for checkbox to show depth units.
Represents the Canvas Options dialog.