2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2000-12-17 05:37:03 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2000-12-17 05:37:03 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2000-12-17 05:37:03 +08:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2000-12-17 05:37:03 +08:00
|
|
|
*/
|
|
|
|
|
2002-03-17 01:58:19 +08:00
|
|
|
#ifndef __GIMP_COLORMAP_EDITOR_H__
|
|
|
|
#define __GIMP_COLORMAP_EDITOR_H__
|
2001-01-08 07:59:46 +08:00
|
|
|
|
|
|
|
|
2003-02-20 23:40:15 +08:00
|
|
|
#include "gimpimageeditor.h"
|
2001-01-08 07:59:46 +08:00
|
|
|
|
|
|
|
|
2002-03-17 01:58:19 +08:00
|
|
|
#define GIMP_TYPE_COLORMAP_EDITOR (gimp_colormap_editor_get_type ())
|
|
|
|
#define GIMP_COLORMAP_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_COLORMAP_EDITOR, GimpColormapEditor))
|
|
|
|
#define GIMP_COLORMAP_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_COLORMAP_EDITOR, GimpColormapEditorClass))
|
|
|
|
#define GIMP_IS_COLORMAP_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_COLORMAP_EDITOR))
|
|
|
|
#define GIMP_IS_COLORMAP_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_COLORMAP_EDITOR))
|
|
|
|
#define GIMP_COLORMAP_EDITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_COLORMAP_EDITOR, GimpColormapEditorClass))
|
2001-01-08 07:59:46 +08:00
|
|
|
|
|
|
|
|
2002-03-17 01:58:19 +08:00
|
|
|
typedef struct _GimpColormapEditorClass GimpColormapEditorClass;
|
|
|
|
|
|
|
|
struct _GimpColormapEditor
|
2001-01-08 07:59:46 +08:00
|
|
|
{
|
2003-02-20 23:40:15 +08:00
|
|
|
GimpImageEditor parent_instance;
|
2003-01-11 01:55:53 +08:00
|
|
|
|
2010-10-28 08:15:42 +08:00
|
|
|
GtkWidget *view;
|
2003-01-11 01:55:53 +08:00
|
|
|
gint col_index;
|
2003-09-19 19:40:12 +08:00
|
|
|
|
2008-02-12 16:26:04 +08:00
|
|
|
PangoLayout *layout;
|
|
|
|
|
2003-01-11 01:55:53 +08:00
|
|
|
GtkAdjustment *index_adjustment;
|
|
|
|
GtkWidget *index_spinbutton;
|
|
|
|
GtkWidget *color_entry;
|
2003-09-19 19:40:12 +08:00
|
|
|
|
2004-09-24 04:41:40 +08:00
|
|
|
GtkWidget *color_dialog;
|
2001-01-08 07:59:46 +08:00
|
|
|
};
|
|
|
|
|
2002-03-17 01:58:19 +08:00
|
|
|
struct _GimpColormapEditorClass
|
2001-01-08 07:59:46 +08:00
|
|
|
{
|
2003-02-20 23:40:15 +08:00
|
|
|
GimpImageEditorClass parent_class;
|
2001-01-08 07:59:46 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2002-03-17 01:58:19 +08:00
|
|
|
GType gimp_colormap_editor_get_type (void) G_GNUC_CONST;
|
2001-01-08 07:59:46 +08:00
|
|
|
|
2004-09-25 20:48:41 +08:00
|
|
|
GtkWidget * gimp_colormap_editor_new (GimpMenuFactory *menu_factory);
|
2001-01-08 07:59:46 +08:00
|
|
|
|
2006-05-29 03:45:52 +08:00
|
|
|
gint gimp_colormap_editor_get_index (GimpColormapEditor *editor,
|
|
|
|
const GimpRGB *search);
|
|
|
|
gboolean gimp_colormap_editor_set_index (GimpColormapEditor *editor,
|
|
|
|
gint index,
|
|
|
|
GimpRGB *color);
|
|
|
|
|
|
|
|
gint gimp_colormap_editor_max_index (GimpColormapEditor *editor);
|
2001-01-08 07:59:46 +08:00
|
|
|
|
|
|
|
|
2002-03-17 01:58:19 +08:00
|
|
|
#endif /* __GIMP_COLORMAP_EDITOR_H__ */
|