diff include/main.h @ 0:7c3921bf511e

Beta2
author pyon@macmini
date Sat, 20 Oct 2012 16:07:42 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/main.h	Sat Oct 20 16:07:42 2012 +0900
@@ -0,0 +1,35 @@
+// Filename   : main.h
+// Last Change: 17-Jun-2012.
+//
+#include "wx/wx.h"
+#include "wx/config.h"
+#include "wx/fileconf.h"
+
+// private classes
+// Define a new application type, each program should derive a class from wxApp
+class MyApp : public wxApp
+{
+    DECLARE_CLASS( MyApp )
+public:
+    MyApp();
+    ~MyApp();
+
+    virtual bool OnInit();
+    virtual int  OnExit();
+    void InitSetting();
+    void SaveSetting();
+    void InitLog();
+    void WriteLog( wxString msg );
+
+    wxFileConfig *config;
+    wxString      conf_file;
+    wxString      log_file;
+    wxRect        rect;
+};
+
+enum {
+    ID_MAIN = wxID_HIGHEST + 1,
+};
+
+DECLARE_APP(MyApp)
+