3 //==========================================================================
5 //==========================================================================
7 #include "bbtkwxGUIEditorGraphicBBS.h"
9 #include <wx/cmdline.h>
11 #include <wx/sysopt.h>
13 class wxBBEditorApp : public wxApp
17 int OnExit() { return true; }
20 IMPLEMENT_APP(wxBBEditorApp);
24 // ----------------------------------------------------------------------------
25 // The `main program' equivalent, creating the windows and returning the
27 bool wxBBEditorApp::OnInit( )
30 /* assume this is OSX */
31 wxSystemOptions::SetOption("mac.listctrl.always_use_generic", 1);
36 //See http://www.wxwindows.org/faqgtk.htm#locale
37 setlocale(LC_NUMERIC, "C");
40 bbtk::wxGUIEditorGraphicBBS *iegbbs;
41 iegbbs = new bbtk::wxGUIEditorGraphicBBS(NULL);
51 // How to have a Console and wxWidgets
52 // http://www.wxwidgets.org/wiki/index.php/MSVC_Setup_Guide
53 // In Visual C++ 6 (7 should be similar), to create an application that is both a console application
54 // (cout's to the console are visible) and has a wxWidgets GUI,
55 // you need to use the linker option "/subsystem:console" and the following code:
56 int main(int argc, char* argv[])
58 return WinMain(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), SW_SHOWNORMAL);
61 #endif // defined(_WIN32)
65 //==========================================================================
67 //==========================================================================
69 int main(int argc, char* argv[])
71 std::cout << "bbStudio was not compiled with wxWidgets : ciao !" <<std::endl;
76 #endif //#ifdef _USE_WXWIDGETS_