Mercurial > octave-nkf
changeset 17509:d0fa3568eb5d
update links in Help menu
* main-window.cc, main-window.h: Update links to the documentation,
octave packages, bug reporting, and agora. Add links for developers
and contributing.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 26 Sep 2013 15:28:33 -0400 |
parents | a28c3fb15ad8 |
children | 7542f4496974 |
files | libgui/src/main-window.cc libgui/src/main-window.h |
diffstat | 2 files changed, 37 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/main-window.cc Sat Sep 28 17:32:58 2013 +0200 +++ b/libgui/src/main-window.cc Thu Sep 26 15:28:33 2013 -0400 @@ -243,25 +243,37 @@ void main_window::open_online_documentation_page (void) { - QDesktopServices::openUrl (QUrl ("http://gnu.org/software/octave/doc/interpreter")); + QDesktopServices::openUrl (QUrl ("http://octave.org/doc/interpreter")); } void main_window::open_bug_tracker_page (void) { - QDesktopServices::openUrl (QUrl ("http://bugs.octave.org")); + QDesktopServices::openUrl (QUrl ("http://octave.org/bugs.html")); } void -main_window::open_octave_forge_page (void) +main_window::open_octave_packages_page (void) { - QDesktopServices::openUrl (QUrl ("http://octave.sourceforge.net/")); + QDesktopServices::openUrl (QUrl ("http://octave.org/packages.html")); } void main_window::open_agora_page (void) { - QDesktopServices::openUrl (QUrl ("http://agora.octave.org/")); + QDesktopServices::openUrl (QUrl ("http://agora.octave.org")); +} + +void +main_window::open_contribute_page (void) +{ + QDesktopServices::openUrl (QUrl ("http://octave.org/donate.html")); +} + +void +main_window::open_developer_page (void) +{ + QDesktopServices::openUrl (QUrl ("http://ocxtave.org/get-involved.html")); } void @@ -1351,11 +1363,17 @@ QAction *report_bug_action = help_menu->addAction (tr ("Report Bug")); - QAction *octave_forge_action - = help_menu->addAction (tr ("Visit Octave Forge")); + QAction *octave_packages_action + = help_menu->addAction (tr ("Octave Packages")); QAction *agora_action - = help_menu->addAction (tr ("Visit Agora")); + = help_menu->addAction (tr ("Share Code")); + + QAction *contribute_action + = help_menu->addAction (tr ("Contribute to Octave")); + + QAction *developer_action + = help_menu->addAction (tr ("Octave Developer Resources")); help_menu->addSeparator (); @@ -1365,12 +1383,18 @@ connect (report_bug_action, SIGNAL (triggered ()), this, SLOT (open_bug_tracker_page ())); - connect (octave_forge_action, SIGNAL (triggered ()), - this, SLOT (open_octave_forge_page ())); + connect (octave_packages_action, SIGNAL (triggered ()), + this, SLOT (open_octave_packages_page ())); connect (agora_action, SIGNAL (triggered ()), this, SLOT (open_agora_page ())); + connect (contribute_action, SIGNAL (triggered ()), + this, SLOT (open_contribute_page ())); + + connect (developer_action, SIGNAL (triggered ()), + this, SLOT (open_developer_page ())); + connect (about_octave_action, SIGNAL (triggered ()), this, SLOT (show_about_octave ())); }
--- a/libgui/src/main-window.h Sat Sep 28 17:32:58 2013 +0200 +++ b/libgui/src/main-window.h Thu Sep 26 15:28:33 2013 -0400 @@ -109,8 +109,10 @@ void open_file (const QString& file_name = QString ()); void open_online_documentation_page (void); void open_bug_tracker_page (void); - void open_octave_forge_page (void); + void open_octave_packages_page (void); void open_agora_page (void); + void open_contribute_page (void); + void open_developer_page (void); void process_settings_dialog_request (void); void show_about_octave (void); void notice_settings (const QSettings *settings);