Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

aboutprefs.C

Go to the documentation of this file.
00001 #include "aboutprefs.h"
00002 #include "builddate.h"
00003 #include "language.h"
00004 #include "libmpeg3.h"
00005 #include "mwindow.h"
00006 #include "quicktime.h"
00007 #include "theme.h"
00008 #include "vframe.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         add_subwindow(new BC_Title(mwindow->theme->preferencestitle_x, 
00028                 mwindow->theme->preferencestitle_y, 
00029                 _("About"), 
00030                 LARGEFONT, 
00031                 resources->text_default));
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", 
00047                 _("(c) 2005 Heroine Virtual Ltd.\n\n"),
00048                 _("Build date: "), 
00049                 BUILDDATE);
00050         set_font(MEDIUMFONT);
00051         draw_text(x, y, license2);
00052 
00053 
00054 
00055         y += get_text_height(MEDIUMFONT) * 3;
00056 
00057         char versions[BCTEXTLEN];
00058         sprintf(versions, 
00059 _("Quicktime version %d.%d.%d\n"
00060 "Libmpeg3 version %d.%d.%d\n"),
00061 quicktime_major(),
00062 quicktime_minor(),
00063 quicktime_release(),
00064 mpeg3_major(),
00065 mpeg3_minor(),
00066 mpeg3_release());
00067         draw_text(x, y, versions);
00068 
00069 
00070 
00071         y += get_text_height(MEDIUMFONT) * 3;
00072         set_font(LARGEFONT);
00073         draw_text(x, y, "Credits:");
00074         y += get_text_height(LARGEFONT);
00075         set_font(MEDIUMFONT);
00076 
00077         char credits[BCTEXTLEN];
00078         sprintf(credits,
00079 "Richard Baverstock\n"
00080 "Karl Bielefeldt\n"
00081 "Kevin Brosius\n"
00082 "Jack Crossfire\n"
00083 "Jean-Michel POURE\n"
00084 "Pierre Marc Dumuid\n"
00085 "Alex Ferrer\n"
00086 "Jan Gerber\n"
00087 "Koen Muylkens\n"
00088 "Eric Seigne\n"
00089 "Gustavo IƱiguez\n"
00090 "Johannes Sixt\n"
00091 "Mark Taraba\n"
00092 "Nathan Kurz\n"
00093 "Andraz Tori\n"
00094 );
00095         draw_text(x, y, credits);
00096 
00097         y = 450;
00098 
00099         set_font(LARGEFONT);
00100         draw_text(x, y, "License:");
00101         y += get_text_height(LARGEFONT);
00102 
00103         set_font(MEDIUMFONT);
00104 
00105         char license3[BCTEXTLEN];
00106         sprintf(license3, _(
00107 "This program is free software; you can redistribute it and/or modify it under the terms\n"
00108 "of the GNU General Public License as published by the Free Software Foundation; either version\n"
00109 "2 of the License, or (at your option) any later version.\n"
00110 "\n"
00111 "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n"
00112 "without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n"
00113 "PURPOSE.  See the GNU General Public License for more details.\n"
00114 "\n"));
00115         draw_text(x, y, license3);
00116 
00117         x = get_w() - mwindow->theme->about_bg->get_w() - 10;
00118         y = mwindow->theme->preferencesoptions_y;
00119         BC_Pixmap *temp_pixmap = new BC_Pixmap(this, 
00120                 mwindow->theme->about_bg,
00121                 PIXMAP_ALPHA);
00122         draw_pixmap(temp_pixmap, 
00123                 x, 
00124                 y);
00125 
00126         delete temp_pixmap;
00127 
00128 
00129         x += mwindow->theme->about_bg->get_w() + 10;
00130         y += get_text_height(LARGEFONT) * 2;
00131 
00132 
00133         flash();
00134         flush();
00135         return 0;
00136 }
00137 
00138 

Generated on Sun Jan 8 13:38:49 2006 for Cinelerra-svn by  doxygen 1.4.4