pub trait FileChooserExt: 'static {
Show 29 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_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;
}

Required Methods§

source

fn add_filter(&self, filter: &FileFilter)

source

fn add_shortcut_folder(&self, folder: &impl IsA<File>) -> Result<(), Error>

source

fn action(&self) -> FileChooserAction

source

fn choice(&self, id: &str) -> Option<GString>

source

fn creates_folders(&self) -> bool

source

fn current_folder(&self) -> Option<File>

source

fn current_name(&self) -> Option<GString>

source

fn file(&self) -> Option<File>

source

fn files(&self) -> ListModel

source

fn filter(&self) -> Option<FileFilter>

source

fn filters(&self) -> ListModel

source

fn selects_multiple(&self) -> bool

source

fn shortcut_folders(&self) -> ListModel

source

fn remove_choice(&self, id: &str)

source

fn remove_filter(&self, filter: &FileFilter)

source

fn remove_shortcut_folder(&self, folder: &impl IsA<File>) -> Result<(), Error>

source

fn set_action(&self, action: FileChooserAction)

source

fn set_choice(&self, id: &str, option: &str)

source

fn set_create_folders(&self, create_folders: bool)

source

fn set_current_name(&self, name: &str)

source

fn set_file(&self, file: &impl IsA<File>) -> Result<(), Error>

source

fn set_filter(&self, filter: &FileFilter)

source

fn set_select_multiple(&self, select_multiple: bool)

source

fn connect_action_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_create_folders_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_filter_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_filters_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_select_multiple_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_shortcut_folders_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

Implementors§