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