r370: Heroine Virutal's official release 1.2.1
[cinelerra_cv/mob.git] / hvirtual / cinelerra / aboutprefs.C
blobfa12e08594ed89679aaceaa1bdf4a4ed6e6d1491
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 = 5, y = 20;
31         char license1[BCTEXTLEN];
32         sprintf(license1, "%s %s", _("Cinelerra "), CINELERRA_VERSION);
34         set_font(LARGEFONT);
35         set_color(BLACK);
36         draw_text(x, y, license1);
37         y += get_text_height(LARGEFONT);
39         char license2[BCTEXTLEN];
40         sprintf(license2, "%s%s%s", 
41                 _("(c) 2004 Heroine Virtual Ltd.\n\n"),
42                 _("Build date: "), 
43                 BUILDDATE);
44         set_font(MEDIUMFONT);
45         draw_text(x, y, license2);
49         y += get_text_height(MEDIUMFONT) * 3;
51         char versions[BCTEXTLEN];
52         sprintf(versions, 
53 _("Quicktime version %d.%d.%d\n"
54 "Libmpeg3 version %d.%d.%d\n"),
55 quicktime_major(),
56 quicktime_minor(),
57 quicktime_release(),
58 mpeg3_major(),
59 mpeg3_minor(),
60 mpeg3_release());
61         draw_text(x, y, versions);
65         y += get_text_height(MEDIUMFONT) * 3;
66         set_font(LARGEFONT);
67         draw_text(x, y, "Credits:");
68         y += get_text_height(LARGEFONT);
69         set_font(MEDIUMFONT);
71         char credits[BCTEXTLEN];
72         sprintf(credits,
73 "Richard Baverstock\n"
74 "Kevin Brosius\n"
75 "Jack Crossfire\n"
76 "Pierre Marc Dumuid\n"
77 "Alex Ferrer\n"
78 "Eric Seigne\n"
79 "Gustavo IƱiguez\n"
80 "Johannes Sixt\n"
81 "Andraz Tori\n"
83         draw_text(x, y, credits);
85         y = 450;
87         set_font(LARGEFONT);
88         draw_text(x, y, "License:");
89         y += get_text_height(LARGEFONT);
91         set_font(MEDIUMFONT);
93         char license3[BCTEXTLEN];
94         sprintf(license3, _(
95 "This program is free software; you can redistribute it and/or modify it under the terms\n"
96 "of the GNU General Public License as published by the Free Software Foundation; either version\n"
97 "2 of the License, or (at your option) any later version.\n"
98 "\n"
99 "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n"
100 "without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n"
101 "PURPOSE.  See the GNU General Public License for more details.\n"
102 "\n"));
103         draw_text(x, y, license3);
105         x = get_w() - mwindow->theme->about_bg->get_w() - 10;
106         y = 5;
107         BC_Pixmap *temp_pixmap = new BC_Pixmap(this, 
108                 mwindow->theme->about_bg,
109                 PIXMAP_ALPHA);
110         draw_pixmap(temp_pixmap, 
111                 x, 
112                 y);
114         delete temp_pixmap;
117         x += mwindow->theme->about_bg->get_w() + 10;
118         y += get_text_height(LARGEFONT) * 2;
121         flash();
122         flush();
123         return 0;