Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bstcluehunter.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_CLUE_HUNTER_H__
3 #define __BST_CLUE_HUNTER_H__
4 
5 #include <gxk/gxk.hh>
6 
7 
8 /* --- type macros --- */
9 #define BST_TYPE_CLUE_HUNTER (bst_clue_hunter_get_type ())
10 #define BST_CLUE_HUNTER(object) (GTK_CHECK_CAST ((object), BST_TYPE_CLUE_HUNTER, BstClueHunter))
11 #define BST_CLUE_HUNTER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BST_TYPE_CLUE_HUNTER, BstClueHunterClass))
12 #define BST_IS_CLUE_HUNTER(object) (GTK_CHECK_TYPE ((object), BST_TYPE_CLUE_HUNTER))
13 #define BST_IS_CLUE_HUNTER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), BST_TYPE_CLUE_HUNTER))
14 #define BST_CLUE_HUNTER_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), BST_TYPE_CLUE_HUNTER, BstClueHunterClass))
15 
16 
17 /* --- typedefs --- */
18 typedef struct _BstClueHunterClass BstClueHunterClass;
19 typedef struct _BstClueHunter BstClueHunter;
20 
21 
22 /* --- structures --- */
24 {
25  GtkWindow window;
26 
27  guint popped_up : 1;
28  guint completion_tag : 1;
29  guint pattern_matching : 1;
30  guint keep_history : 1;
31  guint clist_column : 16;
32 
33  gchar *cstring;
34 
35  GtkWidget *align_widget;
36  GtkWidget *scw;
37  GtkCList *clist;
38  GtkEntry *entry;
39 };
41 {
42  GtkWindowClass parent_class;
43 
44  void (*activate) (BstClueHunter *clue_hunter);
45  void (*popup) (BstClueHunter *clue_hunter);
46  void (*popdown) (BstClueHunter *clue_hunter);
47  void (*select_on) (BstClueHunter *clue_hunter,
48  const gchar *string);
49  void (*poll_refresh) (BstClueHunter *clue_hunter);
50 };
51 
52 
53 /* --- prototypes --- */
54 GtkType bst_clue_hunter_get_type (void);
55 void bst_clue_hunter_popup (BstClueHunter *clue_hunter);
56 void bst_clue_hunter_popup_if_editable (BstClueHunter *clue_hunter);
57 void bst_clue_hunter_set_clist (BstClueHunter *clue_hunter,
58  GtkCList *clist,
59  guint16 column);
60 void bst_clue_hunter_set_entry (BstClueHunter *clue_hunter,
61  GtkEntry *entry);
62 void bst_clue_hunter_add_string (BstClueHunter *clue_hunter,
63  const gchar *string);
64 void bst_clue_hunter_remove_string (BstClueHunter *clue_hunter,
65  const gchar *string);
66 void bst_clue_hunter_remove_matches (BstClueHunter *clue_hunter,
67  const gchar *pattern);
68 void bst_clue_hunter_select_on (BstClueHunter *clue_hunter,
69  const gchar *string);
70 void bst_clue_hunter_poll_refresh (BstClueHunter *clue_hunter);
71 gchar* bst_clue_hunter_try_complete (BstClueHunter *clue_hunter);
72 GtkWidget* bst_clue_hunter_create_arrow (BstClueHunter *clue_hunter,
73  gboolean require_editable);
74 gpointer bst_clue_hunter_from_entry (gpointer entry);
75 
76 
77 
78 
79 
80 
81 #endif /* __BST_CLUE_HUNTER_H__ */
Definition: bstcluehunter.hh:40
Definition: bstcluehunter.hh:23