3 #ifndef _GTKMM_FILECHOOSER_H
4 #define _GTKMM_FILECHOOSER_H
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
31 #include <glibmm/interface.h>
32 #include <giomm/file.h>
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 typedef struct _GtkFileChooserClass GtkFileChooserClass;
41 #ifndef DOXYGEN_SHOULD_SKIP_THIS
43 {
class FileChooser_Class; }
66 #ifndef DOXYGEN_SHOULD_SKIP_THIS
74 static GType value_type() G_GNUC_CONST;
98 #ifndef DOXYGEN_SHOULD_SKIP_THIS
106 static GType value_type() G_GNUC_CONST;
139 #ifndef DOXYGEN_SHOULD_SKIP_THIS
142 static void throw_func(GError* gobject);
151 #ifndef DOXYGEN_SHOULD_SKIP_THIS
156 class Value<
Gtk::FileChooserError::Code> :
public Glib::Value_Enum<Gtk::FileChooserError::Code>
159 static GType value_type() G_GNUC_CONST;
208 #ifndef DOXYGEN_SHOULD_SKIP_THIS
214 typedef GtkFileChooserClass BaseClassType;
218 static CppClassType filechooser_class_;
231 #ifndef DOXYGEN_SHOULD_SKIP_THIS
238 explicit FileChooser(
const Glib::Interface_Class& interface_class);
258 #ifndef DOXYGEN_SHOULD_SKIP_THIS
259 static GType get_base_type() G_GNUC_CONST;
619 bool set_file(
const Glib::RefPtr<const Gio::File>& uri);
647 Glib::SListHandle< Glib::RefPtr<Gio::File> >
get_files();
FileChooserError(Code error_code, const Glib::ustring &error_message)
FileChooserError(GError *gobject)
Glib::PropertyProxy_ReadOnly< Widget * > property_extra_widget() const
Glib::PropertyProxy< FileFilter * > property_filter()
Glib::SignalProxy0< FileChooserConfirmation > signal_confirm_overwrite()
Glib::SListHandle< const FileFilter * > list_filters() const
static GType get_type() G_GNUC_CONST
void set_filter(const FileFilter &filter)
void set_do_overwrite_confirmation(bool do_overwrite_confirmation=true)
void unselect_uri(const Glib::ustring &uri)
Glib::ustring get_filename() const
GtkFileChooser * gobj()
Provides access to the underlying C GObject.
Glib::PropertyProxy< bool > property_preview_widget_active()
bool remove_shortcut_folder_uri(const Glib::ustring &uri)
void set_preview_widget_active(bool active=true)
bool add_shortcut_folder(const Glib::ustring &folder)
Glib::RefPtr< const Gio::File > get_file() const
Glib::SListHandle< Glib::RefPtr< Gio::File > > get_files()
bool get_use_preview_label() const
Glib::PropertyProxy< Widget * > property_preview_widget()
Glib::SignalProxy0< void > signal_current_folder_changed()
Glib::RefPtr< Gio::File > get_current_folder_file()
bool set_current_folder_uri(const Glib::ustring &uri)
void set_select_multiple(bool select_multiple=true)
bool set_current_folder_file(const Glib::RefPtr< const Gio::File > &file)
Glib::PropertyProxy< bool > property_do_overwrite_confirmation()
Glib::PropertyProxy< bool > property_show_hidden()
bool set_current_folder(const Glib::ustring &filename)
Glib::RefPtr< Gtk::FileChooser > wrap(GtkFileChooser *object, bool take_copy=false)
Glib::PropertyProxy_ReadOnly< bool > property_create_folders() const
bool add_shortcut_folder_uri(const Glib::ustring &uri)
Glib::RefPtr< Gio::File > get_file()
Glib::PropertyProxy_ReadOnly< FileFilter * > property_filter() const
bool get_local_only() const
Glib::PropertyProxy_ReadOnly< Widget * > property_preview_widget() const
void set_show_hidden(bool show_hidden=true)
Glib::SListHandle< FileFilter * > list_filters()
Glib::SListHandle< Glib::ustring > list_shortcut_folder_uris() const
bool get_preview_widget_active() const
void set_use_preview_label(bool use_label=true)
void set_current_name(const Glib::ustring &name)
bool get_select_multiple() const
Glib::ustring get_uri() const
bool select_file(const Glib::RefPtr< const Gio::File > &file)
Glib::PropertyProxy_ReadOnly< bool > property_local_only() const
Glib::PropertyProxy_ReadOnly< bool > property_use_preview_label() const
bool get_show_hidden() const
Glib::PropertyProxy< FileChooserAction > property_action()
Gtk::Widget * get_preview_widget()
void set_create_folders(bool create_folders=true)
bool set_file(const Glib::RefPtr< const Gio::File > &uri)
Glib::PropertyProxy_ReadOnly< bool > property_select_multiple() const
void remove_filter(const FileFilter &filter)
Glib::SignalProxy0< void > signal_file_activated()
Glib::SListHandle< Glib::ustring > list_shortcut_folders() const
Glib::ustring get_current_folder() const
Glib::PropertyProxy_ReadOnly< bool > property_do_overwrite_confirmation() const
const GtkFileChooser * gobj() const
Provides access to the underlying C GObject.
Glib::RefPtr< const Gio::File > get_preview_file() const
Glib::SListHandle< Glib::ustring > get_uris() const
Glib::PropertyProxy< bool > property_create_folders()
void unselect_file(const Glib::RefPtr< const Gio::File > &file)
Gtk::Widget * get_extra_widget()
Glib::SListHandle< Glib::ustring > get_filenames() const
FileChooserAction get_action() const
Glib::PropertyProxy< bool > property_use_preview_label()
bool set_uri(const Glib::ustring &uri)
Glib::RefPtr< Gio::File > get_preview_file()
void set_action(FileChooserAction action)
bool remove_shortcut_folder(const Glib::ustring &folder)
void set_preview_widget(Gtk::Widget &preview_widget)
bool get_do_overwrite_confirmation() const
Glib::PropertyProxy< Widget * > property_extra_widget()
void set_extra_widget(Gtk::Widget &extra_widget)
bool get_create_folders() const
const Gtk::Widget * get_extra_widget() const
Glib::PropertyProxy_ReadOnly< FileChooserAction > property_action() const
static void add_interface(GType gtype_implementer)
bool select_uri(const Glib::ustring &uri)
Glib::PropertyProxy< bool > property_select_multiple()
Glib::ustring get_preview_uri() const
const FileFilter * get_filter() const
bool select_filename(const Glib::ustring &filename)
Glib::PropertyProxy_ReadOnly< bool > property_show_hidden() const
bool set_filename(const Glib::ustring &filename)
const Gtk::Widget * get_preview_widget() const
Glib::ustring get_preview_filename() const
FileFilter * get_filter()
void unselect_filename(const Glib::ustring &filename)
void add_filter(const FileFilter &filter)
void set_local_only(bool local_only=true)
Glib::PropertyProxy< bool > property_local_only()
Glib::ustring get_current_folder_uri() const
Glib::PropertyProxy_ReadOnly< bool > property_preview_widget_active() const
Glib::SignalProxy0< void > signal_update_preview()
Glib::SignalProxy0< void > signal_selection_changed()
struct _GtkFileChooser GtkFileChooser
GtkImageIconNameData name
PBD::PropertyDescriptor< bool > active