r885: Don't delete a borrowed frame.
[cinelerra_cv/ct.git] / cinelerra / aboutprefs.C
blobae678531c80eb194340856aa30b2f58573830c90
1 #include "aboutprefs.h"
2 #include "builddate.h"
3 #include "language.h"
4 #include "libmpeg3.h"
5 #include "mwindow.h"
6 #include "quicktime.h"
7 #include "theme.h"
8 #include "vframe.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", 
47                 _("(C) 2006 Heroine Virtual Ltd.\n\n"),
48                 _("Build date: "), 
49                 BUILDDATE);
50         set_font(MEDIUMFONT);
51         draw_text(x, y, license2);
55         y += get_text_height(MEDIUMFONT) * 3;
57         char versions[BCTEXTLEN];
58         sprintf(versions, 
59 _("Quicktime version %d.%d.%d\n"
60 "Libmpeg3 version %d.%d.%d\n"),
61 quicktime_major(),
62 quicktime_minor(),
63 quicktime_release(),
64 mpeg3_major(),
65 mpeg3_minor(),
66 mpeg3_release());
67         draw_text(x, y, versions);
71         y += get_text_height(MEDIUMFONT) * 3;
72         set_font(LARGEFONT);
73         draw_text(x, y, "Credits:");
74         y += get_text_height(LARGEFONT);
75         set_font(MEDIUMFONT);
77         char credits[BCTEXTLEN];
78         sprintf(credits,
80 "Jack Crossfire\n"
81 "Richard Baverstock\n"
82 "Karl Bielefeldt\n"
83 "Kevin Brosius\n"
84 "Jean-Luc Coulon\n"
85 "Jean-Michel POURE\n"
86 "Jerome Cornet\n"
87 "Pierre Marc Dumuid\n"
88 "Alex Ferrer\n"
89 "Jan Gerber\n"
90 "Koen Muylkens\n"
91 "Stefan de Konink\n"
92 "Nathan Kurz\n"
93 "Greg Mekkes\n"
94 "Eric Seigne\n"
95 "Joe Stewart\n"
96 "Dan Streetman\n"
97 "Gustavo IƱiguez\n"
98 "Johannes Sixt\n"
99 "Mark Taraba\n"
100 "Andraz Tori\n"
101 "Jonas Wulff\n"
104         draw_text(x, y, credits);
106         y = 450;
108         set_font(LARGEFONT);
109         draw_text(x, y, "License:");
110         y += get_text_height(LARGEFONT);
112         set_font(MEDIUMFONT);
114         char license3[BCTEXTLEN];
115         sprintf(license3, _(
116 "This program is free software; you can redistribute it and/or modify it under the terms\n"
117 "of the GNU General Public License as published by the Free Software Foundation; either version\n"
118 "2 of the License, or (at your option) any later version.\n"
119 "\n"
120 "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n"
121 "without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n"
122 "PURPOSE.  See the GNU General Public License for more details.\n"
123 "\n"));
124         draw_text(x, y, license3);
126         x = get_w() - mwindow->theme->about_bg->get_w() - 10;
127         y = mwindow->theme->preferencesoptions_y;
128         BC_Pixmap *temp_pixmap = new BC_Pixmap(this, 
129                 mwindow->theme->about_bg,
130                 PIXMAP_ALPHA);
131         draw_pixmap(temp_pixmap, 
132                 x, 
133                 y);
135         delete temp_pixmap;
138         x += mwindow->theme->about_bg->get_w() + 10;
139         y += get_text_height(LARGEFONT) * 2;
142         flash();
143         flush();
144         return 0;