r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / splashgui.C
bloba1f751df9e33b737fcbbef08eda00f391686f828
1 #include "bcdisplayinfo.h"
2 #include "mwindow.inc"
3 #include "splashgui.h"
4 #include "vframe.h"
6 #include <libintl.h>
7 #define _(String) gettext(String)
8 #define gettext_noop(String) String
9 #define N_(String) gettext_noop (String)
15 SplashGUI::SplashGUI(VFrame *bg, int x, int y)
16  : BC_Window(PROGRAM_NAME ": Loading",
17                 x,
18                 y,
19                 bg->get_w(),
20                 bg->get_h(),
21                 -1,
22                 -1,
23                 0,
24                 0,
25                 1)
27         this->bg = bg;
30 SplashGUI::~SplashGUI()
32         delete bg;
35 void SplashGUI::create_objects()
37         draw_vframe(bg, 0, 0);
38         add_subwindow(progress = new BC_ProgressBar(5, 
39                 get_h() - get_resources()->progress_images[0]->get_h() - 5,
40                 get_w() - 10,
41                 0,
42                 0));
43         add_subwindow(operation = 
44                 new BC_Title(5, 
45                         progress->get_y() - get_text_height(MEDIUMFONT) - 5,
46                         _("Loading...")));
47         flash();
48         show_window();