-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainFrame.h
More file actions
38 lines (31 loc) · 789 Bytes
/
Copy pathMainFrame.h
File metadata and controls
38 lines (31 loc) · 789 Bytes
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
#pragma once
#ifndef MAINFRAME_H_
#define MAINFRAME_H_
#include <wx/wx.h>
#include "Document.h"
class ViewEdit;
class ViewExpression;
class MainFrame:public wxFrame
{
public:
MainFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
virtual ~MainFrame(void);
enum ID{ID_Submit,ID_Clear,ID_Back};
void OnExit(wxCommandEvent& event);
void OnSubmit(wxCommandEvent& event);
void OnClear(wxCommandEvent& event);
void OnBack(wxCommandEvent& event);
void CreateMenuBar();
void CreateInterface();
void CreateEditButtons(wxBoxSizer &sizer);
Document *GetDocument(){return _document;}
wxDECLARE_EVENT_TABLE();
private:
wxButton *_submit;
wxButton *_clear;
wxButton *_back;
ViewEdit *_viewEdit;
ViewExpression *_viewExpression;
Document *_document;
};
#endif