BEAST/BSE - Better Audio System and Sound Engine  0.8.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
bstgentypes.h
Go to the documentation of this file.
00001  G_BEGIN_DECLS;
00002 
00003 
00004 
00005 
00006 /* --- bstpatterncolumns.hh --- */
00007 #define BST_TYPE_PATTERN_LTYPE      (bst__type_id__BstPatternLType)
00008 extern GType bst__type_id__BstPatternLType;
00009 #define BST_TYPE_PATTERN_LFLAGS     (bst__type_id__BstPatternLFlags)
00010 extern GType bst__type_id__BstPatternLFlags;
00011 
00012 /* --- bstsegment.hh --- */
00013 #define BST_TYPE_SEGMENT_TYPE       (bst__type_id__BstSegmentType)
00014 extern GType bst__type_id__BstSegmentType;
00015 
00016 /* --- bstsnifferscope.hh --- */
00017 #define BST_TYPE_SOURCE_PROBE_FEATURE       (bst__type_id__BstSourceProbeFeature)
00018 extern GType bst__type_id__BstSourceProbeFeature;
00019 
00020 /* --- bstfiledialog.hh --- */
00021 #define BST_TYPE_FILE_DIALOG_MODE           (bst__type_id__BstFileDialogMode)
00022 extern GType bst__type_id__BstFileDialogMode;
00023 
00024 /* --- bstmenus.hh --- */
00025 #define BST_TYPE_CHOICE_FLAGS       (bst__type_id__BstChoiceFlags)
00026 extern GType bst__type_id__BstChoiceFlags;
00027 
00028 /* --- bstqsampler.hh --- */
00029 #define BST_TYPE_QSAMPLER_TYPE      (bst__type_id__BstQSamplerType)
00030 extern GType bst__type_id__BstQSamplerType;
00031 #define BST_TYPE_QSAMPLER_DRAW_MODE         (bst__type_id__BstQSamplerDrawMode)
00032 extern GType bst__type_id__BstQSamplerDrawMode;
00033 
00034 /* --- bstusermessage.hh --- */
00035 #define BST_TYPE_MSG_TYPE           (bst__type_id__BstMsgType)
00036 extern GType bst__type_id__BstMsgType;
00037 
00038 /* --- bstdefs.hh --- */
00039 #define BST_TYPE_QUANTIZATION_TYPE          (bst__type_id__BstQuantizationType)
00040 extern GType bst__type_id__BstQuantizationType;
00041 
00042 
00043 
00044 
00045 /*-------- begin ../sfi/sfidl generated code --------*/
00046 
00047 
00048 
00049 
00050 typedef struct _BstGConfig BstGConfig;
00051 typedef struct _BstSkinConfig BstSkinConfig;
00052 typedef struct _BstMsgAbsorbString BstMsgAbsorbString;
00053 typedef struct _BstKeyBindingItem BstKeyBindingItem;
00054 typedef struct _BstMsgAbsorbStringSeq BstMsgAbsorbStringSeq;
00055 typedef struct _BstKeyBindingItemSeq BstKeyBindingItemSeq;
00056 
00057 typedef enum {
00058   BST_UP = 1,
00059   BST_LEFT = 2,
00060   BST_RIGHT = 3,
00061   BST_DOWN = 4,
00062 } BstDirection;
00063 
00064 typedef enum {
00065   BST_FFT_SIZE_2 = 1,
00066   BST_FFT_SIZE_4 = 2,
00067   BST_FFT_SIZE_8 = 3,
00068   BST_FFT_SIZE_16 = 4,
00069   BST_FFT_SIZE_32 = 5,
00070   BST_FFT_SIZE_64 = 6,
00071   BST_FFT_SIZE_128 = 7,
00072   BST_FFT_SIZE_256 = 8,
00073   BST_FFT_SIZE_512 = 9,
00074   BST_FFT_SIZE_1024 = 10,
00075   BST_FFT_SIZE_2048 = 11,
00076   BST_FFT_SIZE_4096 = 12,
00077   BST_FFT_SIZE_8192 = 13,
00078   BST_FFT_SIZE_16384 = 14,
00079   BST_FFT_SIZE_32768 = 15,
00080   BST_FFT_SIZE_65536 = 16,
00081 } BstFFTSize;
00082 
00083 typedef enum {
00084   BST_NOTE_LENGTH_NONE = 0,
00085   BST_NOTE_LENGTH_1 = 1,
00086   BST_NOTE_LENGTH_2 = 2,
00087   BST_NOTE_LENGTH_4 = 3,
00088   BST_NOTE_LENGTH_8 = 4,
00089   BST_NOTE_LENGTH_16 = 5,
00090   BST_NOTE_LENGTH_32 = 6,
00091   BST_NOTE_LENGTH_64 = 7,
00092   BST_NOTE_LENGTH_128 = 8,
00093   BST_NOTE_LENGTH_1_P = 9,
00094   BST_NOTE_LENGTH_2_P = 10,
00095   BST_NOTE_LENGTH_4_P = 11,
00096   BST_NOTE_LENGTH_8_P = 12,
00097   BST_NOTE_LENGTH_16_P = 13,
00098   BST_NOTE_LENGTH_32_P = 14,
00099   BST_NOTE_LENGTH_64_P = 15,
00100   BST_NOTE_LENGTH_128_P = 16,
00101   BST_NOTE_LENGTH_1_T = 17,
00102   BST_NOTE_LENGTH_2_T = 18,
00103   BST_NOTE_LENGTH_4_T = 19,
00104   BST_NOTE_LENGTH_8_T = 20,
00105   BST_NOTE_LENGTH_16_T = 21,
00106   BST_NOTE_LENGTH_32_T = 22,
00107   BST_NOTE_LENGTH_64_T = 23,
00108   BST_NOTE_LENGTH_128_T = 24,
00109 } BstNoteLength;
00110 
00111 typedef enum {
00112   BST_ROW_SHADING_NONE = 0,
00113   BST_ROW_SHADING_2 = 1,
00114   BST_ROW_SHADING_4 = 2,
00115   BST_ROW_SHADING_8 = 3,
00116   BST_ROW_SHADING_16 = 4,
00117   BST_ROW_SHADING_2_4 = 5,
00118   BST_ROW_SHADING_4_8 = 6,
00119   BST_ROW_SHADING_4_12 = 7,
00120   BST_ROW_SHADING_4_16 = 8,
00121   BST_ROW_SHADING_8_16 = 9,
00122   BST_ROW_SHADING_3 = 10,
00123   BST_ROW_SHADING_6 = 11,
00124   BST_ROW_SHADING_12 = 12,
00125   BST_ROW_SHADING_3_6 = 13,
00126   BST_ROW_SHADING_3_12 = 14,
00127   BST_ROW_SHADING_6_12 = 15,
00128 } BstRowShading;
00129 
00130 struct _BstGConfig {
00131   gchar* rc_version;
00132   SfiInt snet_font_size;
00133   SfiBool snet_anti_aliased;
00134   SfiBool snet_edit_fallback;
00135   SfiBool snet_swap_io_channels;
00136   SfiBool gui_enable_error_bell;
00137   SfiBool size_group_input_fields;
00138   SfiBool slow_scopes;
00139 };
00140 struct _BstSkinConfig {
00141   gchar* skin_name;
00142   gchar* pattern_image;
00143   SfiReal pattern_shade;
00144   SfiInt pattern_color;
00145   SfiInt pattern_scolor1;
00146   SfiInt pattern_scolor2;
00147   SfiInt pattern_text0;
00148   SfiInt pattern_text1;
00149   SfiInt pattern_vbar1;
00150   gchar* piano_image;
00151   SfiReal piano_shade;
00152   SfiInt piano_color;
00153   SfiInt piano_hbar;
00154   SfiInt piano_vbar;
00155   SfiInt piano_hgrid;
00156   SfiInt piano_vgrid;
00157   SfiInt piano_mbar;
00158   gchar* controls_image;
00159   SfiReal controls_shade;
00160   SfiInt controls_color;
00161   SfiInt controls_hbar;
00162   SfiInt controls_mbar;
00163   SfiInt controls_positive;
00164   SfiInt controls_zero;
00165   SfiInt controls_negative;
00166 };
00167 struct _BstMsgAbsorbString {
00168   gchar* version;
00169   gchar* cstring;
00170   SfiBool enabled;
00171 };
00172 struct _BstKeyBindingItem {
00173   gchar* key_name;
00174   gchar* func_name;
00175   SfiReal func_param;
00176 };
00177 
00178 struct _BstMsgAbsorbStringSeq {
00179   guint n_strings;
00180   BstMsgAbsorbString** strings;
00181 };
00182 struct _BstKeyBindingItemSeq {
00183   guint n_items;
00184   BstKeyBindingItem** items;
00185 };
00186 BstGConfig* bst_gconfig_new (void);
00187 BstGConfig* bst_gconfig_copy_shallow (BstGConfig* rec);
00188 BstGConfig* bst_gconfig_from_rec (SfiRec *sfi_rec);
00189 SfiRec *bst_gconfig_to_rec (BstGConfig* rec);
00190 void bst_gconfig_free (BstGConfig* rec);
00191 
00192 BstSkinConfig* bst_skin_config_new (void);
00193 BstSkinConfig* bst_skin_config_copy_shallow (BstSkinConfig* rec);
00194 BstSkinConfig* bst_skin_config_from_rec (SfiRec *sfi_rec);
00195 SfiRec *bst_skin_config_to_rec (BstSkinConfig* rec);
00196 void bst_skin_config_free (BstSkinConfig* rec);
00197 
00198 BstMsgAbsorbString* bst_msg_absorb_string_new (void);
00199 BstMsgAbsorbString* bst_msg_absorb_string_copy_shallow (BstMsgAbsorbString* rec);
00200 BstMsgAbsorbString* bst_msg_absorb_string_from_rec (SfiRec *sfi_rec);
00201 SfiRec *bst_msg_absorb_string_to_rec (BstMsgAbsorbString* rec);
00202 void bst_msg_absorb_string_free (BstMsgAbsorbString* rec);
00203 
00204 BstKeyBindingItem* bst_key_binding_item_new (void);
00205 BstKeyBindingItem* bst_key_binding_item_copy_shallow (BstKeyBindingItem* rec);
00206 BstKeyBindingItem* bst_key_binding_item_from_rec (SfiRec *sfi_rec);
00207 SfiRec *bst_key_binding_item_to_rec (BstKeyBindingItem* rec);
00208 void bst_key_binding_item_free (BstKeyBindingItem* rec);
00209 
00210 
00211 BstMsgAbsorbStringSeq* bst_msg_absorb_string_seq_new (void);
00212 void bst_msg_absorb_string_seq_append (BstMsgAbsorbStringSeq* seq, BstMsgAbsorbString* element);
00213 BstMsgAbsorbStringSeq* bst_msg_absorb_string_seq_copy_shallow (BstMsgAbsorbStringSeq* seq);
00214 BstMsgAbsorbStringSeq* bst_msg_absorb_string_seq_from_seq (SfiSeq *sfi_seq);
00215 SfiSeq *bst_msg_absorb_string_seq_to_seq (BstMsgAbsorbStringSeq* seq);
00216 void bst_msg_absorb_string_seq_resize (BstMsgAbsorbStringSeq* seq, guint new_size);
00217 void bst_msg_absorb_string_seq_free (BstMsgAbsorbStringSeq* seq);
00218 
00219 BstKeyBindingItemSeq* bst_key_binding_item_seq_new (void);
00220 void bst_key_binding_item_seq_append (BstKeyBindingItemSeq* seq, BstKeyBindingItem* element);
00221 BstKeyBindingItemSeq* bst_key_binding_item_seq_copy_shallow (BstKeyBindingItemSeq* seq);
00222 BstKeyBindingItemSeq* bst_key_binding_item_seq_from_seq (SfiSeq *sfi_seq);
00223 SfiSeq *bst_key_binding_item_seq_to_seq (BstKeyBindingItemSeq* seq);
00224 void bst_key_binding_item_seq_resize (BstKeyBindingItemSeq* seq, guint new_size);
00225 void bst_key_binding_item_seq_free (BstKeyBindingItemSeq* seq);
00226 
00227 const gchar* bst_direction_to_choice (BstDirection value);
00228 BstDirection bst_direction_from_choice (const gchar *choice);
00229 const gchar* bst_fft_size_to_choice (BstFFTSize value);
00230 BstFFTSize bst_fft_size_from_choice (const gchar *choice);
00231 const gchar* bst_note_length_to_choice (BstNoteLength value);
00232 BstNoteLength bst_note_length_from_choice (const gchar *choice);
00233 const gchar* bst_row_shading_to_choice (BstRowShading value);
00234 BstRowShading bst_row_shading_from_choice (const gchar *choice);
00235 
00236 SfiChoiceValues bst_direction_get_values (void);
00237 SfiChoiceValues bst_fft_size_get_values (void);
00238 SfiChoiceValues bst_note_length_get_values (void);
00239 SfiChoiceValues bst_row_shading_get_values (void);
00240 extern SfiRecFields bst_gconfig_fields;
00241 extern SfiRecFields bst_skin_config_fields;
00242 extern SfiRecFields bst_msg_absorb_string_fields;
00243 extern SfiRecFields bst_key_binding_item_fields;
00244 
00245 
00246 /*-------- end ../sfi/sfidl generated code --------*/
00247 
00248 
00249 G_END_DECLS;
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines