~ubuntu-branches/ubuntu/vivid/gimp/vivid

« back to all changes in this revision

Viewing changes to plug-ins/metadata/gimpxmpmodelwidget.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-08 18:50:03 UTC
  • mto: (1.1.26) (0.5.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 71.
  • Revision ID: package-import@ubuntu.com-20120508185003-tltkvbaysf8d2426
Import upstream version 2.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* gimpxmpmodelwidget.h - interface definition for xmpmodel gtkwidgets
 
2
 *
 
3
 * Copyright (C) 2010, Róman Joost <romanofski@gimp.org>
 
4
 *
 
5
 * This library is free software: you can redistribute it and/or
 
6
 * modify it under the terms of the GNU Lesser General Public
 
7
 * License as published by the Free Software Foundation; either
 
8
 * version 3 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This library is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
 * Lesser General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Lesser General Public
 
16
 * License along with this library.  If not, see
 
17
 * <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
 
20
#ifndef __GIMP_XMP_MODEL_WIDGET_H__
 
21
#define __GIMP_XMP_MODEL_WIDGET_H__
 
22
 
 
23
G_BEGIN_DECLS
 
24
 
 
25
 
 
26
typedef enum
 
27
{
 
28
  GIMP_XMP_MODEL_WIDGET_PROP_0,
 
29
  GIMP_XMP_MODEL_WIDGET_PROP_SCHEMA_URI,
 
30
  GIMP_XMP_MODEL_WIDGET_PROP_PROPERTY_NAME,
 
31
  GIMP_XMP_MODEL_WIDGET_PROP_XMPMODEL
 
32
} GimpXmpModelWidgetProp;
 
33
 
 
34
 
 
35
 
 
36
#define GIMP_TYPE_XMP_MODEL_WIDGET                  (gimp_xmp_model_widget_interface_get_type ())
 
37
#define GIMP_IS_XMP_MODEL_WIDGET(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_XMP_MODEL_WIDGET))
 
38
#define GIMP_XMP_MODEL_WIDGET(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_XMP_MODEL_WIDGET, GimpXmpModelWidget))
 
39
#define GIMP_XMP_MODEL_WIDGET_GET_INTERFACE(obj)    (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GIMP_TYPE_XMP_MODEL_WIDGET, GimpXmpModelWidgetInterface))
 
40
 
 
41
 
 
42
typedef struct _GimpXmpModelWidget              GimpXmpModelWidget;
 
43
typedef struct _GimpXmpModelWidgetInterface     GimpXmpModelWidgetInterface;
 
44
 
 
45
 
 
46
struct _GimpXmpModelWidgetInterface
 
47
{
 
48
  GTypeInterface base_iface;
 
49
 
 
50
  void          (*widget_set_text) (GimpXmpModelWidget  *widget,
 
51
                                    const gchar         *value);
 
52
};
 
53
 
 
54
 
 
55
GType           gimp_xmp_model_widget_interface_get_type    (void) G_GNUC_CONST;
 
56
 
 
57
void            gimp_xmp_model_widget_install_properties    (GObjectClass *klass);
 
58
 
 
59
void            gimp_xmp_model_widget_constructor           (GObject *object);
 
60
 
 
61
void            gimp_xmp_model_widget_set_text              (GimpXmpModelWidget *widget,
 
62
                                                             const gchar        *value);
 
63
 
 
64
void            gimp_xmp_model_widget_set_property          (GObject            *object,
 
65
                                                             guint               property_id,
 
66
                                                             const GValue       *value,
 
67
                                                             GParamSpec         *pspec);
 
68
 
 
69
void            gimp_xmp_model_widget_get_property          (GObject            *object,
 
70
                                                             guint               property_id,
 
71
                                                             GValue             *value,
 
72
                                                             GParamSpec         *pspec);
 
73
 
 
74
void            gimp_xmp_model_widget_changed               (GimpXmpModelWidget *widget,
 
75
                                                             const gchar        *value);
 
76
 
 
77
 
 
78
G_END_DECLS
 
79
 
 
80
#endif /* __GIMP_XMP_MODEL_WIDGET_H__ */