MRPT
2.0.1
about_box_wx.cpp
Go to the documentation of this file.
1
/* +------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| https://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2020, 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 "
gui-precomp.h
"
// Precompiled headers
11
12
#include <
mrpt/core/exceptions.h
>
13
#include <
mrpt/gui/about_box.h
>
14
15
#if MRPT_HAS_WXWIDGETS
16
#include "
CAboutBox_wx.h
"
17
#endif
18
19
void
mrpt::gui::show_mrpt_about_box_wxWidgets
(
20
void
* parent_wx_window,
const
std::string& appName,
21
const
std::string& additionalInfo,
const
bool
showStandardInfo)
22
{
23
#if MRPT_HAS_WXWIDGETS
24
auto
* parent =
reinterpret_cast<
wxWindow*
>
(parent_wx_window);
25
CAboutBox
dlg(parent, appName, additionalInfo, showStandardInfo);
26
dlg.ShowModal();
27
#else
28
THROW_EXCEPTION
(
"MRPT compiled without wxWidgets support"
);
29
#endif
30
}
THROW_EXCEPTION
#define THROW_EXCEPTION(msg)
Definition:
exceptions.h:67
CAboutBox_wx.h
gui-precomp.h
CAboutBox
Definition:
CAboutBox_wx.h:23
exceptions.h
mrpt::gui::show_mrpt_about_box_wxWidgets
void show_mrpt_about_box_wxWidgets(void *parent_wx_window, const std::string &appName, const std::string &additionalInfo=std::string(), const bool showStandardInfo=true)
Shows the standard MRPT GUI "About Box" (wxWidgets version)
Definition:
about_box_wx.cpp:19
about_box.h
Page generated by
Doxygen 1.8.14
for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020