forked from xLightsSequencer/xLights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetDialog.h
83 lines (69 loc) · 2.26 KB
/
SetDialog.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
79
80
81
82
#pragma once
/***************************************************************
* This source files comes from the xLights project
* https://www.xlights.org
* https://github.com/smeighan/xLights
* See the github commit history for a record of contributing
* developers.
* Copyright claimed based on commit dates recorded in Github
* License: https://github.com/smeighan/xLights/blob/master/License.txt
**************************************************************/
//(*Headers(SetDialog)
#include <wx/button.h>
#include <wx/checkbox.h>
#include <wx/dialog.h>
#include <wx/sizer.h>
#include <wx/spinctrl.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
//*)
class OutputManager;
class SetDialog: public wxDialog
{
std::string& _startChannel;
size_t& _channels;
size_t& _value;
std::string& _description;
bool& _enabled;
OutputManager* _outputManager;
void ValidateWindow();
public:
SetDialog(wxWindow* parent, OutputManager* outputManager, std::string& startChannel, size_t& channels, size_t& value, std::string& description, bool& enabled, wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
virtual ~SetDialog();
//(*Declarations(SetDialog)
wxButton* Button_Cancel;
wxButton* Button_Ok;
wxCheckBox* CheckBox_Enabled;
wxSpinCtrl* SpinCtrl_Channels;
wxSpinCtrl* SpinCtrl_Value;
wxStaticText* StaticText1;
wxStaticText* StaticText2;
wxStaticText* StaticText3;
wxStaticText* StaticText4;
wxStaticText* StaticText_StartChannel;
wxTextCtrl* TextCtrl_Description;
wxTextCtrl* TextCtrl_StartChannel;
//*)
protected:
//(*Identifiers(SetDialog)
static const long ID_STATICTEXT1;
static const long ID_TEXTCTRL2;
static const long ID_STATICTEXT5;
static const long ID_STATICTEXT2;
static const long ID_SPINCTRL2;
static const long ID_STATICTEXT3;
static const long ID_SPINCTRL3;
static const long ID_STATICTEXT4;
static const long ID_TEXTCTRL1;
static const long ID_CHECKBOX1;
static const long ID_BUTTON1;
static const long ID_BUTTON2;
//*)
private:
//(*Handlers(SetDialog)
void OnButton_OkClick(wxCommandEvent& event);
void OnButton_CancelClick(wxCommandEvent& event);
void OnTextCtrl_StartChannelText(wxCommandEvent& event);
//*)
DECLARE_EVENT_TABLE()
};