1 #include "aboutprefs.h"
8 #include "versioninfo.h"
12 AboutPrefs::AboutPrefs(MWindow *mwindow, PreferencesWindow *pwindow)
13 : PreferencesDialog(mwindow, pwindow)
17 AboutPrefs::~AboutPrefs()
21 int AboutPrefs::create_objects()
25 BC_Resources *resources = BC_WindowBase::get_resources();
27 // add_subwindow(new BC_Title(mwindow->theme->preferencestitle_x,
28 // mwindow->theme->preferencestitle_y,
31 // resources->text_default));
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);
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"),
52 draw_text(x, y, license2);
56 y += get_text_height(MEDIUMFONT) * 4;
58 char versions[BCTEXTLEN];
60 _("Quicktime version %d.%d.%d\n"
61 "Libmpeg3 version %d.%d.%d\n"),
68 draw_text(x, y, versions);
72 y += get_text_height(MEDIUMFONT) * 3;
74 draw_text(x, y, "Credits:");
75 y += get_text_height(LARGEFONT);
78 char credits[BCTEXTLEN];
82 "Richard Baverstock\n"
88 "Pierre Marc Dumuid\n"
105 draw_text(x, y, credits);
110 draw_text(x, y, "License:");
111 y += get_text_height(LARGEFONT);
113 set_font(MEDIUMFONT);
115 char license3[BCTEXTLEN];
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"
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"
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,
132 draw_pixmap(temp_pixmap,
139 x += mwindow->theme->about_bg->get_w() + 10;
140 y += get_text_height(LARGEFONT) * 2;