1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS
22 * file for a list of people on the GTK+ Team. See the ChangeLog
23 * files for a list of changes. These files are distributed with
24 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
27 #ifndef __GTK_FILESEL_H__
28 #define __GTK_FILESEL_H__
32 #include <gtk/gtkwindow.h>
37 #endif /* __cplusplus */
40 #define GTK_TYPE_FILE_SELECTION ( gtk_file_selection_get_type() )
41 #define GTK_FILE_SELECTION( obj ) ( GTK_CHECK_CAST( ( obj ), GTK_TYPE_FILE_SELECTION, GtkFileSelection ) )
42 #define GTK_FILE_SELECTION_CLASS( klass ) ( GTK_CHECK_CLASS_CAST( ( klass ), GTK_TYPE_FILE_SELECTION, GtkFileSelectionClass ) )
43 #define GTK_IS_FILE_SELECTION( obj ) ( GTK_CHECK_TYPE( ( obj ), GTK_TYPE_FILE_SELECTION ) )
44 #define GTK_IS_FILE_SELECTION_CLASS( klass ) ( GTK_CHECK_CLASS_TYPE( ( klass ), GTK_TYPE_FILE_SELECTION ) )
47 typedef struct _GtkFileSelection GtkFileSelection;
48 typedef struct _GtkFileSelectionClass GtkFileSelectionClass;
50 struct _GtkFileSelection
56 GtkWidget *selection_entry;
57 GtkWidget *selection_text;
60 GtkWidget *cancel_button;
61 GtkWidget *help_button;
63 /* These are not used. Just fillers in the class structure */
64 GtkWidget *history_pulldown;
65 GtkWidget *history_menu;
67 /* ***************** */
69 GtkWidget *fileop_dialog;
70 GtkWidget *fileop_entry;
74 GtkWidget *fileop_c_dir;
75 GtkWidget *fileop_del_file;
76 GtkWidget *fileop_ren_file;
78 GtkWidget *button_area;
79 GtkWidget *action_area;
81 GtkWidget *history_combo;
84 GtkWidget *mask_entry;
92 struct _GtkFileSelectionClass
94 GtkWindowClass parent_class;
98 GtkType gtk_file_selection_get_type( void );
99 GtkWidget* gtk_file_selection_new( const gchar *title );
100 void gtk_file_selection_set_filename( GtkFileSelection *filesel,
101 const gchar *filename );
102 gchar* gtk_file_selection_get_filename( GtkFileSelection *filesel );
103 void gtk_file_selection_complete( GtkFileSelection *filesel,
104 const gchar *pattern );
105 void gtk_file_selection_show_fileop_buttons( GtkFileSelection *filesel );
106 void gtk_file_selection_hide_fileop_buttons( GtkFileSelection *filesel );
108 /* proposed interface */
109 void gtk_file_selection_clear_masks( GtkFileSelection *filesel );
110 void gtk_file_selection_set_masks( GtkFileSelection *filesel,
111 const gchar **masks );
116 #endif /* __cplusplus */
119 #endif /* __GTK_FILESEL_H__ */