00001 #include "aboutprefs.h"
00002 #include "language.h"
00003 #include "libmpeg3.h"
00004 #include "mwindow.h"
00005 #include "quicktime.h"
00006 #include "theme.h"
00007 #include "vframe.h"
00008 #include "versioninfo.h"
00009
00010
00011
00012 AboutPrefs::AboutPrefs(MWindow *mwindow, PreferencesWindow *pwindow)
00013 : PreferencesDialog(mwindow, pwindow)
00014 {
00015 }
00016
00017 AboutPrefs::~AboutPrefs()
00018 {
00019 }
00020
00021 int AboutPrefs::create_objects()
00022 {
00023 int x, y;
00024
00025 BC_Resources *resources = BC_WindowBase::get_resources();
00026
00027
00028
00029
00030
00031
00032
00033 x = mwindow->theme->preferencesoptions_x;
00034 y = mwindow->theme->preferencesoptions_y +
00035 get_text_height(LARGEFONT);
00036
00037 char license1[BCTEXTLEN];
00038 sprintf(license1, "%s %s", _("Cinelerra "), CINELERRA_VERSION);
00039
00040 set_font(LARGEFONT);
00041 set_color(resources->text_default);
00042 draw_text(x, y, license1);
00043
00044 y += get_text_height(LARGEFONT);
00045 char license2[BCTEXTLEN];
00046 sprintf(license2, "%s%s%s%s",
00047 _("(C) 2006 Heroine Virtual Ltd.\n\n"),
00048 REPOABOUTPREFTXT,
00049 _("\nBuild date: "),
00050 BUILDDATE);
00051 set_font(MEDIUMFONT);
00052 draw_text(x, y, license2);
00053
00054
00055
00056 y += get_text_height(MEDIUMFONT) * 4;
00057
00058 char versions[BCTEXTLEN];
00059 sprintf(versions,
00060 _("Quicktime version %d.%d.%d (%s)\n"
00061 "Libmpeg3 version %d.%d.%d\n"),
00062 quicktime_major(),
00063 quicktime_minor(),
00064 quicktime_release(),
00065 FFMPEG_EXTERNALTEXT,
00066 mpeg3_major(),
00067 mpeg3_minor(),
00068 mpeg3_release());
00069 draw_text(x, y, versions);
00070
00071
00072
00073 y += get_text_height(MEDIUMFONT) * 3;
00074 set_font(LARGEFONT);
00075 draw_text(x, y, "Credits:");
00076 y += get_text_height(LARGEFONT);
00077 set_font(MEDIUMFONT);
00078
00079 char credits[BCTEXTLEN];
00080 sprintf(credits,
00081
00082 "Jack Crossfire\n"
00083 "Richard Baverstock\n"
00084 "Karl Bielefeldt\n"
00085 "Kevin Brosius\n"
00086 "Jean-Luc Coulon\n"
00087 "Jean-Michel POURE\n"
00088 "Jerome Cornet\n"
00089 "Pierre Marc Dumuid\n"
00090 "Alex Ferrer\n"
00091 "Jan Gerber\n"
00092 "Koen Muylkens\n"
00093 "Stefan de Konink\n"
00094 "Nathan Kurz\n"
00095 "Greg Mekkes\n"
00096 "Eric Seigne\n"
00097 "Joe Stewart\n"
00098 "Dan Streetman\n"
00099 "Gustavo IƱiguez\n"
00100 "Johannes Sixt\n"
00101 "Mark Taraba\n"
00102 "Andraz Tori\n"
00103 "Jonas Wulff\n"
00104
00105 );
00106 draw_text(x, y, credits);
00107
00108 y = get_h() - 135;
00109
00110 set_font(LARGEFONT);
00111 draw_text(x, y, "License:");
00112 y += get_text_height(LARGEFONT);
00113
00114 set_font(MEDIUMFONT);
00115
00116 char license3[BCTEXTLEN];
00117 sprintf(license3, _(
00118 "This program is free software; you can redistribute it and/or modify it under the terms\n"
00119 "of the GNU General Public License as published by the Free Software Foundation; either version\n"
00120 "2 of the License, or (at your option) any later version.\n"
00121 "\n"
00122 "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n"
00123 "without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n"
00124 "PURPOSE. See the GNU General Public License for more details.\n"
00125 "\n"));
00126 draw_text(x, y, license3);
00127
00128 x = get_w() - mwindow->theme->about_bg->get_w() - 10;
00129 y = mwindow->theme->preferencesoptions_y;
00130 BC_Pixmap *temp_pixmap = new BC_Pixmap(this,
00131 mwindow->theme->about_bg,
00132 PIXMAP_ALPHA);
00133 draw_pixmap(temp_pixmap,
00134 x,
00135 y);
00136
00137 delete temp_pixmap;
00138
00139
00140 x += mwindow->theme->about_bg->get_w() + 10;
00141 y += get_text_height(LARGEFONT) * 2;
00142
00143
00144 flash();
00145 flush();
00146 return 0;
00147 }
00148
00149