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

splashgui.C

Go to the documentation of this file.
00001 #include "bcdisplayinfo.h"
00002 #include "language.h"
00003 #include "mwindow.inc"
00004 #include "splashgui.h"
00005 #include "vframe.h"
00006 
00007 #include <unistd.h>
00008 
00009 
00010 
00011 SplashGUI::SplashGUI(VFrame *bg, int x, int y)
00012  : BC_Window(PROGRAM_NAME ": Loading",
00013                 x,
00014                 y,
00015                 bg->get_w(),
00016                 bg->get_h(),
00017                 -1,
00018                 -1,
00019                 0,
00020                 0,
00021                 1,
00022                 -1,
00023                 "",
00024                 0)
00025 {
00026         this->bg = bg;
00027 }
00028 
00029 SplashGUI::~SplashGUI()
00030 {
00031         delete bg;
00032 }
00033 
00034 void SplashGUI::create_objects()
00035 {
00036         draw_vframe(bg, 0, 0);
00037         flash();
00038         show_window();
00039 
00040         add_subwindow(progress = new BC_ProgressBar(5, 
00041                 get_h() - get_resources()->progress_images[0]->get_h() - 5,
00042                 get_w() - 10,
00043                 0,
00044                 0));
00045         add_subwindow(operation = 
00046                 new BC_Title(5, 
00047                         progress->get_y() - get_text_height(MEDIUMFONT) - 5,
00048                         _("Loading...")));
00049 }
00050 
00051 

Generated on Sun Jan 8 13:39:00 2006 for Cinelerra-svn by  doxygen 1.4.4