Commit e8bc4d3f authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

plug-ins/dbbrowser/plugin-browser.c removed these files...

2005-08-06  Manish Singh  <yosh@gimp.org>

        * plug-ins/dbbrowser/plugin-browser.c
        * plug-ins/dbbrowser/procedure-browser.c: removed these files...

        * plug-ins/common/plugin-browser.c
        * plug-ins/common/procedure-browser.c: ...and added them here.

        * plug-ins/common/mkgen.pl: transform - to _ in makefile variable
        names, and attach optional CFLAGS to only the plugins that need
        them.

        * plug-ins/common/plugin-defs.pl: added plugin-browser and
        procedure-browser, and changed poppler, svg, and wmf to use the new
        CFLAGS stuff.

        * plug-ins/common/.cvsignore
        * plug-ins/common/Makefile.am: regenerated.

        * configure.in: remove plug-ins/dbbrowser reference.
parent 46bc22c7
2005-08-06 Manish Singh <yosh@gimp.org>
* plug-ins/dbbrowser/plugin-browser.c
* plug-ins/dbbrowser/procedure-browser.c: removed these files...
* plug-ins/common/plugin-browser.c
* plug-ins/common/procedure-browser.c: ...and added them here.
* plug-ins/common/mkgen.pl: transform - to _ in makefile variable
names, and attach optional CFLAGS to only the plugins that need
them.
* plug-ins/common/plugin-defs.pl: added plugin-browser and
procedure-browser, and changed poppler, svg, and wmf to use the new
CFLAGS stuff.
* plug-ins/common/.cvsignore
* plug-ins/common/Makefile.am: regenerated.
* configure.in: remove plug-ins/dbbrowser reference.
2005-08-06 Sven Neumann <sven@gimp.org>
* app/base/siox.[ch]: reordered parameters to match the order of
......
......@@ -1678,7 +1678,6 @@ app/vectors/Makefile
app/widgets/Makefile
app/xcf/Makefile
plug-ins/Makefile
plug-ins/dbbrowser/Makefile
plug-ins/script-fu/Makefile
plug-ins/script-fu/siod/Makefile
plug-ins/script-fu/scripts/Makefile
......
......@@ -88,11 +88,13 @@ photocopy
pix
pixelize
plasma
plugin-browser
png
pnm
polar
poppler
postscript
procedure-browser
psd
psd_save
psp
......
......@@ -31,10 +31,6 @@ EXTRA_DIST = \
INCLUDES = \
-I$(top_srcdir) \
$(GTK_CFLAGS) \
$(EXIF_CFLAGS) \
$(POPPLER_CFLAGS) \
$(SVG_CFLAGS) \
$(WMF_CFLAGS) \
-I$(includedir)
libexec_PROGRAMS = \
......@@ -124,11 +120,13 @@ libexec_PROGRAMS = \
pix \
pixelize \
plasma \
plugin-browser \
$(PNG) \
pnm \
polar \
$(POPPLER) \
postscript \
procedure-browser \
psd \
psd_save \
$(PSP) \
......@@ -1457,6 +1455,21 @@ plasma_LDADD = \
$(RT_LIBS) \
$(INTLLIBS)
plugin_browser_SOURCES = \
plugin-browser.c
plugin_browser_LDADD = \
$(libgimpui) \
$(libgimpconfig) \
$(libgimpwidgets) \
$(libgimp) \
$(libgimpcolor) \
$(libgimpmath) \
$(libgimpbase) \
$(GTK_LIBS) \
$(RT_LIBS) \
$(INTLLIBS)
png_SOURCES = \
png.c
......@@ -1503,6 +1516,8 @@ polar_LDADD = \
$(RT_LIBS) \
$(INTLLIBS)
poppler_CFLAGS = $(POPPLER_CFLAGS)
poppler_SOURCES = \
poppler.c
......@@ -1534,6 +1549,21 @@ postscript_LDADD = \
$(RT_LIBS) \
$(INTLLIBS)
procedure_browser_SOURCES = \
procedure-browser.c
procedure_browser_LDADD = \
$(libgimpui) \
$(libgimpconfig) \
$(libgimpwidgets) \
$(libgimp) \
$(libgimpcolor) \
$(libgimpmath) \
$(libgimpbase) \
$(GTK_LIBS) \
$(RT_LIBS) \
$(INTLLIBS)
psd_SOURCES = \
psd.c
......@@ -1899,6 +1929,8 @@ sunras_LDADD = \
$(RT_LIBS) \
$(INTLLIBS)
svg_CFLAGS = $(SVG_CFLAGS)
svg_SOURCES = \
svg.c
......@@ -2160,6 +2192,8 @@ winprint_LDADD = \
$(RT_LIBS) \
$(INTLLIBS)
wmf_CFLAGS = $(WMF_CFLAGS)
wmf_SOURCES = \
wmf.c
......
......@@ -71,10 +71,6 @@ EXTRA_DIST = \\
INCLUDES = \\
-I\$(top_srcdir) \\
\$(GTK_CFLAGS) \\
\$(EXIF_CFLAGS) \\
\$(POPPLER_CFLAGS) \\
\$(SVG_CFLAGS) \\
\$(WMF_CFLAGS) \\
-I\$(includedir)
libexec_PROGRAMS = \\
......@@ -104,6 +100,9 @@ Makefile.in
EOT
foreach (sort keys %plugins) {
my $makename = $_;
$makename =~ s/-/_/g;
my $libgimp = "";
if (exists $plugins{$_}->{ui}) {
......@@ -124,6 +123,16 @@ foreach (sort keys %plugins) {
if (exists $plugins{$_}->{optional}) {
my $name = exists $plugins{$_}->{libopt} ? $plugins{$_}->{libopt} : $_;
$optlib = "\n\t\$(LIB\U$name\E)\t\t\\";
if (exists $plugins{$_}->{cflags}) {
my $cflags = $plugins{$_}->{cflags};
my $optflags = $cflags =~ /FLAGS/ ? $cflags : "\U$_\E_CFLAGS";
print MK <<EOT;
${makename}_CFLAGS = \$($optflags)
EOT
}
}
my $deplib = "\$(RT_LIBS)\t\t\\\n\t\$(INTLLIBS)";
......@@ -136,10 +145,10 @@ foreach (sort keys %plugins) {
print MK <<EOT;
${_}_SOURCES = \\
${makename}_SOURCES = \\
$_.c
${_}_LDADD = \\
${makename}_LDADD = \\
$libgimp \\$optlib
$deplib
EOT
......
......@@ -85,11 +85,13 @@
'pix' => { libdep => 'gtk', ui => 1 },
'pixelize' => { libdep => 'gtk', ui => 1 },
'plasma' => { libdep => 'gtk', ui => 1 },
'plugin-browser' => { libdep => 'gtk', ui => 1 },
'png' => { libdep => 'gtk', ui => 1, optional => 1 },
'pnm' => { libdep => 'gtk', ui => 1 },
'polar' => { libdep => 'gtk', ui => 1 },
'poppler' => { libdep => 'gtk', ui => 1, optional => 1 },
'poppler' => { libdep => 'gtk', ui => 1, optional => 1, cflags => 1 },
'postscript' => { libdep => 'gtk', ui => 1 },
'procedure-browser' => { libdep => 'gtk', ui => 1 },
'psd' => { libdep => 'glib' },
'psd_save' => { libdep => 'gtk', ui => 1 },
'psp' => { libdep => 'gtk', ui => 1, optional => 1, libopt => 'z' },
......@@ -115,7 +117,7 @@
'spread' => { libdep => 'gtk', ui => 1 },
'struc' => { libdep => 'gtk', ui => 1 },
'sunras' => { libdep => 'gtk', ui => 1 },
'svg' => { libdep => 'gtk', ui => 1, optional => 1 },
'svg' => { libdep => 'gtk', ui => 1, optional => 1, cflags => 1 },
'tga' => { libdep => 'gtk', ui => 1 },
'threshold_alpha' => { libdep => 'gtk', ui => 1 },
'tiff' => { libdep => 'gtk', ui => 1, optional => 1 },
......@@ -133,7 +135,7 @@
'whirlpinch' => { libdep => 'gtk', ui => 1 },
'wind' => { libdep => 'gtk', ui => 1 },
'winprint' => { libdep => 'glib', ui => 1, optional => 1 },
'wmf' => { libdep => 'gtk', ui => 1, optional => 1 },
'wmf' => { libdep => 'gtk', ui => 1, optional => 1, cflags => 1 },
'xbm' => { libdep => 'gtk', ui => 1 },
'xpm' => { libdep => 'gtk', ui => 1, optional => 1 },
'xwd' => { libdep => 'gtk', ui => 1 },
......
Makefile.in
Makefile
.deps
_libs
.libs
plugin-browser
procedure-browser
## Process this file with automake to produce Makefile.in
libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la
if OS_WIN32
mwindows = -mwindows
endif
AM_LDFLAGS = $(mwindows)
libexecdir = $(gimpplugindir)/plug-ins
libexec_PROGRAMS = plugin-browser procedure-browser
plugin_browser_SOURCES = \
plugin-browser.c
procedure_browser_SOURCES = \
procedure-browser.c
EXTRA_DIST = README
INCLUDES = \
-I$(top_srcdir) \
$(GTK_CFLAGS) \
-I$(includedir)
LDADD = \
$(libgimpui) \
$(libgimpwidgets) \
$(libgimpconfig) \
$(libgimp) \
$(libgimpcolor) \
$(libgimpmath) \
$(libgimpbase) \
$(GTK_LIBS) \
$(RT_LIBS) \
$(INTLLIBS)
Well, this README is hopelessly outdated, we'll leave it in for laughs.
-Yosh
dbbrowser: a development tool for the GIMP
version 0.08 - 26th sept 1997
Programming by Thomas Noel <thomas@minet.net> (mail to him only, please)
Documentation and insane comments by Olivier Tharan <olive@minet.net>
Wise Comments And Good Laughs (TM) by Olivier Fontenelle <fonto@minet.net>
INSTALL, BUGS, TODO, CHANGELOG : see below
The actual and original README (c) Olivier Tharan (he's a friend of mine, yep)
Let me introduce myself...
--------------------------
My name is dbbrowser, but I have been known in my youth as dblist, almost as
of version 0.05! I am an extension for the Gimp and my purpose is to display a
list of all the procedures that have registered themselves in the procedure
database. The main thing I do is a gimp_query_procedure and a pair of
gimp_query_database.
What can this marvel do ?
-------------------------
The dbbrowser window is divided into two parts. On the left, you have a
scrolling list containing the names of all the procedures registered within
Gimp. When you click on one of them, its name, description and author(s) are
displayed on the right side, altogether with the types and parameters the
procedure takes and what it returns.
All this is rather brilliantly completed by two search buttons, one for a
by-name search, the other one for a by-blurb search. Just enter any regexp you
have in mind in the text widget beneath the list and click on the appropriate
button; the results of the search are automagically displayed in the scrolling
list.
Even fancier: script-fu-console integration
-------------------------------------------
dbbrowser comes handy with a patch for script-fu-console.c which adds a button
named ``Browse'' to the right of the console text widget. Clicking on the
button launches dbbrowser from which you still can choose any procedure. But
in the dbbrowser window, a fourth button has appeared, appropriately named
``Apply'', for its goal is to take the selected procedure and its arguments,
and insert them into the script-fu console command line. It would save
developers a great deal of pain to debug their scripts (or even to develop
some!)
More information : http://www.minet.net/~thomas/dbbrowser/
----------------
(the following had been written by me, so, it's not *really* in english :)
INSTALL
These files go to gimp-xx.xx.xx/plug-ins/dbbrowser. That does not
erase the files "Makefile*", so the plug-in is easy to re-compile : just
do a "make" in this directory. Then, "make install" (as root)
to install the plug-in.
If it breaks, wait for GIMP 1.0 :) (or mail to <thomas@minet.net>)
BUGS/TODO
- refresh problem for the scrolled list (as in gtkfileselection)
- add the "help" field (I wait for a "usable" gtk_text)
- arg... well... my english is too bad to explain my others ideas :)
CHANGELOG
26 Sept : 0.08
* delete all "gtk_widget_hide/destroy" sequences.
* change the internal list structure (use gtk_objet_get/set_user_data)
* try to optimize the first drawing (is it a success ?)
25 June : 0.07
* first public release (0.07)
--
Bon c'est pas tout ca les gars, mais j'ai mal a la tete, personne n'a
une aspirine ? Non ? Bon.
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.
*/
/*
* dbbrowser
* 0.08 26th sept 97 by Thomas NOEL <thomas@minet.net>
*/
/*
* This plugin gives you the list of available procedure, with the
* name, description and parameters for each procedure.
* You can do regexp search (by name and by description)
* Useful for scripts development.
*
* NOTE :
* this is only a exercice for me (my first "plug-in" (extension))
* so it's very (very) dirty.
* Btw, hope it gives you some ideas about gimp possibilities.
*
* The core of the plugin is not here. See dbbrowser_utils (shared
* with script-fu-console).
*
* TODO
* - bug fixes... (my method : rewrite from scratch :)
*/
#include "config.h"
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "libgimp/stdplugins-intl.h"
static void query (void);
static void run (const gchar *name,
gint nparams,
const GimpParam *param,
gint *nreturn_vals,
GimpParam **return_vals);
GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
query, /* query_proc */
run, /* run_proc */
};
MAIN ()
static void
query (void)
{
static GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run_mode", "Interactive, [non-interactive]" }
};
gimp_install_procedure ("plug_in_db_browser",
"List available procedures in the PDB",
"",
"Thomas Noel",
"Thomas Noel",
"23th june 1997",
N_("Procedure _Browser"),
"",
GIMP_PLUGIN,
G_N_ELEMENTS (args), 0,
args, NULL);
gimp_plugin_menu_register ("plug_in_db_browser", "<Toolbox>/Xtns/Extensions");
}
static void
run (const gchar *name,
gint nparams,
const GimpParam *param,
gint *nreturn_vals,
GimpParam **return_vals)
{
static GimpParam values[1];
GimpRunMode run_mode;
run_mode = param[0].data.d_int32;
*nreturn_vals = 1;
*return_vals = values;
values[0].type = GIMP_PDB_STATUS;
values[0].data.d_status = GIMP_PDB_SUCCESS;
INIT_I18N ();
switch (run_mode)
{
case GIMP_RUN_INTERACTIVE:
{
GtkWidget *dialog;
gimp_ui_init ("dbbrowser", FALSE);
dialog = gimp_proc_browser_dialog_new ();
gtk_dialog_add_button (GTK_DIALOG (dialog),
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
}
break;
case GIMP_RUN_WITH_LAST_VALS:
case GIMP_RUN_NONINTERACTIVE:
g_warning ("dbbrowser allows only interactive invocation");
values[0].data.d_status = GIMP_PDB_CALLING_ERROR;
break;
default:
break;
}
}
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