1Gtk2::FileChooser(3)  User Contributed Perl Documentation Gtk2::FileChooser(3)
2
3
4

NAME

6       Gtk2::FileChooser
7

HIERARCHY

9         Glib::Interface
10         +----Gtk2::FileChooser
11

METHODS

13   filechooseraction = $chooser->get_action
14   $chooser->set_action ($action)
15           ·   $action (Gtk2::FileChooserAction)
16
17   $chooser->add_filter ($filter)
18           ·   $filter (Gtk2::FileFilter)
19
20   $chooser->add_shortcut_folder ($folder)
21           ·   $folder (string)
22
23   $chooser->add_shortcut_folder_uri ($folder)
24           ·   $folder (string)
25
26   string = $chooser->get_current_folder
27   boolean = $chooser->set_current_folder ($filename)
28           ·   $filename (string)
29
30   string = $chooser->get_current_folder_uri
31   boolean = $chooser->set_current_folder_uri ($uri)
32           ·   $uri (string)
33
34   $chooser->set_current_name ($name)
35           ·   $name (string)
36
37   boolean = $chooser->get_do_overwrite_confirmation
38           Since: gtk+ 2.8
39
40   $chooser->set_do_overwrite_confirmation ($do_overwrite_confirmation)
41           ·   $do_overwrite_confirmation (boolean)
42
43           Since: gtk+ 2.8
44
45   widget = $chooser->get_extra_widget
46   $chooser->set_extra_widget ($extra_widget)
47           ·   $extra_widget (Gtk2::Widget)
48
49   string = $chooser->get_filename
50   boolean = $chooser->set_filename ($filename)
51           ·   $filename (string)
52
53   list = $chooser->get_filenames
54   filefilter = $chooser->get_filter
55   $chooser->set_filter ($filter)
56           ·   $filter (Gtk2::FileFilter)
57
58   list = $chooser->list_filters
59   list = $chooser->list_shortcut_folder_uris
60   list = $chooser->list_shortcut_folders
61   boolean = $chooser->get_local_only
62   $chooser->set_local_only ($files_only)
63           ·   $files_only (boolean)
64
65   localized file name = $file_chooser->get_preview_filename
66   string = $file_chooser->get_preview_uri
67   boolean = $chooser->get_preview_widget_active
68   $chooser->set_preview_widget_active ($active)
69           ·   $active (boolean)
70
71   widget = $chooser->get_preview_widget
72   $chooser->set_preview_widget ($preview_widget)
73           ·   $preview_widget (Gtk2::Widget)
74
75   $chooser->remove_filter ($filter)
76           ·   $filter (Gtk2::FileFilter)
77
78   $chooser->remove_shortcut_folder ($folder)
79           ·   $folder (string)
80
81   $chooser->remove_shortcut_folder_uri ($folder)
82           ·   $folder (string)
83
84   $chooser->select_all
85   boolean = $chooser->select_filename ($filename)
86           ·   $filename (string)
87
88   boolean = $chooser->get_select_multiple
89   $chooser->set_select_multiple ($select_multiple)
90           ·   $select_multiple (boolean)
91
92   boolean = $chooser->select_uri ($uri)
93           ·   $uri (string)
94
95   boolean = $chooser->get_show_hidden
96           Since: gtk+ 2.6
97
98   $chooser->set_show_hidden ($show_hidden)
99           ·   $show_hidden (boolean)
100
101           Since: gtk+ 2.6
102
103   $chooser->unselect_all
104   $chooser->unselect_filename ($filename)
105           ·   $filename (string)
106
107   $chooser->unselect_uri ($uri)
108           ·   $uri (string)
109
110   string = $chooser->get_uri
111   boolean = $chooser->set_uri ($uri)
112           ·   $uri (string)
113
114   list = $chooser->get_uris
115   boolean = $chooser->get_use_preview_label
116   $chooser->set_use_preview_label ($use_label)
117           ·   $use_label (boolean)
118

PROPERTIES

120       'action' (Gtk2::FileChooserAction : readable / writable / private)
121           The type of operation that the file selector is performing
122
123       'create-folders' (boolean : readable / writable / private)
124           Whether a file chooser not in open mode will offer the user to
125           create new folders.
126
127       'do-overwrite-confirmation' (boolean : readable / writable / private)
128           Whether a file chooser in save mode will present an overwrite
129           confirmation dialog if necessary.
130
131       'extra-widget' (Gtk2::Widget : readable / writable / private)
132           Application supplied widget for extra options.
133
134       'file-system-backend' (string : writable / construct-only / private)
135           Name of file system backend to use
136
137       'filter' (Gtk2::FileFilter : readable / writable / private)
138           The current filter for selecting which files are displayed
139
140       'local-only' (boolean : readable / writable / private)
141           Whether the selected file(s) should be limited to local file: URLs
142
143       'preview-widget' (Gtk2::Widget : readable / writable / private)
144           Application supplied widget for custom previews.
145
146       'preview-widget-active' (boolean : readable / writable / private)
147           Whether the application supplied widget for custom previews should
148           be shown.
149
150       'select-multiple' (boolean : readable / writable / private)
151           Whether to allow multiple files to be selected
152
153       'show-hidden' (boolean : readable / writable / private)
154           Whether the hidden files and folders should be displayed
155
156       'use-preview-label' (boolean : readable / writable / private)
157           Whether to display a stock label with the name of the previewed
158           file.
159

SIGNALS

161       selection-changed (Gtk2::FileChooser)
162       current-folder-changed (Gtk2::FileChooser)
163       update-preview (Gtk2::FileChooser)
164       file-activated (Gtk2::FileChooser)
165       GtkFileChooserConfirmation = confirm-overwrite (Gtk2::FileChooser)
166

ENUMS AND FLAGS

168   enum Gtk2::FileChooserAction
169       ·   'open' / 'GTK_FILE_CHOOSER_ACTION_OPEN'
170
171       ·   'save' / 'GTK_FILE_CHOOSER_ACTION_SAVE'
172
173       ·   'select-folder' / 'GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER'
174
175       ·   'create-folder' / 'GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER'
176
177   enum Gtk2::FileChooserError
178       ·   'nonexistent' / 'GTK_FILE_CHOOSER_ERROR_NONEXISTENT'
179
180       ·   'bad-filename' / 'GTK_FILE_CHOOSER_ERROR_BAD_FILENAME'
181
182       ·   'already-exists' / 'GTK_FILE_CHOOSER_ERROR_ALREADY_EXISTS'
183
184       ·   'incomplete-hostname' /
185           'GTK_FILE_CHOOSER_ERROR_INCOMPLETE_HOSTNAME'
186
187   enum GtkFileChooserConfirmation
188       ·   'confirm' / 'GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM'
189
190       ·   'accept-filename' / 'GTK_FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME'
191
192       ·   'select-again' / 'GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN'
193

SEE ALSO

195       Gtk2, Glib::Interface
196
198       Copyright (C) 2003-2008 by the gtk2-perl team.
199
200       This software is licensed under the LGPL.  See Gtk2 for a full notice.
201
202
203
204perl v5.12.0                      2010-05-02              Gtk2::FileChooser(3)
Impressum