2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2001-12-17 05:34:05 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* GimpGuiConfig class
|
|
|
|
* Copyright (C) 2001 Sven Neumann <sven@gimp.org>
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2001-12-17 05:34:05 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2001-12-17 05:34:05 +08:00
|
|
|
* (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
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2001-12-17 05:34:05 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_GUI_CONFIG_H__
|
|
|
|
#define __GIMP_GUI_CONFIG_H__
|
|
|
|
|
2001-12-19 03:23:26 +08:00
|
|
|
#include "config/gimpdisplayconfig.h"
|
2001-12-17 05:34:05 +08:00
|
|
|
|
|
|
|
|
2016-03-26 03:53:22 +08:00
|
|
|
#define GIMP_CONFIG_DEFAULT_THEME "03-Dark"
|
|
|
|
#define GIMP_CONFIG_DEFAULT_ICON_THEME "Symbolic"
|
2016-01-11 10:03:28 +08:00
|
|
|
|
|
|
|
|
2001-12-17 05:34:05 +08:00
|
|
|
#define GIMP_TYPE_GUI_CONFIG (gimp_gui_config_get_type ())
|
|
|
|
#define GIMP_GUI_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_GUI_CONFIG, GimpGuiConfig))
|
|
|
|
#define GIMP_GUI_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_GUI_CONFIG, GimpGuiConfigClass))
|
|
|
|
#define GIMP_IS_GUI_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_GUI_CONFIG))
|
|
|
|
#define GIMP_IS_GUI_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_GUI_CONFIG))
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GimpGuiConfigClass GimpGuiConfigClass;
|
|
|
|
|
|
|
|
struct _GimpGuiConfig
|
|
|
|
{
|
2001-12-18 20:39:45 +08:00
|
|
|
GimpDisplayConfig parent_instance;
|
2001-12-17 05:34:05 +08:00
|
|
|
|
2004-10-30 23:02:39 +08:00
|
|
|
gboolean move_tool_changes_active;
|
2016-05-11 07:03:40 +08:00
|
|
|
gint filter_tool_max_recent;
|
2017-05-01 08:07:09 +08:00
|
|
|
gboolean filter_tool_show_color_options;
|
2001-12-17 09:01:34 +08:00
|
|
|
gboolean trust_dirty_flag;
|
2001-12-17 05:34:05 +08:00
|
|
|
gboolean save_device_status;
|
2016-10-05 04:32:08 +08:00
|
|
|
gboolean devices_share_tool;
|
2001-12-17 05:34:05 +08:00
|
|
|
gboolean save_session_info;
|
2001-12-17 09:01:34 +08:00
|
|
|
gboolean restore_session;
|
2014-05-02 09:01:23 +08:00
|
|
|
gboolean restore_monitor;
|
2005-04-12 05:17:59 +08:00
|
|
|
gboolean save_tool_options;
|
2006-03-11 00:40:09 +08:00
|
|
|
gboolean show_tooltips;
|
2001-12-18 20:39:45 +08:00
|
|
|
gboolean tearoff_menus;
|
2003-04-01 15:47:04 +08:00
|
|
|
gboolean can_change_accels;
|
2003-04-08 18:02:42 +08:00
|
|
|
gboolean save_accels;
|
|
|
|
gboolean restore_accels;
|
2002-11-22 01:17:03 +08:00
|
|
|
gint last_opened_size;
|
2003-11-14 21:41:16 +08:00
|
|
|
guint64 max_new_image_size;
|
2004-06-01 04:30:52 +08:00
|
|
|
gboolean toolbox_color_area;
|
|
|
|
gboolean toolbox_foo_area;
|
|
|
|
gboolean toolbox_image_area;
|
2008-08-28 22:30:47 +08:00
|
|
|
gboolean toolbox_wilber;
|
2001-12-17 09:01:34 +08:00
|
|
|
gchar *theme_path;
|
|
|
|
gchar *theme;
|
2015-12-09 03:52:12 +08:00
|
|
|
gchar *icon_theme_path;
|
|
|
|
gchar *icon_theme;
|
2016-01-07 12:09:01 +08:00
|
|
|
GimpIconSize icon_size;
|
2001-12-17 05:34:05 +08:00
|
|
|
gboolean use_help;
|
2004-10-05 00:21:52 +08:00
|
|
|
gboolean show_help_button;
|
2004-03-17 21:59:42 +08:00
|
|
|
gchar *help_locales;
|
2002-05-06 03:17:41 +08:00
|
|
|
GimpHelpBrowserType help_browser;
|
2008-06-13 04:14:44 +08:00
|
|
|
gboolean user_manual_online;
|
|
|
|
gchar *user_manual_online_uri;
|
2016-04-17 07:32:07 +08:00
|
|
|
gboolean search_show_unavailable;
|
|
|
|
gint action_history_size;
|
2004-01-17 07:18:23 +08:00
|
|
|
GimpWindowHint dock_window_hint;
|
2011-07-25 04:09:21 +08:00
|
|
|
GimpHandedness cursor_handedness;
|
2002-11-19 04:50:31 +08:00
|
|
|
|
2015-03-04 03:26:58 +08:00
|
|
|
/* experimental playground */
|
|
|
|
gboolean playground_npd_tool;
|
2015-06-14 19:02:31 +08:00
|
|
|
gboolean playground_seamless_clone_tool;
|
2015-03-04 03:26:58 +08:00
|
|
|
|
2011-11-06 00:52:45 +08:00
|
|
|
/* saved in sessionrc */
|
|
|
|
gboolean hide_docks;
|
|
|
|
gboolean single_window_mode;
|
2013-09-15 18:56:17 +08:00
|
|
|
GimpPosition tabs_position;
|
2011-11-06 00:52:45 +08:00
|
|
|
gint last_tip_shown;
|
2001-12-17 05:34:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GimpGuiConfigClass
|
|
|
|
{
|
2001-12-18 20:39:45 +08:00
|
|
|
GimpDisplayConfigClass parent_class;
|
2017-03-17 12:52:20 +08:00
|
|
|
|
|
|
|
void (* size_changed) (GimpGuiConfig *config);
|
2001-12-17 05:34:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GType gimp_gui_config_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2017-03-17 12:52:20 +08:00
|
|
|
GimpIconSize gimp_gui_config_detect_icon_size (GimpGuiConfig *config);
|
2001-12-17 05:34:05 +08:00
|
|
|
|
|
|
|
#endif /* GIMP_GUI_CONFIG_H__ */
|