2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
1999-04-22 22:34:00 +08:00
|
|
|
* Copyright (C) 1995-1999 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
1999-04-22 22:34:00 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
1999-04-22 22:34:00 +08: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-12 05:27:07 +08:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
1999-04-22 22:34:00 +08:00
|
|
|
*/
|
2001-01-22 12:17:17 +08:00
|
|
|
|
2003-06-30 04:40:45 +08:00
|
|
|
#include "config.h"
|
1999-04-22 22:34:00 +08:00
|
|
|
|
2012-03-30 01:19:01 +08:00
|
|
|
#include <gegl.h>
|
2003-06-30 04:40:45 +08:00
|
|
|
#include <gtk/gtk.h>
|
2001-01-22 12:17:17 +08:00
|
|
|
|
2011-09-30 17:29:11 +08:00
|
|
|
#include "libgimpwidgets/gimpwidgets.h"
|
|
|
|
|
2003-06-30 04:40:45 +08:00
|
|
|
#include "tools-types.h"
|
2003-03-26 05:14:48 +08:00
|
|
|
|
2003-06-30 04:40:45 +08:00
|
|
|
#include "core/gimptooloptions.h"
|
2003-03-26 05:14:48 +08:00
|
|
|
|
2003-06-30 04:40:45 +08:00
|
|
|
#include "gimptooloptions-gui.h"
|
1999-04-22 22:34:00 +08:00
|
|
|
|
2018-09-27 14:31:39 +08:00
|
|
|
#include "gimp-intl.h"
|
|
|
|
|
2004-10-11 21:27:42 +08:00
|
|
|
|
|
|
|
/* public functions */
|
1999-04-22 22:34:00 +08:00
|
|
|
|
2003-06-30 04:40:45 +08:00
|
|
|
GtkWidget *
|
|
|
|
gimp_tool_options_gui (GimpToolOptions *tool_options)
|
|
|
|
{
|
|
|
|
GtkWidget *vbox;
|
|
|
|
|
|
|
|
g_return_val_if_fail (GIMP_IS_TOOL_OPTIONS (tool_options), NULL);
|
|
|
|
|
2011-09-30 17:29:11 +08:00
|
|
|
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
|
2003-06-30 04:40:45 +08:00
|
|
|
|
|
|
|
return vbox;
|
|
|
|
}
|
2018-09-27 14:31:39 +08:00
|
|
|
|
|
|
|
GtkWidget *
|
|
|
|
gimp_tool_options_empty_gui (GimpToolOptions *tool_options)
|
|
|
|
{
|
|
|
|
GtkWidget *vbox = gimp_tool_options_gui (tool_options);
|
|
|
|
GtkWidget *label;
|
|
|
|
|
|
|
|
label = gtk_label_new (_("This tool has\nno options."));
|
|
|
|
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_CENTER);
|
|
|
|
gimp_label_set_attributes (GTK_LABEL (label),
|
|
|
|
PANGO_ATTR_STYLE, PANGO_STYLE_ITALIC,
|
|
|
|
-1);
|
|
|
|
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 6);
|
|
|
|
gtk_widget_show (label);
|
|
|
|
|
|
|
|
return vbox;
|
|
|
|
}
|