00001 #ifndef BROWSEBUTTON_H
00002 #define BROWSEBUTTON_H
00003
00004 #include "guicast.h"
00005 #include "mutex.inc"
00006 #include "mwindow.inc"
00007 #include "thread.h"
00008
00009 class BrowseButtonWindow;
00010
00011 class BrowseButton : public BC_Button, public Thread
00012 {
00013 public:
00014 BrowseButton(MWindow *mwindow,
00015 BC_WindowBase *parent_window,
00016 BC_TextBox *textbox,
00017 int x,
00018 int y,
00019 char *init_directory,
00020 char *title,
00021 char *caption,
00022 int want_directory = 0,
00023 const char *recent_prefix = NULL);
00024 ~BrowseButton();
00025
00026 int handle_event();
00027 void run();
00028 int want_directory;
00029 char result[1024];
00030 char *title;
00031 char *caption;
00032 char *init_directory;
00033 BC_TextBox *textbox;
00034 MWindow *mwindow;
00035 BC_WindowBase *parent_window;
00036 BrowseButtonWindow *gui;
00037 Mutex *startup_lock;
00038 int x, y;
00039 const char *recent_prefix;
00040 };
00041
00042 class BrowseButtonWindow : public BC_FileBox
00043 {
00044 public:
00045 BrowseButtonWindow(MWindow *mwindow,
00046 BrowseButton *button,
00047 BC_WindowBase *parent_window,
00048 char *init_directory,
00049 char *title,
00050 char *caption,
00051 int want_directory);
00052 ~BrowseButtonWindow();
00053 };
00054
00055
00056
00057
00058
00059 #endif