-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainFrame.h
More file actions
43 lines (35 loc) · 827 Bytes
/
MainFrame.h
File metadata and controls
43 lines (35 loc) · 827 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
38
39
40
41
42
43
#pragma once
#ifndef MAINFRAME_H_
#define MAINFRAME_H_
#include <list>
#include<exception>
#include<typeinfo>
#include "wx/wx.h"
#define DOCUMENT_LIMIT 3
class Document;
class DocumentFrame;
class AlgorithmDocumentFrame;
class Interpreter;
typedef std::list<DocumentFrame*>::iterator doc_iter;
class MainFrame: public wxFrame
{
public:
MainFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
virtual ~MainFrame();
void CreateMenuBar();
enum IDs{
ID_New,
ID_Input
};
void OnExit(wxCommandEvent& event);
void OnNew(wxCommandEvent& event);
void AddChildWindow();
void RemoveChildWindow(DocumentFrame* doc);
void InterpretDocument(Document* doc);
void OpenSolutionBox();
wxDECLARE_EVENT_TABLE();
private:
Interpreter *_interpreter;
std::list<DocumentFrame *> _childWindows;
};
#endif