Fixed initialisation of tf in file_open(). Without setting the memory to 0,
[cinelerra_cv/mob.git] / guicast / bcprogress.h
blob16d9561cf45c14c1c1818a176943e169678ce97f
1 #ifndef BCPROGRESS_H
2 #define BCPROGRESS_H
4 #include "bcsubwindow.h"
6 class BC_ProgressBar : public BC_SubWindow
8 public:
9 BC_ProgressBar(int x, int y, int w, int64_t length, int do_text = 1);
10 ~BC_ProgressBar();
12 int initialize();
13 int reposition_window(int x, int y, int w = -1, int h = -1);
14 void set_do_text(int value);
16 int update(int64_t position);
17 int update_length(int64_t length);
18 int set_images();
20 private:
21 int draw(int force = 0);
23 int64_t length, position;
24 int pixel;
25 int do_text;
26 BC_Pixmap *images[2];
29 #endif