Commit 3239f670 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

removed the GUI code... Also did some minor cleanups.

2004-08-31  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.[ch]: removed the GUI code...
	Also did some minor cleanups.

	* plug-ins/script-fu/script-fu-interface.[ch]: ...and added it here.

	* plug-ins/script-fu/script-fu-types.h: new file keeping the
	various struct defs needed by both the above files.

	* plug-ins/script-fu/Makefile.am
	* plug-ins/script-fu/siod-wrapper.c: changed accordingly.
parent 79da6a97
2004-08-31 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-scripts.[ch]: removed the GUI code...
Also did some minor cleanups.
* plug-ins/script-fu/script-fu-interface.[ch]: ...and added it here.
* plug-ins/script-fu/script-fu-types.h: new file keeping the
various struct defs needed by both the above files.
* plug-ins/script-fu/Makefile.am
* plug-ins/script-fu/siod-wrapper.c: changed accordingly.
2004-08-31 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimppreview.c (gimp_preview_toggle_callback):
......
......@@ -22,6 +22,8 @@ script_fu_SOURCES = \
script-fu.c \
script-fu-console.c \
script-fu-console.h \
script-fu-interface.c \
script-fu-interface.h \
script-fu-text-console.h \
script-fu-text-console.c \
script-fu-constants.c \
......@@ -31,6 +33,7 @@ script_fu_SOURCES = \
script-fu-scripts.h \
script-fu-server.c \
script-fu-server.h \
script-fu-types.h \
script-fu-enums.h \
siod-wrapper.c \
siod-wrapper.h
......
......@@ -20,15 +20,17 @@
#include <string.h> /* memcpy, strcpy, strlen */
#include <glib.h>
#include <gtk/gtk.h>
#include "libgimp/gimp.h"
#include "siod/siod.h"
#include "script-fu-types.h"
#include "script-fu-constants.h"
#include "script-fu-console.h"
#include "script-fu-enums.h"
#include "script-fu-interface.h"
#include "script-fu-scripts.h"
#include "script-fu-server.h"
......@@ -480,7 +482,7 @@ marshall_proc_db_call (LISP a)
proc_name = get_c_string (a);
/* report the current command */
script_fu_report_cc (proc_name);
script_fu_interface_report_cc (proc_name);
/* Attempt to fetch the procedure from the database */
if (! gimp_procedural_db_proc_info (proc_name,
......
This diff is collapsed.
/* The GIMP -- an image manipulation program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (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
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __SCRIPT_FU_INTERFACE_H__
#define __SCRIPT_FU_INTERFACE_H__
void script_fu_interface (SFScript *script);
void script_fu_interface_report_cc (gchar *command);
#endif /* __SCRIPT_FU_INTERFACE_H__ */
This diff is collapsed.
......@@ -19,10 +19,10 @@
#ifndef __SCRIPT_FU_SCRIPTS_H__
#define __SCRIPT_FU_SCRIPTS_H__
#include "script-fu-enums.h"
void script_fu_find_scripts (void);
LISP script_fu_add_script (LISP a);
void script_fu_report_cc (gchar *command);
LISP script_fu_add_script (LISP a);
void script_fu_error_msg (const gchar *command);
#endif /* __SCRIPT_FU_SCRIPTS__ */
/* The GIMP -- an image manipulation program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (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
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __SCRIPT_FU_TYPES_H__
#define __SCRIPT_FU_TYPES_H__
#include "script-fu-enums.h"
typedef struct
{
GtkAdjustment *adj;
gdouble value;
gdouble lower;
gdouble upper;
gdouble step;
gdouble page;
gint digits;
SFAdjustmentType type;
} SFAdjustment;
typedef struct
{
GtkWidget *file_entry;
gchar *filename;
} SFFilename;
typedef struct
{
gchar *name;
gdouble opacity;
gint spacing;
GimpLayerModeEffects paint_mode;
} SFBrush;
typedef struct
{
GSList *list;
guint history;
} SFOption;
typedef union
{
gint32 sfa_image;
gint32 sfa_drawable;
gint32 sfa_layer;
gint32 sfa_channel;
GimpRGB sfa_color;
gint32 sfa_toggle;
gchar *sfa_value;
SFAdjustment sfa_adjustment;
SFFilename sfa_file;
gchar *sfa_font;
gchar *sfa_gradient;
gchar *sfa_palette;
gchar *sfa_pattern;
SFBrush sfa_brush;
SFOption sfa_option;
} SFArgValue;
typedef struct
{
gchar *script_name;
gchar *pdb_name;
gchar *description;
gchar *help;
gchar *author;
gchar *copyright;
gchar *date;
gchar *img_types;
gint num_args;
SFArgType *arg_types;
gchar **arg_labels;
SFArgValue *arg_defaults;
SFArgValue *arg_values;
gboolean image_based;
GimpParamDef *args; /* used only temporary until installed */
} SFScript;
#endif /* __SCRIPT_FU_TYPES__ */
......@@ -20,15 +20,17 @@
#include <string.h> /* memcpy, strcpy, strlen */
#include <glib.h>
#include <gtk/gtk.h>
#include "libgimp/gimp.h"
#include "siod/siod.h"
#include "script-fu-types.h"
#include "script-fu-constants.h"
#include "script-fu-console.h"
#include "script-fu-enums.h"
#include "script-fu-interface.h"
#include "script-fu-scripts.h"
#include "script-fu-server.h"
......@@ -480,7 +482,7 @@ marshall_proc_db_call (LISP a)
proc_name = get_c_string (a);
/* report the current command */
script_fu_report_cc (proc_name);
script_fu_interface_report_cc (proc_name);
/* Attempt to fetch the procedure from the database */
if (! gimp_procedural_db_proc_info (proc_name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment