diff 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
line wrap: on
line diff
--- a/src/main.cpp	Sun Sep 30 17:27:04 2018 +0900
+++ b/src/main.cpp	Mon Oct 01 23:18:29 2018 +0900
@@ -1,5 +1,5 @@
 // Filename   : main.cpp
-// Last Change: 2018-09-29 Sat 15:11:45.
+// Last Change: 2018-10-01 Mon 23:14:59.
 //
 #include "main.h"
 #include "auth.h"
@@ -11,6 +11,7 @@
 
 MyApp::MyApp()
 {
+    develop = true;
 }
 MyApp::~MyApp()
 {
@@ -26,10 +27,16 @@
     GetData();
 
     AuthDialog *authdlg = new AuthDialog( NULL, wxID_ANY, wxT( "" ), wxDefaultPosition, wxDefaultSize );
+    MainFrame *mainframe = new MainFrame( NULL, ID_MAIN, wxT( "Re:Searcher" ), wxPoint( rect.x, rect.y ), rect.GetSize(), wxDEFAULT_FRAME_STYLE );
+
+    if ( develop ) {
+        authdlg->InDevelop( true );
+        mainframe->InDevelop( true );
+    }
+
     authdlg->ShowModal();
     authdlg->Destroy();
 
-    MainFrame *mainframe = new MainFrame( NULL, ID_MAIN, wxT( "Re:Searcher" ), wxPoint( rect.x, rect.y ), rect.GetSize(), wxDEFAULT_FRAME_STYLE );
     mainframe->Show( true );
 
     return true;