-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainFrame.h
48 lines (42 loc) · 1022 Bytes
/
MainFrame.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
#pragma once
#include <wx/wx.h>
#include <wx/gbsizer.h>
#include <string>
class MainFrame : public wxFrame
{
public:
MainFrame(const wxString& title);
private:
void CreateControls();
void BindEventHandlers();
void OnWindowOpen();
void OnWindowClose(wxCloseEvent& evt);
void ChangeNumber();
void InputHandler(wxCommandEvent& evt);
std::string* numberOne;
std::string* operation;
std::string* numberTwo;
wxGridBagSizer* sizer;
wxTextCtrl* text;
wxTextCtrl* textInfo;
wxButton* buttonOne;
wxButton* buttonTwo;
wxButton* buttonThree;
wxButton* buttonFour;
wxButton* buttonFive;
wxButton* buttonSix;
wxButton* buttonSeven;
wxButton* buttonEight;
wxButton* buttonNine;
wxButton* buttonZero;
wxButton* buttonNegate;
wxButton* buttonDecimal;
wxButton* buttonEquals;
wxButton* buttonBack;
wxButton* buttonAddition;
wxButton* buttonSubtraction;
wxButton* buttonDivision;
wxButton* buttonMultiplication;
wxButton* buttonC;
wxButton* buttonCE;
};