Ardour  9.0-pre0-582-g084a23a80d
gtkfilechoosersettings.h
Go to the documentation of this file.
1 /* GTK - The GIMP Toolkit
2  * gtkfilechoosersettings.h: Internal settings for the GtkFileChooser widget
3  * Copyright (C) 2006, Novell, Inc.
4  *
5  * Authors: Federico Mena-Quintero <federico@novell.com>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library 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 GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22 
23 #ifndef __GTK_FILE_CHOOSER_SETTINGS_H__
24 #define __GTK_FILE_CHOOSER_SETTINGS_H__
25 
26 #include "gtkfilechooserprivate.h"
27 
28 G_BEGIN_DECLS
29 
30 #define GTK_FILE_CHOOSER_SETTINGS_TYPE (_gtk_file_chooser_settings_get_type ())
31 
32 /* Column numbers for the file list */
33 enum {
38 };
39 
42 
44 {
45  GObject object;
46 
48 
52 
57 
58  guint settings_read : 1;
59  guint show_hidden : 1;
60  guint show_size_column : 1;
61 };
62 
64 {
65  GObjectClass parent_class;
66 };
67 
68 GType _gtk_file_chooser_settings_get_type (void) G_GNUC_CONST;
69 
71 
74  LocationMode location_mode);
75 
78  gboolean show_hidden);
79 
82  gboolean show_column);
83 
86  gint sort_column);
87 
90  GtkSortType sort_order);
91 
93  int *out_x,
94  int *out_y,
95  int *out_width,
96  int *out_heigth);
98  int x,
99  int y,
100  int width,
101  int heigth);
102 
104  StartupMode startup_mode);
106 
108  GError **error);
109 
110 /* FIXME: persist these options:
111  *
112  * - paned width
113  * - show_hidden
114  */
115 
116 G_END_DECLS
117 
118 #endif
GtkSortType
Definition: gtkenums.h:477
gint _gtk_file_chooser_settings_get_sort_column(GtkFileChooserSettings *settings)
void _gtk_file_chooser_settings_set_show_size_column(GtkFileChooserSettings *settings, gboolean show_column)
void _gtk_file_chooser_settings_set_geometry(GtkFileChooserSettings *settings, int x, int y, int width, int heigth)
void _gtk_file_chooser_settings_set_show_hidden(GtkFileChooserSettings *settings, gboolean show_hidden)
StartupMode _gtk_file_chooser_settings_get_startup_mode(GtkFileChooserSettings *settings)
GtkFileChooserSettings * _gtk_file_chooser_settings_new(void)
void _gtk_file_chooser_settings_set_location_mode(GtkFileChooserSettings *settings, LocationMode location_mode)
gboolean _gtk_file_chooser_settings_get_show_size_column(GtkFileChooserSettings *settings)
GtkSortType _gtk_file_chooser_settings_get_sort_order(GtkFileChooserSettings *settings)
GType _gtk_file_chooser_settings_get_type(void) G_GNUC_CONST
void _gtk_file_chooser_settings_set_sort_column(GtkFileChooserSettings *settings, gint sort_column)
LocationMode _gtk_file_chooser_settings_get_location_mode(GtkFileChooserSettings *settings)
gboolean _gtk_file_chooser_settings_get_show_hidden(GtkFileChooserSettings *settings)
void _gtk_file_chooser_settings_get_geometry(GtkFileChooserSettings *settings, int *out_x, int *out_y, int *out_width, int *out_heigth)
void _gtk_file_chooser_settings_set_startup_mode(GtkFileChooserSettings *settings, StartupMode startup_mode)
gboolean _gtk_file_chooser_settings_save(GtkFileChooserSettings *settings, GError **error)
void _gtk_file_chooser_settings_set_sort_order(GtkFileChooserSettings *settings, GtkSortType sort_order)
@ FILE_LIST_COL_SIZE
@ FILE_LIST_COL_NAME
@ FILE_LIST_COL_MTIME
@ FILE_LIST_COL_NUM_COLUMNS
Transmitter error
gint width
Definition: xcursors.h:1