annotate include/main.h @ 0:7c3921bf511e

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