Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / cinelerra / browsebutton.h
blobb2bacb77c2c19f10ae64f81708da9d44560232fb
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
61 // Local Variables:
62 // mode: C++
63 // c-file-style: "linux"
64 // End: