2 * This file is part of gtkD.
4 * gtkD is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * gtkD 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
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with gtkD; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
24 * Conversion parameters:
25 * inFile = GtkFileChooserWidget.html
27 * outFile = FileChooserWidget
28 * strct = GtkFileChooserWidget
31 * clss = FileChooserWidget
39 * - gtk_file_chooser_widget_
55 module gtk
.FileChooserWidget
;
61 import tango
.io
.Stdout
; // use the tango loging?
65 private import gtkc
.gtktypes
;
67 private import gtkc
.gtk
;
70 private import glib
.Str
;
71 private import glib
.ListSG
;;
72 private import gtk
.Widget
;;
73 private import gtk
.FileFilter
;;
74 private import gtk
.FileChooser
;;
81 * GtkFileChooserWidget is a widget suitable for selecting files.
82 * It is the main building block of a GtkFileChooserDialog. Most
83 * applications will only need to use the latter; you can use
84 * GtkFileChooserWidget as part of a larger window if you have
86 * Note that GtkFileChooserWidget does not have any methods of its
87 * own. Instead, you should use the functions that work on a
90 private import gtk
.VBox
;
91 public class FileChooserWidget
: VBox
94 /** the main Gtk struct */
95 protected GtkFileChooserWidget
* gtkFileChooserWidget
;
98 public GtkFileChooserWidget
* getFileChooserWidgetStruct()
100 return gtkFileChooserWidget
;
104 /** the main Gtk struct as a void* */
105 protected void* getStruct()
107 return cast(void*)gtkFileChooserWidget
;
111 * Sets our main struct and passes it to the parent class
113 public this (GtkFileChooserWidget
* gtkFileChooserWidget
)
117 if ( gtkFileChooserWidget
is null )
122 Stdout("struct gtkFileChooserWidget is null on constructor").newline
;
126 printf("struct gtkFileChooserWidget is null on constructor");
133 assert(gtkFileChooserWidget
!is null, "struct gtkFileChooserWidget is null on constructor");
135 super(cast(GtkVBox
*)gtkFileChooserWidget
);
136 this.gtkFileChooserWidget
= gtkFileChooserWidget
;
139 private FileChooser fileChooser
;
141 public FileChooser
getFileChooser()
143 if ( fileChooser
is null )
145 fileChooser
= new FileChooser(cast(GtkFileChooser
*)getFileChooserWidgetStruct());
155 * Creates a new GtkFileChooserWidget. This is a file chooser widget that can
156 * be embedded in custom windows, and it is the same widget that is used by
157 * GtkFileChooserDialog.
159 * Open or save mode for the widget
161 * a new GtkFileChooserWidget
164 public this (GtkFileChooserAction action
)
166 // GtkWidget* gtk_file_chooser_widget_new (GtkFileChooserAction action);
167 this(cast(GtkFileChooserWidget
*)gtk_file_chooser_widget_new(action
) );
171 * Creates a new GtkFileChooserWidget with a specified backend. This is
172 * especially useful if you use gtk_file_chooser_set_local_only() to allow
173 * non-local files. This is a file chooser widget that can be embedded in
174 * custom windows and it is the same widget that is used by
175 * GtkFileChooserDialog.
177 * Open or save mode for the widget
179 * The name of the specific filesystem backend to use.
181 * a new GtkFileChooserWidget
184 * GtkFileChooser, GtkFileChooserDialog
186 public this (GtkFileChooserAction action
, char[] backend
)
188 // GtkWidget* gtk_file_chooser_widget_new_with_backend (GtkFileChooserAction action, const gchar *backend);
189 this(cast(GtkFileChooserWidget
*)gtk_file_chooser_widget_new_with_backend(action
, Str
.toStringz(backend
)) );