Blame gladeui/glade-property.h

Packit 1e8aac
#ifndef __GLADE_PROPERTY_H__
Packit 1e8aac
#define __GLADE_PROPERTY_H__
Packit 1e8aac
Packit 1e8aac
#include <glib-object.h>
Packit 1e8aac
Packit 1e8aac
G_BEGIN_DECLS
Packit 1e8aac
Packit 1e8aac
#define GLADE_TYPE_PROPERTY            (glade_property_get_type())
Packit 1e8aac
#define GLADE_PROPERTY(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_PROPERTY, GladeProperty))
Packit 1e8aac
#define GLADE_PROPERTY_KLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GLADE_TYPE_PROPERTY, GladePropertyKlass))
Packit 1e8aac
#define GLADE_IS_PROPERTY(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_PROPERTY))
Packit 1e8aac
#define GLADE_IS_PROPERTY_KLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_PROPERTY))
Packit 1e8aac
#define GLADE_PROPERTY_GET_KLASS(o)    (G_TYPE_INSTANCE_GET_CLASS ((o), GLADE_PROPERTY, GladePropertyKlass))
Packit 1e8aac
Packit 1e8aac
typedef struct _GladePropertyKlass   GladePropertyKlass;
Packit 1e8aac
typedef struct _GladePropertyPrivate GladePropertyPrivate;
Packit 1e8aac
Packit 1e8aac
typedef enum {
Packit 1e8aac
  GLADE_STATE_NORMAL              = 0,
Packit 1e8aac
  GLADE_STATE_CHANGED             = (1 << 0),
Packit 1e8aac
  GLADE_STATE_UNSUPPORTED         = (1 << 1),
Packit 1e8aac
  GLADE_STATE_SUPPORT_DISABLED    = (1 << 2)
Packit 1e8aac
} GladePropertyState;
Packit 1e8aac
Packit 1e8aac
/* A GladeProperty is an instance of a GladePropertyClass.
Packit 1e8aac
 * There will be one GladePropertyClass for "GtkLabel->label" but one
Packit 1e8aac
 * GladeProperty for each GtkLabel in the GladeProject.
Packit 1e8aac
 */
Packit 1e8aac
struct _GladeProperty
Packit 1e8aac
{
Packit 1e8aac
  GObject             parent_instance;
Packit 1e8aac
Packit 1e8aac
  GladePropertyPrivate *priv;
Packit 1e8aac
};
Packit 1e8aac
Packit 1e8aac
Packit 1e8aac
struct _GladePropertyKlass
Packit 1e8aac
{
Packit 1e8aac
  GObjectClass  parent_class;
Packit 1e8aac
Packit 1e8aac
  /* Class methods */
Packit 1e8aac
  GladeProperty *         (* dup)                   (GladeProperty *, GladeWidget *);
Packit 1e8aac
  gboolean                (* equals_value)          (GladeProperty *, const GValue *);
Packit 1e8aac
  gboolean                (* set_value)             (GladeProperty *, const GValue *);
Packit 1e8aac
  void                    (* get_value)             (GladeProperty *, GValue *);
Packit 1e8aac
  void                    (* sync)                  (GladeProperty *);
Packit 1e8aac
  void                    (* load)                  (GladeProperty *);
Packit 1e8aac
Packit 1e8aac
  /* Signals */
Packit 1e8aac
  void             (* value_changed)         (GladeProperty *, GValue *, GValue *);
Packit 1e8aac
  void             (* tooltip_changed)       (GladeProperty *, const gchar *, 
Packit 1e8aac
					      const gchar   *, const gchar *);
Packit 1e8aac
  void   (* glade_reserved1)   (void);
Packit 1e8aac
  void   (* glade_reserved2)   (void);
Packit 1e8aac
  void   (* glade_reserved3)   (void);
Packit 1e8aac
  void   (* glade_reserved4)   (void);
Packit 1e8aac
  void   (* glade_reserved5)   (void);
Packit 1e8aac
  void   (* glade_reserved6)   (void);
Packit 1e8aac
};
Packit 1e8aac
Packit 1e8aac
Packit 1e8aac
GType                   glade_property_get_type              (void) G_GNUC_CONST;
Packit 1e8aac
Packit 1e8aac
GladeProperty          *glade_property_new                   (GladePropertyClass *klass,
Packit 1e8aac
							      GladeWidget        *widget,
Packit 1e8aac
							      GValue             *value);
Packit 1e8aac
Packit 1e8aac
GladeProperty          *glade_property_dup                   (GladeProperty      *template_prop,
Packit 1e8aac
							      GladeWidget        *widget);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_reset                 (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_original_reset        (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
gboolean                glade_property_default               (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
gboolean                glade_property_original_default      (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
gboolean                glade_property_equals_value          (GladeProperty      *property, 
Packit 1e8aac
							      const GValue       *value);
Packit 1e8aac
Packit 1e8aac
gboolean                glade_property_equals                (GladeProperty      *property, 
Packit 1e8aac
							      ...);
Packit 1e8aac
Packit 1e8aac
gboolean                glade_property_set_value             (GladeProperty      *property, 
Packit 1e8aac
							      const GValue       *value);
Packit 1e8aac
Packit 1e8aac
gboolean                glade_property_set_va_list           (GladeProperty      *property,
Packit 1e8aac
							      va_list             vl);
Packit 1e8aac
Packit 1e8aac
gboolean                glade_property_set                   (GladeProperty      *property,
Packit 1e8aac
							      ...);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_get_value             (GladeProperty      *property, 
Packit 1e8aac
							      GValue             *value);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_get_default           (GladeProperty      *property, 
Packit 1e8aac
							      GValue             *value);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_get_va_list           (GladeProperty      *property,
Packit 1e8aac
							      va_list             vl);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_get                   (GladeProperty      *property, 
Packit 1e8aac
							      ...);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_add_object            (GladeProperty      *property,
Packit 1e8aac
							      GObject            *object);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_remove_object         (GladeProperty      *property,
Packit 1e8aac
							      GObject            *object);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_sync                  (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_load                  (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_read                  (GladeProperty      *property,
Packit 1e8aac
							      GladeProject       *project,
Packit 1e8aac
							      GladeXmlNode       *node);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_write                 (GladeProperty      *property,	
Packit 1e8aac
							      GladeXmlContext    *context,
Packit 1e8aac
							      GladeXmlNode       *node);
Packit 1e8aac
Packit 1e8aac
GladePropertyClass     *glade_property_get_class             (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_set_sensitive         (GladeProperty      *property,
Packit 1e8aac
							      gboolean            sensitive,
Packit 1e8aac
							      const gchar        *reason);
Packit 1e8aac
G_CONST_RETURN gchar   *glade_propert_get_insensitive_tooltip(GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_set_support_warning   (GladeProperty      *property,
Packit 1e8aac
							      gboolean            disable,
Packit 1e8aac
							      const gchar        *reason);
Packit 1e8aac
G_CONST_RETURN gchar   *glade_property_get_support_warning   (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
gboolean                glade_property_warn_usage            (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
gboolean                glade_property_get_sensitive         (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
Packit 1e8aac
void                    glade_property_set_save_always       (GladeProperty      *property,
Packit 1e8aac
							      gboolean            setting);
Packit 1e8aac
Packit 1e8aac
gboolean                glade_property_get_save_always       (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
Packit 1e8aac
void                    glade_property_set_enabled           (GladeProperty      *property,
Packit 1e8aac
							      gboolean            enabled);
Packit 1e8aac
Packit 1e8aac
gboolean                glade_property_get_enabled           (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
Packit 1e8aac
gchar                  *glade_property_make_string           (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
GladeWidget            *glade_property_get_widget            (GladeProperty      *property);
Packit 1e8aac
void                    glade_property_set_widget            (GladeProperty      *property,
Packit 1e8aac
							      GladeWidget        *widget);
Packit 1e8aac
Packit 1e8aac
GValue                 *glade_property_inline_value          (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
GladePropertyState      glade_property_get_state             (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_i18n_set_comment      (GladeProperty      *property, 
Packit 1e8aac
							      const gchar        *str);
Packit 1e8aac
Packit 1e8aac
G_CONST_RETURN gchar   *glade_property_i18n_get_comment      (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_i18n_set_context      (GladeProperty      *property, 
Packit 1e8aac
							      const gchar        *str);
Packit 1e8aac
Packit 1e8aac
G_CONST_RETURN gchar   *glade_property_i18n_get_context      (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_i18n_set_translatable (GladeProperty      *property,
Packit 1e8aac
							      gboolean            translatable);
Packit 1e8aac
Packit 1e8aac
gboolean                glade_property_i18n_get_translatable (GladeProperty      *property);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_push_superuser        (void);
Packit 1e8aac
Packit 1e8aac
void                    glade_property_pop_superuser         (void);
Packit 1e8aac
Packit 1e8aac
gboolean                glade_property_superuser             (void);
Packit 1e8aac
Packit 1e8aac
G_END_DECLS
Packit 1e8aac
Packit 1e8aac
#endif /* __GLADE_PROPERTY_H__ */