![]() |
![]() |
This widget lets the user select a file. It implements the FileChooser interface. Visually, it is a file name with a button to bring up a FileChooserDialog. The user can then use that dialog to change the file associated with that button. This widget does not support setting the "select_multiple" property to true.
The FileChooserButton supports the FileChooserActions FILE_CHOOSER_ACTION_OPEN and FILE_CHOOSER_ACTION_SELECT_FOLDER.
The FileChooserButton will ellipsize the label, and will thus request little horizontal space. To give the button more space, you should call size_request(), set_width_chars(), or pack the button in such a way that other interface elements give space to the widget.
Public Member Functions | |
FileChooserButton (FileChooserDialog& dialog) | |
Creates a new file-selecting button widget which uses dialog as its file-picking window. | |
FileChooserButton (const Glib::ustring& title, FileChooserAction action, const Glib::ustring& backend) | |
Creates a new file-selecting button widget using backend. | |
FileChooserButton (const Glib::ustring& title, FileChooserAction action=FILE_CHOOSER_ACTION_OPEN) | |
Creates a new file-selecting button widget. | |
FileChooserButton (FileChooserAction action=FILE_CHOOSER_ACTION_OPEN) | |
Creates a new file-selecting button widget with the default title. | |
Glib::ustring | get_title () const |
Retrieves the title of the browse dialog used by button . | |
int | get_width_chars () const |
Retrieves the width in characters of the button widget's entry and/or label. | |
const GtkFileChooserButton* | gobj () const |
Provides access to the underlying C GtkObject. | |
GtkFileChooserButton* | gobj () |
Provides access to the underlying C GtkObject. | |
Glib::PropertyProxy_ReadOnly< FileChooserDialog* > | property_dialog () const |
The file chooser dialog to use. | |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_title () const |
The title of the file chooser dialog. | |
Glib::PropertyProxy<Glib::ustring> | property_title () |
The title of the file chooser dialog. | |
Glib::PropertyProxy_ReadOnly< int > | property_width_chars () const |
The desired width of the button widget. | |
Glib::PropertyProxy<int> | property_width_chars () |
The desired width of the button widget. | |
void | set_title (const Glib::ustring& title) |
Modifies the title of the browse dialog used by button . | |
void | set_width_chars (int n_chars) |
Sets the width (in characters) that button will use to n_chars . | |
virtual | ~FileChooserButton () |
Related Functions | |
(Note that these are not member functions.) | |
Gtk::FileChooserButton* | wrap (GtkFileChooserButton* object, bool take_copy=false) |
|
|
|
Creates a new file-selecting button widget with the default title.
|
|
Creates a new file-selecting button widget.
|
|
Creates a new file-selecting button widget using backend.
|
|
Creates a new file-selecting button widget which uses dialog as its file-picking window.
|
|
Retrieves the title of the browse dialog used by button . The returned value should not be modified or freed.
|
|
Retrieves the width in characters of the button widget's entry and/or label.
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::HBox. |
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::HBox. |
|
The file chooser dialog to use. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The title of the file chooser dialog. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The title of the file chooser dialog. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The desired width of the button widget. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The desired width of the button widget. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Modifies the title of the browse dialog used by button .
|
|
Sets the width (in characters) that button will use to n_chars .
|
|
|