-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClockSettingsPanel.h
77 lines (66 loc) · 2.54 KB
/
ClockSettingsPanel.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
// Copyright 2008 Daniel Anselmi
//
// This file is part of TimingEditor.
//
// TimingEditor is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// TimingEditor is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with TimingEditor. If not, see <http://www.gnu.org/licenses/>.
//
// Contact e-mail: daniel anselmi <[email protected]>
// Program URL : http://sourceforge.net/projects/timingeditor/
//
//
///////////////////////////////////////////////////////////////////////////
#ifndef _CLK_SETTINGS_PANEL_
#define _CLK_SETTINGS_PANEL_
// Define WX_GCH in order to support precompiled headers with GCC compiler.
// You have to create the header "wx_pch.h" and include all files needed
// for compile your gui inside it.
// Then, compile it and place the file "wx_pch.h.gch" into the same
// directory that "wx_pch.h".
#ifdef WX_GCH
#include <wx_pch.h>
#else
#include <wx/wx.h>
#endif
#include <wx/button.h>
///////////////////////////////////////////////////////////////////////////
#define ID_DEFAULT wxID_ANY // Default
class TimingWindow;
class ClockSettingsPanel : public wxPanel
{
private:
void OnUpdatePanelClkApply(wxUpdateUIEvent& event);
void OnUpdateClockPeriod(wxUpdateUIEvent& event);
void OnUpdateTextFields(wxUpdateUIEvent& event);
void OnApply(wxCommandEvent &event);
public:
TimingWindow *wnd;
protected:
wxTextCtrl *m_textPeriod;
wxTextCtrl *m_textDelay;
wxButton *m_buttonApply;
wxCheckBox *m_checkShadow;
wxCheckBox *m_checkPeriodCount;
bool Shadowed;
bool DrawPeriod;
public:
void SetDelayText(const wxString &str){m_textDelay->SetValue(str);}
void SetTicksText(const wxString &str){m_textPeriod->SetValue(str);}
void SetShadowed(bool sha);
void SetShowPeriod(bool en);
void SetUnmodified();
public:
ClockSettingsPanel( wxWindow* parent, int id = -1, wxPoint pos = wxDefaultPosition, wxSize size = wxSize( 307,97 ), int style = wxTAB_TRAVERSAL );
DECLARE_EVENT_TABLE()
};
#endif //__noname__