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

NAME

6       Gtk2::FileChooser
7

HIERARCHY

9         Glib::Object::_Unregistered::GInterface
10         +----Gtk2::FileChooser
11

METHODS

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

PROPERTIES

160       'action' (Gtk2::FileChooserAction : readable / writable / private)
161           The type of operation that the file selector is performing
162
163       'do-overwrite-confirmation' (boolean : readable / writable / private)
164           Whether a file chooser in save mode will present an overwrite con‐
165           firmation dialog if necessary.
166
167       'extra-widget' (Gtk2::Widget : readable / writable / private)
168           Application supplied widget for extra options.
169
170       'file-system-backend' (string : writable / construct-only / private)
171           Name of file system backend to use
172
173       'filter' (Gtk2::FileFilter : readable / writable / private)
174           The current filter for selecting which files are displayed
175
176       'local-only' (boolean : readable / writable / private)
177           Whether the selected file(s) should be limited to local file: URLs
178
179       'preview-widget' (Gtk2::Widget : readable / writable / private)
180           Application supplied widget for custom previews.
181
182       'preview-widget-active' (boolean : readable / writable / private)
183           Whether the application supplied widget for custom previews should
184           be shown.
185
186       'select-multiple' (boolean : readable / writable / private)
187           Whether to allow multiple files to be selected
188
189       'show-hidden' (boolean : readable / writable / private)
190           Whether the hidden files and folders should be displayed
191
192       'use-preview-label' (boolean : readable / writable / private)
193           Whether to display a stock label with the name of the previewed
194           file.
195

SIGNALS

197       current-folder-changed (Gtk2::FileChooser)
198       selection-changed (Gtk2::FileChooser)
199       update-preview (Gtk2::FileChooser)
200       file-activated (Gtk2::FileChooser)
201       GtkFileChooserConfirmation = confirm-overwrite (Gtk2::FileChooser)
202

ENUMS AND FLAGS

204       enum Gtk2::FileChooserAction
205
206       * 'open' / 'GTK_FILE_CHOOSER_ACTION_OPEN'
207       * 'save' / 'GTK_FILE_CHOOSER_ACTION_SAVE'
208       * 'select-folder' / 'GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER'
209       * 'create-folder' / 'GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER'
210
211       enum Gtk2::FileChooserError
212
213       * 'nonexistent' / 'GTK_FILE_CHOOSER_ERROR_NONEXISTENT'
214       * 'bad-filename' / 'GTK_FILE_CHOOSER_ERROR_BAD_FILENAME'
215       * 'already-exists' / 'GTK_FILE_CHOOSER_ERROR_ALREADY_EXISTS'
216
217       enum GtkFileChooserConfirmation
218
219       * 'confirm' / 'GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM'
220       * 'accept-filename' / 'GTK_FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME'
221       * 'select-again' / 'GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN'
222

SEE ALSO

224       Gtk2, Glib::Object::_Unregistered::GInterface
225
227       Copyright (C) 2003-2007 by the gtk2-perl team.
228
229       This software is licensed under the LGPL.  See Gtk2 for a full notice.
230
231
232
233perl v5.8.8                       2007-03-18              Gtk2::FileChooser(3)
Impressum