BEAST - Free Software Audio Synthesizer and Tracker  0.10.0
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 Bse::PartH bst_item_view_get_current_part (BstItemView *self);
57 SfiProxy bst_item_view_get_proxy (BstItemView *item_view,
58  gint row);
59 gint bst_item_view_get_proxy_row (BstItemView *self,
60  SfiProxy item);
61 void bst_item_view_set_container (BstItemView *item_view,
62  SfiProxy new_container);
63 void bst_item_view_set_tree (BstItemView *item_view,
64  GtkTreeView *tree);
65 void bst_item_view_complete_tree (BstItemView *self,
66  GtkTreeView *tree);
67 void bst_item_view_build_param_view (BstItemView *self,
68  GtkContainer *container);
69 void bst_item_view_refresh (BstItemView *self,
70  SfiProxy item);
71 void bst_item_view_name_edited (BstItemView *self,
72  const gchar *strpath,
73  const gchar *text);
74 void bst_item_view_blurb_edited (BstItemView *self,
75  const gchar *strpath,
76  const gchar *text);
77 void bst_item_view_enable_param_view (BstItemView *self,
78  gboolean enabled);
79 GtkTreeModel* bst_item_view_adapt_list_wrapper (BstItemView *self,
80  GxkListWrapper *lwrapper);
81 
82 
83 G_END_DECLS
84 
85 #endif /* __BST_ITEM_VIEW_H__ */
See also the corresponding IDL class Part.
Definition: bseclientapi.hh:721
Definition: bstitemview.hh:36
Definition: bstitemview.hh:23