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
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
#ifndef __GIMPRC_H__
|
|
|
|
#define __GIMPRC_H__
|
|
|
|
|
2001-06-04 04:40:50 +08:00
|
|
|
typedef struct _GimpRc GimpRc;
|
2000-05-01 02:17:55 +08:00
|
|
|
|
2001-06-04 04:40:50 +08:00
|
|
|
/* global gimprc variables - need some comments on this stuff */
|
|
|
|
struct _GimpRc
|
|
|
|
{
|
|
|
|
gint marching_speed;
|
|
|
|
gint last_opened_size;
|
|
|
|
gdouble gamma_val;
|
|
|
|
gint transparency_type;
|
|
|
|
gboolean perfectmouse;
|
|
|
|
gint transparency_size;
|
|
|
|
gint min_colors;
|
|
|
|
gboolean install_cmap;
|
|
|
|
gboolean cycled_marching_ants;
|
|
|
|
gint default_threshold;
|
|
|
|
gboolean allow_resize_windows;
|
|
|
|
gboolean no_cursor_updating;
|
|
|
|
gint preview_size;
|
|
|
|
gint nav_preview_size;
|
|
|
|
gboolean show_rulers;
|
|
|
|
gboolean show_statusbar;
|
|
|
|
gboolean auto_save;
|
|
|
|
gboolean confirm_on_close;
|
|
|
|
gboolean default_dot_for_dot;
|
|
|
|
gboolean save_session_info;
|
|
|
|
gboolean save_device_status;
|
|
|
|
gboolean always_restore_session;
|
|
|
|
gboolean show_tips;
|
|
|
|
gint last_tip;
|
|
|
|
gboolean show_tool_tips;
|
|
|
|
gdouble monitor_xres;
|
|
|
|
gdouble monitor_yres;
|
|
|
|
gboolean using_xserver_resolution;
|
|
|
|
gchar *image_title_format;
|
|
|
|
gboolean global_paint_options;
|
|
|
|
gboolean show_indicators;
|
|
|
|
guint max_new_image_size;
|
|
|
|
gboolean trust_dirty_flag;
|
|
|
|
gboolean use_help;
|
|
|
|
gboolean nav_window_per_display;
|
|
|
|
gboolean info_window_follows_mouse;
|
|
|
|
gint help_browser;
|
|
|
|
gint cursor_mode;
|
|
|
|
gboolean disable_tearoff_menus;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern GimpRc gimprc;
|
1997-11-25 06:05:25 +08:00
|
|
|
|
|
|
|
/* function prototypes */
|
2001-05-15 19:25:25 +08:00
|
|
|
gboolean gimprc_init (void); /* this has to be called before any file
|
2000-03-15 07:06:21 +08:00
|
|
|
* is parsed
|
|
|
|
*/
|
|
|
|
void parse_gimprc (void);
|
|
|
|
gboolean parse_gimprc_file (gchar *filename);
|
|
|
|
void save_gimprc (GList **updated_options,
|
|
|
|
GList **conflicting_options);
|
|
|
|
gchar * gimprc_find_token (gchar *token);
|
|
|
|
gchar * gimprc_value_to_str (gchar *name);
|
|
|
|
void save_gimprc_strings (gchar *token,
|
|
|
|
gchar *value);
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
#endif /* __GIMPRC_H__ */
|