Mercurial > mercurial > hgweb_rsearcher.cgi
diff include/main.h @ 0:d3b8cd5aeb70
make repo.
author | pyon@macmini |
---|---|
date | Sun, 30 Sep 2018 17:27:04 +0900 |
parents | |
children | eaa27e4ed5be |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/main.h Sun Sep 30 17:27:04 2018 +0900 @@ -0,0 +1,37 @@ +// Filename : main.h +// Last Change: 2018-09-17 Mon 21:57:32. +// +#include <wx/wx.h> +#include <wx/config.h> +#include <wx/fileconf.h> + +enum { + ID_MAIN = wxID_HIGHEST + 1, +}; + +// private classes +// Define a new application type, each program should derive a class from wxApp +class MyApp : public wxApp +{ + DECLARE_CLASS( MyApp ) + private: + wxFileConfig *config; + wxString conf_file; + + public: + wxRect rect; + + MyApp(); + ~MyApp(); + + virtual bool OnInit(); + virtual int OnExit(); + + void InitSetting(); + void SaveSetting(); + void GetData(); + void DeleteData(); +}; + +DECLARE_APP(MyApp) +