comparison include/main.h @ 0:7c3921bf511e

Beta2
author pyon@macmini
date Sat, 20 Oct 2012 16:07:42 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:7c3921bf511e
1 // Filename : main.h
2 // Last Change: 17-Jun-2012.
3 //
4 #include "wx/wx.h"
5 #include "wx/config.h"
6 #include "wx/fileconf.h"
7
8 // private classes
9 // Define a new application type, each program should derive a class from wxApp
10 class MyApp : public wxApp
11 {
12 DECLARE_CLASS( MyApp )
13 public:
14 MyApp();
15 ~MyApp();
16
17 virtual bool OnInit();
18 virtual int OnExit();
19 void InitSetting();
20 void SaveSetting();
21 void InitLog();
22 void WriteLog( wxString msg );
23
24 wxFileConfig *config;
25 wxString conf_file;
26 wxString log_file;
27 wxRect rect;
28 };
29
30 enum {
31 ID_MAIN = wxID_HIGHEST + 1,
32 };
33
34 DECLARE_APP(MyApp)
35