r1009: Move the dependencies to newer package names
[cinelerra_cv/mob.git] / cinelerra / splashgui.C
blob8d882e2c63af816201aaf390a7f71a1291560c94
1 #include "bcdisplayinfo.h"
2 #include "language.h"
3 #include "mwindow.inc"
4 #include "splashgui.h"
5 #include "vframe.h"
7 #include <unistd.h>
11 SplashGUI::SplashGUI(VFrame *bg, int x, int y)
12  : BC_Window(PROGRAM_NAME ": Loading",
13                 x,
14                 y,
15                 bg->get_w(),
16                 bg->get_h(),
17                 -1,
18                 -1,
19                 0,
20                 0,
21                 1,
22                 -1,
23                 "",
24                 0)
26         this->bg = bg;
29 SplashGUI::~SplashGUI()
31         delete bg;
34 void SplashGUI::create_objects()
36         draw_vframe(bg, 0, 0);
37         flash();
38         show_window();
40         add_subwindow(progress = new BC_ProgressBar(5, 
41                 get_h() - get_resources()->progress_images[0]->get_h() - 5,
42                 get_w() - 10,
43                 0,
44                 0));
45         add_subwindow(operation = 
46                 new BC_Title(5, 
47                         progress->get_y() - get_text_height(MEDIUMFONT) - 5,
48                         _("Loading...")));