changeset 13533:edaf8e72070e

Added urls for Agora and Octave Forge in Community Window.
author Jacob Dawid <jacob.dawid@googlemail.com>
date Tue, 26 Jul 2011 01:27:31 +0200
parents fd87d6f7e185
children e02a2fb08bfd
files gui/src/MainWindow.cpp gui/src/MainWindow.h
diffstat 2 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/src/MainWindow.cpp
+++ b/gui/src/MainWindow.cpp
@@ -141,6 +141,20 @@
 }
 
 void
+MainWindow::openAgoraPage ()
+{
+  QDesktopServices::
+    openUrl (QUrl ("http://agora.panocha.org.mx/"));
+}
+
+void
+MainWindow::openOctaveForgePage ()
+{
+  QDesktopServices::
+    openUrl (QUrl ("http://octave.sourceforge.net/"));
+}
+
+void
 MainWindow::processSettingsDialogRequest ()
 {
   SettingsDialog settingsDialog (this, m_settingsFile);
@@ -258,12 +272,17 @@
 
   QMenu *communityMenu = menuBar ()->addMenu (tr ("Community"));
   QAction *reportBugAction = communityMenu->addAction (tr ("Report Bug"));
+  QAction *agoraAction = communityMenu->addAction (tr ("Agora"));
+  QAction *octaveForgeAction = communityMenu->addAction (tr ("Octave Forge"));
 
   connect (settingsAction, SIGNAL (triggered ()), this, SLOT (processSettingsDialogRequest ()));
   connect (exitAction, SIGNAL (triggered ()), this, SLOT (close ()));
   connect (alignWindowsAction, SIGNAL (triggered ()), this, SLOT (alignMdiWindows ()));
   connect (openEditorAction, SIGNAL (triggered ()), this, SLOT (openEditor ()));
   connect (reportBugAction, SIGNAL (triggered ()), this, SLOT (openBugTrackerPage ()));
+  connect (agoraAction, SIGNAL (triggered ()), this, SLOT (openAgoraPage ()));
+  connect (octaveForgeAction, SIGNAL (triggered ()), this, SLOT (openOctaveForgePage ()));
+
   connect (showWorkspaceAction, SIGNAL (toggled (bool)), m_variablesDockWidget, SLOT (setShown (bool)));
   connect (m_variablesDockWidget, SIGNAL (visibilityChanged (bool)), showWorkspaceAction, SLOT (setChecked (bool)));
   connect (showHistoryAction, SIGNAL (toggled (bool)), m_historyDockWidget, SLOT (setShown (bool)));
--- a/gui/src/MainWindow.h
+++ b/gui/src/MainWindow.h
@@ -80,6 +80,8 @@
   void alignMdiWindows ();
   void openEditor ();
   void openBugTrackerPage ();
+  void openAgoraPage ();
+  void openOctaveForgePage ();
   void processSettingsDialogRequest ();
 
 protected: