mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00

… class GimpSaveProcedureDialog. The idea is that we have basically the same code in most file format plug-ins to handle various generic metadata, yet usually with slight differences here and there. Even behavior is sometimes a bit different even though there is no reason for the logics to be different from one format to another. So I move the metadata support logics into GimpSaveProcedure (and GimpProcedureConfig still keeps the main export logics). The GUI logics is now in a new GimpSaveProcedureDialog. So export plug-ins will now get the creation of generic metadata nearly for free. All they have to do is to tell what kind of metadata the GimpSaveProcedure supports with the gimp_save_procedure_set_support_*() functions. Then consistency will apply: - If a format supports a given metadata, they will always have an auxiliary argument with the same name across plug-ins. - The label and tooltips will also be always the same in the GUI. - Order of metadata widgets will also stay consistent. - The widgets will work the same (no more "Comment" text view missing in one plug-in but present in another, or with an entry here, and a text view there, and so on). Also adding gimp_save_procedure_dialog_add_metadata() to allow plug-ins to "declare" one of their options as a metadata option, and therefore have it packed within the "Metadata" block which is now created (for instance for PNG/TIFF/JPEG specific metadata). This allows a nicer organization of dialogs.
70 lines
2.2 KiB
C
70 lines
2.2 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
*
|
|
* This library is free software: you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 3 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see
|
|
* <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __GIMP_UI_H__
|
|
#define __GIMP_UI_H__
|
|
|
|
#include <gio/gio.h>
|
|
#include <gtk/gtk.h>
|
|
#include <libgimp/gimp.h>
|
|
|
|
#include <libgimpwidgets/gimpwidgets.h>
|
|
|
|
#define __GIMP_UI_H_INSIDE__
|
|
|
|
#include <libgimp/gimpuitypes.h>
|
|
|
|
#include <libgimp/gimpaspectpreview.h>
|
|
#include <libgimp/gimpbrushselectbutton.h>
|
|
#include <libgimp/gimpdrawablepreview.h>
|
|
#include <libgimp/gimpexport.h>
|
|
#include <libgimp/gimpfontselectbutton.h>
|
|
#include <libgimp/gimpgradientselectbutton.h>
|
|
#include <libgimp/gimpimagecombobox.h>
|
|
#include <libgimp/gimpitemcombobox.h>
|
|
#include <libgimp/gimppaletteselectbutton.h>
|
|
#include <libgimp/gimppatternselectbutton.h>
|
|
#include <libgimp/gimpprocbrowserdialog.h>
|
|
#include <libgimp/gimpproceduredialog.h>
|
|
#include <libgimp/gimpprocview.h>
|
|
#include <libgimp/gimpprogressbar.h>
|
|
#include <libgimp/gimpsaveproceduredialog.h>
|
|
#include <libgimp/gimpselectbutton.h>
|
|
#include <libgimp/gimpzoompreview.h>
|
|
|
|
#undef __GIMP_UI_H_INSIDE__
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
void gimp_ui_init (const gchar *prog_name);
|
|
|
|
GdkWindow * gimp_ui_get_progress_window (void);
|
|
|
|
void gimp_window_set_transient (GtkWindow *window);
|
|
|
|
GdkWindow * gimp_ui_get_display_window (GimpDisplay *display);
|
|
void gimp_window_set_transient_for_display (GtkWindow *window,
|
|
GimpDisplay *display);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GIMP_UI_H__ */
|