X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcfilebox.h;h=f450ec5c52f97eaba1eea855e3e3489506cf5d1b;hp=4192077fdabf2b28be0e295e53ea101943605b7d;hb=a19a685a46ddc630010788707d9e5b9d2342af46;hpb=877bf33862808d3c3fbe11a31de0000feb915f21 diff --git a/cinelerra-5.1/guicast/bcfilebox.h b/cinelerra-5.1/guicast/bcfilebox.h index 4192077f..f450ec5c 100644 --- a/cinelerra-5.1/guicast/bcfilebox.h +++ b/cinelerra-5.1/guicast/bcfilebox.h @@ -126,6 +126,14 @@ public: 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: @@ -231,6 +239,7 @@ 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; @@ -259,7 +268,7 @@ public: 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 @@ -285,7 +294,7 @@ public: 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. @@ -307,9 +316,11 @@ private: BC_FileBoxRecent *recent_popup; BC_FileBoxTextBox *textbox; BC_FileBoxListBox *listbox; + 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;