pub trait FileChooserExt: 'static {
Show 30 methods
// Required methods
fn add_filter(&self, filter: &FileFilter);
fn add_shortcut_folder(&self, folder: &impl IsA<File>) -> Result<(), Error>;
fn action(&self) -> FileChooserAction;
fn choice(&self, id: &str) -> Option<GString>;
fn creates_folders(&self) -> bool;
fn current_folder(&self) -> Option<File>;
fn current_name(&self) -> Option<GString>;
fn file(&self) -> Option<File>;
fn files(&self) -> ListModel;
fn filter(&self) -> Option<FileFilter>;
fn filters(&self) -> ListModel;
fn selects_multiple(&self) -> bool;
fn shortcut_folders(&self) -> ListModel;
fn remove_choice(&self, id: &str);
fn remove_filter(&self, filter: &FileFilter);
fn remove_shortcut_folder(
&self,
folder: &impl IsA<File>
) -> Result<(), Error>;
fn set_action(&self, action: FileChooserAction);
fn set_choice(&self, id: &str, option: &str);
fn set_create_folders(&self, create_folders: bool);
fn set_current_folder(
&self,
file: Option<&impl IsA<File>>
) -> Result<(), Error>;
fn set_current_name(&self, name: &str);
fn set_file(&self, file: &impl IsA<File>) -> Result<(), Error>;
fn set_filter(&self, filter: &FileFilter);
fn set_select_multiple(&self, select_multiple: bool);
fn connect_action_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_create_folders_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_filter_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_filters_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_select_multiple_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_shortcut_folders_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}