view include/main.h @ 1:eaa27e4ed5be

add client_ui.go
author pyon@macmini
date Mon, 01 Oct 2018 23:18:29 +0900
parents d3b8cd5aeb70
children 7fe3417cefc8
line wrap: on
line source

// Filename   : main.h
// Last Change: 2018-10-01 Mon 23:13:17.
//
#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;
        bool          develop;

	public:
		wxRect rect;

		MyApp();
		~MyApp();

		virtual bool OnInit();
		virtual int  OnExit();

		void InitSetting();
		void SaveSetting();
        void GetData();
        void DeleteData();
};

DECLARE_APP(MyApp)