BEAST/BSE - Better Audio System and Sound Engine  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bstitemview.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #ifndef __BST_ITEM_VIEW_H__
3 #define __BST_ITEM_VIEW_H__
4 
5 #include "bstutils.hh"
6 
7 G_BEGIN_DECLS
8 
9 /* --- Gtk+ type macros --- */
10 #define BST_TYPE_ITEM_VIEW (bst_item_view_get_type ())
11 #define BST_ITEM_VIEW(object) (GTK_CHECK_CAST ((object), BST_TYPE_ITEM_VIEW, BstItemView))
12 #define BST_ITEM_VIEW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BST_TYPE_ITEM_VIEW, BstItemViewClass))
13 #define BST_IS_ITEM_VIEW(object) (GTK_CHECK_TYPE ((object), BST_TYPE_ITEM_VIEW))
14 #define BST_IS_ITEM_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), BST_TYPE_ITEM_VIEW))
15 #define BST_ITEM_VIEW_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), BST_TYPE_ITEM_VIEW, BstItemViewClass))
16 
17 #define BST_ITEM_VIEW_TREE_HEIGHT (120)
18 
19 
20 /* --- structures & typedefs --- */
21 typedef struct _BstItemView BstItemView;
22 typedef struct _BstItemViewClass BstItemViewClass;
24 {
25  GtkAlignment parent_object;
26 
27  GtkTreeView *tree;
28  GxkListWrapper *wlist;
29 
30  GtkWidget *pview;
31 
32  SfiProxy container;
33  SfiProxy auto_select;
34  GtkWidget **op_widgets;
35 };
37 {
38  GtkAlignmentClass parent_class;
39 
40  const gchar *item_type;
41 
42  void (*set_container) (BstItemView *self,
43  SfiProxy new_container);
44  void (*listen_on) (BstItemView *self,
45  SfiProxy item);
46  void (*unlisten_on) (BstItemView *self,
47  SfiProxy item);
48 };
49 
50 
51 /* --- prototypes --- */
52 GType bst_item_view_get_type (void);
53 void bst_item_view_select (BstItemView *item_view,
54  SfiProxy item);
55 SfiProxy bst_item_view_get_current (BstItemView *item_view);
56 SfiProxy bst_item_view_get_proxy (BstItemView *item_view,
57  gint row);
58 gint bst_item_view_get_proxy_row (BstItemView *self,
59  SfiProxy item);
60 void bst_item_view_set_container (BstItemView *item_view,
61  SfiProxy new_container);
62 void bst_item_view_set_tree (BstItemView *item_view,
63  GtkTreeView *tree);
64 void bst_item_view_complete_tree (BstItemView *self,
65  GtkTreeView *tree);
66 void bst_item_view_build_param_view (BstItemView *self,
67  GtkContainer *container);
68 void bst_item_view_refresh (BstItemView *self,
69  SfiProxy item);
70 void bst_item_view_name_edited (BstItemView *self,
71  const gchar *strpath,
72  const gchar *text);
73 void bst_item_view_blurb_edited (BstItemView *self,
74  const gchar *strpath,
75  const gchar *text);
76 void bst_item_view_enable_param_view (BstItemView *self,
77  gboolean enabled);
78 GtkTreeModel* bst_item_view_adapt_list_wrapper (BstItemView *self,
79  GxkListWrapper *lwrapper);
80 
81 
82 G_END_DECLS
83 
84 #endif /* __BST_ITEM_VIEW_H__ */
Definition: bstitemview.hh:36
Definition: bstitemview.hh:23