source: git/src/guicontrol.h @ dcbcae0

RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereostereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
Last change on this file since dcbcae0 was 69cacd1, checked in by Olly Betts <olly@…>, 14 years ago

src/: Remove empty destructors.

git-svn-id: file:///home/survex-svn/survex/trunk@3773 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 6.1 KB
Line 
1//
2//  guicontrol.h
3//
4//  Handlers for events relating to the display of a survey.
5//
6//  Copyright (C) 2000-2002,2005 Mark R. Shinwell
7//  Copyright (C) 2001-2004,2006 Olly Betts
8//
9//  This program is free software; you can redistribute it and/or modify
10//  it under the terms of the GNU General Public License as published by
11//  the Free Software Foundation; either version 2 of the License, or
12//  (at your option) any later version.
13//
14//  This program is distributed in the hope that it will be useful,
15//  but WITHOUT ANY WARRANTY; without even the implied warranty of
16//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17//  GNU General Public License for more details.
18//
19//  You should have received a copy of the GNU General Public License
20//  along with this program; if not, write to the Free Software
21//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
22//
23
24#ifndef guicontrol_h
25#define guicontrol_h
26
27#include "wx.h"
28
29class GfxCore;
30
31class GUIControl {
32    GfxCore* m_View;
33
34    enum { NO_DRAG = 0, LEFT_DRAG, MIDDLE_DRAG, RIGHT_DRAG } dragging;
35
36    wxPoint m_DragStart;
37    wxPoint m_DragRealStart;
38    wxPoint m_DragLast;
39
40    enum { drag_NONE, drag_MAIN, drag_COMPASS, drag_ELEV, drag_SCALE } m_LastDrag;
41
42    enum { NONE, ROTATE, SCALE } m_ScaleRotateLock;
43
44    bool m_ReverseControls;
45
46    void HandleRotate(wxPoint);
47    void HandleTilt(wxPoint);
48    void HandleTranslate(wxPoint);
49    void HandleScaleRotate(wxPoint);
50    void HandleTiltRotate(wxPoint);
51
52    void HandCursor();
53    void RestoreCursor();
54
55    void HandleNonDrag(const wxPoint & point);
56
57public:
58    GUIControl();
59
60    void SetView(GfxCore* view);
61
62    bool MouseDown() const;
63
64    void OnDefaults();
65    void OnPlan();
66    void OnElevation();
67    void OnDisplayOverlappingNames();
68    void OnColourByDepth();
69    void OnColourByDate();
70    void OnColourByError();
71    void OnShowCrosses();
72    void OnShowStationNames();
73    void OnShowSurveyLegs();
74    void OnShowSurface();
75    void OnMoveEast();
76    void OnMoveNorth();
77    void OnMoveSouth();
78    void OnMoveWest();
79    void OnToggleRotation();
80    void OnReverseControls();
81    void OnSlowDown(bool accel = false);
82    void OnSpeedUp(bool accel = false);
83    void OnStepOnceAnticlockwise(bool accel = false);
84    void OnStepOnceClockwise(bool accel = false);
85    void OnHigherViewpoint(bool accel = false);
86    void OnLowerViewpoint(bool accel = false);
87    void OnShiftDisplayDown(bool accel = false);
88    void OnShiftDisplayLeft(bool accel = false);
89    void OnShiftDisplayRight(bool accel = false);
90    void OnShiftDisplayUp(bool accel = false);
91    void OnZoomIn(bool accel = false);
92    void OnZoomOut(bool accel = false);
93    void OnToggleScalebar();
94    void OnToggleColourKey();
95    void OnViewCompass();
96    void OnViewClino();
97    void OnViewGrid();
98    void OnReverseDirectionOfRotation();
99    void OnShowEntrances();
100    void OnShowFixedPts();
101    void OnShowExportedPts();
102    void OnCancelDistLine();
103    void OnMouseMove(wxMouseEvent& event);
104    void OnLButtonDown(wxMouseEvent& event);
105    void OnLButtonUp(wxMouseEvent& event);
106    void OnMButtonDown(wxMouseEvent& event);
107    void OnMButtonUp(wxMouseEvent& event);
108    void OnRButtonDown(wxMouseEvent& event);
109    void OnRButtonUp(wxMouseEvent& event);
110    void OnMouseWheel(wxMouseEvent& event);
111    void OnKeyPress(wxKeyEvent &e);
112
113    void OnDisplayOverlappingNamesUpdate(wxUpdateUIEvent&);
114    void OnColourByDepthUpdate(wxUpdateUIEvent&);
115    void OnColourByDateUpdate(wxUpdateUIEvent&);
116    void OnColourByErrorUpdate(wxUpdateUIEvent&);
117    void OnShowCrossesUpdate(wxUpdateUIEvent&);
118    void OnShowStationNamesUpdate(wxUpdateUIEvent&);
119    void OnShowSurveyLegsUpdate(wxUpdateUIEvent&);
120    void OnShowSurfaceUpdate(wxUpdateUIEvent&);
121    void OnMoveEastUpdate(wxUpdateUIEvent&);
122    void OnMoveNorthUpdate(wxUpdateUIEvent&);
123    void OnMoveSouthUpdate(wxUpdateUIEvent&);
124    void OnMoveWestUpdate(wxUpdateUIEvent&);
125    void OnToggleRotationUpdate(wxUpdateUIEvent&);
126    void OnReverseControlsUpdate(wxUpdateUIEvent&);
127    void OnReverseDirectionOfRotationUpdate(wxUpdateUIEvent&);
128    void OnSlowDownUpdate(wxUpdateUIEvent&);
129    void OnSpeedUpUpdate(wxUpdateUIEvent&);
130    void OnStepOnceAnticlockwiseUpdate(wxUpdateUIEvent&);
131    void OnStepOnceClockwiseUpdate(wxUpdateUIEvent&);
132    void OnDefaultsUpdate(wxUpdateUIEvent&);
133    void OnElevationUpdate(wxUpdateUIEvent&);
134    void OnHigherViewpointUpdate(wxUpdateUIEvent&);
135    void OnLowerViewpointUpdate(wxUpdateUIEvent&);
136    void OnPlanUpdate(wxUpdateUIEvent&);
137    void OnShiftDisplayDownUpdate(wxUpdateUIEvent&);
138    void OnShiftDisplayLeftUpdate(wxUpdateUIEvent&);
139    void OnShiftDisplayRightUpdate(wxUpdateUIEvent&);
140    void OnShiftDisplayUpUpdate(wxUpdateUIEvent&);
141    void OnZoomInUpdate(wxUpdateUIEvent&);
142    void OnZoomOutUpdate(wxUpdateUIEvent&);
143    void OnToggleScalebarUpdate(wxUpdateUIEvent&);
144    void OnToggleColourKeyUpdate(wxUpdateUIEvent&);
145    void OnViewCompassUpdate(wxUpdateUIEvent&);
146    void OnViewClinoUpdate(wxUpdateUIEvent&);
147    void OnViewGridUpdate(wxUpdateUIEvent&);
148    void OnShowEntrancesUpdate(wxUpdateUIEvent&);
149    void OnShowExportedPtsUpdate(wxUpdateUIEvent&);
150    void OnShowFixedPtsUpdate(wxUpdateUIEvent&);
151
152    void OnIndicatorsUpdate(wxUpdateUIEvent&);
153    void OnCancelDistLineUpdate(wxUpdateUIEvent&);
154
155    void OnViewPerspective();
156    void OnViewPerspectiveUpdate(wxUpdateUIEvent& cmd);
157
158    void OnViewSmoothShading();
159    void OnViewSmoothShadingUpdate(wxUpdateUIEvent& cmd);
160
161    void OnViewTextured();
162    void OnViewTexturedUpdate(wxUpdateUIEvent& cmd);
163
164    void OnViewFog();
165    void OnViewFogUpdate(wxUpdateUIEvent& cmd);
166
167    void OnViewSmoothLines();
168    void OnViewSmoothLinesUpdate(wxUpdateUIEvent& cmd);
169
170    void OnToggleMetric();
171    void OnToggleMetricUpdate(wxUpdateUIEvent& cmd);
172
173    void OnToggleDegrees();
174    void OnToggleDegreesUpdate(wxUpdateUIEvent& cmd);
175
176    void OnToggleTubes();
177    void OnToggleTubesUpdate(wxUpdateUIEvent& cmd);
178
179    void OnViewFullScreenUpdate(wxUpdateUIEvent&);
180    void OnViewFullScreen();
181
182    void OnViewBoundingBoxUpdate(wxUpdateUIEvent&);
183    void OnViewBoundingBox();
184};
185
186#endif
Note: See TracBrowser for help on using the repository browser.