Ardour  9.0-pre0-582-g084a23a80d
gtkfilesystemmodel.h
Go to the documentation of this file.
1 /* GTK - The GIMP Toolkit
2  * gtkfilesystemmodel.h: GtkTreeModel wrapping a GtkFileSystem
3  * Copyright (C) 2003, Red Hat, Inc.
4  *
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.
9  *
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.
14  *
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.
19  */
20 
21 #ifndef __GTK_FILE_SYSTEM_MODEL_H__
22 #define __GTK_FILE_SYSTEM_MODEL_H__
23 
24 #include <gio/gio.h>
25 #include <gtk/gtkfilefilter.h>
26 #include <gtk/gtktreemodel.h>
27 
28 G_BEGIN_DECLS
29 
30 #define GTK_TYPE_FILE_SYSTEM_MODEL (_gtk_file_system_model_get_type ())
31 #define GTK_FILE_SYSTEM_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_SYSTEM_MODEL, GtkFileSystemModel))
32 #define GTK_IS_FILE_SYSTEM_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_SYSTEM_MODEL))
33 
34 typedef struct _GtkFileSystemModel GtkFileSystemModel;
35 
36 GType _gtk_file_system_model_get_type (void) G_GNUC_CONST;
37 
38 typedef gboolean (*GtkFileSystemModelGetValue) (GtkFileSystemModel *model,
39  GFile *file,
40  GFileInfo *info,
41  int column,
42  GValue *value,
43  gpointer user_data);
44 
46  gpointer get_data,
47  guint n_columns,
48  ...);
50  const gchar * attributes,
52  gpointer get_data,
53  guint n_columns,
54  ...);
57  GtkTreeIter *iter);
59  GtkTreeIter *iter);
61  GtkTreeIter *iter);
63  GtkTreeIter *iter,
64  GFile *file);
66  GtkTreeIter *iter);
68  GtkTreeIter * iter,
69  int column);
70 
72  GFile *file,
73  const char *attributes);
75  GFile *file,
76  GFileInfo *info);
77 
79  gboolean show_hidden);
81  gboolean show_folders);
83  gboolean show_files);
85  gboolean show_folders);
87  int column);
88 
90  GtkFileFilter *filter);
91 
93  GtkTreeIter *iter);
95 
96 G_END_DECLS
97 
98 #endif /* __GTK_FILE_SYSTEM_MODEL_H__ */
struct _GtkFileFilter GtkFileFilter
Definition: gtkfilefilter.h:36
void _gtk_file_system_model_remove_editable(GtkFileSystemModel *model)
struct _GtkFileSystemModel GtkFileSystemModel
void _gtk_file_system_model_clear_cache(GtkFileSystemModel *model, int column)
GtkFileSystemModel * _gtk_file_system_model_new_for_directory(GFile *dir, const gchar *attributes, GtkFileSystemModelGetValue get_func, gpointer get_data, guint n_columns,...)
GFileInfo * _gtk_file_system_model_get_info(GtkFileSystemModel *model, GtkTreeIter *iter)
const GValue * _gtk_file_system_model_get_value(GtkFileSystemModel *model, GtkTreeIter *iter, int column)
gboolean _gtk_file_system_model_iter_is_filtered_out(GtkFileSystemModel *model, GtkTreeIter *iter)
void _gtk_file_system_model_set_show_files(GtkFileSystemModel *model, gboolean show_files)
gboolean _gtk_file_system_model_get_iter_for_file(GtkFileSystemModel *model, GtkTreeIter *iter, GFile *file)
GType _gtk_file_system_model_get_type(void) G_GNUC_CONST
void _gtk_file_system_model_update_file(GtkFileSystemModel *model, GFile *file, GFileInfo *info)
void _gtk_file_system_model_set_filter(GtkFileSystemModel *model, GtkFileFilter *filter)
void _gtk_file_system_model_set_show_hidden(GtkFileSystemModel *model, gboolean show_hidden)
void _gtk_file_system_model_add_and_query_file(GtkFileSystemModel *model, GFile *file, const char *attributes)
gboolean(* GtkFileSystemModelGetValue)(GtkFileSystemModel *model, GFile *file, GFileInfo *info, int column, GValue *value, gpointer user_data)
GtkFileSystemModel * _gtk_file_system_model_new(GtkFileSystemModelGetValue get_func, gpointer get_data, guint n_columns,...)
GFile * _gtk_file_system_model_get_file(GtkFileSystemModel *model, GtkTreeIter *iter)
void _gtk_file_system_model_add_editable(GtkFileSystemModel *model, GtkTreeIter *iter)
GCancellable * _gtk_file_system_model_get_cancellable(GtkFileSystemModel *model)
void _gtk_file_system_model_set_filter_folders(GtkFileSystemModel *model, gboolean show_folders)
gboolean _gtk_file_system_model_iter_is_visible(GtkFileSystemModel *model, GtkTreeIter *iter)
void _gtk_file_system_model_set_show_folders(GtkFileSystemModel *model, gboolean show_folders)
Transmitter info