mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 12:02:32 +00:00
a11f33345d
1999-10-03 Michael Natterer <mitch@gimp.org> The GIMP Help System part II: press "F1" while browsing a menu to show the help page for the menu entry you're currently over with the mouse. * app/color_notebook.c: all color selectors have to register with a help page now. * app/color_select.[ch]: register with a help string. Removed the dialog part of the files because it's use was deprecated anyway (use color notebooks instead). * app/colormap_dialog.i.c * app/colormap_dialog.p.h * app/palette.c * app/palette_select.c: use a color notebook instead of a color selector. * app/gimphelp.c * app/gimpui.c: minor changes. * app/gimprc.c: "use help" defaults to TRUE now. * app/lc_dialog.c * app/lc_dialogP.h: a special help function which shows the help for the currently selected notebook page. * app/menus.c: some weird code which catches "key_press_event" in all menu shells and pops up the corresp. help page for the selected item. Embedded the GtkItemFactoryEntry in a new GimpItemFactoryEntry to allow a help path to be stored. Will be partially exported and moved to gimphelp.[ch] later to catch key_press for plug-in menu items (don't try this now ;-) * app/app_procs.c * app/brush_edit.c * app/brush_select.c * app/channel_ops.c * app/channels_dialog.c * app/commands.c * app/convert.c * app/devices.c * app/file_new_dialog.c * app/fileops.c * app/gdisplay.c * app/gdisplay_color.c * app/gdisplay_color_ui.c * app/gdisplay_ops.c * app/global_edit.c * app/gradient.c * app/gradient_select.c * app/interface.c * app/layers_dialog.c * app/module_db.c * app/paths_dialog.c * app/pattern_select.c * app/preferences_dialog.c * app/qmask.c * app/resize.c * app/undo_history.c: changed all dialog constructors to point to the right place in the new help file structure. * configure.in * help/*: the basic new help file structure. * modules/colorsel_gtk.c * modules/colorsel_triangle.c * modules/colorsel_water.c: register a help page. * plug-ins/helpbrowser/helpbrowser.c: load the help files according to the new help file structure.
43 lines
1 KiB
C
43 lines
1 KiB
C
#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>
|
|
#include <color_notebook.h>
|
|
|
|
|
|
typedef struct _GimpColormapDialogClass GimpColormapDialogClass;
|
|
struct _GimpColormapDialogClass {
|
|
GtkDialogClass parent_class;
|
|
void (*selected) (GimpColormapDialog*);
|
|
};
|
|
struct _GimpColormapDialog {
|
|
GtkDialog parent;
|
|
GimpImage* image;
|
|
gint col_index;
|
|
GtkWidget* vbox;
|
|
GtkPreview* palette;
|
|
GtkWidget* image_menu;
|
|
GtkOptionMenu* option_menu;
|
|
GimpSet* context;
|
|
guint event_handler;
|
|
gint xn;
|
|
gint yn;
|
|
gint cellsize;
|
|
GtkEntry* index_entry;
|
|
GtkEntry* color_entry;
|
|
GimpSetHandlerId rename_handler;
|
|
GimpSetHandlerId cmap_changed_handler;
|
|
GtkWidget* add_item;
|
|
ColorNotebookP color_notebook;
|
|
};
|
|
void gimp_colormap_dialog_selected (
|
|
GimpColormapDialog* colormap_dialog);
|
|
#endif /* _g_gimp_colormap_dialog_prot */
|