r499: This commit was manufactured by cvs2svn to create tag 'r1_2_1-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / browsebutton.h
blob000dc1d967782843e93e297f978016166cad7f54
1 #ifndef BROWSEBUTTON_H
2 #define BROWSEBUTTON_H
4 #include "guicast.h"
5 #include "mutex.inc"
6 #include "mwindow.inc"
7 #include "thread.h"
9 class BrowseButtonWindow;
11 class BrowseButton : public BC_Button, public Thread
13 public:
14 BrowseButton(MWindow *mwindow,
15 BC_WindowBase *parent_window,
16 BC_TextBox *textbox,
17 int x,
18 int y,
19 char *init_directory,
20 char *title,
21 char *caption,
22 int want_directory = 0,
23 const char *recent_prefix = NULL);
24 ~BrowseButton();
26 int handle_event();
27 void run();
28 int want_directory;
29 char result[1024];
30 char *title;
31 char *caption;
32 char *init_directory;
33 BC_TextBox *textbox;
34 MWindow *mwindow;
35 BC_WindowBase *parent_window;
36 BrowseButtonWindow *gui;
37 Mutex *startup_lock;
38 int x, y;
39 const char *recent_prefix;
42 class BrowseButtonWindow : public BC_FileBox
44 public:
45 BrowseButtonWindow(MWindow *mwindow,
46 BrowseButton *button,
47 BC_WindowBase *parent_window,
48 char *init_directory,
49 char *title,
50 char *caption,
51 int want_directory);
52 ~BrowseButtonWindow();
59 #endif