Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
gxkcellrendererpopup.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 __GXK_CELL_RENDERER_POPUP_H__
3 #define __GXK_CELL_RENDERER_POPUP_H__
4 
5 #include <gxk/gxkutils.hh>
6 #include <gtk/gtkcellrenderertext.h>
7 #include <gtk/gtkeventbox.h>
8 
9 /* --- type macros --- */
10 #define GXK_TYPE_CELL_RENDERER_POPUP (gxk_cell_renderer_popup_get_type ())
11 #define GXK_CELL_RENDERER_POPUP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GXK_TYPE_CELL_RENDERER_POPUP, GxkCellRendererPopup))
12 #define GXK_CELL_RENDERER_POPUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXK_TYPE_CELL_RENDERER_POPUP, GxkCellRendererPopupClass))
13 #define GXK_IS_CELL_RENDERER_POPUP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GXK_TYPE_CELL_RENDERER_POPUP))
14 #define GXK_IS_CELL_RENDERER_POPUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXK_TYPE_CELL_RENDERER_POPUP))
15 #define GXK_CELL_RENDERER_POPUP_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GXK_TYPE_CELL_RENDERER_POPUP, GxkCellRendererPopupClass))
16 
17 
18 /* --- structures & typedefs --- */
19 typedef struct {
20  GtkCellRendererText parent_instace;
21  GtkWidget *dialog, *entry;
22  guint text_editing : 1;
23  guint popup_editing : 1;
24  guint auto_popup : 1;
26 typedef struct {
27  GtkCellRendererTextClass parent_class;
28  void (*popup) (GxkCellRendererPopup *cell,
29  const gchar *path,
30  const gchar *text);
32 
33 
34 /* --- functions --- */
36 void gxk_cell_renderer_popup_dialog (GxkCellRendererPopup *popup,
37  GtkWidget *dialog);
38 void gxk_cell_renderer_popup_change (GxkCellRendererPopup *popup,
39  const gchar *text,
40  gboolean preserve_popup,
41  gboolean keep_editing);
42 
43 
44 /* --- type macros --- */
45 #define GXK_TYPE_PROXY_EDITABLE (gxk_proxy_editable_get_type ())
46 #define GXK_PROXY_EDITABLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GXK_TYPE_PROXY_EDITABLE, GxkProxyEditable))
47 #define GXK_PROXY_EDITABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXK_TYPE_PROXY_EDITABLE, GxkProxyEditableClass))
48 #define GXK_IS_PROXY_EDITABLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GXK_TYPE_PROXY_EDITABLE))
49 #define GXK_IS_PROXY_EDITABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXK_TYPE_PROXY_EDITABLE))
50 #define GXK_PROXY_EDITABLE_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GXK_TYPE_PROXY_EDITABLE, GxkProxyEditableClass))
51 
52 
53 /* --- structures & typedefs --- */
54 typedef struct {
55  GtkEventBox parent_instace;
56  GtkCellEditable *ecell;
57  guint8 block_start_editing;
58  guint8 block_remove_widget;
59  guint8 block_editing_done;
61 typedef struct {
62  GtkEventBoxClass parent_class;
64 
65 
66 /* --- functions --- */
67 GType gxk_proxy_editable_get_type (void);
69  GtkCellEditable *ecell);
70 
71 
72 #endif /* __GXK_CELL_RENDERER_POPUP_H__ */
Definition: gxkcellrendererpopup.hh:26
GType gxk_proxy_editable_get_type(void)
Definition: gxkcellrendererpopup.cc:499
Definition: gxkcellrendererpopup.hh:54
Definition: gxkcellrendererpopup.hh:61
GType gxk_cell_renderer_popup_get_type(void)
Definition: gxkcellrendererpopup.cc:68
void gxk_proxy_editable_set_cell_editable(GxkProxyEditable *self, GtkCellEditable *ecell)
Definition: gxkcellrendererpopup.cc:466
Definition: gxkcellrendererpopup.hh:19