| 1 |
/* +------------------------------------------------------------------------+ |
| 2 |
| Mobile Robot Programming Toolkit (MRPT) | |
| 3 |
| https://www.mrpt.org/ | |
| 4 |
| | |
| 5 |
| Copyright (c) 2005-2026, Individual contributors, see AUTHORS file | |
| 6 |
| See: https://www.mrpt.org/Authors - All rights reserved. | |
| 7 |
| Released under BSD License. See: https://www.mrpt.org/License | |
| 8 |
+------------------------------------------------------------------------+ */ |
| 9 |
|
| 10 |
#include "holonomic_navigator_demoApp.h" |
| 11 |
|
| 12 |
//(*AppHeaders |
| 13 |
#include <wx/image.h> |
| 14 |
|
| 15 |
#include "holonomic_navigator_demoMain.h" |
| 16 |
//*) |
| 17 |
|
| 18 |
IMPLEMENT_APP(holonomic_navigator_demoApp) |
| 19 |
|
| 20 |
bool holonomic_navigator_demoApp::OnInit() |
| 21 |
{ |
| 22 |
// Starting in wxWidgets 2.9.0, we must reset numerics locale to "C", |
| 23 |
// if we want numbers to use "." in all countries. The App::OnInit() is a |
| 24 |
// perfect place to undo |
| 25 |
// the default wxWidgets settings. (JL @ Sep-2009) |
| 26 |
wxSetlocale(LC_NUMERIC, wxString(wxT("C"))); |
| 27 |
|
| 28 |
//(*AppInitialize |
| 29 |
bool wxsOK = true; |
| 30 |
wxInitAllImageHandlers(); |
| 31 |
if (wxsOK) |
| 32 |
{ |
| 33 |
auto* Frame = new holonomic_navigator_demoFrame(nullptr); |
| 34 |
Frame->Show(); |
| 35 |
SetTopWindow(Frame); |
| 36 |
} |
| 37 |
//*) |
| 38 |
return wxsOK; |
| 39 |
} |