1 /* GTK - The GIMP Toolkit
2 * gtkfilechooserprivate.h: Interface definition for file selector GUIs
3 * Copyright (C) 2003, Red Hat, Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __GTK_FILE_CHOOSER_PRIVATE_H__
22 #define __GTK_FILE_CHOOSER_PRIVATE_H__
24 #include "gtkfilechooser.h"
25 #include "gtkfilesystem.h"
29 #define GTK_FILE_CHOOSER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_FILE_CHOOSER, GtkFileChooserIface))
31 typedef struct _GtkFileChooserIface GtkFileChooserIface;
33 struct _GtkFileChooserIface
35 GTypeInterface base_iface;
37 /* GtkFileChooser interface has the following properties:
39 * action: GtkFileChooserAction
40 * folder_mode: boolean
41 * select_multiple: boolean
42 * show_hidden: boolean
45 * preview_widget: GtkWidget
46 * preview_widget_active: boolean
51 void (*set_current_folder) (GtkFileChooser *chooser,
52 const GtkFilePath *path);
53 GtkFilePath * (*get_current_folder) (GtkFileChooser *chooser);
54 void (*set_current_name) (GtkFileChooser *chooser,
56 void (*select_path) (GtkFileChooser *chooser,
57 const GtkFilePath *path);
58 void (*unselect_path) (GtkFileChooser *chooser,
59 const GtkFilePath *path);
60 void (*select_all) (GtkFileChooser *chooser);
61 void (*unselect_all) (GtkFileChooser *chooser);
62 GSList * (*get_paths) (GtkFileChooser *chooser);
63 GtkFileSystem *(*get_file_system) (GtkFileChooser *chooser);
67 void (*current_folder_changed) (GtkFileChooser *chooser);
68 void (*selection_changed) (GtkFileChooser *chooser);
69 void (*update_preview) (GtkFileChooser *chooser,
73 GtkFileSystem *_gtk_file_chooser_get_file_system (GtkFileChooser *chooser);
74 void _gtk_file_chooser_set_current_folder_path (GtkFileChooser *chooser,
75 const GtkFilePath *path);
76 GtkFilePath * _gtk_file_chooser_get_current_folder_path (GtkFileChooser *chooser);
77 void _gtk_file_chooser_select_path (GtkFileChooser *chooser,
78 const GtkFilePath *path);
79 void _gtk_file_chooser_unselect_path (GtkFileChooser *chooser,
80 const GtkFilePath *path);
81 GSList * _gtk_file_chooser_get_paths (GtkFileChooser *chooser);
85 #endif /* __GTK_FILE_CHOOSER_PRIVATE_H__ */