1
/* The GIMP -- an image manipulation program
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
#ifndef __INFO_DIALOG_H__
20
#define __INFO_DIALOG_H__
32
typedef struct _InfoField InfoField;
36
InfoFieldType field_type;
42
gpointer callback_data;
49
GtkWidget *info_table;
50
GtkWidget *info_notebook;
58
/* Info Dialog functions */
60
InfoDialog *info_dialog_new (GimpViewable *viewable,
63
const gchar *stock_id,
66
GimpHelpFunc help_func,
68
InfoDialog *info_dialog_notebook_new (GimpViewable *viewable,
71
const gchar *stock_id,
74
GimpHelpFunc help_func,
76
void info_dialog_free (InfoDialog *idialog);
78
void info_dialog_show (InfoDialog *idialog);
79
void info_dialog_present (InfoDialog *idialog);
80
void info_dialog_hide (InfoDialog *idialog);
82
void info_dialog_update (InfoDialog *idialog);
84
GtkWidget *info_dialog_add_label (InfoDialog *idialog,
88
GtkWidget *info_dialog_add_entry (InfoDialog *idialog,
92
gpointer callback_data);
94
GtkWidget *info_dialog_add_scale (InfoDialog *idialog,
99
gfloat step_increment,
100
gfloat page_increment,
104
gpointer callback_data);
106
GtkWidget *info_dialog_add_spinbutton (InfoDialog *idialog,
111
gfloat step_increment,
112
gfloat page_increment,
117
gpointer callback_data);
119
GtkWidget *info_dialog_add_sizeentry (InfoDialog *idialog,
125
gboolean menu_show_pixels,
126
gboolean menu_show_percent,
127
gboolean show_refval,
128
GimpSizeEntryUpdatePolicy update_policy,
130
gpointer callback_data);
132
#endif /* __INFO_DIALOG_H__ */