X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcfilebox.h;h=f450ec5c52f97eaba1eea855e3e3489506cf5d1b;hb=HEAD;hp=509fa0d850a95476f18228fb2bd4847b8a982ed8;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bcfilebox.h b/cinelerra-5.1/guicast/bcfilebox.h index 509fa0d8..f450ec5c 100644 --- a/cinelerra-5.1/guicast/bcfilebox.h +++ b/cinelerra-5.1/guicast/bcfilebox.h @@ -78,22 +78,22 @@ public: BC_FileBox *filebox; }; -class BC_FileBoxOK : public BC_OKButton +class BC_FileBoxUseThis : public BC_Button { public: - BC_FileBoxOK(BC_FileBox *filebox); - ~BC_FileBoxOK(); - + BC_FileBoxUseThis(BC_FileBox *filebox); + ~BC_FileBoxUseThis(); int handle_event(); BC_FileBox *filebox; }; -class BC_FileBoxUseThis : public BC_Button +class BC_FileBoxOK : public BC_OKButton { public: - BC_FileBoxUseThis(BC_FileBox *filebox); - ~BC_FileBoxUseThis(); + BC_FileBoxOK(BC_FileBox *filebox); + ~BC_FileBoxOK(); + int handle_event(); BC_FileBox *filebox; @@ -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: @@ -191,6 +199,15 @@ public: BC_FileBox *filebox; }; +class BC_FileBoxSizeFormat : public BC_Button +{ +public: + BC_FileBoxSizeFormat(int x, int y, BC_FileBox *file_box); + ~BC_FileBoxSizeFormat(); + + int handle_event(); + BC_FileBox *file_box; +}; class BC_FileBoxRecent : public BC_ListBox @@ -222,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; @@ -239,6 +257,7 @@ public: friend class BC_FileBoxDelete; friend class BC_FileBoxReload; friend class BC_FileBoxRecent; + friend class BC_FileBoxSizeFormat; virtual void create_objects(); virtual int keypress_event(); @@ -249,7 +268,7 @@ public: void create_history(); void update_history(); - int refresh(int zscroll=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 @@ -275,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. @@ -297,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; @@ -307,6 +328,7 @@ private: BC_Button *updir_button; BC_Button *delete_button; BC_Button *reload_button; + BC_FileBoxSizeFormat *szfmt_button; BC_Button *ok_button, *cancel_button; BC_FileBoxUseThis *usethis_button; char caption[BCTEXTLEN]; @@ -320,6 +342,7 @@ private: int sort_column; int sort_order; + int size_format; const char *column_titles[FILEBOX_COLUMNS]; ArrayList filter_list;