-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapwindow.h
79 lines (63 loc) · 1.75 KB
/
mapwindow.h
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
#include "mapview.h"
/*-----------------------------------------------------------------------------*/
class MapWindow : public wxFrame
{
DECLARE_CLASS(MapWindow)
DECLARE_EVENT_TABLE()
private:
MapView *panel;
wxListBox* ptlist;
int firstItem;
wxBitmapButton *btnGpsOnOff,
*btnZoomIn,
*btnZoomOut,
*btnMapPrev,
*btnMapNext,
*btnTools,
*btnLoadPoints,
*btnAddPoint,
*btnQuit,
*btnPointsList,
*btnInfo,
*btnNight,
*btnTarget,
*btnMapOnOff,
*btnPageUp,
*btnPageDn;
wxPanel *toolBtns, *pointListBtns, *mapBtns;
void onFileExit(wxCommandEvent &);
void onHelpAbout(wxCommandEvent &);
void onZoomIn(wxCommandEvent &);
void onZoomOut(wxCommandEvent &);
void onNextMap(wxCommandEvent &);
void onPrevMap(wxCommandEvent &);
void onGpsOnOff(wxCommandEvent &);
void onLoadPoints(wxCommandEvent &);
void onAddPoint(wxCommandEvent &);
void onTools(wxCommandEvent &);
void onPointList(wxCommandEvent &);
void onInfo(wxCommandEvent &);
void onNight(wxCommandEvent &);
void onTarget(wxCommandEvent &);
void onMapOnOff(wxCommandEvent &);
void onPageUp(wxCommandEvent &);
void onPageDn(wxCommandEvent &);
void onIdle(wxIdleEvent &);
// void ShowTools();
// void HideTools();
void ShowToolButtons();
void ShowMapButtons();
void ShowPtListButtons();
void HideToolButtons();
void HideMapButtons();
void HidePtListButtons();
wxBitmapButton* addButton(wxWindow* parent, wxWindowID id, wxString icon);
void CreateToolButtons();
void CreateMapButtons();
void CreatePtListButtons();
void SavePoints();
public:
MapWindow();
MapView *getPanel();
void updateButtons();
};