Mercurial > mercurial > hgweb_lesearcher.cgi
comparison src/main.cpp @ 0:615a15029602 default tip
first commit.
author | pyon@macmini |
---|---|
date | Sun, 10 Nov 2019 08:39:41 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:615a15029602 |
---|---|
1 /* Filename : main.cpp | |
2 Last Change: 2019-11-08 金 13:50:16. | |
3 by Takayuki Mutoh | |
4 */ | |
5 | |
6 #include "main.h" | |
7 #include "search.h" | |
8 | |
9 IMPLEMENT_APP(MyApp) | |
10 | |
11 IMPLEMENT_CLASS(MyApp, wxApp) | |
12 | |
13 MyApp::MyApp() | |
14 { | |
15 } | |
16 MyApp::~MyApp() | |
17 { | |
18 } | |
19 | |
20 bool MyApp::OnInit() | |
21 { | |
22 if ( !wxApp::OnInit() ) return false; | |
23 | |
24 wxImage::AddHandler( new wxJPEGHandler ); | |
25 /* | |
26 wxImage::AddHandler( new wxPNGHandler ); | |
27 | |
28 AppConf appconf; | |
29 wxRect rect = appconf.LoadRect(); | |
30 */ | |
31 // Main Window | |
32 SearcherFrame *searchframe = new SearcherFrame(NULL, wxID_ANY, "Le Searcher", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE); | |
33 //MainFrame *mainframe = new MainFrame(NULL, wxID_ANY, "Le Searcher", wxPoint( rect.x, rect.y ), rect.GetSize(), wxDEFAULT_FRAME_STYLE ); | |
34 searchframe->Show(true); | |
35 searchframe->Raise(); | |
36 | |
37 return true; | |
38 } | |
39 | |
40 int MyApp::OnExit() | |
41 { | |
42 return 0; | |
43 } | |
44 |