MRPT  1.9.9
CAboutBoxBase.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/config.h>
13 #include <mrpt/core/format.h>
14 #include <mrpt/system/os.h>
15 #include <Eigen/Dense>
16 #include "CAboutBoxBase.h"
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 
40 std::string CAboutBoxBase::tutorial() const
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 
46 std::string CAboutBoxBase::license() const
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 std::string format(std::string_view fmt, ARGS &&... args)
Definition: format.h:26
std::string license() const
std::string MRPT_getCompilationDate()
Returns the MRPT source code timestamp, according to the Reproducible-Builds specifications: https://...
Definition: os.cpp:154
std::string tutorial() const
std::string information(const std::string &guiLibName, const std::string &guiLibVersion) const
const bool m_showStandardInfo
Definition: CAboutBoxBase.h:29
virtual ~CAboutBoxBase()
const std::string m_appName
Definition: CAboutBoxBase.h:27
CAboutBoxBase(const std::string &appName, const std::string &additionalInfo, const bool showStandardInfo)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::string MRPTBuildVersion() const
std::string MRPT_getVersion()
Returns a string describing the MRPT version.
Definition: os.cpp:187
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:541



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020