# HG changeset patch # User Jacob Dawid # Date 1311636451 -7200 # Node ID edaf8e72070e4529208d02e264226d9a61f663a2 # Parent fd87d6f7e18542a9d90b1af3cae8b1344760bdbe Added urls for Agora and Octave Forge in Community Window. diff --git a/gui/src/MainWindow.cpp b/gui/src/MainWindow.cpp --- 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))); diff --git a/gui/src/MainWindow.h b/gui/src/MainWindow.h --- 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: