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

4
#include <gladeui/glade-signal-editor.h>
5
#include <gladeui/glade-editable.h>
Tristan Van Berkom's avatar
Tristan Van Berkom committed
6

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

9 10 11 12 13 14 15 16

#define GLADE_TYPE_EDITOR            (glade_editor_get_type ())
#define GLADE_EDITOR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_EDITOR, GladeEditor))
#define GLADE_EDITOR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GLADE_TYPE_EDITOR, GladeEditorClass))
#define GLADE_IS_EDITOR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_EDITOR))
#define GLADE_IS_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_EDITOR))
#define GLADE_EDITOR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GLADE_TYPE_EDITOR, GladeEditorClass))

Tristan Van Berkom's avatar
Tristan Van Berkom committed
17
typedef struct _GladeEditor          GladeEditor;
18
typedef struct _GladeEditorClass     GladeEditorClass;
19
typedef struct _GladeEditorPrivate   GladeEditorPrivate;
20

Jose Maria Celorio's avatar
Jose Maria Celorio committed
21 22 23 24 25 26
/* The GladeEditor is a window that is used to display and modify widget
 * properties. The glade editor contains the details of the selected
 * widget for the selected project
 */
struct _GladeEditor
{
27
  GtkBox vbox;  /* The editor is a vbox */
28

29
  GladeEditorPrivate *priv;
Jose Maria Celorio's avatar
Jose Maria Celorio committed
30 31 32 33
};

struct _GladeEditorClass
{
34
  GtkBoxClass parent_class;
Jose Maria Celorio's avatar
Jose Maria Celorio committed
35

36 37 38 39
  void   (* glade_reserved1)   (void);
  void   (* glade_reserved2)   (void);
  void   (* glade_reserved3)   (void);
  void   (* glade_reserved4)   (void);
Jose Maria Celorio's avatar
Jose Maria Celorio committed
40 41
};

42

43
GType        glade_editor_get_type           (void);
44

45
GladeEditor *glade_editor_new                (void);
46
void         glade_editor_load_widget        (GladeEditor       *editor,
47
                                              GladeWidget       *widget);
48
G_DEPRECATED
49
void         glade_editor_show_info          (GladeEditor       *editor);
50
G_DEPRECATED
51
void         glade_editor_hide_info          (GladeEditor       *editor);
52

53 54
void         glade_editor_show_class_field   (GladeEditor       *editor);
void         glade_editor_hide_class_field   (GladeEditor       *editor);
55 56 57

gboolean     glade_editor_query_dialog       (GladeWidget       *widget);
GtkWidget   *glade_editor_dialog_for_widget  (GladeWidget       *widget);
58 59
void         glade_editor_reset_dialog_run   (GtkWidget         *parent,
                                              GladeWidget       *gwidget);
60

Jose Maria Celorio's avatar
Jose Maria Celorio committed
61 62 63
G_END_DECLS

#endif /* __GLADE_EDITOR_H__ */