From 63ea5d509ca1432d718806e01d5f6553fa993cd4 Mon Sep 17 00:00:00 2001 From: kintel Date: Sat, 12 Dec 2009 22:19:53 +0000 Subject: Launch manual from Help menu git-svn-id: http://svn.clifford.at/openscad/trunk@166 b57f626f-c46c-0410-a088-ec61d464b74c diff --git a/MainWindow.h b/MainWindow.h index 1019780..c08e369 100644 --- a/MainWindow.h +++ b/MainWindow.h @@ -112,6 +112,7 @@ public slots: void dragEnterEvent(QDragEnterEvent *event); void dropEvent(QDropEvent *event); void helpAbout(); + void helpManual(); }; #endif diff --git a/MainWindow.ui b/MainWindow.ui index 962dee6..607c73c 100644 --- a/MainWindow.ui +++ b/MainWindow.ui @@ -179,6 +179,7 @@ Help + @@ -552,6 +553,11 @@ About + + + OpenSCAD Manual + + diff --git a/mainwin.cc b/mainwin.cc index 9bd6889..3361cc0 100644 --- a/mainwin.cc +++ b/mainwin.cc @@ -41,6 +41,7 @@ #include #include #include +#include //for chdir #include @@ -203,6 +204,7 @@ MainWindow::MainWindow(const char *filename) // Help menu connect(this->helpActionAbout, SIGNAL(triggered()), this, SLOT(helpAbout())); + connect(this->helpActionManual, SIGNAL(triggered()), this, SLOT(helpManual())); console->setReadOnly(true); @@ -1337,3 +1339,9 @@ MainWindow::helpAbout() QMessageBox::information(this, "About OpenSCAD", helptext); } +void +MainWindow::helpManual() +{ + QDesktopServices::openUrl(QUrl("http://en.wikibooks.org/wiki/OpenSCAD_User_Manual")); +} + -- cgit v0.10.1