1 /* 2 * Copyright (C) 2005-2007 Doug McLain <doug@nostar.net> 3 * Copyright (C) 2005-2017 Tim Mayberry <mojofunk@gmail.com> 4 * Copyright (C) 2005-2019 Paul Davis <paul@linuxaudiosystems.com> 5 * Copyright (C) 2005 Karsten Wiese <fzuuzf@googlemail.com> 6 * Copyright (C) 2005 Taybin Rutkin <taybin@taybin.com> 7 * Copyright (C) 2006-2015 David Robillard <d@drobilla.net> 8 * Copyright (C) 2007-2012 Carl Hetherington <carl@carlh.net> 9 * Copyright (C) 2008-2010 Sakari Bergen <sakari.bergen@beatwaves.net> 10 * Copyright (C) 2012-2019 Robin Gareus <robin@gareus.org> 11 * Copyright (C) 2013-2015 Colin Fletcher <colin.m.fletcher@googlemail.com> 12 * Copyright (C) 2013-2016 John Emmas <john@creativepost.co.uk> 13 * Copyright (C) 2013-2016 Nick Mainsbridge <mainsbridge@gmail.com> 14 * Copyright (C) 2014-2018 Ben Loftis <ben@harrisonconsoles.com> 15 * Copyright (C) 2015 André Nusser <andre.nusser@googlemail.com> 16 * Copyright (C) 2016-2018 Len Ovens <len@ovenwerks.net> 17 * Copyright (C) 2017 Johannes Mueller <github@johannes-mueller.org> 18 * 19 * This program is free software; you can redistribute it and/or modify 20 * it under the terms of the GNU General Public License as published by 21 * the Free Software Foundation; either version 2 of the License, or 22 * (at your option) any later version. 23 * 24 * This program is distributed in the hope that it will be useful, 25 * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 27 * GNU General Public License for more details. 28 * 29 * You should have received a copy of the GNU General Public License along 30 * with this program; if not, write to the Free Software Foundation, Inc., 31 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 32 */ 33 34 #ifdef WAF_BUILD 35 #include "gtk2ardour-config.h" 36 #include "gtk2ardour-version.h" 37 #endif 38 39 #include "pbd/openuri.h" 40 41 #include "ardour_message.h" 42 #include "ardour_ui.h" 43 44 #include "pbd/i18n.h" 45 46 using namespace ARDOUR; 47 using namespace PBD; 48 using namespace Gtk; 49 using namespace std; 50 51 void launch_chat()52ARDOUR_UI::launch_chat () 53 { 54 ArdourMessageDialog dialog(_("<b>Just ask and wait for an answer.\nIt may take from minutes to hours.</b>"), true); 55 56 dialog.set_title (_("About the Chat")); 57 dialog.set_secondary_text (_("When you're inside the chat just ask your question and wait for an answer. The chat is occupied by real people with real lives so many of them are passively online and might not read your question before minutes or hours later.\nSo please be patient and wait for an answer.\n\nYou should just leave the chat window open and check back regularly until someone has answered your question.")); 58 59 switch (dialog.run()) { 60 case RESPONSE_OK: 61 open_uri("http://ardour.org/chat"); 62 break; 63 default: 64 break; 65 } 66 } 67 68 void launch_tutorial()69ARDOUR_UI::launch_tutorial () 70 { 71 PBD::open_uri (Config->get_tutorial_manual_url()); 72 } 73 74 void launch_reference()75ARDOUR_UI::launch_reference () 76 { 77 PBD::open_uri (Config->get_reference_manual_url()); 78 } 79 80 void launch_tracker()81ARDOUR_UI::launch_tracker () 82 { 83 PBD::open_uri ("http://tracker.ardour.org"); 84 } 85 86 void launch_subscribe()87ARDOUR_UI::launch_subscribe () 88 { 89 PBD::open_uri ("https://community.ardour.org/s/subscribe"); 90 } 91 92 void launch_cheat_sheet()93ARDOUR_UI::launch_cheat_sheet () 94 { 95 #ifdef __APPLE__ 96 PBD::open_uri ("http://manual.ardour.org/files/a3_mnemonic_cheat_sheet_osx.pdf"); 97 #else 98 PBD::open_uri ("http://manual.ardour.org/files/a3_mnemonic_cheatsheet.pdf"); 99 #endif 100 } 101 102 void launch_website()103ARDOUR_UI::launch_website () 104 { 105 PBD::open_uri ("http://ardour.org"); 106 } 107 108 void launch_website_dev()109ARDOUR_UI::launch_website_dev () 110 { 111 PBD::open_uri ("http://ardour.org/development.html"); 112 } 113 114 void launch_forums()115ARDOUR_UI::launch_forums () 116 { 117 PBD::open_uri ("https://community.ardour.org/forums"); 118 } 119 120 void launch_howto_report()121ARDOUR_UI::launch_howto_report () 122 { 123 PBD::open_uri ("http://ardour.org/reporting_bugs"); 124 } 125 126