summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-20 10:20:18 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-20 10:20:18 (GMT)
commit0b0aa7b9b3ba8d75e97f249750b3eb1c61d52c38 (patch)
tree292c7fdbbd4d351a59ecafd5284d7274a56f8223 /src
parent9beb315cbb3db05bc338a7ee27dfb54b29308471 (diff)
Clifford Wolf:
Added Help -> OpenSCAD Homepage Another RELEASE_NOTES typo fix git-svn-id: http://svn.clifford.at/openscad/trunk@445 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'src')
-rw-r--r--src/MainWindow.h1
-rw-r--r--src/MainWindow.ui8
-rw-r--r--src/mainwin.cc7
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"));
contact: Jan Huwald // Impressum