udapted vi.po
[rhythmbox.git] / widgets / rb-property-view.h
blobfdab087bda8f718526dee16859607216885b4e8e
1 /*
2 * arch-tag: Header for widget to display RhythmDB metadata
4 * Copyright (C) 2002 Jorn Baayen <jorn@nl.linux.org>
5 * Copyright (C) 2003 Colin Walters <walters@verbum.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 #ifndef __RB_PROPERTY_VIEW_H
24 #define __RB_PROPERTY_VIEW_H
26 #include <gtk/gtkscrolledwindow.h>
27 #include <gtk/gtkdnd.h>
29 #include "rhythmdb.h"
30 #include "rhythmdb-property-model.h"
31 #include "rb-entry-view.h"
33 G_BEGIN_DECLS
35 #define RB_TYPE_PROPERTY_VIEW (rb_property_view_get_type ())
36 #define RB_PROPERTY_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_PROPERTY_VIEW, RBPropertyView))
37 #define RB_PROPERTY_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_PROPERTY_VIEW, RBPropertyViewClass))
38 #define RB_IS_PROPERTY_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_PROPERTY_VIEW))
39 #define RB_IS_PROPERTY_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_PROPERTY_VIEW))
40 #define RB_PROPERTY_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_PROPERTY_VIEW, RBPropertyViewClass))
42 typedef struct RBPropertyViewPrivate RBPropertyViewPrivate;
44 typedef struct
46 GtkScrolledWindow parent;
48 RBPropertyViewPrivate *priv;
49 } RBPropertyView;
51 typedef struct
53 GtkScrolledWindowClass parent;
55 void (*property_selected) (RBPropertyView *view, const char *name);
56 void (*properties_selected) (RBPropertyView *view, GList *properties);
57 void (*property_activated) (RBPropertyView *view, const char *name);
58 void (*selection_reset) (RBPropertyView *view);
59 void (*show_popup) (RBPropertyView *view);
60 } RBPropertyViewClass;
62 GType rb_property_view_get_type (void);
64 RBPropertyView *rb_property_view_new (RhythmDB *db, guint propid,
65 const char *title);
66 void rb_property_view_append_column_custom (RBPropertyView *view,
67 GtkTreeViewColumn *column);
69 void rb_property_view_set_selection_mode (RBPropertyView *view,
70 GtkSelectionMode mode);
72 void rb_property_view_reset (RBPropertyView *view);
74 void rb_property_view_set_selection (RBPropertyView *view,
75 const GList *names);
77 RhythmDBPropertyModel * rb_property_view_get_model (RBPropertyView *view);
79 void rb_property_view_set_model (RBPropertyView *view,
80 RhythmDBPropertyModel *model);
82 guint rb_property_view_get_num_properties (RBPropertyView *view);
84 void rb_property_view_set_search_func (RBPropertyView *view,
85 GtkTreeViewSearchEqualFunc func,
86 gpointer func_data,
87 GtkDestroyNotify notify);
89 G_END_DECLS
91 #endif /* __RB_PROPERTY_VIEW_H */