r935: a) prevent creating two clips with the same name
[cinelerra_cv/mob.git] / cinelerra / aboutprefs.C
blob43f75558312b7b2800413cfb148fb2d93c26cdea
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\n"
61 "Libmpeg3 version %d.%d.%d\n"),
62 quicktime_major(),
63 quicktime_minor(),
64 quicktime_release(),
65 mpeg3_major(),
66 mpeg3_minor(),
67 mpeg3_release());
68         draw_text(x, y, versions);
72         y += get_text_height(MEDIUMFONT) * 3;
73         set_font(LARGEFONT);
74         draw_text(x, y, "Credits:");
75         y += get_text_height(LARGEFONT);
76         set_font(MEDIUMFONT);
78         char credits[BCTEXTLEN];
79         sprintf(credits,
81 "Jack Crossfire\n"
82 "Richard Baverstock\n"
83 "Karl Bielefeldt\n"
84 "Kevin Brosius\n"
85 "Jean-Luc Coulon\n"
86 "Jean-Michel POURE\n"
87 "Jerome Cornet\n"
88 "Pierre Marc Dumuid\n"
89 "Alex Ferrer\n"
90 "Jan Gerber\n"
91 "Koen Muylkens\n"
92 "Stefan de Konink\n"
93 "Nathan Kurz\n"
94 "Greg Mekkes\n"
95 "Eric Seigne\n"
96 "Joe Stewart\n"
97 "Dan Streetman\n"
98 "Gustavo IƱiguez\n"
99 "Johannes Sixt\n"
100 "Mark Taraba\n"
101 "Andraz Tori\n"
102 "Jonas Wulff\n"
105         draw_text(x, y, credits);
107         y = get_h() - 135;
109         set_font(LARGEFONT);
110         draw_text(x, y, "License:");
111         y += get_text_height(LARGEFONT);
113         set_font(MEDIUMFONT);
115         char license3[BCTEXTLEN];
116         sprintf(license3, _(
117 "This program is free software; you can redistribute it and/or modify it under the terms\n"
118 "of the GNU General Public License as published by the Free Software Foundation; either version\n"
119 "2 of the License, or (at your option) any later version.\n"
120 "\n"
121 "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n"
122 "without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n"
123 "PURPOSE.  See the GNU General Public License for more details.\n"
124 "\n"));
125         draw_text(x, y, license3);
127         x = get_w() - mwindow->theme->about_bg->get_w() - 10;
128         y = mwindow->theme->preferencesoptions_y;
129         BC_Pixmap *temp_pixmap = new BC_Pixmap(this, 
130                 mwindow->theme->about_bg,
131                 PIXMAP_ALPHA);
132         draw_pixmap(temp_pixmap, 
133                 x, 
134                 y);
136         delete temp_pixmap;
139         x += mwindow->theme->about_bg->get_w() + 10;
140         y += get_text_height(LARGEFONT) * 2;
143         flash();
144         flush();
145         return 0;