135
static GimpParamDef load_args[] =
138
static const GimpParamDef load_args[] =
137
{ GIMP_PDB_INT32, "run_mode", "Interactive, non-interactive" },
140
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
138
141
{ GIMP_PDB_STRING, "filename", "The name of the file to load" },
139
{ GIMP_PDB_STRING, "raw_filename", "The name entered" }
142
{ GIMP_PDB_STRING, "raw-filename", "The name entered" }
142
static GimpParamDef load_return_vals[] =
145
static const GimpParamDef load_return_vals[] =
144
147
{ GIMP_PDB_IMAGE, "image", "Output image" }
147
static GimpParamDef save_args[] =
150
static const GimpParamDef save_args[] =
149
{ GIMP_PDB_INT32, "run_mode", "Interactive, non-interactive" },
152
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
150
153
{ GIMP_PDB_IMAGE, "image", "Input image" },
151
154
{ GIMP_PDB_DRAWABLE, "drawable", "Drawable to save" },
152
155
{ GIMP_PDB_STRING, "filename", "The name of the file to save" },
153
{ GIMP_PDB_STRING, "raw_filename", "The name entered" },
156
{ GIMP_PDB_STRING, "raw-filename", "The name entered" },
154
157
{ GIMP_PDB_STRING, "comment", "Image description (maximum 72 bytes)" },
155
158
{ GIMP_PDB_INT32, "x10", "Save in X10 format" },
156
{ GIMP_PDB_INT32, "x_hot", "X coordinate of hotspot" },
157
{ GIMP_PDB_INT32, "y_hot", "Y coordinate of hotspot" },
159
{ GIMP_PDB_INT32, "x-hot", "X coordinate of hotspot" },
160
{ GIMP_PDB_INT32, "y-hot", "Y coordinate of hotspot" },
158
161
{ GIMP_PDB_STRING, "prefix", "Identifier prefix [determined from filename]"},
159
{ GIMP_PDB_INT32, "write_mask", "(0 = ignore, 1 = save as extra file)" },
160
{ GIMP_PDB_STRING, "mask_extension", "Extension of the mask file" }
162
{ GIMP_PDB_INT32, "write-mask", "(0 = ignore, 1 = save as extra file)" },
163
{ GIMP_PDB_STRING, "mask-extension", "Extension of the mask file" }
163
gimp_install_procedure ("file_xbm_load",
166
gimp_install_procedure (LOAD_PROC,
164
167
"Load a file in X10 or X11 bitmap (XBM) file format",
165
168
"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.",
166
169
"Gordon Matzigkeit",
173
176
G_N_ELEMENTS (load_return_vals),
174
177
load_args, load_return_vals);
176
gimp_register_file_handler_mime ("file_xbm_load", "image/x-xbitmap");
177
gimp_register_load_handler ("file_xbm_load",
179
gimp_register_file_handler_mime (LOAD_PROC, "image/x-xbitmap");
180
gimp_register_load_handler (LOAD_PROC,
178
181
"xbm,icon,bitmap",
181
gimp_install_procedure ("file_xbm_save",
184
gimp_install_procedure (SAVE_PROC,
182
185
"Save a file in X10 or X11 bitmap (XBM) file format",
183
186
"Save a file in X10 or X11 bitmap (XBM) file format. XBM is a lossless format for flat black-and-white (two color indexed) images.",
184
187
"Gordon Matzigkeit",
190
193
G_N_ELEMENTS (save_args), 0,
191
194
save_args, NULL);
193
gimp_register_file_handler_mime ("file_xbm_save", "image/x-xbitmap");
194
gimp_register_save_handler ("file_xbm_save", "xbm,icon,bitmap", "");
196
gimp_register_file_handler_mime (SAVE_PROC, "image/x-xbitmap");
197
gimp_register_save_handler (SAVE_PROC, "xbm,icon,bitmap", "");
1145
1149
GtkObject *adj;
1148
dlg = gimp_dialog_new (_("Save as XBM"), "xbm",
1150
gimp_standard_help_func, "file-xbm-save",
1152
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
1153
GTK_STOCK_OK, GTK_RESPONSE_OK,
1152
dialog = gimp_dialog_new (_("Save as XBM"), PLUG_IN_BINARY,
1154
gimp_standard_help_func, SAVE_PROC,
1156
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
1157
GTK_STOCK_SAVE, GTK_RESPONSE_OK,
1161
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
1163
GTK_RESPONSE_CANCEL,
1166
gimp_window_set_transient (GTK_WINDOW (dialog));
1157
1168
/* parameter settings */
1158
1169
frame = gimp_frame_new (_("XBM Options"));
1159
1170
gtk_container_set_border_width (GTK_CONTAINER (frame), 12);
1160
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, TRUE, TRUE, 0);
1171
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
1172
frame, TRUE, TRUE, 0);
1161
1173
gtk_widget_show (frame);
1163
1175
vbox = gtk_vbox_new (FALSE, 12);