BEAST/BSE - Better Audio System and Sound Engine
0.8.2
|
00001 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html 00002 #ifndef __BST_EFFECT_VIEW_H__ 00003 #define __BST_EFFECT_VIEW_H__ 00004 00005 #include "bstitemview.hh" 00006 00007 00008 #ifdef __cplusplus 00009 extern "C" { 00010 #endif /* __cplusplus */ 00011 00012 00013 /* --- Gtk+ type macros --- */ 00014 #define BST_TYPE_EFFECT_VIEW (bst_effect_view_get_type ()) 00015 #define BST_EFFECT_VIEW(object) (GTK_CHECK_CAST ((object), BST_TYPE_EFFECT_VIEW, BstEffectView)) 00016 #define BST_EFFECT_VIEW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BST_TYPE_EFFECT_VIEW, BstEffectViewClass)) 00017 #define BST_IS_EFFECT_VIEW(object) (GTK_CHECK_TYPE ((object), BST_TYPE_EFFECT_VIEW)) 00018 #define BST_IS_EFFECT_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), BST_TYPE_EFFECT_VIEW)) 00019 #define BST_EFFECT_VIEW_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), BST_TYPE_EFFECT_VIEW, BstEffectViewClass)) 00020 00021 00022 /* --- structures & typedefs --- */ 00023 typedef struct _BstEffectView BstEffectView; 00024 typedef struct _BstEffectViewClass BstEffectViewClass; 00025 struct _BstEffectView 00026 { 00027 GtkAlignment parent_object; 00028 00029 GtkWidget *paned; 00030 GtkWidget *clist_aeffects; /* available effects */ 00031 GtkWidget *clist_peffects; /* present effects */ 00032 GtkWidget *param_view; 00033 GtkWidget *add_button; 00034 GtkWidget *remove_button; 00035 00036 BsePattern *pattern; 00037 guint channel; 00038 guint row; 00039 }; 00040 struct _BstEffectViewClass 00041 { 00042 GtkAlignmentClass parent_class; 00043 00044 guint default_param_view_height; 00045 }; 00046 00047 00048 /* --- prototypes --- */ 00049 GtkType bst_effect_view_get_type (void); 00050 GtkWidget* bst_effect_view_new (BseSong *song); 00051 void bst_effect_view_set_note (BstEffectView *effect_view, 00052 BsePattern *pattern, 00053 guint channel, 00054 guint row); 00055 00056 00057 00058 #ifdef __cplusplus 00059 } 00060 #endif /* __cplusplus */ 00061 00062 #endif /* __BST_EFFECT_VIEW_H__ */