Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bstsampleeditor.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_SAMPLE_EDITOR_H__
3 #define __BST_SAMPLE_EDITOR_H__
4 
5 #include "bstqsampler.hh"
6 #include "bstplayback.hh"
7 
8 
9 /* --- Gtk+ type macros --- */
10 #define BST_TYPE_SAMPLE_EDITOR (bst_sample_editor_get_type ())
11 #define BST_SAMPLE_EDITOR(object) (GTK_CHECK_CAST ((object), BST_TYPE_SAMPLE_EDITOR, BstSampleEditor))
12 #define BST_SAMPLE_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BST_TYPE_SAMPLE_EDITOR, BstSampleEditorClass))
13 #define BST_IS_SAMPLE_EDITOR(object) (GTK_CHECK_TYPE ((object), BST_TYPE_SAMPLE_EDITOR))
14 #define BST_IS_SAMPLE_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), BST_TYPE_SAMPLE_EDITOR))
15 #define BST_SAMPLE_EDITOR_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), BST_TYPE_SAMPLE_EDITOR, BstSampleEditorClass))
16 
17 
18 /* --- structures & typedefs --- */
19 typedef struct _BstSampleEditor BstSampleEditor;
20 typedef struct _BstSampleEditorClass BstSampleEditorClass;
22 {
23  GtkVBox parent_object;
24 
25  SfiProxy esample;
26  guint n_channels;
27 
28  GtkWidget *main_vbox;
29  GtkAdjustment *zoom_adjustment;
30  GtkAdjustment *vscale_adjustment;
31  GtkEntry *sstart;
32  GtkEntry *send;
33 
34  BstQSampler **qsampler;
35  GtkWidget *popup;
36 
37  BstPlayBackHandle *play_back;
38 };
40 {
41  GtkVBoxClass parent_class;
42 };
43 
44 
45 /* --- prototypes --- */
46 GtkType bst_sample_editor_get_type (void);
47 GtkWidget* bst_sample_editor_new (SfiProxy sample);
48 void bst_sample_editor_set_sample (BstSampleEditor *sample_editor,
49  SfiProxy editable_sample);
50 void bst_sample_editor_rebuild (BstSampleEditor *sample_editor);
51 
52 
53 #endif /* __BST_SAMPLE_EDITOR_H__ */
Definition: bstsampleeditor.hh:39
Definition: bstplayback.hh:12
Definition: bstsampleeditor.hh:21