BEAST/BSE - Better Audio System and Sound Engine  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 G_BEGIN_DECLS
10 
11 /* --- type macros --- */
12 #define GXK_TYPE_CELL_RENDERER_POPUP (gxk_cell_renderer_popup_get_type ())
13 #define GXK_CELL_RENDERER_POPUP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GXK_TYPE_CELL_RENDERER_POPUP, GxkCellRendererPopup))
14 #define GXK_CELL_RENDERER_POPUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXK_TYPE_CELL_RENDERER_POPUP, GxkCellRendererPopupClass))
15 #define GXK_IS_CELL_RENDERER_POPUP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GXK_TYPE_CELL_RENDERER_POPUP))
16 #define GXK_IS_CELL_RENDERER_POPUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXK_TYPE_CELL_RENDERER_POPUP))
17 #define GXK_CELL_RENDERER_POPUP_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GXK_TYPE_CELL_RENDERER_POPUP, GxkCellRendererPopupClass))
18 
19 
20 /* --- structures & typedefs --- */
21 typedef struct {
22  GtkCellRendererText parent_instace;
23  GtkWidget *dialog, *entry;
24  guint text_editing : 1;
25  guint popup_editing : 1;
26  guint auto_popup : 1;
28 typedef struct {
29  GtkCellRendererTextClass parent_class;
30  void (*popup) (GxkCellRendererPopup *cell,
31  const gchar *path,
32  const gchar *text);
34 
35 
36 /* --- functions --- */
38 void gxk_cell_renderer_popup_dialog (GxkCellRendererPopup *popup,
39  GtkWidget *dialog);
40 void gxk_cell_renderer_popup_change (GxkCellRendererPopup *popup,
41  const gchar *text,
42  gboolean preserve_popup,
43  gboolean keep_editing);
44 
45 
46 /* --- type macros --- */
47 #define GXK_TYPE_PROXY_EDITABLE (gxk_proxy_editable_get_type ())
48 #define GXK_PROXY_EDITABLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GXK_TYPE_PROXY_EDITABLE, GxkProxyEditable))
49 #define GXK_PROXY_EDITABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXK_TYPE_PROXY_EDITABLE, GxkProxyEditableClass))
50 #define GXK_IS_PROXY_EDITABLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GXK_TYPE_PROXY_EDITABLE))
51 #define GXK_IS_PROXY_EDITABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXK_TYPE_PROXY_EDITABLE))
52 #define GXK_PROXY_EDITABLE_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GXK_TYPE_PROXY_EDITABLE, GxkProxyEditableClass))
53 
54 
55 /* --- structures & typedefs --- */
56 typedef struct {
57  GtkEventBox parent_instace;
58  GtkCellEditable *ecell;
59  guint8 block_start_editing;
60  guint8 block_remove_widget;
61  guint8 block_editing_done;
63 typedef struct {
64  GtkEventBoxClass parent_class;
66 
67 
68 /* --- functions --- */
69 GType gxk_proxy_editable_get_type (void);
71  GtkCellEditable *ecell);
72 
73 
74 G_END_DECLS
75 
76 #endif /* __GXK_CELL_RENDERER_POPUP_H__ */
Definition: gxkcellrendererpopup.hh:28
GType gxk_proxy_editable_get_type(void)
Definition: gxkcellrendererpopup.cc:499
Definition: gxkcellrendererpopup.hh:56
Definition: gxkcellrendererpopup.hh:63
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:21