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