Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / cinelerra / aboutprefs.C
blob6287b801ca683e547a85730392120476b9301b51
1 #include "aboutprefs.h"
2 #include "language.h"
3 #include "libmpeg3.h"
4 #include "mwindow.h"
5 #include "quicktime.h"
6 #include "theme.h"
7 #include "vframe.h"
8 #include "versioninfo.h"
12 AboutPrefs::AboutPrefs(MWindow *mwindow, PreferencesWindow *pwindow)
13  : PreferencesDialog(mwindow, pwindow)
17 AboutPrefs::~AboutPrefs()
21 int AboutPrefs::create_objects()
23         int x, y;
25         BC_Resources *resources = BC_WindowBase::get_resources();
27 //      add_subwindow(new BC_Title(mwindow->theme->preferencestitle_x, 
28 //              mwindow->theme->preferencestitle_y, 
29 //              _("About"), 
30 //              LARGEFONT, 
31 //              resources->text_default));
32         
33         x = mwindow->theme->preferencesoptions_x;
34         y = mwindow->theme->preferencesoptions_y +
35                 get_text_height(LARGEFONT);
37         char license1[BCTEXTLEN];
38         sprintf(license1, "%s %s", _("Cinelerra "), CINELERRA_VERSION);
40         set_font(LARGEFONT);
41         set_color(resources->text_default);
42         draw_text(x, y, license1);
44         y += get_text_height(LARGEFONT);
45         char license2[BCTEXTLEN];
46         sprintf(license2, "%s%s%s%s", 
47                 _("(C) 2006 Heroine Virtual Ltd.\n\n"),
48                 REPOABOUTPREFTXT,
49                 _("\nBuild date: "), 
50                 BUILDDATE);
51         set_font(MEDIUMFONT);
52         draw_text(x, y, license2);
56         y += get_text_height(MEDIUMFONT) * 4;
58         char versions[BCTEXTLEN];
59         sprintf(versions, 
60 _("Quicktime version %d.%d.%d (%s)\n"
61 "Libmpeg3 version %d.%d.%d\n"),
62 quicktime_major(),
63 quicktime_minor(),
64 quicktime_release(),
65 FFMPEG_EXTERNALTEXT,
66 mpeg3_major(),
67 mpeg3_minor(),
68 mpeg3_release());
69         draw_text(x, y, versions);
73         y += get_text_height(MEDIUMFONT) * 3;
74         set_font(LARGEFONT);
75         draw_text(x, y, "Credits:");
76         y += get_text_height(LARGEFONT);
77         set_font(MEDIUMFONT);
79         char credits[BCTEXTLEN];
80         sprintf(credits,
82 "Jack Crossfire\n"
83 "Richard Baverstock\n"
84 "Karl Bielefeldt\n"
85 "Kevin Brosius\n"
86 "Jean-Luc Coulon\n"
87 "Jean-Michel POURE\n"
88 "Jerome Cornet\n"
89 "Pierre Marc Dumuid\n"
90 "Alex Ferrer\n"
91 "Jan Gerber\n"
92 "Koen Muylkens\n"
93 "Stefan de Konink\n"
94 "Nathan Kurz\n"
95 "Greg Mekkes\n"
96 "Eric Seigne\n"
97 "Joe Stewart\n"
98 "Dan Streetman\n"
99 "Gustavo IƱiguez\n"
100 "Johannes Sixt\n"
101 "Mark Taraba\n"
102 "Andraz Tori\n"
103 "Jonas Wulff\n"
104 "Christian Thaeter\n"
107         draw_text(x, y, credits);
109         y = get_h() - 135;
111         set_font(LARGEFONT);
112         draw_text(x, y, "License:");
113         y += get_text_height(LARGEFONT);
115         set_font(MEDIUMFONT);
117         char license3[BCTEXTLEN];
118         sprintf(license3, _(
119 "This program is free software; you can redistribute it and/or modify it under the terms\n"
120 "of the GNU General Public License as published by the Free Software Foundation; either version\n"
121 "2 of the License, or (at your option) any later version.\n"
122 "\n"
123 "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n"
124 "without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n"
125 "PURPOSE.  See the GNU General Public License for more details.\n"
126 "\n"));
127         draw_text(x, y, license3);
129         x = get_w() - mwindow->theme->about_bg->get_w() - 10;
130         y = mwindow->theme->preferencesoptions_y;
131         BC_Pixmap *temp_pixmap = new BC_Pixmap(this, 
132                 mwindow->theme->about_bg,
133                 PIXMAP_ALPHA);
134         draw_pixmap(temp_pixmap, 
135                 x, 
136                 y);
138         delete temp_pixmap;
141         x += mwindow->theme->about_bg->get_w() + 10;
142         y += get_text_height(LARGEFONT) * 2;
145         flash();
146         flush();
147         return 0;
152 //      Local Variables:
153 //      mode: C++
154 //      c-file-style: "linux"
155 //      End: