]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - radiant/gtkfilesel.h
more eol-style
[xonotic/netradiant.git] / radiant / gtkfilesel.h
1 /*
2 Copyright (C) 1999-2007 id Software, Inc. and contributors.
3 For a list of contributors, see the accompanying CONTRIBUTORS file.
4
5 This file is part of GtkRadiant.
6
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.
11
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.
16
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
20 */
21
22 /* GTK - The GIMP Toolkit
23  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
24  *
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.
29  *
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.
34  *
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.
39  */
40
41 /*
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/. 
46  */
47
48 #ifndef __GTK_FILESEL_H__
49 #define __GTK_FILESEL_H__
50
51
52 #include <gdk/gdk.h>
53 #include <gtk/gtkwindow.h>
54
55
56 #ifdef __cplusplus
57 extern "C" {
58 #endif /* __cplusplus */
59
60
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))
66
67
68 typedef struct _GtkFileSelection       GtkFileSelection;
69 typedef struct _GtkFileSelectionClass  GtkFileSelectionClass;
70
71 struct _GtkFileSelection
72 {
73   GtkWindow window;
74
75   GtkWidget *dir_list;
76   GtkWidget *file_list;
77   GtkWidget *selection_entry;
78   GtkWidget *selection_text;
79   GtkWidget *main_vbox;
80   GtkWidget *ok_button;
81   GtkWidget *cancel_button;
82   GtkWidget *help_button;
83
84   /* These are not used.  Just fillers in the class structure */
85   GtkWidget *history_pulldown;
86   GtkWidget *history_menu;
87   GList     *history_list;
88   /* ***************** */
89         
90   GtkWidget *fileop_dialog;
91   GtkWidget *fileop_entry;
92   gchar     *fileop_file;
93   gpointer   cmpl_state;
94   
95   GtkWidget *fileop_c_dir;
96   GtkWidget *fileop_del_file;
97   GtkWidget *fileop_ren_file;
98   
99   GtkWidget *button_area;
100   GtkWidget *action_area;
101
102   GtkWidget *history_combo;
103   GList     *prev_history;
104   GList     *next_history;
105   GtkWidget *mask_entry;
106   gchar     *mask;
107   gchar     *saved_entry;
108
109 };
110
111 struct _GtkFileSelectionClass
112 {
113   GtkWindowClass parent_class;
114 };
115
116
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);
126
127
128 #ifdef __cplusplus
129 }
130 #endif /* __cplusplus */
131
132
133 #endif /* __GTK_FILESEL_H__ */
134
135
136
137
138
139
140
141
142
143