-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbsProfileOverwrite.cpp
More file actions
72 lines (60 loc) · 2.25 KB
/
bsProfileOverwrite.cpp
File metadata and controls
72 lines (60 loc) · 2.25 KB
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
#include "bsProfileOverwrite.h"
//(*InternalHeaders(bsProfileOverwrite)
#include <wx/string.h>
#include <wx/intl.h>
#include <wx/font.h>
//*)
extern bool bsyesorno;
extern bool bscancel;
int control_5;
//(*IdInit(bsProfileOverwrite)
const long bsProfileOverwrite::ID_STATICTEXT1 = wxNewId();
const long bsProfileOverwrite::ID_BUTTON1 = wxNewId();
const long bsProfileOverwrite::ID_BUTTON2 = wxNewId();
//*)
BEGIN_EVENT_TABLE(bsProfileOverwrite,wxDialog)
//(*EventTable(bsProfileOverwrite)
//*)
END_EVENT_TABLE()
bsProfileOverwrite::bsProfileOverwrite(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size)
{
//(*Initialize(bsProfileOverwrite)
Create(parent, wxID_ANY, _("Save or Cancel Changes"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("wxID_ANY"));
SetClientSize(wxSize(378,111));
StaticText1 = new wxStaticText(this, ID_STATICTEXT1, _("Would you like to save the changes made to the Light \nSequencer profiles or do you want to cancel the changes\?"), wxPoint(32,16), wxDefaultSize, 0, _T("ID_STATICTEXT1"));
wxFont StaticText1Font(8,wxSWISS,wxFONTSTYLE_NORMAL,wxNORMAL,false,_T("Sans"),wxFONTENCODING_DEFAULT);
StaticText1->SetFont(StaticText1Font);
Button1 = new wxButton(this, ID_BUTTON1, _("Save Changes"), wxPoint(24,64), wxSize(128,23), 0, wxDefaultValidator, _T("ID_BUTTON1"));
Button2 = new wxButton(this, ID_BUTTON2, _("Cancel Changes"), wxPoint(216,64), wxSize(128,23), 0, wxDefaultValidator, _T("ID_BUTTON2"));
Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&bsProfileOverwrite::OnButton1Click);
Connect(ID_BUTTON2,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&bsProfileOverwrite::OnButton2Click1);
//*)
bsyesorno = false;
bscancel = true;
control_5 = 0;
}
bsProfileOverwrite::~bsProfileOverwrite()
{
//(*Destroy(bsProfileOverwrite)
//*)
}
//save changes button
void bsProfileOverwrite::OnButton1Click(wxCommandEvent& event)
{
bsyesorno = true;
bscancel = false;
control_5 = 1;
Destroy();
}
//weird confusing glitch with wxsmith
void bsProfileOverwrite::OnButton2Click(wxCommandEvent& event)
{
}
//cancel changes
void bsProfileOverwrite::OnButton2Click1(wxCommandEvent& event)
{
bsyesorno = false;
bscancel = false;
control_5 = 2;
Destroy();
}