#include <bcfilebox.h>
Inherits BC_Window.
Inherited by BrowseButtonWindow, LoadFileWindow, LocateFileWindow, NewSvgWindow, ReverbLoadDialog, ReverbSaveDialog, SaveFileWindow, and ShapeWipeLoad.

Definition at line 177 of file bcfilebox.h.
| BC_FileBox::BC_FileBox | ( | int | x, | |
| int | y, | |||
| char * | init_path, | |||
| char * | title, | |||
| char * | caption, | |||
| int | show_all_files = 0, |
|||
| int | want_directory = 0, |
|||
| int | multiple_files = 0, |
|||
| int | h_padding = -1 | |||
| ) |
Definition at line 401 of file bcfilebox.C.
References BC_DeleteThread, column_titles, column_type, column_width, columns, columntype_to_text(), FileSystem::complete_path(), current_path, delete_thread, directory, FileSystem::extract_dir(), FileSystem::extract_name(), BC_Resources::filebox_columntype, BC_Resources::filebox_columnwidth, BC_Resources::filebox_sortcolumn, BC_Resources::filebox_sortorder, filename, filter_popup, filter_text, fs, FileSystem::get_current_dir(), VFrame::get_h(), BC_WindowBase::get_resources(), list_column, BC_Resources::ok_images, select_multiple, FileSystem::set_show_all(), sort_column, sort_order, submitted_path, FileSystem::update(), and usethis_button.

| BC_FileBox::~BC_FileBox | ( | ) | [virtual] |
Definition at line 498 of file bcfilebox.C.
References column_type, column_width, delete_tables(), delete_thread, filter_list, fs, icons, list_column, newfolder_thread, recent_dirs, and ArrayList< TYPE >::remove_all_objects().

| int BC_FileBox::create_objects | ( | ) | [virtual] |
Reimplemented in LoadFileWindow.
Definition at line 514 of file bcfilebox.C.
References BC_ListBox::activate(), BC_WindowBase::add_subwindow(), ArrayList< TYPE >::append(), BC_FileBoxCancel, BC_FileBoxDelete, BC_FileBoxFilterMenu, BC_FileBoxFilterText, BC_FileBoxIcons, BC_FileBoxNewfolder, BC_FileBoxOK, BC_FileBoxRecent, BC_FileBoxReload, BC_FileBoxText, BC_FileBoxTextBox, BC_FileBoxUpdir, BC_FileBoxUseThis, BC_NewFolderThread, BC_WindowBase::BC_Title, cancel_button, caption, create_history(), create_icons(), create_listbox(), create_tables(), delete_button, directory, directory_title, BC_Resources::filebox_delete_images, BC_Resources::filebox_icons_images, BC_Resources::filebox_newfolder_images, BC_Resources::filebox_reload_images, BC_Resources::filebox_text_images, BC_Resources::filebox_updir_images, filter_list, filter_popup, filter_text, folder_button, fs, get_display_mode(), BC_ListBox::get_h(), BC_WindowBase::get_h(), VFrame::get_h(), BC_WindowBase::get_resources(), BC_ListBox::get_w(), VFrame::get_w(), BC_WindowBase::get_w(), icon_button, listbox, MAX, newfolder_thread, ok_button, recent_popup, reload_button, BC_ListBox::reposition_window(), BC_TextBox::reposition_window(), BC_WindowBase::resources, FileSystem::set_filter(), BC_WindowBase::show_window(), text_button, textbox, FileSystem::update(), updir_button, usethis_button, want_directory, BC_WindowBase::x, and BC_WindowBase::y.
Referenced by LoadFileWindow::create_objects(), NewSvgButton::run(), ReverbLoadThread::run(), ReverbSaveThread::run(), ThreadIndexer::run(), and SaveAs::run().

| int BC_FileBox::keypress_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 692 of file bcfilebox.C.
References BC_WindowBase::ctrl_down(), BC_WindowBase::get_keypress(), and BC_WindowBase::set_done().

| int BC_FileBox::close_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 704 of file bcfilebox.C.
References BC_WindowBase::set_done().

| int BC_FileBox::handle_event | ( | ) | [virtual] |
Definition at line 710 of file bcfilebox.C.
| void BC_FileBox::create_history | ( | ) |
Definition at line 1096 of file bcfilebox.C.
References ArrayList< TYPE >::append(), BC_Resources::filebox_history, BC_WindowBase::get_resources(), recent_dirs, ArrayList< TYPE >::remove_all_objects(), and BC_WindowBase::resources.
Referenced by create_objects(), and update_history().

| void BC_FileBox::update_history | ( | ) |
Definition at line 1052 of file bcfilebox.C.
References create_history(), directory, BC_Resources::filebox_history, BC_WindowBase::get_resources(), recent_dirs, recent_popup, BC_WindowBase::resources, and BC_ListBox::update().
Referenced by submit_file().

| int BC_FileBox::refresh | ( | ) |
Definition at line 888 of file bcfilebox.C.
References column_of_type(), column_titles, column_width, columns, create_tables(), list_column, listbox, BC_ListBox::set_master_column(), and BC_ListBox::update().
Referenced by delete_files(), BC_FileBoxReload::handle_event(), BC_FileBoxDirectoryText::handle_event(), move_column(), BC_NewFolderThread::run(), BC_FileBoxListBox::sort_order_event(), submit_dir(), submit_file(), and update_filter().

| char * BC_FileBox::get_submitted_path | ( | ) |
Definition at line 1147 of file bcfilebox.C.
References submitted_path.
Referenced by get_path(), ThreadIndexer::run(), SaveAs::run(), and LoadFileThread::run().
| char * BC_FileBox::get_current_path | ( | ) |
| char * BC_FileBox::get_path | ( | int | selection | ) |
Definition at line 1128 of file bcfilebox.C.
References column_of_type(), directory, fs, BC_ListBox::get_selection(), get_submitted_path(), BC_ListBoxItem::get_text(), FileSystem::join_names(), listbox, and string.
Referenced by BC_DeleteFile::create_objects(), delete_files(), NewSvgButton::run(), and LoadFileThread::run().

| int BC_FileBox::update_filter | ( | char * | filter | ) |
Definition at line 904 of file bcfilebox.C.
References fs, BC_WindowBase::get_resources(), refresh(), FileSystem::set_filter(), and FileSystem::update().
Referenced by BC_FileBoxFilterMenu::handle_event(), BC_FileBoxFilterText::handle_event(), and NewSvgButton::run().

| int BC_FileBox::resize_event | ( | int | w, | |
| int | h | |||
| ) | [virtual] |
Reimplemented from BC_WindowBase.
Reimplemented in LoadFileWindow.
Definition at line 632 of file bcfilebox.C.
References delete_button, directory_title, BC_WindowBase::draw_background(), BC_Resources::filebox_h, BC_Resources::filebox_w, filter_popup, filter_text, BC_WindowBase::flash(), folder_button, BC_ListBox::get_h(), BC_WindowBase::get_h(), BC_WindowBase::get_resources(), BC_ListBox::get_w(), BC_WindowBase::get_w(), BC_WindowBase::get_x(), BC_WindowBase::get_y(), icon_button, listbox, recent_popup, reload_button, BC_TextBox::reposition_window(), BC_ListBox::reposition_window(), BC_Button::reposition_window(), BC_WindowBase::set_h(), BC_WindowBase::set_w(), text_button, textbox, updir_button, and usethis_button.
Referenced by LoadFileWindow::resize_event().

| char * BC_FileBox::get_newfolder_title | ( | ) |
Definition at line 1158 of file bcfilebox.C.
References _, memcpy, new_folder_title, strchr, and BC_WindowBase::title.
| char * BC_FileBox::get_delete_title | ( | ) |
Definition at line 1173 of file bcfilebox.C.
References _, memcpy, new_folder_title, strchr, and BC_WindowBase::title.
| void BC_FileBox::delete_files | ( | ) |
Definition at line 1188 of file bcfilebox.C.
References fs, get_path(), FileSystem::is_dir(), and refresh().
Referenced by BC_DeleteThread::handle_done_event().

| BC_Button * BC_FileBox::get_ok_button | ( | ) |
| BC_Button * BC_FileBox::get_cancel_button | ( | ) |
Definition at line 1212 of file bcfilebox.C.
References cancel_button.
Referenced by LoadFileWindow::create_objects(), and LoadFileWindow::resize_event().
| int BC_FileBox::create_icons | ( | ) | [private] |
Definition at line 621 of file bcfilebox.C.
References BC_WindowBase::BC_Pixmap, BC_WindowBase::get_resources(), and icons.
Referenced by create_objects().

| int BC_FileBox::extract_extension | ( | char * | out, | |
| const char * | in | |||
| ) | [private] |
| int BC_FileBox::create_tables | ( | ) | [private] |
Definition at line 732 of file bcfilebox.C.
References ArrayList< TYPE >::append(), BCTEXTLEN, column_of_type(), column_type, FileItem::day, delete_tables(), extract_extension(), fs, FileSystem::get_entry(), get_icon(), BC_WindowBase::get_resources(), FileItem::is_dir, list_column, FileItem::month, FileItem::name, BC_ListBoxItem::set_searchable(), FileSystem::set_sort_field(), FileSystem::set_sort_order(), FileItem::size, sort_column, sort_order, FileSystem::total_files(), FileSystem::update(), and FileItem::year.
Referenced by create_objects(), and refresh().

| int BC_FileBox::delete_tables | ( | ) | [private] |
Definition at line 824 of file bcfilebox.C.
References columns, list_column, and ArrayList< TYPE >::remove_all_objects().
Referenced by create_tables(), and ~BC_FileBox().

| int BC_FileBox::submit_dir | ( | char * | dir | ) | [private] |
Definition at line 972 of file bcfilebox.C.
References FileSystem::change_dir(), current_path, directory, directory_title, filename, fs, FileSystem::get_current_dir(), FileSystem::join_names(), listbox, refresh(), BC_ListBox::reset_query(), submitted_path, textbox, BC_TextBox::update(), and want_directory.
Referenced by BC_FileBoxRecent::handle_event().

| int BC_FileBox::submit_file | ( | char * | path, | |
| int | use_this = 0 | |||
| ) | [private] |
Definition at line 988 of file bcfilebox.C.
References FileSystem::change_dir(), FileSystem::complete_path(), current_path, directory, directory_title, FileSystem::extract_dir(), FileSystem::extract_name(), filename, fs, FileSystem::get_current_dir(), BC_NewFolderThread::interrupt(), FileSystem::is_dir(), listbox, newfolder_thread, refresh(), BC_ListBox::reset_query(), BC_WindowBase::set_done(), submitted_path, textbox, BC_TextBox::update(), update_history(), and want_directory.
Referenced by BC_FileBoxUpdir::handle_event(), BC_FileBoxOK::handle_event(), BC_FileBoxUseThis::handle_event(), and BC_FileBoxListBox::handle_event().

| void BC_FileBox::move_column | ( | int | src, | |
| int | dst | |||
| ) | [private] |
Definition at line 915 of file bcfilebox.C.
References ArrayList< TYPE >::append(), column_titles, column_type, column_width, columns, columntype_to_text(), BC_Resources::filebox_columntype, BC_Resources::filebox_columnwidth, BC_WindowBase::get_resources(), list_column, refresh(), and ArrayList< TYPE >::total.
Referenced by BC_FileBoxListBox::move_column_event().

| int BC_FileBox::get_display_mode | ( | ) | [private] |
Definition at line 1110 of file bcfilebox.C.
References BC_Resources::filebox_mode, BC_WindowBase::get_resources(), and BC_WindowBase::top_level.
Referenced by create_objects().

| int BC_FileBox::get_listbox_w | ( | ) | [private] |
Definition at line 603 of file bcfilebox.C.
References BC_WindowBase::get_w().

| int BC_FileBox::get_listbox_h | ( | int | y | ) | [private] |
Definition at line 608 of file bcfilebox.C.
References BC_Resources::dirbox_margin, BC_Resources::filebox_margin, BC_WindowBase::get_h(), BC_WindowBase::get_resources(), h_padding, and want_directory.

| void BC_FileBox::create_listbox | ( | int | x, | |
| int | y, | |||
| int | mode | |||
| ) | [private] |
Definition at line 1115 of file bcfilebox.C.
References BC_WindowBase::add_subwindow(), BC_FileBoxListBox, BC_Resources::filebox_mode, BC_ListBox::get_display_mode(), BC_WindowBase::get_resources(), listbox, and BC_WindowBase::top_level.
Referenced by create_objects(), BC_FileBoxIcons::handle_event(), and BC_FileBoxText::handle_event().

| BC_Pixmap * BC_FileBox::get_icon | ( | char * | path, | |
| int | is_dir | |||
| ) | [private] |
Definition at line 833 of file bcfilebox.C.
References BC_WindowBase::get_resources(), suffix_to_type_t::icon_type, icons, strrchr, and BC_Resources::suffix_to_type.
Referenced by create_tables().

| char * BC_FileBox::columntype_to_text | ( | int | type | ) | [static, private] |
| int BC_FileBox::column_of_type | ( | int | type | ) | [private] |
Definition at line 879 of file bcfilebox.C.
References column_type, and columns.
Referenced by create_tables(), BC_FileBoxListBox::evaluate_query(), get_path(), BC_FileBoxFilterMenu::handle_event(), refresh(), and BC_FileBoxListBox::selection_changed().
friend class BC_FileBoxCancel [friend] |
friend class BC_FileBoxListBox [friend] |
friend class BC_FileBoxTextBox [friend] |
friend class BC_FileBoxText [friend] |
friend class BC_FileBoxIcons [friend] |
friend class BC_FileBoxNewfolder [friend] |
friend class BC_FileBoxOK [friend] |
friend class BC_NewFolderThread [friend] |
friend class BC_FileBoxUpdir [friend] |
friend class BC_FileBoxFilterText [friend] |
friend class BC_FileBoxFilterMenu [friend] |
friend class BC_FileBoxUseThis [friend] |
friend class BC_DeleteThread [friend] |
friend class BC_FileBoxDelete [friend] |
friend class BC_FileBoxReload [friend] |
friend class BC_FileBoxRecent [friend] |
Definition at line 239 of file bcfilebox.h.
Referenced by BC_FileBox(), create_objects(), create_tables(), delete_files(), get_path(), BC_FileBoxDirectoryText::handle_event(), BC_NewFolderThread::run(), BC_FileBoxListBox::selection_changed(), submit_dir(), submit_file(), update_filter(), and ~BC_FileBox().
BC_Pixmap* BC_FileBox::icons[TOTAL_ICONS] [private] |
Definition at line 262 of file bcfilebox.h.
Referenced by create_icons(), get_icon(), and ~BC_FileBox().
BC_FileBoxRecent* BC_FileBox::recent_popup [private] |
Definition at line 263 of file bcfilebox.h.
Referenced by create_objects(), resize_event(), and update_history().
BC_FileBoxTextBox* BC_FileBox::textbox [private] |
Definition at line 264 of file bcfilebox.h.
Referenced by create_objects(), BC_FileBoxOK::handle_event(), BC_FileBoxUseThis::handle_event(), BC_FileBoxListBox::handle_event(), resize_event(), BC_FileBoxListBox::selection_changed(), submit_dir(), and submit_file().
BC_FileBoxListBox* BC_FileBox::listbox [private] |
Definition at line 265 of file bcfilebox.h.
Referenced by create_listbox(), create_objects(), get_path(), BC_FileBoxIcons::handle_event(), BC_FileBoxText::handle_event(), refresh(), resize_event(), submit_dir(), and submit_file().
BC_FileBoxFilterText* BC_FileBox::filter_text [private] |
Definition at line 266 of file bcfilebox.h.
Referenced by BC_FileBox(), create_objects(), BC_FileBoxFilterMenu::handle_event(), and resize_event().
BC_FileBoxFilterMenu* BC_FileBox::filter_popup [private] |
Definition at line 267 of file bcfilebox.h.
Referenced by BC_FileBox(), create_objects(), and resize_event().
BC_TextBox* BC_FileBox::directory_title [private] |
Definition at line 268 of file bcfilebox.h.
Referenced by create_objects(), resize_event(), submit_dir(), and submit_file().
BC_Button* BC_FileBox::icon_button [private] |
BC_Button * BC_FileBox::text_button [private] |
BC_Button * BC_FileBox::folder_button [private] |
BC_Button * BC_FileBox::updir_button [private] |
BC_Button * BC_FileBox::delete_button [private] |
BC_Button * BC_FileBox::reload_button [private] |
BC_Button* BC_FileBox::ok_button [private] |
BC_Button * BC_FileBox::cancel_button [private] |
Definition at line 270 of file bcfilebox.h.
Referenced by create_objects(), and get_cancel_button().
BC_FileBoxUseThis* BC_FileBox::usethis_button [private] |
Definition at line 271 of file bcfilebox.h.
Referenced by BC_FileBox(), create_objects(), and resize_event().
char BC_FileBox::caption[BCTEXTLEN] [private] |
char BC_FileBox::current_path[BCTEXTLEN] [private] |
Definition at line 273 of file bcfilebox.h.
Referenced by BC_FileBox(), get_current_path(), BC_FileBoxListBox::selection_changed(), submit_dir(), and submit_file().
char BC_FileBox::submitted_path[BCTEXTLEN] [private] |
Definition at line 274 of file bcfilebox.h.
Referenced by BC_FileBox(), get_submitted_path(), BC_FileBoxListBox::selection_changed(), submit_dir(), and submit_file().
char BC_FileBox::directory[BCTEXTLEN] [private] |
Definition at line 275 of file bcfilebox.h.
Referenced by BC_FileBox(), BC_Hash::BC_Hash(), create_objects(), get_path(), BC_FileBoxListBox::selection_changed(), submit_dir(), submit_file(), and update_history().
char BC_FileBox::filename[BCTEXTLEN] [private] |
Reimplemented in ShapeWipeLoad.
Definition at line 276 of file bcfilebox.h.
Referenced by BC_FileBox(), BC_FileBoxListBox::selection_changed(), submit_dir(), and submit_file().
char BC_FileBox::string[BCTEXTLEN] [private] |
int BC_FileBox::want_directory [private] |
Definition at line 278 of file bcfilebox.h.
Referenced by BC_FileBoxOK::BC_FileBoxOK(), create_objects(), get_listbox_h(), submit_dir(), and submit_file().
int BC_FileBox::select_multiple [private] |
int BC_FileBox::sort_column [private] |
Definition at line 281 of file bcfilebox.h.
Referenced by BC_FileBox(), BC_FileBoxListBox::BC_FileBoxListBox(), create_tables(), and BC_FileBoxListBox::sort_order_event().
int BC_FileBox::sort_order [private] |
Definition at line 282 of file bcfilebox.h.
Referenced by BC_FileBox(), BC_FileBoxListBox::BC_FileBoxListBox(), create_tables(), and BC_FileBoxListBox::sort_order_event().
char* BC_FileBox::column_titles[FILEBOX_COLUMNS] [private] |
Definition at line 284 of file bcfilebox.h.
Referenced by BC_FileBox(), move_column(), and refresh().
ArrayList<BC_ListBoxItem*> BC_FileBox::filter_list [private] |
ArrayList<BC_ListBoxItem*>* BC_FileBox::list_column [private] |
Definition at line 286 of file bcfilebox.h.
Referenced by BC_FileBox(), create_tables(), delete_tables(), BC_FileBoxListBox::evaluate_query(), move_column(), refresh(), and ~BC_FileBox().
int* BC_FileBox::column_type [private] |
Definition at line 287 of file bcfilebox.h.
Referenced by BC_FileBox(), column_of_type(), create_tables(), move_column(), and ~BC_FileBox().
int* BC_FileBox::column_width [private] |
Definition at line 288 of file bcfilebox.h.
Referenced by BC_FileBox(), BC_FileBoxListBox::column_resize_event(), move_column(), refresh(), and ~BC_FileBox().
int BC_FileBox::columns [private] |
Definition at line 290 of file bcfilebox.h.
Referenced by BC_FileBox(), column_of_type(), BC_FileBoxListBox::column_resize_event(), delete_tables(), move_column(), and refresh().
char BC_FileBox::new_folder_title[BCTEXTLEN] [private] |
Definition at line 292 of file bcfilebox.h.
Referenced by get_delete_title(), and get_newfolder_title().
BC_NewFolderThread* BC_FileBox::newfolder_thread [private] |
Definition at line 293 of file bcfilebox.h.
Referenced by create_objects(), BC_FileBoxNewfolder::handle_event(), BC_FileBoxCancel::handle_event(), submit_file(), and ~BC_FileBox().
BC_DeleteThread* BC_FileBox::delete_thread [private] |
Definition at line 294 of file bcfilebox.h.
Referenced by BC_FileBox(), BC_FileBoxDelete::handle_event(), and ~BC_FileBox().
int BC_FileBox::h_padding [private] |
ArrayList<BC_ListBoxItem*> BC_FileBox::recent_dirs [private] |
Definition at line 296 of file bcfilebox.h.
Referenced by create_history(), update_history(), and ~BC_FileBox().
1.5.5