admin
2024-05-17 b8871bd7a15792247950dd0719656ecba73ef667
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
#include "MainFrame.h"
 
#include <wx/frame.h>
#include <wx/panel.h>
#include <wx/sizer.h>
#include <string.h>
 
 
 
BEGIN_EVENT_TABLE(MainFrame, wxFrame)
EVT_MENU(wxID_ABOUT, MainFrame::OnAbout)
EVT_MENU(wxID_EXIT, MainFrame::OnQuit)
END_EVENT_TABLE()
 
 MainFrame::MainFrame(const wxString& title):wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(MAIN_WINDOW_WIDTH, MAIN_WINDOW_HEIGHT)) {
    viewManager = new ViewManager();
    viewManager->initView(this);
}
 
 
void MainFrame::OnQuit(wxCommandEvent& event) {
 
}
 
void MainFrame::OnAbout(wxCommandEvent& event) {
 
}