udapted vi.po
[rhythmbox.git] / widgets / rb-query-creator-private.h
blob5688f4537c42c0c970598dadf6b958d3cee2731c
1 /*
2 * arch-tag: Header for RhythmDB query creation internals
4 * Copyright (C) 2003, 2004 Colin Walters <walters@gnome.org>
5 * Copyright (C) 2005 James Livingston <walters@gnome.org>
7 * This program 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 * This program 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 this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23 #include <gtk/gtk.h>
24 #include "rhythmdb.h"
26 #ifndef __RB_QUERY_CREATOR_PRIVATE_H
27 #define __RB_QUERY_CREATOR_PRIVATE_H
29 typedef struct
31 const char *name;
32 gboolean strict;
33 RhythmDBPropType val;
34 } RBQueryCreatorCriteriaOption;
36 typedef struct
38 const char *name;
39 const char *sort_key;
40 const char *sort_descending_name;
41 } RBQueryCreatorSortOption;
43 typedef GtkWidget* (*CriteriaCreateWidget) (gboolean *constrain);
44 typedef void (*CriteriaSetWidgetData) (GtkWidget *widget, GValue *val);
45 typedef void (*CriteriaGetWidgetData) (GtkWidget *widget, GValue *val);
47 typedef struct
49 int num_criteria_options;
50 const RBQueryCreatorCriteriaOption *criteria_options;
52 CriteriaCreateWidget criteria_create_widget;
53 CriteriaSetWidgetData criteria_set_widget_data;
54 CriteriaGetWidgetData criteria_get_widget_data;
55 } RBQueryCreatorPropertyType;
57 typedef struct
59 const char *name;
60 RhythmDBPropType strict_val;
61 RhythmDBPropType fuzzy_val;
62 const RBQueryCreatorPropertyType *property_type;
63 } RBQueryCreatorPropertyOption;
65 extern const RBQueryCreatorPropertyOption property_options[];
66 extern const int num_property_options;
67 extern const RBQueryCreatorSortOption sort_options[];
68 extern const int num_sort_options;
69 extern const int DEFAULT_SORTING_COLUMN;
70 extern const gint DEFAULT_SORTING_ORDER;
72 GtkWidget * get_box_widget_at_pos (GtkBox *box, guint pos);
74 #endif /* __RB_QUERY_CREATOR_H */