2000-02-26 11:41:06 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
2000-01-05 23:47:06 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* gimpdialog.h
|
2003-11-06 23:27:05 +08:00
|
|
|
* Copyright (C) 2000-2003 Michael Natterer <mitch@gimp.org>
|
2000-01-05 23:47:06 +08:00
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2000-01-05 23:47:06 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2000-02-26 11:41:06 +08:00
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2003-11-06 23:27:05 +08:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2000-01-05 23:47:06 +08:00
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
2018-07-12 05:27:07 +08:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
2000-01-05 23:47:06 +08:00
|
|
|
*/
|
2000-05-31 07:38:46 +08:00
|
|
|
|
2011-04-28 20:30:41 +08:00
|
|
|
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
|
|
|
|
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2000-01-05 23:47:06 +08:00
|
|
|
#ifndef __GIMP_DIALOG_H__
|
|
|
|
#define __GIMP_DIALOG_H__
|
|
|
|
|
2001-11-23 07:46:13 +08:00
|
|
|
G_BEGIN_DECLS
|
2000-02-26 11:41:06 +08:00
|
|
|
|
2000-05-31 07:38:46 +08:00
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
|
|
|
2024-07-13 17:36:05 +08:00
|
|
|
#define GIMP_TYPE_DIALOG (gimp_dialog_get_type ())
|
|
|
|
G_DECLARE_DERIVABLE_TYPE (GimpDialog, gimp_dialog, GIMP, DIALOG, GtkDialog)
|
2001-09-21 18:47:19 +08:00
|
|
|
|
|
|
|
struct _GimpDialogClass
|
|
|
|
{
|
|
|
|
GtkDialogClass parent_class;
|
2004-01-29 08:21:33 +08:00
|
|
|
|
|
|
|
/* Padding for future expansion */
|
|
|
|
void (* _gimp_reserved1) (void);
|
|
|
|
void (* _gimp_reserved2) (void);
|
|
|
|
void (* _gimp_reserved3) (void);
|
|
|
|
void (* _gimp_reserved4) (void);
|
2018-05-03 18:51:36 +08:00
|
|
|
void (* _gimp_reserved5) (void);
|
|
|
|
void (* _gimp_reserved6) (void);
|
|
|
|
void (* _gimp_reserved7) (void);
|
|
|
|
void (* _gimp_reserved8) (void);
|
2001-09-21 18:47:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2003-11-06 23:27:05 +08:00
|
|
|
GtkWidget * gimp_dialog_new (const gchar *title,
|
|
|
|
const gchar *role,
|
|
|
|
GtkWidget *parent,
|
|
|
|
GtkDialogFlags flags,
|
|
|
|
GimpHelpFunc help_func,
|
|
|
|
const gchar *help_id,
|
2005-09-28 01:11:01 +08:00
|
|
|
...) G_GNUC_NULL_TERMINATED;
|
2003-11-06 23:27:05 +08:00
|
|
|
|
|
|
|
GtkWidget * gimp_dialog_new_valist (const gchar *title,
|
|
|
|
const gchar *role,
|
|
|
|
GtkWidget *parent,
|
|
|
|
GtkDialogFlags flags,
|
|
|
|
GimpHelpFunc help_func,
|
|
|
|
const gchar *help_id,
|
|
|
|
va_list args);
|
|
|
|
|
2006-07-20 05:41:46 +08:00
|
|
|
GtkWidget * gimp_dialog_add_button (GimpDialog *dialog,
|
|
|
|
const gchar *button_text,
|
|
|
|
gint response_id);
|
|
|
|
void gimp_dialog_add_buttons (GimpDialog *dialog,
|
|
|
|
...) G_GNUC_NULL_TERMINATED;
|
2003-11-06 23:27:05 +08:00
|
|
|
void gimp_dialog_add_buttons_valist (GimpDialog *dialog,
|
|
|
|
va_list args);
|
2000-01-05 23:47:06 +08:00
|
|
|
|
2003-11-12 02:11:56 +08:00
|
|
|
gint gimp_dialog_run (GimpDialog *dialog);
|
|
|
|
|
2019-07-30 19:54:29 +08:00
|
|
|
void gimp_dialog_set_alternative_button_order_from_array
|
|
|
|
(GimpDialog *dialog,
|
|
|
|
gint n_buttons,
|
|
|
|
gint *order);
|
|
|
|
|
2023-08-15 06:09:08 +08:00
|
|
|
GBytes * gimp_dialog_get_native_handle (GimpDialog *dialog);
|
|
|
|
|
2004-10-05 00:21:52 +08:00
|
|
|
/* for internal use only! */
|
|
|
|
void gimp_dialogs_show_help_button (gboolean show);
|
|
|
|
|
2019-07-30 19:54:29 +08:00
|
|
|
/* gimp_dialog_set_alternative_button_order() doesn't need a dedicated
|
|
|
|
* wrapper function because anyway it won't be introspectable.
|
|
|
|
* GObject-Introspection bindings will have to use
|
|
|
|
* gimp_dialog_set_alternative_button_order_from_array().
|
2018-05-10 23:01:58 +08:00
|
|
|
*/
|
|
|
|
#define gimp_dialog_set_alternative_button_order(d,f...) \
|
|
|
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS; \
|
|
|
|
gtk_dialog_set_alternative_button_order(d,f); \
|
|
|
|
G_GNUC_END_IGNORE_DEPRECATIONS;
|
|
|
|
|
|
|
|
|
2001-11-23 07:46:13 +08:00
|
|
|
G_END_DECLS
|
2000-02-26 11:41:06 +08:00
|
|
|
|
2000-01-05 23:47:06 +08:00
|
|
|
#endif /* __GIMP_DIALOG_H__ */
|