2010-02-02 04:55:18 +08:00
|
|
|
/* GIMP - The GNU 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 3 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
|
2018-07-12 05:27:07 +08:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2010-02-02 04:55:18 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_ENUMS_H__
|
|
|
|
#define __CONFIG_ENUMS_H__
|
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_CANVAS_PADDING_MODE (gimp_canvas_padding_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_canvas_padding_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_CANVAS_PADDING_MODE_DEFAULT, /*< desc="From theme" >*/
|
|
|
|
GIMP_CANVAS_PADDING_MODE_LIGHT_CHECK, /*< desc="Light check color" >*/
|
|
|
|
GIMP_CANVAS_PADDING_MODE_DARK_CHECK, /*< desc="Dark check color" >*/
|
|
|
|
GIMP_CANVAS_PADDING_MODE_CUSTOM, /*< desc="Custom color" >*/
|
|
|
|
GIMP_CANVAS_PADDING_MODE_RESET = -1 /*< skip >*/
|
|
|
|
} GimpCanvasPaddingMode;
|
|
|
|
|
|
|
|
|
2017-03-11 23:47:24 +08:00
|
|
|
#define GIMP_TYPE_CURSOR_FORMAT (gimp_cursor_format_get_type ())
|
2010-02-02 04:55:18 +08:00
|
|
|
|
2017-03-11 23:47:24 +08:00
|
|
|
GType gimp_cursor_format_get_type (void) G_GNUC_CONST;
|
2010-02-02 04:55:18 +08:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-03-11 23:47:24 +08:00
|
|
|
GIMP_CURSOR_FORMAT_BITMAP, /*< desc="Black & white" >*/
|
|
|
|
GIMP_CURSOR_FORMAT_PIXBUF /*< desc="Fancy" >*/
|
|
|
|
} GimpCursorFormat;
|
2010-02-02 04:55:18 +08:00
|
|
|
|
|
|
|
|
2017-03-11 23:47:24 +08:00
|
|
|
#define GIMP_TYPE_CURSOR_MODE (gimp_cursor_mode_get_type ())
|
2010-02-02 04:55:18 +08:00
|
|
|
|
2017-03-11 23:47:24 +08:00
|
|
|
GType gimp_cursor_mode_get_type (void) G_GNUC_CONST;
|
2010-02-02 04:55:18 +08:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-03-11 23:47:24 +08:00
|
|
|
GIMP_CURSOR_MODE_TOOL_ICON, /*< desc="Tool icon" >*/
|
|
|
|
GIMP_CURSOR_MODE_TOOL_CROSSHAIR, /*< desc="Tool icon with crosshair" >*/
|
2021-08-08 22:01:38 +08:00
|
|
|
GIMP_CURSOR_MODE_CROSSHAIR, /*< desc="Crosshair only" >*/
|
2017-03-11 23:47:24 +08:00
|
|
|
} GimpCursorMode;
|
|
|
|
|
|
|
|
|
2018-12-06 02:59:19 +08:00
|
|
|
#define GIMP_TYPE_EXPORT_FILE_TYPE (gimp_export_file_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_export_file_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_EXPORT_FILE_PNG, /*< desc="PNG Image" >*/
|
|
|
|
GIMP_EXPORT_FILE_JPG, /*< desc="JPEG Image" >*/
|
|
|
|
GIMP_EXPORT_FILE_ORA, /*< desc="OpenRaster Image" >*/
|
|
|
|
GIMP_EXPORT_FILE_PSD, /*< desc="Photoshop Image" >*/
|
|
|
|
GIMP_EXPORT_FILE_PDF, /*< desc="Portable Document Format" >*/
|
|
|
|
GIMP_EXPORT_FILE_TIF, /*< desc="TIFF Image" >*/
|
|
|
|
GIMP_EXPORT_FILE_BMP, /*< desc="Windows BMP Image" >*/
|
|
|
|
GIMP_EXPORT_FILE_WEBP, /*< desc="WebP Image" >*/
|
|
|
|
} GimpExportFileType;
|
|
|
|
|
|
|
|
|
2017-03-11 23:47:24 +08:00
|
|
|
#define GIMP_TYPE_HANDEDNESS (gimp_handedness_get_type ())
|
|
|
|
|
|
|
|
GType gimp_handedness_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_HANDEDNESS_LEFT, /*< desc="Left-handed" >*/
|
|
|
|
GIMP_HANDEDNESS_RIGHT /*< desc="Right-handed" >*/
|
|
|
|
} GimpHandedness;
|
2010-02-02 04:55:18 +08:00
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_HELP_BROWSER_TYPE (gimp_help_browser_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_help_browser_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_HELP_BROWSER_GIMP, /*< desc="GIMP help browser" >*/
|
|
|
|
GIMP_HELP_BROWSER_WEB_BROWSER /*< desc="Web browser" >*/
|
|
|
|
} GimpHelpBrowserType;
|
|
|
|
|
|
|
|
|
Issue #7023: icon size selection on GIMP 2.99.
This kinda reverts commit 6aebd30de142286c41e6cd90abedc4082a13fcea ("app: remove
icon sizing preferences"), except that the code base is different enough since
this old commit was mainly for GIMP 2.10.x.
In any case, after initially thinking that GTK+3 handling for high density
display would be enough, we finally decide that adding back a Preferences-wide
setting for overriding the theme-set icon size is a good idea (additionally to
GTK+3 automatic support).
The base idea for removing the feature was that GTK+3 has high density display
support, through the "scale factor". Typically a high density display will
normally be set as using a ×2 scale factor so all icons will be double size.
Unfortunately it turns out it's not enough.
For instance, on very small screen estate, even with a scale factor of 1, if the
theme sets 24px toolbox icons, it may still take too much space.
Oppositely on huge screens, even with ×2 factor scale detected by the OS, the
icons may still feel too small (this is possibly what happens with #7023).
Furthermore there is also a matter of taste. Some people like small icons even
when they have the space. Others may want bigger icons, easy to click on.
Finally you can like a theme for its color scheme for instance, but it may not
have the icon size you want. Right now, we'd need to duplicate every theme in
small or bigger size. Instead of doing so, let's just have this global setting
overriding the theme rules.
Comparison with the 2.10 implementation:
- We still provide 4 sizes: small, medium, large and huge.
- We don't have the "Guess ideal size" setting anymore. Instead this is now a
mix of the GTK+3 scale factor logic and the theme-set or custom size. I.e.
that on a high density display with ×2 scale factor, we could have toolbox
icons up to 96 pixels (48×2)!
- We now try to have less custom code in widgets as we append the CSS rules to
the theme (similar to what we were already doing for dark theme or icon
variants). What happens in widget code is mostly to connect to changes in
themes and redraw the widgets which need to be.
- The custom size will now affect: toolbox icons, the FG/BG editor widget (in
both the toolbox and the color dockable), dockable tab icons, the main
dockable buttons, eye and lock header icons in item tree views, eye and lock
cell icons in the item lists.
There are still a bunch of areas where it is not taken into account, such as
plug-ins, and various dialogs, but even in custom-made interface in dockables.
Ultimately it might be interesting to have a way to sync more buttons and
widgets to a global size settings.
Lastly, I fixed a bunch of existing bugs where we were updating icon sizes with
gtk_image_set_from_icon_name() using the const icon name taken from
gtk_image_get_icon_name(). As this was reusing the same string pointer, we were
ending with freeing the icon name.
2022-09-27 04:56:08 +08:00
|
|
|
#define GIMP_TYPE_ICON_SIZE (gimp_icon_size_get_type ())
|
|
|
|
|
|
|
|
GType gimp_icon_size_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_ICON_SIZE_SMALL, /*< desc="Small size" > */
|
|
|
|
GIMP_ICON_SIZE_MEDIUM, /*< desc="Medium size" > */
|
|
|
|
GIMP_ICON_SIZE_LARGE, /*< desc="Large size" > */
|
|
|
|
GIMP_ICON_SIZE_HUGE /*< desc="Huge size" > */
|
|
|
|
} GimpIconSize;
|
|
|
|
|
|
|
|
|
2017-03-11 23:47:24 +08:00
|
|
|
#define GIMP_TYPE_POSITION (gimp_position_get_type ())
|
2010-02-02 04:55:18 +08:00
|
|
|
|
2017-03-11 23:47:24 +08:00
|
|
|
GType gimp_position_get_type (void) G_GNUC_CONST;
|
2010-02-02 04:55:18 +08:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-03-11 23:47:24 +08:00
|
|
|
GIMP_POSITION_TOP, /*< desc="Top" >*/
|
|
|
|
GIMP_POSITION_BOTTOM, /*< desc="Bottom" >*/
|
|
|
|
GIMP_POSITION_LEFT, /*< desc="Left" >*/
|
|
|
|
GIMP_POSITION_RIGHT /*< desc="Right" >*/
|
|
|
|
} GimpPosition;
|
2010-02-02 04:55:18 +08:00
|
|
|
|
2022-04-05 05:08:14 +08:00
|
|
|
#define GIMP_TYPE_DRAG_ZOOM_MODE (gimp_drag_zoom_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_drag_zoom_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
PROP_DRAG_ZOOM_MODE_DISTANCE, /*< desc="By distance" >*/
|
|
|
|
PROP_DRAG_ZOOM_MODE_DURATION, /*< desc="By duration" >*/
|
|
|
|
} GimpDragZoomMode;
|
2010-02-02 04:55:18 +08:00
|
|
|
|
2017-03-11 23:47:24 +08:00
|
|
|
#define GIMP_TYPE_SPACE_BAR_ACTION (gimp_space_bar_action_get_type ())
|
2011-07-25 04:09:21 +08:00
|
|
|
|
2017-03-11 23:47:24 +08:00
|
|
|
GType gimp_space_bar_action_get_type (void) G_GNUC_CONST;
|
2011-07-25 04:09:21 +08:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-03-11 23:47:24 +08:00
|
|
|
GIMP_SPACE_BAR_ACTION_NONE, /*< desc="No action" >*/
|
|
|
|
GIMP_SPACE_BAR_ACTION_PAN, /*< desc="Pan view" >*/
|
|
|
|
GIMP_SPACE_BAR_ACTION_MOVE /*< desc="Switch to Move tool" >*/
|
|
|
|
} GimpSpaceBarAction;
|
2011-07-25 04:09:21 +08:00
|
|
|
|
2013-09-15 18:56:17 +08:00
|
|
|
|
2017-03-11 23:47:24 +08:00
|
|
|
#define GIMP_TYPE_WINDOW_HINT (gimp_window_hint_get_type ())
|
|
|
|
|
|
|
|
GType gimp_window_hint_get_type (void) G_GNUC_CONST;
|
2013-09-15 18:56:17 +08:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-03-11 23:47:24 +08:00
|
|
|
GIMP_WINDOW_HINT_NORMAL, /*< desc="Normal window" >*/
|
|
|
|
GIMP_WINDOW_HINT_UTILITY, /*< desc="Utility window" >*/
|
|
|
|
GIMP_WINDOW_HINT_KEEP_ABOVE /*< desc="Keep above" >*/
|
|
|
|
} GimpWindowHint;
|
2011-07-25 04:09:21 +08:00
|
|
|
|
2016-01-07 12:09:01 +08:00
|
|
|
|
2017-03-11 23:47:24 +08:00
|
|
|
#define GIMP_TYPE_ZOOM_QUALITY (gimp_zoom_quality_get_type ())
|
|
|
|
|
|
|
|
GType gimp_zoom_quality_get_type (void) G_GNUC_CONST;
|
2016-01-07 12:09:01 +08:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-03-11 23:47:24 +08:00
|
|
|
GIMP_ZOOM_QUALITY_LOW, /*< desc="Low" >*/
|
|
|
|
GIMP_ZOOM_QUALITY_HIGH /*< desc="High" >*/
|
|
|
|
} GimpZoomQuality;
|
|
|
|
|
2016-01-07 12:09:01 +08:00
|
|
|
|
2010-02-02 04:55:18 +08:00
|
|
|
#endif /* __CONFIG_ENUMS_H__ */
|