forked from xLightsSequencer/xLights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathButtonDetailsDialog.h
83 lines (70 loc) · 2.39 KB
/
ButtonDetailsDialog.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
83
#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(ButtonDetailsDialog)
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/choice.h>
#include <wx/button.h>
#include <wx/dialog.h>
//*)
class CommandManager;
class ButtonDetailsDialog: public wxDialog
{
CommandManager* _commandManager;
void ValidateWindow();
public:
std::string& _label;
std::string& _parameter;
std::string& _command;
std::string& _color;
char& _hotkey;
ButtonDetailsDialog(wxWindow* parent, CommandManager* commandManager, std::string& label, std::string& command, std::string& color, std::string& parameter, char& hotkey, wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
virtual ~ButtonDetailsDialog();
//(*Declarations(ButtonDetailsDialog)
wxChoice* Choice_Command;
wxButton* Button_Ok;
wxStaticText* StaticText2;
wxChoice* Choice_Hotkey;
wxStaticText* StaticText1;
wxStaticText* StaticText3;
wxTextCtrl* TextCtrl_Parameters;
wxStaticText* StaticText5;
wxButton* Button_Cancel;
wxTextCtrl* TextCtrl_Label;
wxStaticText* StaticText4;
wxChoice* Choice1;
//*)
protected:
//(*Identifiers(ButtonDetailsDialog)
static const long ID_STATICTEXT1;
static const long ID_TEXTCTRL1;
static const long ID_STATICTEXT2;
static const long ID_CHOICE1;
static const long ID_STATICTEXT3;
static const long ID_TEXTCTRL2;
static const long ID_STATICTEXT4;
static const long ID_CHOICE2;
static const long ID_STATICTEXT5;
static const long ID_CHOICE3;
static const long ID_BUTTON1;
static const long ID_BUTTON2;
//*)
private:
//(*Handlers(ButtonDetailsDialog)
void OnButton_OkClick(wxCommandEvent& event);
void OnButton_CancelClick(wxCommandEvent& event);
void OnTextCtrl_ParametersText(wxCommandEvent& event);
void OnTextCtrl_LabelText(wxCommandEvent& event);
void OnChoice_CommandSelect(wxCommandEvent& event);
//*)
DECLARE_EVENT_TABLE()
};