OpenCPN Partial API docs
Loading...
Searching...
No Matches
cursor_data.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 * 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
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
36
37#include "grib_ui_dlg_base.h"
38#include "grib_settings_dlg.h"
39#include "grabber_win.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, const 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 // GRIBUICData_H__
Class CursorDataBase.
Tracks and displays GRIB meteorological data at cursor position.
Definition cursor_data.h:52
GRIB Dialog Grabber Control Interface.
GRIB Display Settings Configuration Interface.
Base User Interface Components for GRIB Plugin.