diff src/main.cpp @ 0:615a15029602 default tip

first commit.
author pyon@macmini
date Sun, 10 Nov 2019 08:39:41 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main.cpp	Sun Nov 10 08:39:41 2019 +0900
@@ -0,0 +1,44 @@
+/* Filename   : main.cpp
+   Last Change: 2019-11-08 金 13:50:16.
+                     by Takayuki Mutoh
+*/
+
+#include "main.h"
+#include "search.h"
+
+IMPLEMENT_APP(MyApp)
+
+IMPLEMENT_CLASS(MyApp, wxApp)
+
+MyApp::MyApp()
+{
+}
+MyApp::~MyApp()
+{
+}
+
+bool MyApp::OnInit()
+{
+    if ( !wxApp::OnInit() ) return false;
+
+    wxImage::AddHandler( new wxJPEGHandler );
+	/*
+    wxImage::AddHandler( new wxPNGHandler  );
+
+	AppConf appconf;
+	wxRect rect = appconf.LoadRect();
+	*/
+	// Main Window
+	SearcherFrame *searchframe = new SearcherFrame(NULL, wxID_ANY, "Le Searcher", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE);
+	//MainFrame *mainframe = new MainFrame(NULL, wxID_ANY, "Le Searcher", wxPoint( rect.x, rect.y ), rect.GetSize(), wxDEFAULT_FRAME_STYLE );
+	searchframe->Show(true);
+	searchframe->Raise();
+
+    return true;
+}
+
+int MyApp::OnExit()
+{
+    return 0;
+}
+