Commit d7704172 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

plug-ins/common/aa.c plug-ins/common/gbr.c plug-ins/common/gih.c

2004-05-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/aa.c
	* plug-ins/common/gbr.c
	* plug-ins/common/gih.c
	* plug-ins/common/gtm.c
	* plug-ins/common/header.c
	* plug-ins/common/pat.c
	* plug-ins/common/pnm.c
	* plug-ins/common/psp.c
	* plug-ins/fits/fits.c
	* plug-ins/gfli/gfli.c: register a mimetype, set a translatable
	action name (mostly taken from shared-mime-info) and register to
	the <Load> and <Save> menus using gimp_plugin_menu_register().
parent 97fe81b4
2004-05-14 Sven Neumann <sven@gimp.org>
* plug-ins/common/aa.c
* plug-ins/common/gbr.c
* plug-ins/common/gih.c
* plug-ins/common/gtm.c
* plug-ins/common/header.c
* plug-ins/common/pat.c
* plug-ins/common/pnm.c
* plug-ins/common/psp.c
* plug-ins/fits/fits.c
* plug-ins/gfli/gfli.c: register a mimetype, set a translatable
action name (mostly taken from shared-mime-info) and register to
the <Load> and <Save> menus using gimp_plugin_menu_register().
2004-05-14 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/fileops.pdb: added new PDB function
......
......@@ -97,14 +97,16 @@ query (void)
"Tim Newsome <nuisance@cmu.edu>",
"Tim Newsome <nuisance@cmu.edu>",
"1997",
"<Save>/AA",
N_("ASCII art"),
"RGB*, GRAY*",
GIMP_PLUGIN,
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_aa_save", "<Save>");
gimp_register_file_handler_mime ("file_aa_save", "text/plain");
gimp_register_save_handler ("file_aa_save",
"ansi,txt,text",
"txt,ansi,text",
"");
}
......
......@@ -127,32 +127,37 @@ query (void)
"Tim Newsome, Jens Lautenbacher, Sven Neumann",
"Tim Newsome, Jens Lautenbacher, Sven Neumann",
"1997-2000",
"<Load>/GBR",
N_("GIMP brush"),
NULL,
GIMP_PLUGIN,
G_N_ELEMENTS (load_args),
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_gbr_load", "<Load>");
gimp_register_file_handler_mime ("file_gbr_load", "image/x-gimp-gbr");
gimp_register_magic_load_handler ("file_gbr_load",
"gbr, gpb",
"",
"20, string, GIMP");
gimp_install_procedure ("file_gbr_save",
"saves files in the .gbr file format",
"Yeah!",
"Tim Newsome, Jens Lautenbacher, Sven Neumann",
"Tim Newsome, Jens Lautenbacher, Sven Neumann",
"1997-2000",
"<Save>/GBR",
N_("GIMP brush"),
"RGBA, GRAY",
GIMP_PLUGIN,
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_register_magic_load_handler ("file_gbr_load",
"gbr, gpb",
"",
"20, string, GIMP");
gimp_register_save_handler ("file_gbr_save",
"gbr",
"");
gimp_plugin_menu_register ("file_gbr_save", "<Save>");
gimp_register_file_handler_mime ("file_gbr_save", "image/x-gimp-gbr");
gimp_register_save_handler ("file_gbr_save",
"gbr",
"");
}
static void
......
......@@ -186,17 +186,6 @@ query (void)
{ GIMP_PDB_IMAGE, "image", "Output image" }
};
gimp_install_procedure ("file_gih_save",
"saves images in GIMP brush pipe format",
"This plug-in saves an image in the GIMP brush pipe format. The image must have an alpha chnannel and can be multi-layered, and additionally the layers can be divided into a rectangular array of brushes.",
"Tor Lillqvist",
"Tor Lillqvist",
"1999",
"<Save>/GIH",
"RGBA, GRAYA",
GIMP_PLUGIN,
G_N_ELEMENTS (gih_save_args), 0,
gih_save_args, NULL);
gimp_install_procedure ("file_gih_load",
"loads images in GIMP brush pipe format",
......@@ -204,20 +193,37 @@ query (void)
"Jens Lautenbacher, Sven Neumann",
"Jens Lautenbacher, Sven Neumann",
"2000",
"<Load>/GIH",
N_("GIMP brush (animated)"),
NULL,
GIMP_PLUGIN,
G_N_ELEMENTS (gih_load_args),
G_N_ELEMENTS (gih_load_return_vals),
gih_load_args, gih_load_return_vals);
gimp_register_save_handler ("file_gih_save",
"gih",
"");
gimp_plugin_menu_register ("file_gih_load", "<Load>");
gimp_register_file_handler_mime ("file_gih_load", "image/x-gimp-gih");
gimp_register_magic_load_handler ("file_gih_load",
"gih",
"",
"");
gimp_install_procedure ("file_gih_save",
"saves images in GIMP brush pipe format",
"This plug-in saves an image in the GIMP brush pipe format. The image must have an alpha chnannel and can be multi-layered, and additionally the layers can be divided into a rectangular array of brushes.",
"Tor Lillqvist",
"Tor Lillqvist",
"1999",
N_("GIMP brush (animated)"),
"RGBA, GRAYA",
GIMP_PLUGIN,
G_N_ELEMENTS (gih_save_args), 0,
gih_save_args, NULL);
gimp_plugin_menu_register ("file_gih_save", "<Save>");
gimp_register_file_handler_mime ("file_gih_save", "image/x-gimp-gih");
gimp_register_save_handler ("file_gih_save",
"gih",
"");
}
static void
......
......@@ -151,12 +151,14 @@ query (void)
"Daniel Dunbar",
"Daniel Dunbar",
"1998",
"<Save>/HTML",
_("HTML table"),
"RGB*, GRAY*",
GIMP_PLUGIN,
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_gtm_save", "<Save>");
gimp_register_file_handler_mime ("file_gtm_save", "text/html");
gimp_register_save_handler ("file_gtm_save",
"html,htm",
"");
......
......@@ -72,12 +72,14 @@ query (void)
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1997",
"<Save>/Header",
N_("C source code header"),
"INDEXED, RGB",
GIMP_PLUGIN,
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_header_save", "<Save>");
gimp_register_file_handler_mime ("file_header_save", "text/x-chdr");
gimp_register_save_handler ("file_header_save",
"h",
"");
......
......@@ -101,13 +101,20 @@ query (void)
"Tim Newsome",
"Tim Newsome",
"1997",
"<Load>/PAT",
N_("GIMP pattern"),
NULL,
GIMP_PLUGIN,
G_N_ELEMENTS (load_args),
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_pat_load", "<Load>");
gimp_register_file_handler_mime ("file_pat_load", "image/x-gimp-pat");
gimp_register_magic_load_handler ("file_pat_load",
"pat",
"",
"20,string,GPAT");
gimp_install_procedure ("file_pat_save",
"Saves Gimp pattern file (.PAT)",
"New Gimp patterns can be created by saving them "
......@@ -115,19 +122,17 @@ query (void)
"Tim Newsome",
"Tim Newsome",
"1997",
"<Save>/PAT",
N_("GIMP pattern"),
"RGB*, GRAY*",
GIMP_PLUGIN,
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_register_magic_load_handler ("file_pat_load",
"pat",
"",
"20,string,GPAT");
gimp_register_save_handler ("file_pat_save",
"pat",
"");
gimp_plugin_menu_register ("file_pat_save", "<Save>");
gimp_register_file_handler_mime ("file_pat_save", "image/x-gimp-pat");
gimp_register_save_handler ("file_pat_save",
"pat",
"");
}
static void
......
......@@ -225,33 +225,38 @@ query (void)
"Erik Nygren",
"Erik Nygren",
"1996",
"<Load>/PNM",
N_("PNM Image"),
NULL,
GIMP_PLUGIN,
G_N_ELEMENTS (load_args),
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_pnm_load", "<Load>");
gimp_register_file_handler_mime ("file_pnm_load", "image/x-portable-anymap");
gimp_register_magic_load_handler ("file_pnm_load",
"pnm,ppm,pgm,pbm",
"",
"0,string,P1,0,string,P2,0,string,P3,0,"
"string,P4,0,string,P5,0,string,P6");
gimp_install_procedure ("file_pnm_save",
"saves files in the pnm file format",
"PNM saving handles all image types except those with alpha channels.",
"Erik Nygren",
"Erik Nygren",
"1996",
"<Save>/PNM",
N_("PNM image"),
"RGB, GRAY, INDEXED",
GIMP_PLUGIN,
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_register_magic_load_handler ("file_pnm_load",
"pnm,ppm,pgm,pbm",
"",
"0,string,P1,0,string,P2,0,string,P3,0,"
"string,P4,0,string,P5,0,string,P6");
gimp_register_save_handler ("file_pnm_save",
"pnm,ppm,pgm",
"");
gimp_plugin_menu_register ("file_pnm_save", "<Save>");
gimp_register_file_handler_mime ("file_pnm_save", "image/x-portable-anymap");
gimp_register_save_handler ("file_pnm_save",
"pnm,ppm,pgm",
"");
}
static void
......
......@@ -359,13 +359,20 @@ query (void)
"Tor Lillqvist",
"Tor Lillqvist",
"1999",
"<Load>/PSP",
N_("Paint Shop Pro image"),
NULL,
GIMP_PLUGIN,
G_N_ELEMENTS (load_args),
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_psp_load", "<Load>");
gimp_register_file_handler_mime ("file_psp_load", "image/x-psp");
gimp_register_magic_load_handler ("file_psp_load",
"psp,tub",
"",
"0,string,Paint\\040Shop\\040Pro\\040Image\\040File\n\032");
/* Removed until Saving is implemented -- njl195@zepler.org
gimp_install_procedure ("file_psp_save",
"saves images in the Paint Shop Pro PSP file format",
......@@ -376,21 +383,16 @@ query (void)
"Tor Lillqvist",
"Tor Lillqvist",
"1999",
"<Save>/PSP",
N_("Paint Shop Pro image"),
"RGB*, GRAY*, INDEXED*",
GIMP_PLUGIN,
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
*/
gimp_register_magic_load_handler ("file_psp_load",
"psp,tub",
"",
"0,string,Paint\\040Shop\\040Pro\\040Image\\040File\n\032");
/* Removed until Saving is implemented -- njl195@zepler.org
gimp_register_save_handler ("file_psp_save",
"psp,tub",
"");
gimp_plugin_menu_register ("file_psp_save", "<Save>");
gimp_register_save_handler ("file_psp_save",
"psp,tub",
"");
*/
}
......
......@@ -156,33 +156,37 @@ query (void)
"Peter Kirchgessner",
"Peter Kirchgessner (peter@kirchgessner.net)",
"1997",
"<Load>/FITS",
N_("Flexible Image Transport System"),
NULL,
GIMP_PLUGIN,
G_N_ELEMENTS (load_args),
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_fits_load", "<Load>");
gimp_register_file_handler_mime ("file_fits_load", "image/x-fits");
gimp_register_magic_load_handler ("file_fits_load",
"fit,fits",
"",
"0,string,SIMPLE");
gimp_install_procedure ("file_fits_save",
"save file in the FITS file format",
"FITS saving handles all image types except those with alpha channels.",
"Peter Kirchgessner",
"Peter Kirchgessner (peter@kirchgessner.net)",
"1997",
"<Save>/FITS",
N_("Flexible Image Transport System"),
"RGB, GRAY, INDEXED",
GIMP_PLUGIN,
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
/* Register file plugin by plugin name and handable extensions */
gimp_register_magic_load_handler ("file_fits_load",
"fit,fits",
"",
"0,string,SIMPLE");
gimp_register_save_handler ("file_fits_save",
"fit,fits",
"");
gimp_plugin_menu_register ("file_fits_save", "<Save>");
gimp_register_file_handler_mime ("file_fits_save", "image/x-fits");
gimp_register_save_handler ("file_fits_save",
"fit,fits",
"");
}
......
......@@ -157,7 +157,7 @@ query (void)
"Jens Ch. Restemeier",
"Jens Ch. Restemeier",
"1997",
"<Load>/FLI",
N_("AutoDesk FLIC animation"),
NULL,
GIMP_PLUGIN,
G_N_ELEMENTS (load_args) - 2,
......@@ -165,8 +165,10 @@ query (void)
load_args,
load_return_vals);
gimp_plugin_menu_register ("file_fli_load", "<Load>");
gimp_register_file_handler_mime ("file_fli_load", "image/x-flic");
gimp_register_magic_load_handler ("file_fli_load",
"fli",
"fli,flc",
"",
"");
......@@ -176,14 +178,16 @@ query (void)
"Jens Ch. Restemeier",
"Jens Ch. Restemeier",
"1997",
"<Save>/FLI",
N_("AutoDesk FLIC animation"),
"INDEXED,GRAY",
GIMP_PLUGIN,
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_fli_save", "<Save>");
gimp_register_file_handler_mime ("file_fli_save", "image/x-flic");
gimp_register_save_handler ("file_fli_save",
"fli",
"fli,flc",
"");
......
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