~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/widgets/gimpcontainerview.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The GIMP -- an image manipulation program
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
3
 *
4
4
 * gimpcontainerview.h
5
 
 * Copyright (C) 2001 Michael Natterer <mitch@gimp.org>
 
5
 * Copyright (C) 2001-2006 Michael Natterer <mitch@gimp.org>
6
6
 *
7
7
 * This program is free software; you can redistribute it and/or modify
8
8
 * it under the terms of the GNU General Public License as published by
23
23
#define __GIMP_CONTAINER_VIEW_H__
24
24
 
25
25
 
26
 
#include "gimpeditor.h"
27
 
 
28
 
 
29
 
enum
 
26
typedef enum
30
27
{
31
28
  GIMP_CONTAINER_VIEW_PROP_0,
32
29
  GIMP_CONTAINER_VIEW_PROP_CONTAINER,
33
30
  GIMP_CONTAINER_VIEW_PROP_CONTEXT,
34
31
  GIMP_CONTAINER_VIEW_PROP_REORDERABLE,
35
 
  GIMP_CONTAINER_VIEW_PROP_PREVIEW_SIZE,
36
 
  GIMP_CONTAINER_VIEW_PROP_PREVIEW_BORDER_WIDTH
37
 
};
 
32
  GIMP_CONTAINER_VIEW_PROP_VIEW_SIZE,
 
33
  GIMP_CONTAINER_VIEW_PROP_VIEW_BORDER_WIDTH,
 
34
  GIMP_CONTAINER_VIEW_PROP_LAST = GIMP_CONTAINER_VIEW_PROP_VIEW_BORDER_WIDTH
 
35
} GimpContainerViewProp;
38
36
 
39
37
 
40
38
#define GIMP_TYPE_CONTAINER_VIEW               (gimp_container_view_interface_get_type ())
50
48
  GTypeInterface base_iface;
51
49
 
52
50
  /*  signals  */
53
 
  gboolean (* select_item)      (GimpContainerView *view,
54
 
                                 GimpViewable      *object,
55
 
                                 gpointer           insert_data);
56
 
  void     (* activate_item)    (GimpContainerView *view,
57
 
                                 GimpViewable      *object,
58
 
                                 gpointer           insert_data);
59
 
  void     (* context_item)     (GimpContainerView *view,
60
 
                                 GimpViewable      *object,
61
 
                                 gpointer           insert_data);
 
51
  gboolean (* select_item)   (GimpContainerView *view,
 
52
                              GimpViewable      *object,
 
53
                              gpointer           insert_data);
 
54
  void     (* activate_item) (GimpContainerView *view,
 
55
                              GimpViewable      *object,
 
56
                              gpointer           insert_data);
 
57
  void     (* context_item)  (GimpContainerView *view,
 
58
                              GimpViewable      *object,
 
59
                              gpointer           insert_data);
62
60
 
63
61
  /*  virtual functions  */
64
 
  void     (* set_container)    (GimpContainerView *view,
65
 
                                 GimpContainer     *container);
66
 
  gpointer (* insert_item)      (GimpContainerView *view,
67
 
                                 GimpViewable      *object,
68
 
                                 gint               index);
69
 
  void     (* remove_item)      (GimpContainerView *view,
70
 
                                 GimpViewable      *object,
71
 
                                 gpointer           insert_data);
72
 
  void     (* reorder_item)     (GimpContainerView *view,
73
 
                                 GimpViewable      *object,
74
 
                                 gint               new_index,
75
 
                                 gpointer           insert_data);
76
 
  void     (* rename_item)      (GimpContainerView *view,
77
 
                                 GimpViewable      *object,
78
 
                                 gpointer           insert_data);
79
 
  void     (* clear_items)      (GimpContainerView *view);
80
 
  void     (* set_preview_size) (GimpContainerView *view);
 
62
  void     (* set_container) (GimpContainerView *view,
 
63
                              GimpContainer     *container);
 
64
  void     (* set_context)   (GimpContainerView *view,
 
65
                              GimpContext       *context);
 
66
  gpointer (* insert_item)   (GimpContainerView *view,
 
67
                              GimpViewable      *object,
 
68
                              gint               index);
 
69
  void     (* remove_item)   (GimpContainerView *view,
 
70
                              GimpViewable      *object,
 
71
                              gpointer           insert_data);
 
72
  void     (* reorder_item)  (GimpContainerView *view,
 
73
                              GimpViewable      *object,
 
74
                              gint               new_index,
 
75
                              gpointer           insert_data);
 
76
  void     (* rename_item)   (GimpContainerView *view,
 
77
                              GimpViewable      *object,
 
78
                              gpointer           insert_data);
 
79
  void     (* clear_items)   (GimpContainerView *view);
 
80
  void     (* set_view_size) (GimpContainerView *view);
81
81
 
82
82
  /*  the destroy notifier for private->hash_table's values  */
83
83
  GDestroyNotify  insert_data_free;
94
94
void            gimp_container_view_set_context   (GimpContainerView *view,
95
95
                                                   GimpContext       *context);
96
96
 
97
 
gint      gimp_container_view_get_preview_size (GimpContainerView *view,
98
 
                                                gint              *preview_border_width);
99
 
void      gimp_container_view_set_preview_size (GimpContainerView *view,
100
 
                                                gint               preview_size,
101
 
                                                gint               preview_border_width);
 
97
gint         gimp_container_view_get_view_size (GimpContainerView *view,
 
98
                                                gint              *view_border_width);
 
99
void         gimp_container_view_set_view_size (GimpContainerView *view,
 
100
                                                gint               view_size,
 
101
                                                gint               view_border_width);
102
102
 
103
103
gboolean  gimp_container_view_get_reorderable  (GimpContainerView *view);
104
104
void      gimp_container_view_set_reorderable  (GimpContainerView *view,
134
134
 
135
135
/*  convenience functions  */
136
136
 
137
 
void      gimp_container_view_set_property     (GObject      *object,
138
 
                                                guint         property_id,
139
 
                                                const GValue *value,
140
 
                                                GParamSpec   *pspec);
141
 
void      gimp_container_view_get_property     (GObject      *object,
142
 
                                                guint         property_id,
143
 
                                                GValue       *value,
144
 
                                                GParamSpec   *pspec);
 
137
void      gimp_container_view_install_properties (GObjectClass *klass);
 
138
void      gimp_container_view_set_property       (GObject      *object,
 
139
                                                  guint         property_id,
 
140
                                                  const GValue *value,
 
141
                                                  GParamSpec   *pspec);
 
142
void      gimp_container_view_get_property       (GObject      *object,
 
143
                                                  guint         property_id,
 
144
                                                  GValue       *value,
 
145
                                                  GParamSpec   *pspec);
145
146
 
146
147
 
147
148
#endif  /*  __GIMP_CONTAINER_VIEW_H__  */