#ifdef _USE_WXWIDGETS_
+#include <exception>
+
//==========================================================================
// WITH WX
//==========================================================================
bbtk::StaticInitTime::PrintObjectListInfo = true;
}
- debug = ( parser.Found(_T("d")) );
- quiet = ( parser.Found(_T("q")) );
- help = ( parser.Found(_T("h")) );
- graphical_dialog = ( parser.Found(_T("wxcommandlineg")) );
- text_dialog = ( parser.Found(_T("t")) );
- no_console = ( parser.Found(_T("N")) );
-
+ debug = ( parser.Found(_T("d")) );
+ quiet = ( parser.Found(_T("q")) );
+ help = ( parser.Found(_T("h")) );
+
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+ graphical_dialog = ( parser.Found(_T("wxcommandlineg")) );
+#else
+ printf("EED Warnning. WxProcessCmdLine::Process g wxcommandlineg ");
+ graphical_dialog = ( parser.Found(_T("g")) );
+#endif
+
+ text_dialog = ( parser.Found(_T("t")) );
+ no_console = ( parser.Found(_T("N")) );
if (quiet) bbtk::MessageManager::SetMessageLevel("max",0);
if (debug) bbtk::MessageManager::SetMessageLevel("all",9);
((input_file.size() == 0) &&
(!no_console) &&
(!usage) ) );
-
+
}
//==========================================================================
if (!cmdline.proceed) return 0;
- if (cmdline.no_console)
+ if (cmdline.no_console)
{
// std::cout << "main NC"<<std::endl;
// Interpreter
bool error = false;
for (i=cmdline.input_file.begin();
i!=cmdline.input_file.end(); ++i)
- {
- error = ! I->InterpretFile(*i);
- if (error) break;
- }
- if (help_on_script)
- {
- I->SetNoExecMode(false);
- std::string package;
- I->GetExecuter()->GetFactory()->PrintHelpDescriptor("workspace",
+ {
+ error = ! I->InterpretFile(*i);
+ if (error) break;
+ }
+ if (help_on_script)
+ {
+ I->SetNoExecMode(false);
+ std::string package;
+ I->GetExecuter()->GetFactory()->PrintHelpDescriptor("workspace",
package,
false);
- }
- if (cmdline.input_file.size()==0)
- I->CommandLineInterpreter();
-
+ }
+ if (cmdline.input_file.size()==0)
+ {
+ I->CommandLineInterpreter();
+ } // if cmdline.input_file.size
//
- }
- else
- {
+ } else {
wxEntry(argc, argv);
- }
+ } // if cmdline.no_console
}