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; }
21 IMPLEMENT_APP(wxBBEditorApp);
25 // ----------------------------------------------------------------------------
26 // The `main program' equivalent, creating the windows and returning the
28 bool wxBBEditorApp::OnInit( )
31 /* assume this is OSX */
32 wxSystemOptions::SetOption("mac.listctrl.always_use_generic", 1);
37 //See http://www.wxwindows.org/faqgtk.htm#locale
38 setlocale(LC_NUMERIC, "C");
41 bbtk::wxGUIEditorGraphicBBS *iegbbs;
42 iegbbs = new bbtk::wxGUIEditorGraphicBBS(NULL);
52 // How to have a Console and wxWidgets
53 // http://www.wxwidgets.org/wiki/index.php/MSVC_Setup_Guide
54 // In Visual C++ 6 (7 should be similar), to create an application that is both a console application
55 // (cout's to the console are visible) and has a wxWidgets GUI,
56 // you need to use the linker option "/subsystem:console" and the following code:
57 int main(int argc, char* argv[])
59 return WinMain(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), SW_SHOWNORMAL);
62 #endif // defined(_WIN32)
66 //==========================================================================
68 //==========================================================================
70 int main(int argc, char* argv[])
72 std::cout << "bbStudio was not compiled with wxWidgets : ciao !" <<std::endl;
77 #endif //#ifdef _USE_WXWIDGETS_