mirror of https://github.com/GNOME/gimp.git
parent
2ad8a17e7e
commit
13edd85145
13
ChangeLog
13
ChangeLog
|
@ -1,3 +1,16 @@
|
|||
Sun Jan 9 18:15:44 CET 2000 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/colortoalpha.c
|
||||
* plug-ins/common/gtm.c
|
||||
* plug-ins/common/nova.c
|
||||
* plug-ins/common/papertile.c
|
||||
* plug-ins/common/screenshot.c
|
||||
* plug-ins/common/xbm.c
|
||||
* plug-ins/helpbrowser/helpbrowser.c
|
||||
* plug-ins/ifscompose/ifscompose.c
|
||||
* plug-ins/script-fu/script-fu.c
|
||||
* plug-ins/sinus/sinus.c: i18n fixes
|
||||
|
||||
Sun Jan 9 14:48:21 CET 2000 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/gdisplay.c
|
||||
|
|
|
@ -109,6 +109,8 @@ query ()
|
|||
static int nargs = sizeof (args) / sizeof (args[0]);
|
||||
static int nreturn_vals = 0;
|
||||
|
||||
INIT_I18N();
|
||||
|
||||
gimp_install_procedure ("plug_in_colortoalpha",
|
||||
_("Convert the color in an image to alpha"),
|
||||
_("This replaces as much of a given color as possible in each pixel with a corresponding amount of alpha, then readjusts the color accordingly."),
|
||||
|
|
|
@ -163,7 +163,7 @@ query ()
|
|||
nsave_args, 0,
|
||||
save_args, NULL);
|
||||
|
||||
gimp_register_save_handler ("file_GTM_save", "htm,html", "");
|
||||
gimp_register_save_handler ("file_GTM_save", "html,htm", "");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -92,18 +92,18 @@ static char rcsid[] = "$Id$";
|
|||
static void dummy_printf( char *fmt, ... ) {}
|
||||
#endif
|
||||
|
||||
#define ENTRY_WIDTH 40
|
||||
#define SCALE_WIDTH 125
|
||||
#define PREVIEW_SIZE 100
|
||||
#define ENTRY_WIDTH 40
|
||||
#define SCALE_WIDTH 125
|
||||
#define PREVIEW_SIZE 100
|
||||
#define TILE_CACHE_SIZE 16
|
||||
|
||||
#define PREVIEW 0x1
|
||||
#define CURSOR 0x2
|
||||
#define ALL 0xf
|
||||
|
||||
#define PREVIEW_MASK GDK_EXPOSURE_MASK | \
|
||||
#define PREVIEW_MASK ( GDK_EXPOSURE_MASK | \
|
||||
GDK_BUTTON_PRESS_MASK | \
|
||||
GDK_BUTTON1_MOTION_MASK
|
||||
GDK_BUTTON1_MOTION_MASK )
|
||||
|
||||
typedef struct {
|
||||
gint xcenter, ycenter;
|
||||
|
@ -147,50 +147,37 @@ static void run (gchar *name,
|
|||
gint *nreturn_vals,
|
||||
GParam **return_vals);
|
||||
|
||||
static gint nova_dialog ( GDrawable *drawable );
|
||||
static gint nova_dialog (GDrawable *drawable);
|
||||
|
||||
static GtkWidget * nova_center_create ( GDrawable *drawable );
|
||||
static void nova_center_destroy ( GtkWidget *widget,
|
||||
gpointer data );
|
||||
static void nova_center_preview_init ( NovaCenter *center );
|
||||
static void nova_center_draw ( NovaCenter *center, gint update );
|
||||
static void nova_center_entry_update ( GtkWidget *widget,
|
||||
gpointer data );
|
||||
static void nova_center_cursor_update ( NovaCenter *center );
|
||||
static gint nova_center_preview_expose ( GtkWidget *widget,
|
||||
GdkEvent *event );
|
||||
static gint nova_center_preview_events ( GtkWidget *widget,
|
||||
GdkEvent *event );
|
||||
static GtkWidget * nova_center_create (GDrawable *drawable);
|
||||
static void nova_center_destroy (GtkWidget *widget, gpointer data);
|
||||
static void nova_center_preview_init (NovaCenter *center);
|
||||
static void nova_center_draw (NovaCenter *center, gint update);
|
||||
static void nova_center_entry_update (GtkWidget *widget, gpointer data);
|
||||
static void nova_center_cursor_update (NovaCenter *center);
|
||||
static gint nova_center_preview_expose (GtkWidget *widget, GdkEvent *event);
|
||||
static gint nova_center_preview_events (GtkWidget *widget, GdkEvent *event);
|
||||
|
||||
static void nova_int_entryscale_new ( GtkTable *table, gint x, gint y,
|
||||
gchar *caption, gint *intvar,
|
||||
gint min, gint max, gint constraint);
|
||||
static void nova_int_entryscale_new (GtkTable *table, gint x, gint y,
|
||||
gchar *caption, gint *intvar,
|
||||
gint min, gint max, gint constraint);
|
||||
|
||||
static void nova_ok_callback (GtkWidget *widget,
|
||||
gpointer data);
|
||||
static void nova_ok_callback (GtkWidget *widget,
|
||||
gpointer data);
|
||||
static void nova_paired_entry_destroy_callback (GtkWidget *widget,
|
||||
gpointer data);
|
||||
|
||||
static void nova_paired_entry_destroy_callback (GtkWidget *widget,
|
||||
gpointer data);
|
||||
static void nova_paired_int_scale_update (GtkAdjustment *adjustment,
|
||||
gpointer data);
|
||||
static void nova_paired_int_entry_update (GtkWidget *widget,
|
||||
gpointer data );
|
||||
|
||||
static void nova_paired_int_scale_update (GtkAdjustment *adjustment,
|
||||
gpointer data);
|
||||
static void nova_paired_int_entry_update (GtkWidget *widget,
|
||||
gpointer data );
|
||||
static void nova (GDrawable *drawable);
|
||||
|
||||
static void nova (GDrawable *drawable);
|
||||
|
||||
static void rgb_to_hsl (gdouble r,
|
||||
gdouble g,
|
||||
gdouble b,
|
||||
gdouble * h,
|
||||
gdouble * s,
|
||||
gdouble * l);
|
||||
static void hsl_to_rgb (gdouble h,
|
||||
gdouble sl,
|
||||
gdouble l,
|
||||
gdouble * r,
|
||||
gdouble * g,
|
||||
gdouble * b);
|
||||
static void rgb_to_hsl (gdouble r, gdouble g, gdouble b,
|
||||
gdouble *h, gdouble *s, gdouble *l);
|
||||
static void hsl_to_rgb (gdouble h, gdouble s, gdouble l,
|
||||
gdouble *r, gdouble *g, gdouble *b);
|
||||
|
||||
|
||||
GPlugInInfo PLUG_IN_INFO =
|
||||
|
@ -223,20 +210,22 @@ query ()
|
|||
{
|
||||
static GParamDef args[]=
|
||||
{
|
||||
{ PARAM_INT32, "run_mode", "Interactive, non-interactive" },
|
||||
{ PARAM_IMAGE, "image", "Input image (unused)" },
|
||||
{ PARAM_DRAWABLE, "drawable", "Input drawable" },
|
||||
{ PARAM_INT32, "xcenter", "X coordinates of the center of supernova" },
|
||||
{ PARAM_INT32, "ycenter", "Y coordinates of the center of supernova" },
|
||||
{ PARAM_COLOR, "color", "Color of supernova" },
|
||||
{ PARAM_INT32, "radius", "Radius of supernova" },
|
||||
{ PARAM_INT32, "nspoke", "Number of spokes" },
|
||||
{ PARAM_INT32, "randomhue", "Random hue" }
|
||||
{ PARAM_INT32, "run_mode", "Interactive, non-interactive" },
|
||||
{ PARAM_IMAGE, "image", "Input image (unused)" },
|
||||
{ PARAM_DRAWABLE, "drawable", "Input drawable" },
|
||||
{ PARAM_INT32, "xcenter", "X coordinates of the center of supernova" },
|
||||
{ PARAM_INT32, "ycenter", "Y coordinates of the center of supernova" },
|
||||
{ PARAM_COLOR, "color", "Color of supernova" },
|
||||
{ PARAM_INT32, "radius", "Radius of supernova" },
|
||||
{ PARAM_INT32, "nspoke", "Number of spokes" },
|
||||
{ PARAM_INT32, "randomhue", "Random hue" }
|
||||
};
|
||||
static GParamDef *return_vals = NULL;
|
||||
static gint nargs = sizeof (args) / sizeof (args[0]);
|
||||
static gint nreturn_vals = 0;
|
||||
|
||||
INIT_I18N();
|
||||
|
||||
gimp_install_procedure ("plug_in_nova",
|
||||
_("Produce Supernova effect to the specified drawable"),
|
||||
_("This plug-in produces an effect like a supernova burst. The "
|
||||
|
@ -1026,7 +1015,7 @@ nova_paired_int_scale_update (GtkAdjustment *adjustment,
|
|||
static void
|
||||
nova_paired_int_entry_update (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
{
|
||||
NovaEntryScaleData *userdata;
|
||||
GtkAdjustment *adjustment;
|
||||
int new_val, constraint_val;
|
||||
|
@ -1053,9 +1042,8 @@ nova_paired_int_entry_update (GtkWidget *widget,
|
|||
adjustment->value = constraint_val;
|
||||
gtk_signal_handler_block_by_data ( GTK_OBJECT(adjustment), data );
|
||||
gtk_signal_emit_by_name ( GTK_OBJECT(adjustment), "value_changed");
|
||||
gtk_signal_handler_unblock_by_data ( GTK_OBJECT(adjustment), data );
|
||||
|
||||
}
|
||||
gtk_signal_handler_unblock_by_data ( GTK_OBJECT(adjustment), data );
|
||||
}
|
||||
|
||||
/*
|
||||
################################################################
|
||||
|
@ -1064,20 +1052,20 @@ nova_paired_int_entry_update (GtkWidget *widget,
|
|||
## ##
|
||||
################################################################
|
||||
*/
|
||||
|
||||
|
||||
static double gauss()
|
||||
{
|
||||
double sum=0;
|
||||
int i;
|
||||
for(i=0; i<6; i++)
|
||||
sum+=(double)rand()/RAND_MAX;
|
||||
return sum/6;
|
||||
}
|
||||
|
||||
static void
|
||||
nova (GDrawable *drawable)
|
||||
{
|
||||
|
||||
static double
|
||||
gauss (void)
|
||||
{
|
||||
double sum=0;
|
||||
int i;
|
||||
for(i=0; i<6; i++)
|
||||
sum+=(double)rand()/RAND_MAX;
|
||||
return sum/6;
|
||||
}
|
||||
|
||||
static void
|
||||
nova (GDrawable *drawable)
|
||||
{
|
||||
GPixelRgn src_rgn, dest_rgn;
|
||||
gpointer pr;
|
||||
guchar *src_row, *dest_row;
|
||||
|
@ -1224,7 +1212,7 @@ nova_paired_int_entry_update (GtkWidget *widget,
|
|||
|
||||
g_free( spoke );
|
||||
g_free( spokecolor );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* RGB-HSL transforms.
|
||||
|
@ -1236,14 +1224,14 @@ nova_paired_int_entry_update (GtkWidget *widget,
|
|||
* return (h,s,l) on [0 ... 1]
|
||||
*/
|
||||
|
||||
static void
|
||||
rgb_to_hsl (gdouble r,
|
||||
gdouble g,
|
||||
gdouble b,
|
||||
gdouble *h,
|
||||
gdouble *s,
|
||||
gdouble *l)
|
||||
{
|
||||
static void
|
||||
rgb_to_hsl (gdouble r,
|
||||
gdouble g,
|
||||
gdouble b,
|
||||
gdouble *h,
|
||||
gdouble *s,
|
||||
gdouble *l)
|
||||
{
|
||||
gdouble v;
|
||||
gdouble m;
|
||||
gdouble vm;
|
||||
|
@ -1275,21 +1263,21 @@ nova_paired_int_entry_update (GtkWidget *widget,
|
|||
*h = (r == m ? 3.0 + g2 : 5.0 - r2);
|
||||
|
||||
*h /= 6;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* given h,s,l on [0..1],
|
||||
* return r,g,b on [0..1]
|
||||
*/
|
||||
|
||||
static void
|
||||
hsl_to_rgb (gdouble h,
|
||||
gdouble sl,
|
||||
gdouble l,
|
||||
gdouble *r,
|
||||
gdouble *g,
|
||||
gdouble *b)
|
||||
{
|
||||
static void
|
||||
hsl_to_rgb (gdouble h,
|
||||
gdouble sl,
|
||||
gdouble l,
|
||||
gdouble *r,
|
||||
gdouble *g,
|
||||
gdouble *b)
|
||||
{
|
||||
gdouble v;
|
||||
|
||||
v = (l <= 0.5) ? (l * (1.0 + sl)) : (l + sl - l * sl);
|
||||
|
@ -1322,5 +1310,11 @@ nova_paired_int_entry_update (GtkWidget *widget,
|
|||
case 5: *r = v; *g = m; *b = mid2; break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -908,6 +908,8 @@ plugin_query ( void )
|
|||
static gint numof_args = sizeof args / sizeof args[0];
|
||||
static gint numof_return_vals = 0;
|
||||
|
||||
INIT_I18N ();
|
||||
|
||||
gimp_install_procedure
|
||||
( PLUGIN_PROCEDURE_NAME,
|
||||
_("Cuts an image into paper tiles, and slides each paper tile."),
|
||||
|
|
|
@ -127,6 +127,8 @@ static void query (void)
|
|||
static gint nargs = NUMBER_IN_ARGS;
|
||||
static GParamDef return_vals[] = { OUT_ARGS };
|
||||
static gint nreturn_vals = NUMBER_OUT_ARGS;
|
||||
|
||||
INIT_I18N ();
|
||||
|
||||
/* the actual installation of the plugin */
|
||||
gimp_install_procedure (PLUG_IN_NAME,
|
||||
|
@ -182,8 +184,10 @@ run (gchar *name, /* name of plugin */
|
|||
gimp_get_data (PLUG_IN_NAME, &shootvals);
|
||||
shootvals.window_id = NULL;
|
||||
|
||||
/* Get information from the dialog */
|
||||
if (!shoot_dialog())
|
||||
INIT_I18N_UI ();
|
||||
|
||||
/* Get information from the dialog */
|
||||
if (!shoot_dialog ())
|
||||
return;
|
||||
break;
|
||||
|
||||
|
@ -211,9 +215,9 @@ run (gchar *name, /* name of plugin */
|
|||
if (status == STATUS_SUCCESS)
|
||||
{
|
||||
if (shootvals.delay > 0)
|
||||
shoot_delay(shootvals.delay);
|
||||
shoot_delay (shootvals.delay);
|
||||
/* Run the main function */
|
||||
shoot();
|
||||
shoot ();
|
||||
}
|
||||
|
||||
status = (image_ID != -1) ? STATUS_SUCCESS : STATUS_EXECUTION_ERROR;
|
||||
|
|
|
@ -161,6 +161,8 @@ query ()
|
|||
} ;
|
||||
static int nsave_args = sizeof (save_args) / sizeof (save_args[0]);
|
||||
|
||||
INIT_I18N ();
|
||||
|
||||
gimp_install_procedure ("file_xbm_load",
|
||||
_("Load a file in X10 or X11 bitmap (XBM) file format"),
|
||||
_("Load a file in X10 or X11 bitmap (XBM) file format. XBM is a lossless format for flat black-and-white (two color indexed) images."),
|
||||
|
|
|
@ -1120,6 +1120,8 @@ query (void)
|
|||
static GParamDef *return_vals = NULL;
|
||||
static int nreturn_vals = 0;
|
||||
|
||||
INIT_I18N();
|
||||
|
||||
gimp_install_procedure (GIMP_HELP_EXT_NAME,
|
||||
_("Browse the GIMP help pages"),
|
||||
_("A small and simple HTML browser optimzed for "
|
||||
|
@ -1156,6 +1158,8 @@ run (char *name,
|
|||
*nreturn_vals = 1;
|
||||
*return_vals = values;
|
||||
|
||||
INIT_I18N_UI ();
|
||||
|
||||
if (strcmp (name, GIMP_HELP_EXT_NAME) == 0)
|
||||
{
|
||||
switch (run_mode)
|
||||
|
|
|
@ -339,6 +339,8 @@ query ()
|
|||
static int nargs = sizeof (args) / sizeof (args[0]);
|
||||
static int nreturn_vals = 0;
|
||||
|
||||
INIT_I18N ();
|
||||
|
||||
gimp_install_procedure ("plug_in_ifs_compose",
|
||||
_("Create an Iterated Function System Fractal"),
|
||||
_("Interactively create an Iterated Function System fractal."
|
||||
|
|
|
@ -137,6 +137,8 @@ query (void)
|
|||
};
|
||||
static gint nserver_args = sizeof (server_args) / sizeof (server_args[0]);
|
||||
|
||||
INIT_I18N ();
|
||||
|
||||
gimp_install_procedure ("extension_script_fu",
|
||||
_("A scheme interpreter for scripting GIMP operations"),
|
||||
_("More help here later"),
|
||||
|
|
|
@ -164,6 +164,8 @@ static void query ()
|
|||
static gint nargs = sizeof (args) / sizeof (args[0]);
|
||||
static gint nreturn_vals = 0;
|
||||
|
||||
INIT_I18N ();
|
||||
|
||||
gimp_install_procedure ("plug_in_sinus",
|
||||
_("Generates a texture with sinus functions"),
|
||||
"FIX ME: sinus help",
|
||||
|
|
Loading…
Reference in New Issue