#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().
