Enable Menu > Quit to work again after startup on macOS
[ardour.git] / gtk2_ardour / ardour_ui_access_web.cc
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/i18n.h"
40 #include "pbd/openuri.h"
41
42 #include "ardour_ui.h"
43
44 using namespace ARDOUR;
45 using namespace PBD;
46 using namespace Gtk;
47 using namespace std;
48
49 void
50 ARDOUR_UI::launch_chat ()
51 {
52         MessageDialog dialog(_("<b>Just ask and wait for an answer.\nIt may take from minutes to hours.</b>"), true);
53
54         dialog.set_title (_("About the Chat"));
55         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."));
56
57         switch (dialog.run()) {
58         case RESPONSE_OK:
59                 open_uri("http://webchat.freenode.net/?channels=ardour");
60                 break;
61         default:
62                 break;
63         }
64 }
65
66 void
67 ARDOUR_UI::launch_manual ()
68 {
69         PBD::open_uri (Config->get_tutorial_manual_url());
70 }
71
72 void
73 ARDOUR_UI::launch_reference ()
74 {
75         PBD::open_uri (Config->get_reference_manual_url());
76 }
77
78 void
79 ARDOUR_UI::launch_tracker ()
80 {
81         PBD::open_uri ("http://tracker.ardour.org");
82 }
83
84 void
85 ARDOUR_UI::launch_subscribe ()
86 {
87         PBD::open_uri ("https://community.ardour.org/s/subscribe");
88 }
89
90 void
91 ARDOUR_UI::launch_cheat_sheet ()
92 {
93 #ifdef __APPLE__
94         PBD::open_uri ("http://manual.ardour.org/files/a3_mnemonic_cheat_sheet_osx.pdf");
95 #else
96         PBD::open_uri ("http://manual.ardour.org/files/a3_mnemonic_cheatsheet.pdf");
97 #endif
98 }
99
100 void
101 ARDOUR_UI::launch_website ()
102 {
103         PBD::open_uri ("http://ardour.org");
104 }
105
106 void
107 ARDOUR_UI::launch_website_dev ()
108 {
109         PBD::open_uri ("http://ardour.org/development.html");
110 }
111
112 void
113 ARDOUR_UI::launch_forums ()
114 {
115         PBD::open_uri ("https://community.ardour.org/forums");
116 }
117
118 void
119 ARDOUR_UI::launch_howto_report ()
120 {
121         PBD::open_uri ("http://ardour.org/reporting_bugs");
122 }
123