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