2006-12-09 21:33:38 +00:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2001-07-04 19:31:35 +00:00
|
|
|
* Copyright (C) 1995-1997 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-17 22:28:01 +00:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2001-07-04 19:31:35 +00:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-17 22:28:01 +00:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2001-07-04 19:31:35 +00: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
|
2018-07-11 23:27:07 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2001-07-04 19:31:35 +00:00
|
|
|
*/
|
|
|
|
|
2025-07-13 03:15:46 +02:00
|
|
|
#pragma once
|
2001-07-04 19:31:35 +00:00
|
|
|
|
|
|
|
#include "gimpobject.h"
|
2004-07-12 11:41:19 +00:00
|
|
|
#include "gimp-gui.h"
|
2001-07-04 19:31:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_GIMP (gimp_get_type ())
|
Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
2001-07-24 Michael Natterer <mitch@gimp.org>
Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
* configure.in: require glib/gtk+ >= 1.3.7, commented out the
gtkxmhtml stuff.
From now on, you will need glib, pango, atk and gtk+ HEAD from CVS
to hack or use GIMP HEAD.
Beware, it crashes randomly :)
* app/core/Makefile.am
* app/core/gimpmarshal.list: new file plus rules to generate
gimpmarshal.[ch] from it.
* app/core/*
* app/tools/*
* app/widgets/*
* libgimpwidgets/*: started to use the glib object system. All
core/ objects are still gtk objects however. All signals are
created using g_signal_new(). There are many gtk+ artefacts left.
Finally, we will _not_ use the gtk_signal_foo() wrappers and
friends any more.
* app/colormaps.c
* app/devices.[ch]
* app/disp_callbacks.c
* app/errorconsole.c
* app/file-save.[ch]
* app/interface.c
* app/module_db.c
* app/nav_window.c
* app/ops_buttons.c
* app/scroll.c
* app/user_install.c
* app/gui/about-dialog.c
* app/gui/brush-editor.c
* app/gui/brushes-commands.c
* app/gui/color-notebook.c
* app/gui/colormap-dialog.c
* app/gui/dialogs-commands.c
* app/gui/dialogs-constructors.c
* app/gui/file-commands.c
* app/gui/file-dialog-utils.c
* app/gui/file-new-dialog.c
* app/gui/file-open-dialog.[ch]
* app/gui/file-save-dialog.c
* app/gui/gradient-editor.c
* app/gui/gradients-commands.c
* app/gui/image-commands.c
* app/gui/info-dialog.[ch]
* app/gui/layer-select.c
* app/gui/layers-commands.c
* app/gui/menus.c
* app/gui/offset-dialog.c
* app/gui/palette-editor.c
* app/gui/palettes-commands.c
* app/gui/patterns-commands.c
* app/gui/preferences-dialog.c
* app/gui/resize-dialog.[ch]
* app/gui/splash.c
* app/gui/tips-dialog.c
* app/gui/tool-options-dialog.c
* app/gui/toolbox.c
* app/gui/tools-commands.c
* libgimp/gimpbrushmenu.c
* libgimp/gimpmenu.c
* libgimp/gimppatternmenu.c
* libgimp/gimpui.c
* libgimpbase/gimpenv.c: tons and tons of changes like "const
gchar*", switch from GdkDeviceInfo to GdkDevice (very incomplete
and currently disables), lots of s/gtk_signal/g_signal/,
removal/replacement of deprecated stuff,
s/GtkSignalFunc/GCallback/ and lots of small changes and fixes
while I was on it, zillions of warnings left...
* modules/Makefile.am: disabled the water color selector
temporarily (XInput issues).
* plug-ins/Makefile.am
* plug-ins/common/.cvsignore
* plug-ins/common/Makefile.am
* plug-ins/common/plugin-defs.pl: simply excluded all plug-ins
which did not build (including Script-Fu). They are trivial to
fix.
2001-07-24 21:27:11 +00:00
|
|
|
#define GIMP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_GIMP, Gimp))
|
|
|
|
#define GIMP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_GIMP, GimpClass))
|
|
|
|
#define GIMP_IS_GIMP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_GIMP))
|
|
|
|
#define GIMP_IS_GIMP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_GIMP))
|
2001-07-04 19:31:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GimpClass GimpClass;
|
|
|
|
|
|
|
|
struct _Gimp
|
|
|
|
{
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpObject parent_instance;
|
2001-07-05 15:34:26 +00:00
|
|
|
|
2023-01-30 00:02:17 +01:00
|
|
|
GApplication *app;
|
|
|
|
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpCoreConfig *config;
|
|
|
|
GimpCoreConfig *edit_config; /* don't use this one, it's just
|
2003-10-11 14:30:18 +00:00
|
|
|
* for the preferences dialog
|
|
|
|
*/
|
2003-11-13 14:14:20 +00:00
|
|
|
gchar *session_name;
|
2014-07-09 20:12:05 +02:00
|
|
|
GFile *default_folder;
|
2001-07-11 12:39:49 +00:00
|
|
|
|
2003-02-11 01:21:21 +00:00
|
|
|
gboolean be_verbose;
|
|
|
|
gboolean no_data;
|
2003-11-05 00:33:20 +00:00
|
|
|
gboolean no_fonts;
|
2003-02-11 01:21:21 +00:00
|
|
|
gboolean no_interface;
|
2009-09-08 19:26:57 +02:00
|
|
|
gboolean show_gui;
|
2003-02-11 01:21:21 +00:00
|
|
|
gboolean use_shm;
|
2013-06-19 20:42:56 +02:00
|
|
|
gboolean use_cpu_accel;
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpMessageHandlerType message_handler;
|
2003-09-09 10:54:20 +00:00
|
|
|
gboolean console_messages;
|
2014-09-14 01:08:25 +02:00
|
|
|
gboolean show_playground;
|
2018-03-29 05:20:20 -04:00
|
|
|
gboolean show_debug_menu;
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpStackTraceMode stack_trace_mode;
|
2003-12-05 17:08:35 +00:00
|
|
|
GimpPDBCompatMode pdb_compat_mode;
|
2001-10-18 17:27:36 +00:00
|
|
|
|
2008-09-25 08:56:58 +00:00
|
|
|
GimpGui gui; /* gui vtable */
|
|
|
|
|
|
|
|
gboolean restored; /* becomes TRUE in gimp_restore() */
|
app: wait for the software to be fully initialized before processing…
… DBus calls.
In particular, Aryeom would start GIMP and directly double click some
image to be loaded in GIMP in the very short while when splash is
visible. Previous code would wait for the `restored` flag to be TRUE.
This was nearly it as we can actually start loading images as soon as
the 'restore' signal has passed. Yet the flag is set in the main
handler, but we actually also need the <Image> UI manager to exist,
which is created in gui_restore_after_callback() (so also a 'restore'
handler, yet after the main signal handler, i.e. after `restored` is set
to TRUE). Without this, gui_display_create() would fail with a CRITICAL,
hence file_open_with_proc_and_display() as well.
I could have tried to set the `restored` flag later, maybe with some
clever signal handling trick (and handle both the GUI and non-GUI cases,
i.e. I cannot set the flag inside gui_restore_after_callback() as it
would break the non-GUI cases). Instead I go for a simpler logics with a
new `initialized` flag which is only meant to be set once, once
everything has been loaded, i.e. once you can consider GIMP to be fully
running hence ready to process any common runtime command.
2020-11-10 21:40:47 +01:00
|
|
|
gboolean initialized; /* Fully initialized (only set once at start). */
|
2022-07-06 19:33:00 +02:00
|
|
|
gboolean query_all; /* Force query all plug-ins. */
|
removed the gimp_busy boolean, check whether user_installation is needed
2001-07-10 Michael Natterer <mitch@gimp.org>
* app/app_procs.[ch]: removed the gimp_busy boolean, check whether
user_installation is needed here, not in user_install.c, parse
gtkrc an friends only if(!no_interface), create the Gimp object
before parsing gimp's rc files an pas it to the parse functions,
many other cleanups.
* app/appenums.h: added MessageHandlerType and StackTraceMode.
* app/appenv.h: removed MessageHandlerType, declare all global
variables from main.c (no more hidden global stuff please).
* app/errors.[ch]: added the fatal message func here (from main.c),
removed the StackTraceMode enum.
* app/gimprc.[ch]: renamed functions to gimprc_*(), pass a Gimp
pointer to some functions.
* app/gimpunit.c
* app/unitrc.h: ok, this is ugly: renamed all functions to
_gimp_unit_*() and made them public. The unit list is part
of the Gimp object now, so pass a Gimp* to all functions.
* app/libgimp_glue.[ch]: added EEKy wrappers for all gimp_unit_*()
functions which are used by widgets.
* app/main.c: cleaned up the global variables, removed the fatal
message handler, call app_init() directly, not via the
user_install stuff, misc. cleanups.
* app/user_install.[ch]: removed the check if user_installation is
needed (done by app_procs.c now).
* app/core/gimp.[ch]: added the user_unit list and the "busy"
boolean. Moved gimp_[set|unset]_busy() here. Added
gimp_initialize() which is called after unitrc and gimprc are
parsed.
* app/batch.c
* app/colormaps.c
* app/devices.c
* app/disp_callbacks.c
* app/gdisplay_ops.c
* app/gimphelp.c
* app/module_db.c
* app/nav_window.c
* app/plug_in.c
* app/core/gimpcontext.c
* app/core/gimpdatafiles.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage.c
* app/core/gimpparasite.c
* app/core/gimpparasitelist.h
* app/gui/file-open-dialog.c
* app/gui/gui.[ch]
* app/gui/info-dialog.c
* app/gui/info-window.c
* app/gui/preferences-dialog.c
* app/gui/session.c
* app/gui/tips-dialog.c
* app/gui/toolbox.c
* app/tools/gimpblendtool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpcolorpickertool.c
* app/tools/gimpfuzzyselecttool.c
* app/tools/gimptransformtool.c
* app/tools/tool_manager.c
* app/widgets/gimpcolorpanel.c
* app/widgets/gimpcursor.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c
* app/xcf/xcf.c
* tools/pdbgen/Makefile.am
* tools/pdbgen/app.pl
* tools/pdbgen/enums.pl
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/message.pdb
* tools/pdbgen/pdb/unit.pdb
* app/pdb/image_cmds.c
* app/pdb/message_cmds.c
* app/pdb/unit_cmds.c: changed accordingly, minor cleanups.
2001-07-10 19:16:16 +00:00
|
|
|
|
2003-02-11 01:21:21 +00:00
|
|
|
gint busy;
|
|
|
|
guint busy_idle_id;
|
removed the gimp_busy boolean, check whether user_installation is needed
2001-07-10 Michael Natterer <mitch@gimp.org>
* app/app_procs.[ch]: removed the gimp_busy boolean, check whether
user_installation is needed here, not in user_install.c, parse
gtkrc an friends only if(!no_interface), create the Gimp object
before parsing gimp's rc files an pas it to the parse functions,
many other cleanups.
* app/appenums.h: added MessageHandlerType and StackTraceMode.
* app/appenv.h: removed MessageHandlerType, declare all global
variables from main.c (no more hidden global stuff please).
* app/errors.[ch]: added the fatal message func here (from main.c),
removed the StackTraceMode enum.
* app/gimprc.[ch]: renamed functions to gimprc_*(), pass a Gimp
pointer to some functions.
* app/gimpunit.c
* app/unitrc.h: ok, this is ugly: renamed all functions to
_gimp_unit_*() and made them public. The unit list is part
of the Gimp object now, so pass a Gimp* to all functions.
* app/libgimp_glue.[ch]: added EEKy wrappers for all gimp_unit_*()
functions which are used by widgets.
* app/main.c: cleaned up the global variables, removed the fatal
message handler, call app_init() directly, not via the
user_install stuff, misc. cleanups.
* app/user_install.[ch]: removed the check if user_installation is
needed (done by app_procs.c now).
* app/core/gimp.[ch]: added the user_unit list and the "busy"
boolean. Moved gimp_[set|unset]_busy() here. Added
gimp_initialize() which is called after unitrc and gimprc are
parsed.
* app/batch.c
* app/colormaps.c
* app/devices.c
* app/disp_callbacks.c
* app/gdisplay_ops.c
* app/gimphelp.c
* app/module_db.c
* app/nav_window.c
* app/plug_in.c
* app/core/gimpcontext.c
* app/core/gimpdatafiles.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage.c
* app/core/gimpparasite.c
* app/core/gimpparasitelist.h
* app/gui/file-open-dialog.c
* app/gui/gui.[ch]
* app/gui/info-dialog.c
* app/gui/info-window.c
* app/gui/preferences-dialog.c
* app/gui/session.c
* app/gui/tips-dialog.c
* app/gui/toolbox.c
* app/tools/gimpblendtool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpcolorpickertool.c
* app/tools/gimpfuzzyselecttool.c
* app/tools/gimptransformtool.c
* app/tools/tool_manager.c
* app/widgets/gimpcolorpanel.c
* app/widgets/gimpcursor.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c
* app/xcf/xcf.c
* tools/pdbgen/Makefile.am
* tools/pdbgen/app.pl
* tools/pdbgen/enums.pl
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/message.pdb
* tools/pdbgen/pdb/unit.pdb
* app/pdb/image_cmds.c
* app/pdb/message_cmds.c
* app/pdb/unit_cmds.c: changed accordingly, minor cleanups.
2001-07-10 19:16:16 +00:00
|
|
|
|
2003-02-11 01:21:21 +00:00
|
|
|
GList *user_units;
|
2001-07-04 19:31:35 +00:00
|
|
|
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpParasiteList *parasites;
|
2001-07-11 12:39:49 +00:00
|
|
|
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpContainer *paint_info_list;
|
2005-12-27 18:57:01 +00:00
|
|
|
GimpPaintInfo *standard_paint_info;
|
2002-02-27 13:57:49 +00:00
|
|
|
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpModuleDB *module_db;
|
|
|
|
gboolean write_modulerc;
|
2001-10-18 17:27:36 +00:00
|
|
|
|
2018-07-01 09:10:54 +02:00
|
|
|
GimpExtensionManager *extension_manager;
|
2006-04-28 22:26:51 +00:00
|
|
|
GimpPlugInManager *plug_in_manager;
|
2001-07-11 12:39:49 +00:00
|
|
|
|
2015-12-30 11:53:52 +01:00
|
|
|
GList *filter_history;
|
|
|
|
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpContainer *images;
|
2019-08-23 22:23:23 +02:00
|
|
|
guint32 next_guide_id;
|
|
|
|
guint32 next_sample_point_id;
|
2011-05-04 22:14:13 +02:00
|
|
|
GimpIdTable *image_table;
|
|
|
|
GimpIdTable *item_table;
|
2024-11-25 02:48:41 +09:00
|
|
|
GimpIdTable *drawable_filter_table;
|
2002-05-08 17:48:24 +00:00
|
|
|
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpContainer *displays;
|
2019-08-23 22:23:23 +02:00
|
|
|
gint next_display_id;
|
2001-07-04 19:31:35 +00:00
|
|
|
|
2009-10-04 02:01:53 +02:00
|
|
|
GList *image_windows;
|
|
|
|
|
2025-07-08 12:30:53 +02:00
|
|
|
GObject *controller_manager;
|
|
|
|
|
2016-09-19 20:13:39 +02:00
|
|
|
GimpImage *clipboard_image;
|
2016-09-17 17:39:54 +02:00
|
|
|
GimpBuffer *clipboard_buffer;
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpContainer *named_buffers;
|
2003-03-25 22:06:03 +00:00
|
|
|
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpDataFactory *brush_factory;
|
2009-08-17 23:47:26 -03:00
|
|
|
GimpDataFactory *dynamics_factory;
|
2015-12-20 23:48:40 +01:00
|
|
|
GimpDataFactory *mybrush_factory;
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpDataFactory *pattern_factory;
|
|
|
|
GimpDataFactory *gradient_factory;
|
|
|
|
GimpDataFactory *palette_factory;
|
2018-06-02 23:19:51 +02:00
|
|
|
GimpDataFactory *font_factory;
|
2010-04-03 18:25:31 +03:00
|
|
|
GimpDataFactory *tool_preset_factory;
|
2003-09-10 22:06:45 +00:00
|
|
|
|
2008-12-20 14:46:54 +00:00
|
|
|
GimpTagCache *tag_cache;
|
|
|
|
|
2006-04-26 09:13:47 +00:00
|
|
|
GimpPDB *pdb;
|
2001-07-04 19:31:35 +00:00
|
|
|
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpContainer *tool_info_list;
|
|
|
|
GimpToolInfo *standard_tool_info;
|
2003-09-10 22:06:45 +00:00
|
|
|
|
app: add support for tool groups in toolrc
Add a new Gimp::tool_item_list list, in addition to
Gimp::tool_info_list. The latter may contain arbitrary tool items,
including tool groups, and is intended for use in the UI (namely,
the toolbox and the preferences tool editor).
In gimp-tools, use Gimp::tool_item_list for representing the UI
tool order (while still using Gimp::tool_info_list as a flat list
of all GimpToolInfo objects), and add support for saving and
loading tool groups to/from toolrc.
Introduce file-version tracking in toolrc, and drop its contents on
version mismatch, or when new tools are introduced. This is
slightly disruptive, but merging new changes with existing toolrc
files is non-trivial, and it doesn't happen very often.
Add support for a sysconf toolrc file, which is used if there's no
user toolrc file (i.e., on first use). If neither file is found,
the hard-coded flat tool order is used. This commit doesn't
provide a default toolrc file, but the next commits will.
Make the gimp-tools serialization and deserialization functions
public, for use in GimpToolEditor in the next commits.
2020-01-29 21:02:00 +02:00
|
|
|
GimpContainer *tool_item_list;
|
2020-02-01 13:05:49 +02:00
|
|
|
GimpContainer *tool_item_ui_list;
|
app: add support for tool groups in toolrc
Add a new Gimp::tool_item_list list, in addition to
Gimp::tool_info_list. The latter may contain arbitrary tool items,
including tool groups, and is intended for use in the UI (namely,
the toolbox and the preferences tool editor).
In gimp-tools, use Gimp::tool_item_list for representing the UI
tool order (while still using Gimp::tool_info_list as a flat list
of all GimpToolInfo objects), and add support for saving and
loading tool groups to/from toolrc.
Introduce file-version tracking in toolrc, and drop its contents on
version mismatch, or when new tools are introduced. This is
slightly disruptive, but merging new changes with existing toolrc
files is non-trivial, and it doesn't happen very often.
Add support for a sysconf toolrc file, which is used if there's no
user toolrc file (i.e., on first use). If neither file is found,
the hard-coded flat tool order is used. This commit doesn't
provide a default toolrc file, but the next commits will.
Make the gimp-tools serialization and deserialization functions
public, for use in GimpToolEditor in the next commits.
2020-01-29 21:02:00 +02:00
|
|
|
|
2001-08-10 14:41:39 +00:00
|
|
|
/* the opened and saved images in MRU order */
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpContainer *documents;
|
2001-08-10 14:41:39 +00:00
|
|
|
|
2001-07-09 17:58:56 +00:00
|
|
|
/* image_new values */
|
2003-04-03 17:50:56 +00:00
|
|
|
GimpContainer *templates;
|
|
|
|
GimpTemplate *image_new_last_template;
|
2001-07-07 12:17:23 +00:00
|
|
|
|
|
|
|
/* the list of all contexts */
|
2003-02-11 01:21:21 +00:00
|
|
|
GList *context_list;
|
2001-07-07 12:17:23 +00:00
|
|
|
|
|
|
|
/* the default context which is initialized from gimprc */
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpContext *default_context;
|
2001-07-07 12:17:23 +00:00
|
|
|
|
|
|
|
/* the context used by the interface */
|
2003-02-11 01:21:21 +00:00
|
|
|
GimpContext *user_context;
|
2001-07-04 19:31:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GimpClass
|
|
|
|
{
|
|
|
|
GimpObjectClass parent_class;
|
2002-12-05 15:49:59 +00:00
|
|
|
|
2015-12-30 11:53:52 +01:00
|
|
|
void (* initialize) (Gimp *gimp,
|
|
|
|
GimpInitStatusFunc status_callback);
|
|
|
|
void (* restore) (Gimp *gimp,
|
|
|
|
GimpInitStatusFunc status_callback);
|
|
|
|
gboolean (* exit) (Gimp *gimp,
|
|
|
|
gboolean force);
|
|
|
|
|
2016-09-17 17:39:54 +02:00
|
|
|
void (* clipboard_changed) (Gimp *gimp);
|
2004-02-19 12:49:15 +00:00
|
|
|
|
2015-12-30 11:53:52 +01:00
|
|
|
void (* filter_history_changed) (Gimp *gimp);
|
2008-10-17 12:03:08 +00:00
|
|
|
|
|
|
|
/* emitted if an image is loaded and opened with a display */
|
2015-12-30 11:53:52 +01:00
|
|
|
void (* image_opened) (Gimp *gimp,
|
|
|
|
GFile *file);
|
2001-07-04 19:31:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2015-12-30 11:53:52 +01:00
|
|
|
GType gimp_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
Gimp * gimp_new (const gchar *name,
|
|
|
|
const gchar *session_name,
|
|
|
|
GFile *default_folder,
|
|
|
|
gboolean be_verbose,
|
|
|
|
gboolean no_data,
|
|
|
|
gboolean no_fonts,
|
|
|
|
gboolean no_interface,
|
|
|
|
gboolean use_shm,
|
|
|
|
gboolean use_cpu_accel,
|
|
|
|
gboolean console_messages,
|
|
|
|
gboolean show_playground,
|
2018-03-29 05:20:20 -04:00
|
|
|
gboolean show_debug_menu,
|
2015-12-30 11:53:52 +01:00
|
|
|
GimpStackTraceMode stack_trace_mode,
|
|
|
|
GimpPDBCompatMode pdb_compat_mode);
|
|
|
|
void gimp_set_show_gui (Gimp *gimp,
|
|
|
|
gboolean show_gui);
|
|
|
|
gboolean gimp_get_show_gui (Gimp *gimp);
|
|
|
|
|
|
|
|
void gimp_load_config (Gimp *gimp,
|
|
|
|
GFile *alternate_system_gimprc,
|
|
|
|
GFile *alternate_gimprc);
|
|
|
|
void gimp_initialize (Gimp *gimp,
|
|
|
|
GimpInitStatusFunc status_callback);
|
|
|
|
void gimp_restore (Gimp *gimp,
|
2018-05-01 02:54:36 +02:00
|
|
|
GimpInitStatusFunc status_callback,
|
|
|
|
GError **error);
|
2015-12-30 11:53:52 +01:00
|
|
|
gboolean gimp_is_restored (Gimp *gimp);
|
|
|
|
|
|
|
|
void gimp_exit (Gimp *gimp,
|
|
|
|
gboolean force);
|
|
|
|
|
|
|
|
GList * gimp_get_image_iter (Gimp *gimp);
|
|
|
|
GList * gimp_get_display_iter (Gimp *gimp);
|
|
|
|
GList * gimp_get_image_windows (Gimp *gimp);
|
|
|
|
GList * gimp_get_paint_info_iter (Gimp *gimp);
|
|
|
|
GList * gimp_get_tool_info_iter (Gimp *gimp);
|
app: add support for tool groups in toolrc
Add a new Gimp::tool_item_list list, in addition to
Gimp::tool_info_list. The latter may contain arbitrary tool items,
including tool groups, and is intended for use in the UI (namely,
the toolbox and the preferences tool editor).
In gimp-tools, use Gimp::tool_item_list for representing the UI
tool order (while still using Gimp::tool_info_list as a flat list
of all GimpToolInfo objects), and add support for saving and
loading tool groups to/from toolrc.
Introduce file-version tracking in toolrc, and drop its contents on
version mismatch, or when new tools are introduced. This is
slightly disruptive, but merging new changes with existing toolrc
files is non-trivial, and it doesn't happen very often.
Add support for a sysconf toolrc file, which is used if there's no
user toolrc file (i.e., on first use). If neither file is found,
the hard-coded flat tool order is used. This commit doesn't
provide a default toolrc file, but the next commits will.
Make the gimp-tools serialization and deserialization functions
public, for use in GimpToolEditor in the next commits.
2020-01-29 21:02:00 +02:00
|
|
|
GList * gimp_get_tool_item_iter (Gimp *gimp);
|
2020-02-01 13:05:49 +02:00
|
|
|
GList * gimp_get_tool_item_ui_iter (Gimp *gimp);
|
2015-12-30 11:53:52 +01:00
|
|
|
|
2016-09-21 00:11:15 +02:00
|
|
|
GimpObject * gimp_get_clipboard_object (Gimp *gimp);
|
|
|
|
|
2016-09-19 20:13:39 +02:00
|
|
|
void gimp_set_clipboard_image (Gimp *gimp,
|
|
|
|
GimpImage *image);
|
|
|
|
GimpImage * gimp_get_clipboard_image (Gimp *gimp);
|
|
|
|
|
2016-09-17 17:39:54 +02:00
|
|
|
void gimp_set_clipboard_buffer (Gimp *gimp,
|
2015-12-30 11:53:52 +01:00
|
|
|
GimpBuffer *buffer);
|
2016-09-17 17:39:54 +02:00
|
|
|
GimpBuffer * gimp_get_clipboard_buffer (Gimp *gimp);
|
2015-12-30 11:53:52 +01:00
|
|
|
|
|
|
|
GimpImage * gimp_create_image (Gimp *gimp,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
|
|
|
GimpImageBaseType type,
|
|
|
|
GimpPrecision precision,
|
|
|
|
gboolean attach_comment);
|
|
|
|
|
|
|
|
void gimp_set_default_context (Gimp *gimp,
|
|
|
|
GimpContext *context);
|
|
|
|
GimpContext * gimp_get_default_context (Gimp *gimp);
|
|
|
|
|
|
|
|
void gimp_set_user_context (Gimp *gimp,
|
|
|
|
GimpContext *context);
|
|
|
|
GimpContext * gimp_get_user_context (Gimp *gimp);
|
|
|
|
|
|
|
|
GimpToolInfo * gimp_get_tool_info (Gimp *gimp,
|
|
|
|
const gchar *tool_name);
|
|
|
|
|
2025-07-05 12:42:14 +02:00
|
|
|
void gimp_set_last_template (Gimp *gimp,
|
|
|
|
GimpTemplate *_template);
|
|
|
|
GimpTemplate * gimp_get_last_template (Gimp *gimp);
|
|
|
|
|
2015-12-30 11:53:52 +01:00
|
|
|
void gimp_message (Gimp *gimp,
|
|
|
|
GObject *handler,
|
|
|
|
GimpMessageSeverity severity,
|
|
|
|
const gchar *format,
|
|
|
|
...) G_GNUC_PRINTF (4, 5);
|
|
|
|
void gimp_message_valist (Gimp *gimp,
|
|
|
|
GObject *handler,
|
|
|
|
GimpMessageSeverity severity,
|
|
|
|
const gchar *format,
|
|
|
|
va_list args) G_GNUC_PRINTF (4, 0);
|
|
|
|
void gimp_message_literal (Gimp *gimp,
|
|
|
|
GObject *handler,
|
|
|
|
GimpMessageSeverity severity,
|
|
|
|
const gchar *message);
|
|
|
|
|
|
|
|
void gimp_filter_history_changed (Gimp *gimp);
|
|
|
|
|
|
|
|
void gimp_image_opened (Gimp *gimp,
|
|
|
|
GFile *file);
|
|
|
|
|
|
|
|
GFile * gimp_get_temp_file (Gimp *gimp,
|
|
|
|
const gchar *extension);
|
2025-08-15 01:57:59 +02:00
|
|
|
|
|
|
|
GimpDataFactory *
|
|
|
|
gimp_get_data_factory (Gimp *gimp,
|
|
|
|
GType data_type);
|