+ std::string file,path;
+ file = bbtk::Utilities::ExtractScriptName(filename,path);
+
+ m_Fp << "#include \"bbtkExecuter.h\"" << std::endl;
+ m_Fp << "void " << file << "(bbtk::Executer::Pointer e)"<<std::endl;
+ m_Fp << "{"<<std::endl;
+
+ /*
+#ifdef _USE_WXWIDGETS_
+ m_Fp << "#ifdef _USE_WXWIDGETS_"<<std::endl;
+ m_Fp << "#include \"bbtkWx.h\""<< std::endl<<std::endl;
+ m_Fp << "class myApp : public wxApp"<<std::endl;
+ m_Fp << "{"<<std::endl;
+ m_Fp << "public:"<<std::endl;
+ m_Fp << " bool OnInit( );"<<std::endl;
+ m_Fp << " int OnExit() { delete e; return true; }"<<std::endl;
+ m_Fp << " bbtk::Executer* e;"<<std::endl;
+ m_Fp << "};"<<std::endl<<std::endl;
+ m_Fp << "IMPLEMENT_APP(myApp);"<<std::endl<<std::endl;
+ m_Fp << "bool myApp::OnInit( )"<<std::endl;
+ m_Fp << "{"<<std::endl;
+ m_Fp << " wxApp::OnInit();"<<std::endl;
+ m_Fp << "#ifdef __WXGTK__"<<std::endl;
+ m_Fp << " //See http://www.wxwindows.org/faqgtk.htm#locale"<<std::endl;
+ m_Fp << " setlocale(LC_NUMERIC, \"C\");"<<std::endl;
+ m_Fp << "#endif"<<std::endl;
+ m_Fp << " wxInitAllImageHandlers();"<<std::endl;
+ m_Fp << " bbtk::Wx::CreateInvisibleTopWindow();"<<std::endl;
+ m_Fp << " try {"<<std::endl;
+ m_Fp << " e = new bbtk::Executer();"<<std::endl;
+#else