1999-08-22 08:39:51 +08:00
|
|
|
#ifndef _g_gimp_colormap_dialog_prot
|
|
|
|
#define _g_gimp_colormap_dialog_prot
|
|
|
|
#include <colormap_dialog.h>
|
|
|
|
#include <gtk/gtkdialog.h>
|
|
|
|
#include <gimpimage.h>
|
|
|
|
#include <glib.h>
|
|
|
|
#include <gtk/gtkwidget.h>
|
|
|
|
#include <gtk/gtkpreview.h>
|
|
|
|
#include <gtk/gtkoptionmenu.h>
|
|
|
|
#include <gimpset.h>
|
|
|
|
#include <gtk/gtkentry.h>
|
1999-10-03 21:50:19 +08:00
|
|
|
#include <color_notebook.h>
|
1999-08-22 08:39:51 +08:00
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GimpColormapDialogClass GimpColormapDialogClass;
|
|
|
|
struct _GimpColormapDialogClass {
|
|
|
|
GtkDialogClass parent_class;
|
|
|
|
void (*selected) (GimpColormapDialog*);
|
|
|
|
};
|
|
|
|
struct _GimpColormapDialog {
|
|
|
|
GtkDialog parent;
|
|
|
|
GimpImage* image;
|
|
|
|
gint col_index;
|
1999-12-18 06:34:12 +08:00
|
|
|
gint dnd_col_index;
|
1999-08-22 08:39:51 +08:00
|
|
|
GtkWidget* vbox;
|
|
|
|
GtkPreview* palette;
|
|
|
|
GtkWidget* image_menu;
|
2000-02-14 06:26:41 +08:00
|
|
|
GtkWidget* popup_menu;
|
1999-08-22 08:39:51 +08:00
|
|
|
GtkOptionMenu* option_menu;
|
|
|
|
GimpSet* context;
|
|
|
|
guint event_handler;
|
|
|
|
gint xn;
|
|
|
|
gint yn;
|
|
|
|
gint cellsize;
|
1999-12-18 06:34:12 +08:00
|
|
|
GtkWidget* index_spinbutton;
|
|
|
|
GtkAdjustment* index_adjustment;
|
1999-08-22 08:39:51 +08:00
|
|
|
GtkEntry* color_entry;
|
|
|
|
GimpSetHandlerId rename_handler;
|
|
|
|
GimpSetHandlerId cmap_changed_handler;
|
|
|
|
GtkWidget* add_item;
|
2000-02-14 07:42:19 +08:00
|
|
|
ColorNotebook *color_notebook;
|
1999-08-22 08:39:51 +08:00
|
|
|
};
|
|
|
|
void gimp_colormap_dialog_selected (
|
|
|
|
GimpColormapDialog* colormap_dialog);
|
|
|
|
#endif /* _g_gimp_colormap_dialog_prot */
|