OpenCPN Partial API docs
Loading...
Searching...
No Matches
detail_slider.h
Go to the documentation of this file.
1/**************************************************************************
2 * Copyright (C) 2013 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 __DETAILSLIDE_H
25#define __DETAILSLIDE_H
26
27#include <wx/event.h>
28#include <wx/frame.h>
29#include <wx/slider.h>
30#include <wx/string.h>
31
32#include "chartdb.h"
33
34class PopUpDSlide; // forward
40class PopUpDSlide : public wxFrame {
41public:
42 PopUpDSlide(wxWindow* parent, wxWindowID id, ChartTypeEnum ChartType,
43 ChartFamilyEnum ChartF, const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize, long style = 0,
45 const wxString& title = "");
46
48
49 void Init();
50 bool Create(wxWindow* parent, wxWindowID id, ChartTypeEnum ChartType,
51 ChartFamilyEnum ChartF, const wxPoint& pos, const wxSize& size,
52 long style, const wxString& title);
53
54 void OnCancelClick(wxCommandEvent& event);
55 void OnKeyDown(wxKeyEvent& event);
56 void OnMove(wxMoveEvent& event);
57 void OnChangeValue(wxScrollEvent& event);
58 void OnClose(wxCloseEvent& event);
59
60 wxSlider* m_p_DetailSlider;
61 wxWindow* m_pparent;
62
63private:
64 ChartTypeEnum ChartType;
65 ChartFamilyEnum ChartFam;
66
67 DECLARE_EVENT_TABLE()
68};
69
70#endif //__DETAILSLIDE_H__
Charts database management
A popup frame containing a detail slider for chart display.
PopUpDSlide * pPopupDetailSlider
Global instance.