idok-commit AT lists.psi.ch
Subject: Commit emails of the iDok project
List archive
- From: "Apache" <apache AT savannah.psi.ch>
- To: idok-commit AT lists.psi.ch
- Subject: [idok-commit] idok commit r136 - trunk/java/ch/idok/qtgui
- Date: Fri, 4 Jul 2008 12:28:37 +0200
- List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
- List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>
Author: huebner AT PSI.CH
Date: Fri Jul 4 12:28:37 2008
New Revision: 136
Log:
Added feature #IDO-85: Add link to online help in help menu
Modified:
trunk/java/ch/idok/qtgui/DmsMainWindow.jui
trunk/java/ch/idok/qtgui/Icons.java
trunk/java/ch/idok/qtgui/MainWindow.java
Modified: trunk/java/ch/idok/qtgui/DmsMainWindow.jui
==============================================================================
--- trunk/java/ch/idok/qtgui/DmsMainWindow.jui (original)
+++ trunk/java/ch/idok/qtgui/DmsMainWindow.jui Fri Jul 4 12:28:37 2008
@@ -148,6 +148,8 @@
<property name="title" >
<string>Help</string>
</property>
+ <addaction name="actioniDok_online_documentation" />
+ <addaction name="actioniDok_online_FAQ" />
</widget>
<widget class="QMenu" name="menuAbout" >
<property name="title" >
@@ -276,6 +278,16 @@
<string>About Qt</string>
</property>
</action>
+ <action name="actioniDok_online_documentation" >
+ <property name="text" >
+ <string>Online Documentation</string>
+ </property>
+ </action>
+ <action name="actioniDok_online_FAQ" >
+ <property name="text" >
+ <string>Online FAQ</string>
+ </property>
+ </action>
</widget>
<resources/>
<connections/>
Modified: trunk/java/ch/idok/qtgui/Icons.java
==============================================================================
--- trunk/java/ch/idok/qtgui/Icons.java (original)
+++ trunk/java/ch/idok/qtgui/Icons.java Fri Jul 4 12:28:37 2008
@@ -28,6 +28,10 @@
public static QIcon QTLOGO = new QIcon(
"classpath:ch/idok/qtgui/images/qt.png");
+
+ public static QIcon DOC = new QIcon(
+ "classpath:ch/idok/qtgui/images/doc.png");
+
public static QIcon RELOADICON = new QIcon(
"classpath:ch/idok/qtgui/images/reload.png");
Modified: trunk/java/ch/idok/qtgui/MainWindow.java
==============================================================================
--- trunk/java/ch/idok/qtgui/MainWindow.java (original)
+++ trunk/java/ch/idok/qtgui/MainWindow.java Fri Jul 4 12:28:37 2008
@@ -55,6 +55,7 @@
import com.trolltech.qt.gui.QToolBar;
import com.trolltech.qt.gui.QTreeWidgetItem;
import com.trolltech.qt.gui.QKeySequence.StandardKey;
+import com.trolltech.qt.webkit.QWebView;
/**
* This class is responsible for setting up the main graphical user interface
@@ -180,6 +181,9 @@
ui_.dockWidgetLocalFS.setWindowTitle(tr("Local files"));
ui_.dockWidgetMetaData.setWindowTitle(tr("Metadata"));
ui_.previewDockWidget.setWindowTitle(tr("Preview"));
+
+ ui_.actioniDok_online_documentation.setIcon(Icons.DOC);
+ ui_.actioniDok_online_FAQ.setIcon(Icons.DOC);
ui_.actionAbout_iDok.setIcon(Icons.IDOKLOGO);
ui_.actionAbout_Qt.setIcon(Icons.QTLOGO);
@@ -945,6 +949,15 @@
d.exec();
d.dispose(); // Not strictly needed, but it frees up memory faster.
}
+
+ public final void on_actioniDok_online_documentation_triggered() {
+
+ startExternalProgram("http://www.idok.ch/documentation/");
+ }
+
+ public final void on_actioniDok_online_FAQ_triggered() {
+ startExternalProgram("http://www.idok.ch/faq/");
+ }
public final void onExit() {
close();
- [idok-commit] idok commit r136 - trunk/java/ch/idok/qtgui, Apache, 07/04/2008
Archive powered by MHonArc 2.6.19.