1 /* GIMP - The GNU Image Manipulation Program
2  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3  *
4  * GimpDisplayConfig class
5  * Copyright (C) 2001  Sven Neumann <sven@gimp.org>
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef __GIMP_DISPLAY_CONFIG_H__
22 #define __GIMP_DISPLAY_CONFIG_H__
23 
24 #include "config/gimpcoreconfig.h"
25 
26 
27 #define GIMP_CONFIG_DEFAULT_IMAGE_TITLE_FORMAT  "%D*%f-%p.%i (%t, %o, %L) %wx%h"
28 #define GIMP_CONFIG_DEFAULT_IMAGE_STATUS_FORMAT "%n (%m)"
29 
30 
31 #define GIMP_TYPE_DISPLAY_CONFIG            (gimp_display_config_get_type ())
32 #define GIMP_DISPLAY_CONFIG(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_DISPLAY_CONFIG, GimpDisplayConfig))
33 #define GIMP_DISPLAY_CONFIG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_DISPLAY_CONFIG, GimpDisplayConfigClass))
34 #define GIMP_IS_DISPLAY_CONFIG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_DISPLAY_CONFIG))
35 #define GIMP_IS_DISPLAY_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_DISPLAY_CONFIG))
36 
37 
38 typedef struct _GimpDisplayConfigClass GimpDisplayConfigClass;
39 
40 struct _GimpDisplayConfig
41 {
42   GimpCoreConfig      parent_instance;
43 
44   GimpCheckSize       transparency_size;
45   GimpCheckType       transparency_type;
46   gint                snap_distance;
47   gint                marching_ants_speed;
48   gboolean            resize_windows_on_zoom;
49   gboolean            resize_windows_on_resize;
50   gboolean            default_show_all;
51   gboolean            default_dot_for_dot;
52   gboolean            initial_zoom_to_fit;
53   GimpCursorMode      cursor_mode;
54   gboolean            cursor_updating;
55   gboolean            show_brush_outline;
56   gboolean            snap_brush_outline;
57   gboolean            show_paint_tool_cursor;
58   gchar              *image_title_format;
59   gchar              *image_status_format;
60   gdouble             monitor_xres;
61   gdouble             monitor_yres;
62   gboolean            monitor_res_from_gdk;
63   GimpViewSize        nav_preview_size;
64   GimpDisplayOptions *default_view;
65   GimpDisplayOptions *default_fullscreen_view;
66   gboolean            activate_on_focus;
67   GimpSpaceBarAction  space_bar_action;
68   GimpZoomQuality     zoom_quality;
69   gboolean            use_event_history;
70 };
71 
72 struct _GimpDisplayConfigClass
73 {
74   GimpCoreConfigClass  parent_class;
75 };
76 
77 
78 GType  gimp_display_config_get_type (void) G_GNUC_CONST;
79 
80 
81 #endif /* GIMP_DISPLAY_CONFIG_H__ */
82