1997-11-25 06:05:25 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (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
|
|
|
|
* along with this program; if not, write to the Free Software
|
1998-04-13 13:44:11 +08:00
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
1997-11-25 06:05:25 +08:00
|
|
|
*/
|
2000-12-17 05:37:03 +08:00
|
|
|
|
2002-03-08 08:27:45 +08:00
|
|
|
#ifndef __GIMP_PALETTE_EDITOR_H__
|
|
|
|
#define __GIMP_PALETTE_EDITOR_H__
|
|
|
|
|
|
|
|
|
|
|
|
#include "gimpdataeditor.h"
|
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2002-03-08 08:27:45 +08:00
|
|
|
#define GIMP_TYPE_PALETTE_EDITOR (gimp_palette_editor_get_type ())
|
|
|
|
#define GIMP_PALETTE_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_PALETTE_EDITOR, GimpPaletteEditor))
|
|
|
|
#define GIMP_PALETTE_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PALETTE_EDITOR, GimpPaletteEditorClass))
|
|
|
|
#define GIMP_IS_PALETTE_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_PALETTE_EDITOR))
|
|
|
|
#define GIMP_IS_PALETTE_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_PALETTE_EDITOR))
|
|
|
|
#define GIMP_PALETTE_EDITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_PALETTE_EDITOR, GimpPaletteEditorClass))
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GimpPaletteEditorClass GimpPaletteEditorClass;
|
|
|
|
|
|
|
|
struct _GimpPaletteEditor
|
|
|
|
{
|
|
|
|
GimpDataEditor parent_instance;
|
1999-10-27 02:27:27 +08:00
|
|
|
|
2005-07-15 02:37:33 +08:00
|
|
|
GtkWidget *view;
|
2002-03-08 08:27:45 +08:00
|
|
|
GtkWidget *scrolled_window;
|
|
|
|
|
2002-03-09 00:34:42 +08:00
|
|
|
GtkWidget *color_name;
|
|
|
|
GtkAdjustment *columns_data;
|
2002-03-08 08:27:45 +08:00
|
|
|
|
2004-09-24 04:41:40 +08:00
|
|
|
GtkWidget *color_dialog;
|
2002-03-08 08:27:45 +08:00
|
|
|
|
|
|
|
GimpPaletteEntry *color;
|
|
|
|
|
|
|
|
gfloat zoom_factor; /* range from 0.1 to 4.0 */
|
|
|
|
gint col_width;
|
|
|
|
gint last_width;
|
|
|
|
gint columns;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _GimpPaletteEditorClass
|
|
|
|
{
|
|
|
|
GimpDataEditorClass parent_class;
|
|
|
|
};
|
2001-04-16 01:03:52 +08:00
|
|
|
|
1997-12-14 19:36:53 +08:00
|
|
|
|
2004-09-27 02:41:29 +08:00
|
|
|
GType gimp_palette_editor_get_type (void) G_GNUC_CONST;
|
2002-03-09 00:34:42 +08:00
|
|
|
|
2004-09-27 02:41:29 +08:00
|
|
|
GtkWidget * gimp_palette_editor_new (Gimp *gimp,
|
|
|
|
GimpMenuFactory *menu_factory);
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2004-09-27 02:41:29 +08:00
|
|
|
void gimp_palette_editor_pick_color (GimpPaletteEditor *editor,
|
|
|
|
const GimpRGB *color,
|
|
|
|
GimpColorPickState pick_state);
|
2004-10-25 04:38:35 +08:00
|
|
|
void gimp_palette_editor_zoom (GimpPaletteEditor *editor,
|
|
|
|
GimpZoomType zoom_type);
|
2001-07-10 01:58:56 +08:00
|
|
|
|
|
|
|
|
2002-03-08 08:27:45 +08:00
|
|
|
#endif /* __GIMP_PALETTE_EDITOR_H__ */
|