summaryrefslogtreecommitdiff
path: root/src/mainwin.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-19 14:41:11 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-19 14:41:11 (GMT)
commit87ce149df2581361e8975bd1a0addf2b6ef61e3d (patch)
treec68db815a72cc767b6d51be0a57e9946c5f0a619 /src/mainwin.cc
parentba1f0b7489dd5fa9bdc8c44068040f13113b40d0 (diff)
parent638743e2201c6869b48857dd2db5ec01df665162 (diff)
Merge branch 'master' into boost_filesystem
Conflicts: boost.pri tests/CMakeLists.txt
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r--src/mainwin.cc17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index c81f2f2..3243847 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -145,6 +145,7 @@ MainWindow::MainWindow(const QString &filename)
register_builtin(root_ctx);
+ this->openglbox = NULL;
root_module = NULL;
absolute_root_node = NULL;
root_chain = NULL;
@@ -176,7 +177,7 @@ MainWindow::MainWindow(const QString &filename)
editor->setTabStopWidth(30);
#endif
editor->setLineWrapping(true); // Not designable
- setFont("", 0); // Init default font
+ setFont("", 12); // Init default font
this->glview->statusLabel = new QLabel(this);
statusBar()->addWidget(this->glview->statusLabel);
@@ -312,6 +313,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()));
console->setReadOnly(true);
@@ -1752,6 +1754,18 @@ MainWindow::helpManual()
QDesktopServices::openUrl(QUrl("http://en.wikibooks.org/wiki/OpenSCAD_User_Manual"));
}
+void MainWindow::helpOpenGL()
+{
+ if (!this->openglbox) {
+ this->openglbox = new QMessageBox(QMessageBox::Information,
+ "OpenGL Info", "Detailed OpenGL Info",
+ QMessageBox::Ok, this);
+
+ }
+ this->openglbox->setDetailedText(this->glview->getRendererInfo());
+ this->openglbox->show();
+}
+
/*!
FIXME: In MDI mode, should this be called on both reload functions?
*/
@@ -1822,3 +1836,4 @@ void MainWindow::clearCurrentOutput()
{
set_output_handler(NULL, NULL);
}
+
contact: Jan Huwald // Impressum