2 Copyright (C) 1999-2007 id Software, Inc. and contributors.
3 For a list of contributors, see the accompanying CONTRIBUTORS file.
5 This file is part of GtkRadiant.
7 GtkRadiant is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 GtkRadiant is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GtkRadiant; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 /* GTK - The GIMP Toolkit
23 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
25 * This library is free software; you can redistribute it and/or
26 * modify it under the terms of the GNU Library General Public
27 * License as published by the Free Software Foundation; either
28 * version 2 of the License, or (at your option) any later version.
30 * This library is distributed in the hope that it will be useful,
31 * but WITHOUT ANY WARRANTY; without even the implied warranty of
32 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
33 * Library General Public License for more details.
35 * You should have received a copy of the GNU Library General Public
36 * License along with this library; if not, write to the
37 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
38 * Boston, MA 02111-1307, USA.
42 * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS
43 * file for a list of people on the GTK+ Team. See the ChangeLog
44 * files for a list of changes. These files are distributed with
45 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
48 #ifndef __GTK_FILESEL_H__
49 #define __GTK_FILESEL_H__
53 #include <gtk/gtkwindow.h>
58 #endif /* __cplusplus */
61 #define GTK_TYPE_FILE_SELECTION ( gtk_file_selection_get_type() )
62 #define GTK_FILE_SELECTION( obj ) ( GTK_CHECK_CAST( ( obj ), GTK_TYPE_FILE_SELECTION, GtkFileSelection ) )
63 #define GTK_FILE_SELECTION_CLASS( klass ) ( GTK_CHECK_CLASS_CAST( ( klass ), GTK_TYPE_FILE_SELECTION, GtkFileSelectionClass ) )
64 #define GTK_IS_FILE_SELECTION( obj ) ( GTK_CHECK_TYPE( ( obj ), GTK_TYPE_FILE_SELECTION ) )
65 #define GTK_IS_FILE_SELECTION_CLASS( klass ) ( GTK_CHECK_CLASS_TYPE( ( klass ), GTK_TYPE_FILE_SELECTION ) )
68 typedef struct _GtkFileSelection GtkFileSelection;
69 typedef struct _GtkFileSelectionClass GtkFileSelectionClass;
71 struct _GtkFileSelection
77 GtkWidget *selection_entry;
78 GtkWidget *selection_text;
81 GtkWidget *cancel_button;
82 GtkWidget *help_button;
84 /* These are not used. Just fillers in the class structure */
85 GtkWidget *history_pulldown;
86 GtkWidget *history_menu;
88 /* ***************** */
90 GtkWidget *fileop_dialog;
91 GtkWidget *fileop_entry;
95 GtkWidget *fileop_c_dir;
96 GtkWidget *fileop_del_file;
97 GtkWidget *fileop_ren_file;
99 GtkWidget *button_area;
100 GtkWidget *action_area;
102 GtkWidget *history_combo;
105 GtkWidget *mask_entry;
111 struct _GtkFileSelectionClass
113 GtkWindowClass parent_class;
117 GtkType gtk_file_selection_get_type( void );
118 GtkWidget* gtk_file_selection_new( const gchar *title );
119 void gtk_file_selection_set_filename( GtkFileSelection *filesel,
120 const gchar *filename );
121 gchar* gtk_file_selection_get_filename( GtkFileSelection *filesel );
122 void gtk_file_selection_complete( GtkFileSelection *filesel,
123 const gchar *pattern );
124 void gtk_file_selection_show_fileop_buttons( GtkFileSelection *filesel );
125 void gtk_file_selection_hide_fileop_buttons( GtkFileSelection *filesel );
130 #endif /* __cplusplus */
133 #endif /* __GTK_FILESEL_H__ */