1
/* The GIMP -- an image manipulation program
1
/* GIMP - The GNU Image Manipulation Program
2
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
4
4
* gimpcontainerview.h
5
* Copyright (C) 2001 Michael Natterer <mitch@gimp.org>
5
* Copyright (C) 2001-2006 Michael Natterer <mitch@gimp.org>
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__
26
#include "gimpeditor.h"
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
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;
40
38
#define GIMP_TYPE_CONTAINER_VIEW (gimp_container_view_interface_get_type ())
50
48
GTypeInterface base_iface;
53
gboolean (* select_item) (GimpContainerView *view,
55
gpointer insert_data);
56
void (* activate_item) (GimpContainerView *view,
58
gpointer insert_data);
59
void (* context_item) (GimpContainerView *view,
61
gpointer insert_data);
51
gboolean (* select_item) (GimpContainerView *view,
53
gpointer insert_data);
54
void (* activate_item) (GimpContainerView *view,
56
gpointer insert_data);
57
void (* context_item) (GimpContainerView *view,
59
gpointer insert_data);
63
61
/* virtual functions */
64
void (* set_container) (GimpContainerView *view,
65
GimpContainer *container);
66
gpointer (* insert_item) (GimpContainerView *view,
69
void (* remove_item) (GimpContainerView *view,
71
gpointer insert_data);
72
void (* reorder_item) (GimpContainerView *view,
75
gpointer insert_data);
76
void (* rename_item) (GimpContainerView *view,
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,
69
void (* remove_item) (GimpContainerView *view,
71
gpointer insert_data);
72
void (* reorder_item) (GimpContainerView *view,
75
gpointer insert_data);
76
void (* rename_item) (GimpContainerView *view,
78
gpointer insert_data);
79
void (* clear_items) (GimpContainerView *view);
80
void (* set_view_size) (GimpContainerView *view);
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);
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,
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,
101
gint view_border_width);
103
103
gboolean gimp_container_view_get_reorderable (GimpContainerView *view);
104
104
void gimp_container_view_set_reorderable (GimpContainerView *view,
135
135
/* convenience functions */
137
void gimp_container_view_set_property (GObject *object,
141
void gimp_container_view_get_property (GObject *object,
137
void gimp_container_view_install_properties (GObjectClass *klass);
138
void gimp_container_view_set_property (GObject *object,
142
void gimp_container_view_get_property (GObject *object,
147
148
#endif /* __GIMP_CONTAINER_VIEW_H__ */