colormap-dialog.h 2.59 KB
Newer Older
Sven Neumann's avatar
Sven Neumann committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* 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
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

Michael Natterer's avatar
Michael Natterer committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#ifndef __COLORMAP_DIALOG_H__
#define __COLORMAP_DIALOG_H__


#include <gtk/gtkdialog.h>


#define GIMP_TYPE_COLORMAP_DIALOG            (gimp_colormap_dialog_get_type ())
#define GIMP_COLORMAP_DIALOG(obj)            (GTK_CHECK_CAST((obj), GIMP_TYPE_COLORMAP_DIALOG, GimpColormapDialog))
#define GIMP_COLORMAP_DIALOG_CLASS(klass)    (GTK_CHECK_CLASS_CAST((klass), GIMP_TYPE_COLORMAP_DIALOG, GimpColormapDialogClass))
#define GIMP_IS_COLORMAP_DIALOG(obj)         (GTK_CHECK_TYPE((obj), GIMP_TYPE_COLORMAP_DIALOG))
#define GIMP_IS_COLORMAP_DIALOG_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), GIMP_TYPE_COLORMAP_DIALOG))


typedef struct _GimpColormapDialog      GimpColormapDialog;
typedef struct _GimpColormapDialogClass GimpColormapDialogClass;

struct _GimpColormapDialog
{
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
  GtkVBox        parent;

  GimpImage     *image;
  gint           col_index;
  gint           dnd_col_index;
  GtkWidget     *palette;
  GtkWidget     *image_menu;
  GtkWidget     *popup_menu;
  GtkOptionMenu *option_menu;
  gint           xn;
  gint           yn;
  gint           cellsize;
  GtkAdjustment *index_adjustment;
  GtkWidget     *index_spinbutton;
  GtkWidget     *color_entry;
  GtkWidget     *add_item;
  ColorNotebook *color_notebook;
Michael Natterer's avatar
Michael Natterer committed
55 56 57 58
};

struct _GimpColormapDialogClass
{
59
  GtkVBoxClass  parent_class;
Michael Natterer's avatar
Michael Natterer committed
60 61 62 63 64

  void (* selected) (GimpColormapDialog *gcd);
};


65
GtkType     gimp_colormap_dialog_get_type  (void);
Michael Natterer's avatar
Michael Natterer committed
66

67
GtkWidget * gimp_colormap_dialog_new       (GimpImage          *gimage);
Michael Natterer's avatar
Michael Natterer committed
68

69 70 71 72 73 74
void        gimp_colormap_dialog_selected  (GimpColormapDialog *gcd);

void        gimp_colormap_dialog_set_image (GimpColormapDialog *gcd,
					    GimpImage          *gimage);
GimpImage * gimp_colormap_dialog_get_image (GimpColormapDialog *gcd);
gint        gimp_colormap_dialog_col_index (GimpColormapDialog *gcd);
Michael Natterer's avatar
Michael Natterer committed
75 76 77


#endif /* __COLORMAP_DIALOG_H__ */