-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui.cpp
53 lines (38 loc) · 1.99 KB
/
gui.cpp
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
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "gui.h"
///////////////////////////////////////////////////////////////////////////
MainFrameBase::MainFrameBase(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) : wxFrame(parent, id, title, pos, size, style)
{
this->SetSizeHints(wxSize(125, 217), wxSize(125, 217));
wxBoxSizer* mainSizer;
mainSizer = new wxBoxSizer(wxVERTICAL);
m_staticText1 = new wxStaticText(this, wxID_ANY, _("Деление"), wxDefaultPosition, wxDefaultSize, 0);
m_staticText1->Wrap(-1);
mainSizer->Add(m_staticText1, 0, wxALL, 5);
m_textCtrl1 = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
mainSizer->Add(m_textCtrl1, 0, wxALL, 5);
m_textCtrl2 = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
mainSizer->Add(m_textCtrl2, 0, wxALL, 5);
m_button1 = new wxButton(this, wxID_ANY, _("Решить"), wxDefaultPosition, wxDefaultSize, 0);
mainSizer->Add(m_button1, 0, wxALL, 5);
m_staticText2 = new wxStaticText(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
m_staticText2->Wrap(-1);
mainSizer->Add(m_staticText2, 0, wxALL, 5);
this->SetSizer(mainSizer);
this->Layout();
this->Centre(wxBOTH);
// Connect Events
this->Connect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(MainFrameBase::OnCloseFrame));
m_button1->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(MainFrameBase::myClick), NULL, this);
}
MainFrameBase::~MainFrameBase()
{
// Disconnect Events
this->Disconnect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(MainFrameBase::OnCloseFrame));
m_button1->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(MainFrameBase::myClick), NULL, this);
}