Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bstitemseqdialog.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_ITEM_SEQ_DIALOG_H__
3 #define __BST_ITEM_SEQ_DIALOG_H__
4 
5 #include "bstutils.hh"
6 #include "bstwaveview.hh"
7 
8 /* --- Gtk+ type macros --- */
9 #define BST_TYPE_ITEM_SEQ_DIALOG (bst_item_seq_dialog_get_type ())
10 #define BST_ITEM_SEQ_DIALOG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BST_TYPE_ITEM_SEQ_DIALOG, BstItemSeqDialog))
11 #define BST_ITEM_SEQ_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BST_TYPE_ITEM_SEQ_DIALOG, BstItemSeqDialogClass))
12 #define BST_IS_ITEM_SEQ_DIALOG(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BST_TYPE_ITEM_SEQ_DIALOG))
13 #define BST_IS_ITEM_SEQ_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BST_TYPE_ITEM_SEQ_DIALOG))
14 #define BST_ITEM_SEQ_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BST_TYPE_ITEM_SEQ_DIALOG, BstItemSeqDialogClass))
15 
16 /* --- structures & typedefs --- */
17 typedef struct _BstItemSeqDialog BstItemSeqDialog;
18 typedef struct _BstItemSeqDialogClass BstItemSeqDialogClass;
19 typedef void (*BstItemSeqDialogSelected) (gpointer data,
20  BseIt3mSeq *iseq,
21  BstItemSeqDialog *isdialog);
23 {
24  GxkDialog parent_instance;
25  GtkTreeModel *candidate_store;
26  GtkTreeSelection *candidate_sel;
27  GtkTreeModel *item_store; /* proxy store */
28  GtkTreeSelection *item_sel;
29 
30  GtkWidget *ok; /* ok button */
31  GtkWindow *parent_window;
32  guint ignore_activate : 1;
33  BstItemSeqDialogSelected selected_callback;
34  gpointer selected_data;
35  GxkFreeFunc selected_cleanup;
36 };
38 {
39  GxkDialogClass parent_class;
40 };
41 
42 
43 /* --- prototypes --- */
44 GType bst_item_seq_dialog_get_type (void);
45 GtkWidget* bst_item_seq_dialog_popup (gpointer parent_widget,
46  SfiProxy item,
47  const gchar *candidate_label,
48  const gchar *candidate_tooltip,
49  BseIt3mSeq *candidates,
50  const gchar *item_label,
51  const gchar *item_tooltip,
52  BseIt3mSeq *iseq,
53  BstItemSeqDialogSelected selected_callback,
54  gpointer selected_data,
55  GxkFreeFunc selected_cleanup);
56 void bst_item_seq_dialog_set (BstItemSeqDialog *self,
57  BseIt3mSeq *candidates,
58  BseIt3mSeq *iseq);
59 
60 
61 
62 #endif /* __BST_ITEM_SEQ_DIALOG_H__ */
Definition: bstitemseqdialog.hh:22
Definition: bstitemseqdialog.hh:37