BC_FileBox *filebox;
};
+class BC_FileBoxSearchText : public BC_TextBox
+{
+public:
+ BC_FileBoxSearchText(int x, int y, BC_FileBox *filebox);
+ int handle_event();
+ BC_FileBox *filebox;
+};
+
class BC_FileBoxFilterText : public BC_TextBox
{
public:
friend class BC_FileBoxCancel;
friend class BC_FileBoxDirectoryText;
+ friend class BC_FileBoxSearchText;
friend class BC_FileBoxListBox;
friend class BC_FileBoxTextBox;
friend class BC_FileBoxText;
void create_history();
void update_history();
- int refresh(int reset=0);
+ int refresh(int reset=0, int select_all=0);
// The OK and Use This button submits a path.
// The cancel button has a current path highlighted but possibly different from the
private:
int create_icons();
int extract_extension(char *out, const char *in);
- int create_tables();
+ int create_tables(int select_all);
int delete_tables();
// Called by directory history menu to change directories but leave
// filename untouched.
BC_Title *filter_title;
BC_FileBoxFilterText *filter_text;
BC_FileBoxFilterMenu *filter_popup;
- BC_TextBox *directory_title;
+ BC_FileBoxDirectoryText *directory_title;
+ BC_FileBoxSearchText *search_text;
BC_Button *icon_button;
BC_Button *text_button;
BC_Button *folder_button;