Mercurial > mercurial > hgweb_rsearcher.cgi
comparison src/main.cpp @ 1:eaa27e4ed5be
add client_ui.go
author | pyon@macmini |
---|---|
date | Mon, 01 Oct 2018 23:18:29 +0900 |
parents | d3b8cd5aeb70 |
children | 7fe3417cefc8 |
comparison
equal
deleted
inserted
replaced
0:d3b8cd5aeb70 | 1:eaa27e4ed5be |
---|---|
1 // Filename : main.cpp | 1 // Filename : main.cpp |
2 // Last Change: 2018-09-29 Sat 15:11:45. | 2 // Last Change: 2018-10-01 Mon 23:14:59. |
3 // | 3 // |
4 #include "main.h" | 4 #include "main.h" |
5 #include "auth.h" | 5 #include "auth.h" |
6 #include "rsearcher.h" | 6 #include "rsearcher.h" |
7 | 7 |
9 | 9 |
10 IMPLEMENT_CLASS( MyApp, wxApp ) | 10 IMPLEMENT_CLASS( MyApp, wxApp ) |
11 | 11 |
12 MyApp::MyApp() | 12 MyApp::MyApp() |
13 { | 13 { |
14 develop = true; | |
14 } | 15 } |
15 MyApp::~MyApp() | 16 MyApp::~MyApp() |
16 { | 17 { |
17 } | 18 } |
18 | 19 |
24 wxImage::AddHandler( new wxPNGHandler ); | 25 wxImage::AddHandler( new wxPNGHandler ); |
25 InitSetting(); | 26 InitSetting(); |
26 GetData(); | 27 GetData(); |
27 | 28 |
28 AuthDialog *authdlg = new AuthDialog( NULL, wxID_ANY, wxT( "" ), wxDefaultPosition, wxDefaultSize ); | 29 AuthDialog *authdlg = new AuthDialog( NULL, wxID_ANY, wxT( "" ), wxDefaultPosition, wxDefaultSize ); |
30 MainFrame *mainframe = new MainFrame( NULL, ID_MAIN, wxT( "Re:Searcher" ), wxPoint( rect.x, rect.y ), rect.GetSize(), wxDEFAULT_FRAME_STYLE ); | |
31 | |
32 if ( develop ) { | |
33 authdlg->InDevelop( true ); | |
34 mainframe->InDevelop( true ); | |
35 } | |
36 | |
29 authdlg->ShowModal(); | 37 authdlg->ShowModal(); |
30 authdlg->Destroy(); | 38 authdlg->Destroy(); |
31 | 39 |
32 MainFrame *mainframe = new MainFrame( NULL, ID_MAIN, wxT( "Re:Searcher" ), wxPoint( rect.x, rect.y ), rect.GetSize(), wxDEFAULT_FRAME_STYLE ); | |
33 mainframe->Show( true ); | 40 mainframe->Show( true ); |
34 | 41 |
35 return true; | 42 return true; |
36 } | 43 } |
37 | 44 |