Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
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 /* --- Gtk+ type macros --- */
8 #define BST_TYPE_ITEM_VIEW (bst_item_view_get_type ())
9 #define BST_ITEM_VIEW(object) (GTK_CHECK_CAST ((object), BST_TYPE_ITEM_VIEW, BstItemView))
10 #define BST_ITEM_VIEW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BST_TYPE_ITEM_VIEW, BstItemViewClass))
11 #define BST_IS_ITEM_VIEW(object) (GTK_CHECK_TYPE ((object), BST_TYPE_ITEM_VIEW))
12 #define BST_IS_ITEM_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), BST_TYPE_ITEM_VIEW))
13 #define BST_ITEM_VIEW_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), BST_TYPE_ITEM_VIEW, BstItemViewClass))
14 
15 #define BST_ITEM_VIEW_TREE_HEIGHT (120)
16 
17 
18 /* --- structures & typedefs --- */
19 typedef struct _BstItemView BstItemView;
20 typedef struct _BstItemViewClass BstItemViewClass;
22 {
23  GtkAlignment parent_object;
24 
25  GtkTreeView *tree;
26  GxkListWrapper *wlist;
27 
28  GtkWidget *pview;
29 
30  SfiProxy container;
31  SfiProxy auto_select;
32  GtkWidget **op_widgets;
33 };
35 {
36  GtkAlignmentClass parent_class;
37 
38  const gchar *item_type;
39 
40  void (*set_container) (BstItemView *self,
41  SfiProxy new_container);
42  void (*listen_on) (BstItemView *self,
43  SfiProxy item);
44  void (*unlisten_on) (BstItemView *self,
45  SfiProxy item);
46 };
47 
48 
49 /* --- prototypes --- */
50 GType bst_item_view_get_type (void);
51 void bst_item_view_select (BstItemView *item_view,
52  SfiProxy item);
53 SfiProxy bst_item_view_get_current (BstItemView *item_view);
54 Bse::PartH bst_item_view_get_current_part (BstItemView *self);
55 SfiProxy bst_item_view_get_proxy (BstItemView *item_view,
56  gint row);
57 gint bst_item_view_get_proxy_row (BstItemView *self,
58  SfiProxy item);
59 void bst_item_view_set_container (BstItemView *item_view,
60  SfiProxy new_container);
61 void bst_item_view_set_tree (BstItemView *item_view,
62  GtkTreeView *tree);
63 void bst_item_view_complete_tree (BstItemView *self,
64  GtkTreeView *tree);
65 void bst_item_view_build_param_view (BstItemView *self,
66  GtkContainer *container);
67 void bst_item_view_refresh (BstItemView *self,
68  SfiProxy item);
69 void bst_item_view_name_edited (BstItemView *self,
70  const gchar *strpath,
71  const gchar *text);
72 void bst_item_view_blurb_edited (BstItemView *self,
73  const gchar *strpath,
74  const gchar *text);
75 void bst_item_view_enable_param_view (BstItemView *self,
76  gboolean enabled);
77 GtkTreeModel* bst_item_view_adapt_list_wrapper (BstItemView *self,
78  GxkListWrapper *lwrapper);
79 
80 
81 #endif /* __BST_ITEM_VIEW_H__ */
Definition: bstitemview.hh:34
uint32_t * row(uint y)
Definition: bstitemview.hh:21