r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / aboutprefs.C
bloba7a1b83a5f10274ef3945d864ab3f7f29a0faa57
1 #include "aboutprefs.h"
2 #include "builddate.h"
3 #include "libmpeg3.h"
4 #include "mwindow.h"
5 #include "quicktime.h"
6 #include "theme.h"
7 #include "vframe.h"
9 #include <libintl.h>
10 #define _(String) gettext(String)
11 #define gettext_noop(String) String
12 #define N_(String) gettext_noop (String)
15 AboutPrefs::AboutPrefs(MWindow *mwindow, PreferencesWindow *pwindow)
16  : PreferencesDialog(mwindow, pwindow)
20 AboutPrefs::~AboutPrefs()
24 int AboutPrefs::create_objects()
26         int x = 5, y = 5;
33         BC_Pixmap *temp_pixmap = new BC_Pixmap(this, 
34                 mwindow->theme->about_bg,
35                 PIXMAP_ALPHA);
36         draw_pixmap(temp_pixmap, 
37                 x, 
38                 y);
39 //      draw_vframe(mwindow->theme->about_bg,
40 //              x, 
41 //              y);
44 //      BC_Pixmap *temp_pixmap2 = new BC_Pixmap(this, 
45 //              mwindow->theme->about_microsoft,
46 //              PIXMAP_ALPHA);
47 //      draw_pixmap(temp_pixmap2, 
48 //              x, 
49 //              y + mwindow->theme->about_bg->get_h());
51         delete temp_pixmap;
52 //      delete temp_pixmap2;
55         x += mwindow->theme->about_bg->get_w() + 10;
56         y += get_text_height(LARGEFONT) * 2;
58         char license1[BCTEXTLEN];
59         sprintf (license1, _("Cinelerra "), VERSION);
61         set_font(LARGEFONT);
62         set_color(BLACK);
63         draw_text(x, y, license1);
65         char license2[BCTEXTLEN];
66         sprintf(license2, "%s%s%s", 
67                 _("(c) 2003 Heroine Virtual Ltd.\n\n"),
68                 _("Build date: "), 
69                 BUILDDATE);
70         y += get_text_height(LARGEFONT) * 2;
71         set_font(MEDIUMFONT);
72         draw_text(x, y, license2);
77         char license3[BCTEXTLEN];
78         sprintf(license3, _(
79 "This program is free software; you can\n"
80 "redistribute it and/or modify it under the terms\n"
81 "of the GNU General Public License as published\n"
82 "by the Free Software Foundation; either version\n"
83 "2 of the License, or (at your option) any later\n"
84 "version.\n"
85 "\n"
86 "This program is distributed in the hope that it\n"
87 "will be useful, but WITHOUT ANY WARRANTY;\n"
88 "without even the implied warranty of\n"
89 "MERCHANTABILITY or FITNESS FOR A PARTICULAR\n"
90 "PURPOSE.  See the GNU General Public License for\n"
91 "more details.\n"
92 "\n"));
93         y += 100;
94         draw_text(x, y, license3);
97         char versions[BCTEXTLEN];
98         sprintf(versions, 
99 _("Quicktime version %d.%d.%d\n"
100 "Libmpeg3 version %d.%d.%d\n"),
101 quicktime_major(),
102 quicktime_minor(),
103 quicktime_release(),
104 mpeg3_major(),
105 mpeg3_minor(),
106 mpeg3_release());
107         y += 250;
108         draw_text(10, y, versions);
112         flash();
113         flush();
114         return 0;