MRPT  1.9.9
CAboutBoxBase.cpp
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #include "gui-precomp.h" // Precompiled headers
11 
12 #include "CAboutBoxBase.h"
13 #include <mrpt/config.h>
14 #include <mrpt/system/os.h>
15 #include <mrpt/core/format.h>
16 #include <mrpt/math/types_math.h> // for Eigen version
17 
18 using namespace mrpt;
19 using namespace mrpt::system;
20 
22  const std::string& appName, const std::string& additionalInfo,
23  const bool showStandardInfo)
24  : m_appName(appName),
25  m_additionalInfo(additionalInfo),
26  m_showStandardInfo(showStandardInfo)
27 {
28 }
29 
32 {
33  std::string s("Build: ");
34  s += MRPT_getVersion();
35  s += " ";
37  return s;
38 }
39 
41 {
42  return "Up to date documentation and tutorials are maintained at the MRPT "
43  "website:\n\nhttp://www.mrpt.org/\n\n\n\n";
44 }
45 
47 {
49 }
50 
52  const std::string& guiLibName, const std::string& guiLibVersion) const
53 {
54  std::string str = m_appName + "\n";
55  str +=
56  "----------------------------------\n"
57  "Part of the MRPT project.\n"
58  "For bug reports and source code, visit:"
59  " https://github.com/MRPT/mrpt \n\n";
60  ;
61  if (!m_additionalInfo.empty())
62  {
63  str += m_additionalInfo + "\n";
64  }
65  str += "MRPT version: " + MRPT_getVersion() + "\n";
66  str += "MRPT source timestamp: " + MRPT_getCompilationDate() + "\n";
67 
69  {
70  str += "Eigen version: ";
71  str += mrpt::format(
72  "%u.%u.%u\n", EIGEN_WORLD_VERSION, EIGEN_MAJOR_VERSION,
73  EIGEN_MINOR_VERSION);
74  str += guiLibName + " version: " + guiLibVersion;
75 #if defined(__WXMSW__)
76  str += "-Windows";
77 #elif defined(__UNIX__)
78  str += "-Linux";
79 #endif
80 #if wxUSE_UNICODE
81  str += "-Unicode build";
82 #else
83  str += "-ANSI build";
84 #endif // wxUSE_UNICODE
85 
86  str += "\nOpenCV version: ";
87 #if MRPT_HAS_OPENCV
88  str += MRPT_OPENCV_VERSION;
89  str += "\n";
90 #else
91  str += "None";
92  str += "\n";
93 #endif
94  }
95 
96  return str;
97 }
const std::string m_additionalInfo
Definition: CAboutBoxBase.h:28
std::string license() const
std::string MRPT_getCompilationDate()
Returns the MRPT source code timestamp, according to the Reproducible-Builds specifications: https://...
Definition: os.cpp:152
std::string tutorial() const
std::string information(const std::string &guiLibName, const std::string &guiLibVersion) const
const bool m_showStandardInfo
Definition: CAboutBoxBase.h:29
GLdouble s
Definition: glext.h:3676
virtual ~CAboutBoxBase()
const std::string m_appName
Definition: CAboutBoxBase.h:27
CAboutBoxBase(const std::string &appName, const std::string &additionalInfo, const bool showStandardInfo)
GLsizei const GLchar ** string
Definition: glext.h:4101
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
Definition: format.cpp:16
std::string MRPTBuildVersion() const
std::string MRPT_getVersion()
Returns a string describing the MRPT version.
Definition: os.cpp:185
const std::string & getMRPTLicense()
Returns a const ref to a text with the same text that appears at the beginning of each MRPT file (use...
Definition: os.cpp:536



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020