home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / imagemap / imap_preferences.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-25  |  2.3 KB  |  84 lines

  1. /*
  2.  * This is a plug-in for the GIMP.
  3.  *
  4.  * Generates clickable image maps.
  5.  *
  6.  * Copyright (C) 1998-1999 Maurits Rijk  lpeek.mrijk@consunet.nl
  7.  *
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 2 of the License, or
  11.  * (at your option) any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU General Public License
  19.  * along with this program; if not, write to the Free Software
  20.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  21.  *
  22.  */
  23.  
  24. #ifndef _IMAP_PREFERENCES_H
  25. #define _IMAP_PREFERENCES_H
  26.  
  27. #include "imap_default_dialog.h"
  28.  
  29. typedef struct {
  30.    GdkColor normal_fg;
  31.    GdkColor normal_bg;
  32.    GdkColor selected_fg;
  33.    GdkColor selected_bg;
  34. } ColorSelData_t;
  35.  
  36. typedef struct {
  37.    gint         default_map_type;
  38.    gboolean         prompt_for_area_info;
  39.    gboolean         require_default_url;
  40.    gboolean         show_area_handle;
  41.    gboolean         keep_circles_round;
  42.    gboolean         show_url_tip;
  43.    gboolean         use_doublesized;
  44.    gint            undo_levels;
  45.    gint            mru_size;
  46.    ColorSelData_t    colors;
  47.    GdkGC            *normal_gc;
  48.    GdkGC            *selected_gc;
  49. } PreferencesData_t;
  50.  
  51. typedef struct {
  52.    DefaultDialog_t     *dialog;
  53.    GtkWidget        *notebook;
  54.    GtkWidget        *ncsa;
  55.    GtkWidget        *cern;
  56.    GtkWidget        *csim;
  57.    GtkWidget        *prompt_for_area_info;
  58.    GtkWidget        *require_default_url;
  59.    GtkWidget        *show_area_handle;
  60.    GtkWidget        *keep_circles_round;
  61.    GtkWidget        *show_url_tip;
  62.    GtkWidget        *use_doublesized;
  63.  
  64.    GtkWidget        *undo_levels;
  65.    GtkWidget        *mru_size;
  66.  
  67.    GtkWidget        *normal_fg;
  68.    GtkWidget        *normal_bg;
  69.    GtkWidget        *selected_fg;
  70.    GtkWidget        *selected_bg;
  71.    GtkWidget        *color_sel_dlg;
  72.    GtkWidget        *color_sel;
  73.  
  74.    PreferencesData_t    *old_data;
  75.    ColorSelData_t    old_colors;
  76.    ColorSelData_t    new_colors;
  77. } PreferencesDialog_t;
  78.  
  79. void do_preferences_dialog();
  80. gboolean preferences_load(PreferencesData_t *data);
  81. void preferences_save(PreferencesData_t *data);
  82.  
  83. #endif /* _IMAP_PREFERENCES_H */
  84.