glade-signal-editor.h 2.03 KB
Newer Older
Jose Maria Celorio's avatar
Jose Maria Celorio committed
1 2 3
#ifndef __GLADE_SIGNAL_EDITOR_H__
#define __GLADE_SIGNAL_EDITOR_H__

4
#include <gladeui/glade.h>
5
#include <gtk/gtk.h>
6

Jose Maria Celorio's avatar
Jose Maria Celorio committed
7 8
G_BEGIN_DECLS

9 10 11 12 13 14
#define GLADE_TYPE_SIGNAL_EDITOR            (glade_signal_editor_get_type ())
#define GLADE_SIGNAL_EDITOR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_SIGNAL_EDITOR, GladeSignalEditor))
#define GLADE_SIGNAL_EDITOR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GLADE_TYPE_SIGNAL_EDITOR, GladeSignalEditorClass))
#define GLADE_IS_SIGNAL_EDITOR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_SIGNAL_EDITOR))
#define GLADE_IS_SIGNAL_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_SIGNAL_EDITOR))
#define GLADE_SIGNAL_EDITOR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GLADE_TYPE_SIGNAL_EDITOR, GladeSignalEditorClass))
Jose Maria Celorio's avatar
Jose Maria Celorio committed
15

Tristan Van Berkom's avatar
Tristan Van Berkom committed
16
typedef struct _GladeSignalEditor  GladeSignalEditor;
17
typedef struct _GladeSignalEditorPrivate  GladeSignalEditorPrivate;
18 19
typedef struct _GladeSignalEditorClass  GladeSignalEditorClass;

20 21
/* The GladeSignalEditor is used to house the signal editor interface and
 * associated functionality.
Jose Maria Celorio's avatar
Jose Maria Celorio committed
22
 */
23 24
struct _GladeSignalEditor
{
25
  GtkBox parent;
26

27
  GladeSignalEditorPrivate *priv;
28
};
29

30 31
struct _GladeSignalEditorClass
{
32
  GtkBoxClass parent_class;
33

34
  gchar ** (* callback_suggestions) (GladeSignalEditor *editor, GladeSignal *signal);
35
  gchar ** (* detail_suggestions) (GladeSignalEditor *editor, GladeSignal *signal);
36 37 38 39
  void   (* glade_reserved1)   (void);
  void   (* glade_reserved2)   (void);
  void   (* glade_reserved3)   (void);
  void   (* glade_reserved4)   (void);
40
};
41

42
GType              glade_signal_editor_get_type (void) G_GNUC_CONST;
43

44
GladeSignalEditor *glade_signal_editor_new                    (void);
45 46
void               glade_signal_editor_load_widget            (GladeSignalEditor *editor, 
							       GladeWidget       *widget);
47
GladeWidget       *glade_signal_editor_get_widget             (GladeSignalEditor *editor);
48

49 50
void glade_signal_editor_enable_dnd (GladeSignalEditor *editor, gboolean enabled);

Jose Maria Celorio's avatar
Jose Maria Celorio committed
51 52 53
G_END_DECLS

#endif /* __GLADE_SIGNAL_EDITOR_H__ */