diff options
| -rw-r--r-- | MainWindow.h | 1 | ||||
| -rw-r--r-- | MainWindow.ui | 6 | ||||
| -rw-r--r-- | mainwin.cc | 8 | 
3 files changed, 15 insertions, 0 deletions
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 @@       <string>Help</string>      </property>      <addaction name="helpActionAbout"/> +    <addaction name="helpActionManual"/>     </widget>     <addaction name="menu_File"/>     <addaction name="menu_Edit"/> @@ -552,6 +553,11 @@      <string>About</string>     </property>    </action> +  <action name="helpActionManual"> +   <property name="text"> +    <string>OpenSCAD Manual</string> +   </property> +  </action>   </widget>   <customwidgets>    <customwidget> @@ -41,6 +41,7 @@  #include <QUrl>  #include <QTimer>  #include <QMessageBox> +#include <QDesktopServices>  //for chdir  #include <unistd.h> @@ -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")); +} +  | 
