diff options
author | Marius Kintel <marius@kintel.net> | 2012-02-15 00:26:38 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-02-15 00:26:38 (GMT) |
commit | 44ff85399011ea1bd3eb812ce97d312ccc4f32eb (patch) | |
tree | ef9c55154c2f3cea6a788928ba56175067ecde2f /src/mainwin.cc | |
parent | 68a10954cf09104d4b0097b9a62ae30cd316a5c6 (diff) |
Renamed OpenGL Info to Library Info and added version info of other libraries there
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r-- | src/mainwin.cc | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index 2fd75c9..9b24eea 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -323,7 +323,7 @@ MainWindow::MainWindow(const QString &filename) connect(this->helpActionAbout, SIGNAL(triggered()), this, SLOT(helpAbout())); connect(this->helpActionHomepage, SIGNAL(triggered()), this, SLOT(helpHomepage())); connect(this->helpActionManual, SIGNAL(triggered()), this, SLOT(helpManual())); - connect(this->helpActionOpenGLInfo, SIGNAL(triggered()), this, SLOT(helpOpenGL())); + connect(this->helpActionLibraryInfo, SIGNAL(triggered()), this, SLOT(helpLibrary())); setCurrentOutput(); @@ -1699,15 +1699,28 @@ MainWindow::helpManual() QDesktopServices::openUrl(QUrl("http://en.wikibooks.org/wiki/OpenSCAD_User_Manual")); } -void MainWindow::helpOpenGL() +#define STRINGIFY(x) #x +#define TOSTRING(x) STRINGIFY(x) +void MainWindow::helpLibrary() { + QString libinfo; + libinfo.sprintf("Boost version: %s\n" + "Eigen version: %d.%d.%d\n" + "CGAL version: %s\n" + "OpenCSG version: %s\n\n", + BOOST_LIB_VERSION, + EIGEN_WORLD_VERSION, EIGEN_MAJOR_VERSION, EIGEN_MINOR_VERSION, + TOSTRING(CGAL_VERSION), + OPENCSG_VERSION_STRING); + if (!this->openglbox) { this->openglbox = new QMessageBox(QMessageBox::Information, - "OpenGL Info", "Detailed OpenGL Info", + "OpenGL Info", "Detailed Library Info", QMessageBox::Ok, this); } - this->openglbox->setDetailedText(this->glview->getRendererInfo()); + + this->openglbox->setDetailedText(libinfo + this->glview->getRendererInfo()); this->openglbox->show(); } |