r1053: Add Russian translation.
[cinelerra_cv.git] / guicast / bcprogressbox.h
blobb942b16372cf878c57a9146b0d74cdecf0a31487
1 #ifndef BCPROGRESSBOX_H
2 #define BCPROGRESSBOX_H
4 #include "bcprogress.inc"
5 #include "bcprogressbox.inc"
6 #include "bctitle.inc"
7 #include "bcwindow.h"
8 #include "thread.h"
10 class BC_ProgressBox : public Thread
12 public:
13 BC_ProgressBox(int x, int y, char *text, int64_t length);
14 virtual ~BC_ProgressBox();
16 friend class BC_ProgressWindow;
18 void run();
19 int update(int64_t position, int lock_it); // return 1 if cancelled
20 int update_title(char *title, int lock_it);
21 int update_length(int64_t length, int lock_it);
22 int is_cancelled(); // return 1 if cancelled
23 int stop_progress();
24 void lock_window();
25 void unlock_window();
27 private:
28 BC_ProgressWindow *pwindow;
29 char *display;
30 char *text;
31 int cancelled;
32 int64_t length;
36 class BC_ProgressWindow : public BC_Window
38 public:
39 BC_ProgressWindow(int x, int y);
40 virtual ~BC_ProgressWindow();
42 int create_objects(char *text, int64_t length);
44 char *text;
45 BC_ProgressBar *bar;
46 BC_Title *caption;
49 #endif