// main frame
bool wxBBIApp::OnInit( )
{
- std::cout << "OnInit"<<std::endl;
+ // std::cout << "OnInit"<<std::endl;
wxApp::OnInit();
#ifdef __WXGTK__
//See http://www.wxwindows.org/faqgtk.htm#locale
if (help_on_script)
{
std::string package;
- I->GetInterpreter()->GetExecuter()->GetFactory()->HelpBlackBox("workspace",package,false);
+ I->GetInterpreter()->GetExecuter()->GetFactory()->PrintHelpDescriptor("workspace",package,false);
}
/*
std::cout << "con="<<console<<std::endl;
std::cout << "iws="<<bbtk::Wx::IsSomeWindowShown()<<std::endl;
*/
- if (!(show_on_error || cmd.console || bbtk::Wx::IsSomeWindowShown() ))
+ if (!(show_on_error || cmd.console || bbtk::Wx::IsSomeWindowAlive() ))
{
I->Close();
// std::cout << "I->Close"<<std::endl;
// std::cout << "!I->Close"<<std::endl;
}
- std::cout << "EO OnInit"<<std::endl;
+ // std::cout << "EO OnInit"<<std::endl;
return true;
// WINDOWS
//==========================================================================
IMPLEMENT_APP(wxBBIApp);
+
// How to have a Console and wxWidgets
// http://www.wxwidgets.org/wiki/index.php/MSVC_Setup_Guide
// In Visual C++ 6 (7 should be similar), to create an application that is both a console application
// you need to use the linker option "/subsystem:console" and the following code:
int main(int argc, char* argv[])
{
- return WinMain(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), SW_SHOWNORMAL);
+ return WinMain(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), SW_SHOWNORMAL);
}
#else
{
I->SetNoExecMode(false);
std::string package;
- I->GetExecuter()->GetFactory()->HelpBlackBox("workspace",
- package,
- false);
+ I->GetExecuter()->GetFactory()->PrintHelpDescriptor("workspace",
+ package,
+ false);
}
if (cmdline.input_file.size()==0)
I->CommandLineInterpreter();
//==========================================================================
#include "bbtkInterpreter.h"
+//#include "bbtkWx.h"
int main(int argc, char* argv[])
{
-
if (argc>2)
{
std::cout << "usage : "<<argv[0]<<" [filename]"<<std::endl;
I->InterpretFile(f);
}
- bbtk::Wx::LoopUntilAllWindowsClose();
+ // bbtk::Wx::LoopUntilAllWindowsClose();
return 0;