]> Creatis software - bbtk.git/blobdiff - kernel/appli/bbi/bbi.cxx
#3203 BBTK Feature New Normal vtk7itk4wx3-mingw64
[bbtk.git] / kernel / appli / bbi / bbi.cxx
index 3b5580b6b5381f35f0b6497354552f0df732045f..7918d1967bd2ccd5ca61c65f0b19b97ac4a7c4d4 100644 (file)
@@ -121,7 +121,7 @@ void WxProcessCmdLine::Process(wxCmdLineParser& parser)
 #if wxMAJOR_VERSION <= 2
   graphical_dialog     = ( parser.Found(_T("wxcommandlineg")) );
 #else
-  printf("EED Warnning. WxProcessCmdLine::Process  g  wxcommandlineg   ");
+  printf("EED Warnning. WxProcessCmdLine::Process  g  wxcommandlineg \n");
   graphical_dialog     = ( parser.Found(_T("g")) );
 #endif
 
@@ -210,7 +210,6 @@ bool wxBBIApp::OnCmdLineParsed(wxCmdLineParser& parser)
 // main frame
 bool wxBBIApp::OnInit( )
 {
-       printf("EED wxBBIApp::OnInit 1\n"); 
 //Borrame
 //FILE *ff; ff = fopen ("/tmp/wt.log","a+"); fprintf(ff,"EED wxBBIApp::OnInit\n"); fclose(ff);
 
@@ -221,8 +220,6 @@ bool wxBBIApp::OnInit( )
   setlocale(LC_NUMERIC, "C");
 #endif
   
-       printf("EED wxBBIApp::OnInit 2\n"); 
-
   if (cmd.quiet) bbtk::MessageManager::SetMessageLevel("max",0);
   if (cmd.debug) bbtk::MessageManager::SetMessageLevel("all",9);
   
@@ -231,15 +228,10 @@ bool wxBBIApp::OnInit( )
 //printf ("EED bbi wxBBIApp::OnInit .....................\n");
 //cmd.input_file.push_back("/home/davila/Borrame/testwt.bbs");
 
-       printf("EED wxBBIApp::OnInit 2.1\n"); 
-
   bbtk::WxGUIConsole *I = new bbtk::WxGUIConsole(0,_T("bbi"),wxSize(800,600));
-       printf("EED wxBBIApp::OnInit 2.2\n"); 
   SetTopWindow(I);  
-       printf("EED wxBBIApp::OnInit 2.3\n"); 
   if (cmd.console) I->Show(true);
 
-printf("EED wxBBIApp::OnInit 3\n"); 
 
   I->SetInputs(cmd.param_map);
 
@@ -251,7 +243,6 @@ printf("EED wxBBIApp::OnInit 3\n");
   std::vector<std::string>::const_iterator i;
   bool error = false;
 
-printf("EED wxBBIApp::OnInit 4\n"); 
 
   for (i=cmd.input_file.begin(); i!=cmd.input_file.end(); ++i) 
     {
@@ -269,7 +260,6 @@ printf("EED wxBBIApp::OnInit 4\n");
       I->GetInterpreter()->GetExecuter()->GetFactory()->PrintHelpDescriptor("workspace",package,false);
     }
 
-printf("EED wxBBIApp::OnInit 5\n"); 
 
   /*
   std::cout << "soe="<<show_on_error <<std::endl;
@@ -278,7 +268,6 @@ printf("EED wxBBIApp::OnInit 5\n");
   */
   if (!(show_on_error || cmd.console || bbtk::Wx::IsSomeWindowAlive() ))
     {
-printf("EED wxBBIApp::OnInit 6\n"); 
       I->Close();
       //      std::cout << "I->Close"<<std::endl;
     }
@@ -288,7 +277,6 @@ printf("EED wxBBIApp::OnInit 6\n");
     }
        
   //   std::cout << "EO OnInit"<<std::endl;
-printf("EED wxBBIApp::OnInit 7\n"); 
 
   return true;
 
@@ -309,16 +297,14 @@ IMPLEMENT_APP(wxBBIApp);
 //  you need to use the linker option "/subsystem:console" and the following code:
 int main(int argc, char* argv[])
 {
-printf("EED main cccc\n ");
 //Borrame
 //FILE *ff; ff = fopen ("/tmp/wt.log","a+"); fprintf(ff,"EED main C\n"); fclose(ff);
 
        // EED 2018-07-16
        char buffer[1500];
        wcstombs(buffer , ::GetCommandLine() , 1500 );
-printf("EED main cc%scc\n ",buffer);
     return WinMain(::GetModuleHandle(NULL), NULL, buffer , SW_SHOWNORMAL);
-//    return WinMain(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), SW_SHOWNORMAL);
+       //    return WinMain(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), SW_SHOWNORMAL);
 }
 
 
@@ -332,8 +318,6 @@ IMPLEMENT_APP_NO_MAIN(wxBBIApp);
 
 int main(int argc, char* argv[])
 {      
-printf("EED bbi main BBBB\n");
-
 //Borrame
 //FILE *ff; ff = fopen ("/tmp/wt.log","a+"); fprintf(ff,"EED main A\n"); fclose(ff);
 
@@ -504,7 +488,6 @@ void ProcessCmdLine::Process(int argc_, char *argv_[])
 
 int main(int argc, char* argv[])
 {  
-printf("EED bbi main AA\n");
 //EED
 //  if (argc>2) 
 //    {