Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bsttracksynthdialog.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_TRACK_SYNTH_DIALOG_H__
3 #define __BST_TRACK_SYNTH_DIALOG_H__
4 
5 #include "bstutils.hh"
6 #include "bstwaveview.hh"
7 #include "bstsoundfontview.hh"
8 
9 
10 /* --- Gtk+ type macros --- */
11 #define BST_TYPE_TRACK_SYNTH_DIALOG (bst_track_synth_dialog_get_type ())
12 #define BST_TRACK_SYNTH_DIALOG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BST_TYPE_TRACK_SYNTH_DIALOG, BstTrackSynthDialog))
13 #define BST_TRACK_SYNTH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BST_TYPE_TRACK_SYNTH_DIALOG, BstTrackSynthDialogClass))
14 #define BST_IS_TRACK_SYNTH_DIALOG(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BST_TYPE_TRACK_SYNTH_DIALOG))
15 #define BST_IS_TRACK_SYNTH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BST_TYPE_TRACK_SYNTH_DIALOG))
16 #define BST_TRACK_SYNTH_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BST_TYPE_TRACK_SYNTH_DIALOG, BstTrackSynthDialogClass))
17 
18 
19 /* --- structures & typedefs --- */
20 typedef struct _BstTrackSynthDialog BstTrackSynthDialog;
21 typedef struct _BstTrackSynthDialogClass BstTrackSynthDialogClass;
22 typedef void (*BstTrackSynthDialogSelected) (gpointer data,
23  SfiProxy proxy,
24  BstTrackSynthDialog *tsdialog);
26 {
27  GxkDialog parent_instance;
28  GtkNotebook *notebook;
29  GtkWidget *wpage; /* wave repo item view */
30  GtkWidget *spage; /* synth list */
31  GtkWidget *sfont_page; /* sound font patch selection */
32  GtkWidget *ok; /* ok button */
33  GtkWindow *parent_window;
34  guint ignore_activate : 1;
35  GtkTreeModel *pstore; /* proxy store */
36  GtkTreeView *tview; /* synth selection tree view */
37  BstTrackSynthDialogSelected selected_callback;
38  gpointer selected_data;
39  GxkFreeFunc selected_cleanup;
40 };
42 {
43  GxkDialogClass parent_class;
44 };
45 
46 
47 /* --- prototypes --- */
48 GType bst_track_synth_dialog_get_type (void);
49 GtkWidget* bst_track_synth_dialog_popup (gpointer parent_widget,
50  SfiProxy track,
51  const gchar *candidate_label,
52  const gchar *candidate_tooltip,
53  BseIt3mSeq *candidates,
54  const gchar *wrepo_label,
55  const gchar *wrepo_tooltip,
56  SfiProxy wrepo,
57  const gchar *sfrepo_label,
58  const gchar *sfrepo_tooltip,
59  SfiProxy sfrepo,
60  BstTrackSynthDialogSelected selected_callback,
61  gpointer selected_data,
62  GxkFreeFunc selected_cleanup);
63 void bst_track_synth_dialog_set (BstTrackSynthDialog *self,
64  BseIt3mSeq *iseq,
65  SfiProxy wrepo,
66  SfiProxy sfrepo);
67 
68 
69 #endif /* __BST_TRACK_SYNTH_DIALOG_H__ */
Definition: bsttracksynthdialog.hh:25
Definition: bsttracksynthdialog.hh:41