]> 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 3f60890e7b08383eb51c712159e226598ef2106e..3b5580b6b5381f35f0b6497354552f0df732045f 100644 (file)
@@ -210,6 +210,7 @@ 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);
 
@@ -220,6 +221,7 @@ 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);
@@ -229,11 +231,15 @@ 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);
 
@@ -245,6 +251,8 @@ bool wxBBIApp::OnInit( )
   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) 
     {
       error = ! I->InterpretFile(*i);
@@ -261,6 +269,8 @@ bool wxBBIApp::OnInit( )
       I->GetInterpreter()->GetExecuter()->GetFactory()->PrintHelpDescriptor("workspace",package,false);
     }
 
+printf("EED wxBBIApp::OnInit 5\n"); 
+
   /*
   std::cout << "soe="<<show_on_error <<std::endl;
   std::cout << "con="<<console<<std::endl;
@@ -268,6 +278,7 @@ bool wxBBIApp::OnInit( )
   */
   if (!(show_on_error || cmd.console || bbtk::Wx::IsSomeWindowAlive() ))
     {
+printf("EED wxBBIApp::OnInit 6\n"); 
       I->Close();
       //      std::cout << "I->Close"<<std::endl;
     }
@@ -277,6 +288,7 @@ bool wxBBIApp::OnInit( )
     }
        
   //   std::cout << "EO OnInit"<<std::endl;
+printf("EED wxBBIApp::OnInit 7\n"); 
 
   return true;
 
@@ -297,13 +309,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);
 }
@@ -319,6 +332,7 @@ 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);
@@ -490,6 +504,7 @@ void ProcessCmdLine::Process(int argc_, char *argv_[])
 
 int main(int argc, char* argv[])
 {  
+printf("EED bbi main AA\n");
 //EED
 //  if (argc>2) 
 //    {