0
|
1 // Filename : main.h
|
34
|
2 // Last Change: 12-Nov-2011.
|
0
|
3 //
|
|
4 #include "wx/wx.h"
|
|
5 #include "wx/config.h"
|
|
6 #include "wx/fileconf.h"
|
|
7
|
8
|
8 #define MYAPPNAME wxT("AMover2")
|
|
9
|
|
10 #define VER 2
|
34
|
11 #define REV 5
|
|
12 #define BLD 20111114
|
8
|
13
|
0
|
14 // private classes
|
|
15 // Define a new application type, each program should derive a class from wxApp
|
|
16 class MyApp : public wxApp
|
|
17 {
|
|
18 DECLARE_CLASS( MyApp )
|
|
19 public:
|
|
20 MyApp();
|
|
21 ~MyApp();
|
|
22
|
|
23 virtual bool OnInit();
|
|
24 virtual int OnExit();
|
|
25 void ConfInit();
|
11
|
26 void InitLog();
|
|
27 void WriteLog( wxString msg );
|
0
|
28
|
|
29 wxFileConfig *config;
|
|
30 wxString conf_file;
|
|
31 wxRect rect;
|
11
|
32
|
0
|
33 wxString workdir;
|
|
34 wxString lmin;
|
|
35 wxString lmax;
|
5
|
36 wxString zmin;
|
|
37 wxString zmax;
|
0
|
38 };
|
|
39
|
|
40 DECLARE_APP(MyApp)
|
|
41
|