From 0d771999ac9c1de2987b3d549ecc060e818bd69c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 18 Dec 2014 11:09:10 -0500 Subject: [PATCH] expand help menu with various useful entries. From Georg Kraus. Addresses #5783, and was github pull request #67. Manually applied via .diff because of merge mechanics issues --- gtk2_ardour/about.cc | 1 + gtk2_ardour/ardour_ui.cc | 40 +++++++++++++++++++++++++++++++++++++ gtk2_ardour/ardour_ui.h | 6 ++++++ gtk2_ardour/ardour_ui_ed.cc | 6 ++++++ 4 files changed, 53 insertions(+) diff --git a/gtk2_ardour/about.cc b/gtk2_ardour/about.cc index dbf033be74..3bf9a31422 100644 --- a/gtk2_ardour/about.cc +++ b/gtk2_ardour/about.cc @@ -156,6 +156,7 @@ static const char* authors[] = { N_("Armand Klenk"), N_("Julien de Kozak"), N_("Matt Krai"), + N_("Georg Krause"), N_("Nick Lanham"), N_("Colin Law"), N_("Joshua Leach"), diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 3ee75926fa..3bfb204df4 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -3159,6 +3159,46 @@ ARDOUR_UI::launch_reference () PBD::open_uri (Config->get_reference_manual_url()); } +void +ARDOUR_UI::launch_tracker () +{ + PBD::open_uri ("http://tracker.ardour.org/bug_report_page.php"); +} + +void +ARDOUR_UI::launch_cheat_sheet () +{ +#ifdef __APPLE__ + PBD::open_uri ("http://manual.ardour.org/files/a3_mnemonic_cheat_sheet_osx.pdf"); +#else + PBD::open_uri ("http://manual.ardour.org/files/a3_mnemonic_cheatsheet.pdf"); +#endif +} + +void +ARDOUR_UI::launch_website () +{ + PBD::open_uri ("http://ardour.org"); +} + +void +ARDOUR_UI::launch_website_dev () +{ + PBD::open_uri ("http://ardour.org/development.html"); +} + +void +ARDOUR_UI::launch_forums () +{ + PBD::open_uri ("https://community.ardour.org/forums"); +} + +void +ARDOUR_UI::launch_howto_report () +{ + PBD::open_uri ("http://ardour.org/reporting_bugs"); +} + void ARDOUR_UI::loading_message (const std::string& msg) { diff --git a/gtk2_ardour/ardour_ui.h b/gtk2_ardour/ardour_ui.h index bd266a0f80..f2cc1dde79 100644 --- a/gtk2_ardour/ardour_ui.h +++ b/gtk2_ardour/ardour_ui.h @@ -145,6 +145,12 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr void launch_chat (); void launch_manual (); void launch_reference (); + void launch_tracker (); + void launch_cheat_sheet (); + void launch_website (); + void launch_website_dev (); + void launch_forums (); + void launch_howto_report (); void show_about (); void hide_about (); diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc index 2629352c64..0b237526ac 100644 --- a/gtk2_ardour/ardour_ui_ed.cc +++ b/gtk2_ardour/ardour_ui_ed.cc @@ -209,6 +209,12 @@ if (Profile->get_mixbus()) /** TRANSLATORS: This is `Manual' in the sense of an instruction book that tells a user how to use Ardour */ ActionManager::register_action (common_actions, X_("Manual"), S_("Help|Manual"), mem_fun(*this, &ARDOUR_UI::launch_manual)); ActionManager::register_action (common_actions, X_("Reference"), _("Reference"), mem_fun(*this, &ARDOUR_UI::launch_reference)); + ActionManager::register_action (common_actions, X_("Tracker"), _("Report A Bug"), mem_fun(*this, &ARDOUR_UI::launch_tracker)); + ActionManager::register_action (common_actions, X_("Cheat_Sheet"), _("Cheat Sheet"), mem_fun(*this, &ARDOUR_UI::launch_cheat_sheet)); + ActionManager::register_action (common_actions, X_("Website"), _("Ardour Website"), mem_fun(*this, &ARDOUR_UI::launch_website)); + ActionManager::register_action (common_actions, X_("Website_Dev"), _("Ardour Development"), mem_fun(*this, &ARDOUR_UI::launch_website_dev)); + ActionManager::register_action (common_actions, X_("Forums"), _("User Forums"), mem_fun(*this, &ARDOUR_UI::launch_forums)); + ActionManager::register_action (common_actions, X_("Howto_Report"), _("How to report a bug"), mem_fun(*this, &ARDOUR_UI::launch_howto_report)); act = ActionManager::register_action (common_actions, X_("Save"), _("Save"), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::save_state), string(""), false)); ActionManager::session_sensitive_actions.push_back (act);