2 Copyright (C) 2003 Paul Davis
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include <sys/types.h>
28 #include <pbd/file_utils.h>
30 #include <ardour/ardour.h>
31 #include <ardour/version.h>
32 #include <ardour/filesystem_paths.h>
37 #include "svn_revision.h"
39 #include "rgb_macros.h"
40 #include "ardour_ui.h"
48 using namespace ARDOUR;
51 #ifdef WITH_PAYMENT_OPTIONS
54 static const gchar * paypal_xpm[] = {
89 "1'111111111111111111111111111111111111111111111111111111111%_#",
90 "%333333333333333333333333333333333333333333333333333333333333.",
91 "%444444444444444444444444444444444444444444444444444444444444:",
92 "_4333333!!!!!!33333333333333333333!!!!!!33333333333!%%%%1334[:",
93 "_444444@+}}}}+>)44444444444444444,:}}}}}.^(44444444@}..+.44($:",
94 "_433333^:&&&&)_}_33///33333333333&+)&&&'~+./3///333^.(;#]33($:",
95 "_444444>_444444'}_>...#%####~,]##..444444=+#]...>1;#_4;.144($:",
96 "_43333!+'4,>#=4(:+_%%%]}}#~#}_+~~:]44_>&44#}_%%%_+>:14=}@33($:",
97 "_44444*+$4&--)4(+%44444%-)4=--'4{+14,}-~44##44444&}}*4)+444($:",
98 "_433331:;4):_;4*}_]:.$4*-~4{}>44#-=4@.#{4;+>_:.&4,++;4_#333($:",
99 "_44444_#444444=.-.%&*,41-#4(:@4'-:(44444(_-:^&*,4*}#44.%444($:",
100 "_43333:%4;@@'~+-%44*&44]-.;;'4,:-#44*@&%:-];4{'(4)-%4{+&333($:",
101 "_4444{}@4*}}+>#:;4^-#4;.>+,444_+:^4(:}+.]}=4'-+(4_-&4&+{444($:",
102 "_4333'+(41:*=3'.44*)(4=+)+*44@}%+@4=}&=/@}{4{1{44:+,4^.3333($:",
103 "_4444~>,,]#444*})(;**,':*}'4;._@}=,%:444(+~(;{&,*}.,,>~4444($:",
104 "_4333>}}}}^3333~}::}}}}>].;4^+=~}}}}]3333'}+:}}}}}}}}}'3333($:",
105 "_4444$@@@@(44444$))@*@*^}$4=}14=@@@@{44444=))&*@@@@@@@;4444($:",
106 "_433333333333333333333=+:%%.>/33333333333333333333333333333($:",
107 "_4444444444444444444441....>=444444444444444444444444444444($:",
108 "_4333333333333333333333333333333333333333333333333333333333($:",
109 "_4444444444444444444444444444444444444444444444444444444444($:",
110 "_4333333333333333333333333333333333333333333333333333333333($:",
111 "_4444442222444222442444242444244222242444242222244222244444($:",
112 "_4333332333232333233232332232233233332233233323332333333333($:",
113 "_4444442222442222244424442424244222442424244424444222444444($:",
114 "_4333332333332333233323332333233233332332233323333333233333($:",
115 "_4444442444442444244424442444244222242444244424442222444444($:",
116 "_433333333333333333333333333333333333333333333333333333333344:",
117 "#4([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[=&:",
118 ".=&<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<1|",
119 "::||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"};
122 static const char* authors[] = {
124 N_("Jesse Chappell"),
126 N_("Marcus Andersson"),
135 N_("Gerard van Dongen"),
136 N_("Thomas Charbonnel"),
137 N_("Nick Mainsbridge"),
139 N_("Sampo Savolainen"),
144 N_("Petter Sundlöf"),
145 N_("Thorsten Wilms"),
147 N_("Stefan Kersten"),
148 N_("Christopher George"),
149 N_("Robert Jordens"),
150 N_("Dave Robillard"),
153 N_("Nimal Ratnayake"),
156 N_("Nedko Arnaudov"),
157 N_("Carl Hetherington"),
158 N_("Colin Fletcher"),
165 static const char* translators[] = {
166 N_("French:\n\tAlain Fréhel <alain.frehel@free.fr>\n\tChristophe Combelles <ccomb@free.fr>\n"),
167 N_("German:\n\tKarsten Petersen <kapet@kapet.de>\n\tSebastian Arnold <mail@sebastian-arnold.net>\n"),
168 N_("Italian:\n\tFilippo Pappalardo <filippo@email.it>\n"),
169 N_("Portuguese:\n\tRui Nuno Capela <rncbc@rncbc.org>\n"),
170 N_("Brazilian Portuguese:\n\tAlexander da Franca Fernandes <alexander@nautae.eti.br>\
171 \n\tChris Ross <chris@tebibyte.org>\n"),
172 N_("Spanish:\n\t Alex Krohn <alexkrohn@fastmail.fm>\n"),
173 N_("Russian:\n\t Igor Blinov <pitstop@nm.ru>\n"),
174 N_("Greek:\n\t Klearchos Gourgourinis <muadib@in.gr>\n"),
175 N_("Swedish:\n\t Petter Sundlöf <petter.sundlof@gmail.com>\n"),
176 N_("Polish:\n\t Piotr Zaryk <pzaryk@gmail.com>\n"),
182 #ifdef WITH_PAYMENT_OPTIONS
183 : paypal_pixmap (paypal_xpm)
186 // set_type_hint(Gdk::WINDOW_TYPE_HINT_SPLASHSCREEN);
191 sys::path splash_file;
193 SearchPath spath(ardour_search_path() + system_data_search_path());
195 if (find_file_in_search_path (spath, "splash.png", splash_file)) {
196 set_logo (Gdk::Pixbuf::create_from_file (splash_file.to_string()));
198 error << "Could not find splash file" << endmsg;
201 set_authors (authors);
203 for (int n = 0; translators[n]; ++n) {
208 set_translator_credits (t);
209 set_copyright (_("Copyright (C) 1999-2008 Paul Davis\n"));
210 set_license (_("Ardour comes with ABSOLUTELY NO WARRANTY\n"
211 "This is free software, and you are welcome to redistribute it\n"
212 "under certain conditions; see the file COPYING for details.\n"));
213 set_name (X_("ardour"));
214 set_website (X_("http://ardour.org/"));
215 set_website_label (_("visit http://www.ardour.org/"));
216 set_version ((string_compose(_("%1\n(built from revision %2)"),
218 ardour_svn_revision)));
221 #ifdef WITH_PAYMENT_OPTIONS
222 paypal_button.add (paypal_pixmap);
224 HBox *payment_box = manage (new HBox);
225 payment_box->pack_start (paypal_button, true, false);
227 subvbox.pack_start (*payment_box, false, false);
236 #ifdef WITH_PAYMENT_OPTIONS
238 About::goto_paypal ()
240 char buf[PATH_MAX+16];
242 char *docfile = "foo";
249 if ((grandchild = fork()) == 0) {
255 snprintf (buf, sizeof(buf), "openurl(%s)", docfile);
259 execvp ("mozilla", argv);
260 error << "could not start mozilla" << endmsg;
264 waitpid (grandchild, &status, 0);