OpenCPN Partial API docs
Loading...
Searching...
No Matches
CursorData.h
Go to the documentation of this file.
1/***************************************************************************
2 * Copyright (C) 2010 by David S. Register *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19 ***************************************************************************/
28#ifndef __GRIBUICData_H__
29#define __GRIBUICData_H__
30
31#include "wx/wxprec.h"
32
33#ifndef WX_PRECOMP
34#include "wx/wx.h"
35#endif // precompiled headers
36
37#include "GribUIDialogBase.h"
38#include "GribSettingsDialog.h"
39#include "GrabberWin.h"
40
41class GRIBUICtrlBar;
42class GribGrabberWin;
43class GribSpacerWin;
44
52class CursorData : public CursorDataBase {
53public:
54 CursorData(wxWindow *window, GRIBUICtrlBar &parent);
55 ~CursorData() {}
56
57 void OnCursorTrackTimer(wxTimerEvent &event) { UpdateTrackingControls(); }
58 void PopulateTrackingControls(bool vertical);
59 void UpdateTrackingControls();
60 void ResolveDisplayConflicts(int Id);
61 void OnMouseEvent(wxMouseEvent &event);
62
63 wxTimer m_tCursorTrackTimer;
64
65private:
66 void AddTrackingControl(wxControl *ctrl1, wxControl *ctrl2, wxControl *ctrl3,
67 wxControl *ctrl4, bool show, bool vertical,
68 int wictrl2, int wictrl3 = 0);
69 void MenuAppend(wxMenu *menu, int id, wxString label, int setting);
70 void OnCBAny(wxCommandEvent &event);
71 void OnMenuCallBack(wxMouseEvent &event);
72
73 GRIBUICtrlBar &m_gparent;
74 bool m_bLeftDown;
75};
76
77#endif
GRIB Dialog Grabber Control Interface.
GRIB Display Settings Configuration Interface.
Base User Interface Components for GRIB Plugin.
Class CursorDataBase.
Tracks and displays GRIB meteorological data at cursor position.
Definition CursorData.h:52