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
|
|
|
|
* <http://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 */
|
|
|
|
|
|
|
|
|
2001-09-21 18:47:19 +08:00
|
|
|
#define GIMP_TYPE_DIALOG (gimp_dialog_get_type ())
|
|
|
|
#define GIMP_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_DIALOG, GimpDialog))
|
|
|
|
#define GIMP_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_DIALOG, GimpDialogClass))
|
|
|
|
#define GIMP_IS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_DIALOG))
|
|
|
|
#define GIMP_IS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_DIALOG))
|
|
|
|
#define GIMP_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_DIALOG, GimpDialogClass))
|
|
|
|
|
|
|
|
|
2018-05-03 18:51:36 +08:00
|
|
|
typedef struct _GimpDialogPrivate GimpDialogPrivate;
|
|
|
|
typedef struct _GimpDialogClass GimpDialogClass;
|
2001-09-21 18:47:19 +08:00
|
|
|
|
|
|
|
struct _GimpDialog
|
|
|
|
{
|
2018-05-03 18:51:36 +08:00
|
|
|
GtkDialog parent_instance;
|
|
|
|
|
|
|
|
GimpDialogPrivate *priv;
|
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
|
|
|
GType gimp_dialog_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
2004-10-05 00:21:52 +08:00
|
|
|
/* for internal use only! */
|
|
|
|
void gimp_dialogs_show_help_button (gboolean show);
|
|
|
|
|
2000-05-31 07:38:46 +08:00
|
|
|
|
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__ */
|