diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/MainWindow.h | 1 | ||||
-rw-r--r-- | src/MainWindow.ui | 8 | ||||
-rw-r--r-- | src/mainwin.cc | 7 |
3 files changed, 15 insertions, 1 deletions
diff --git a/src/MainWindow.h b/src/MainWindow.h index 44f2a87..029da46 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -141,6 +141,7 @@ public slots: void dragEnterEvent(QDragEnterEvent *event); void dropEvent(QDropEvent *event); void helpAbout(); + void helpHomepage(); void helpManual(); void quit(); void actionReloadCompile(); diff --git a/src/MainWindow.ui b/src/MainWindow.ui index 0ad200d..37d8579 100644 --- a/src/MainWindow.ui +++ b/src/MainWindow.ui @@ -118,7 +118,7 @@ <x>0</x> <y>0</y> <width>681</width> - <height>22</height> + <height>25</height> </rect> </property> <widget class="QMenu" name="menu_File"> @@ -219,6 +219,7 @@ <string>Help</string> </property> <addaction name="helpActionAbout"/> + <addaction name="helpActionHomepage"/> <addaction name="helpActionManual"/> </widget> <addaction name="menu_File"/> @@ -642,6 +643,11 @@ <string>Flush Caches</string> </property> </action> + <action name="helpActionHomepage"> + <property name="text"> + <string>OpenSCAD Homepage</string> + </property> + </action> </widget> <customwidgets> <customwidget> diff --git a/src/mainwin.cc b/src/mainwin.cc index fc26799..296cdb5 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -288,6 +288,7 @@ MainWindow::MainWindow(const char *filename) // Help menu connect(this->helpActionAbout, SIGNAL(triggered()), this, SLOT(helpAbout())); + connect(this->helpActionHomepage, SIGNAL(triggered()), this, SLOT(helpHomepage())); connect(this->helpActionManual, SIGNAL(triggered()), this, SLOT(helpManual())); @@ -1768,6 +1769,12 @@ MainWindow::helpAbout() } void +MainWindow::helpHomepage() +{ + QDesktopServices::openUrl(QUrl("http://openscad.org/")); +} + +void MainWindow::helpManual() { QDesktopServices::openUrl(QUrl("http://en.wikibooks.org/wiki/OpenSCAD_User_Manual")); |