mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
plug-ins: Port DDS load dialog widgets to use...
GimpProcedureDialog APIs. Also add mnemonics.
This commit is contained in:
parent
f15b144a81
commit
6ce835b9d7
2 changed files with 24 additions and 30 deletions
|
@ -146,8 +146,8 @@ dds_create_procedure (GimpPlugIn *plug_in,
|
|||
gimp_procedure_set_menu_label (procedure, _("DDS image"));
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
"Loads files in DDS image format",
|
||||
"Loads files in DDS image format",
|
||||
_("Loads files in DDS image format"),
|
||||
_("Loads files in DDS image format"),
|
||||
name);
|
||||
gimp_procedure_set_attribution (procedure,
|
||||
"Shawn Kirst",
|
||||
|
@ -162,14 +162,14 @@ dds_create_procedure (GimpPlugIn *plug_in,
|
|||
"0,string,DDS");
|
||||
|
||||
GIMP_PROC_ARG_BOOLEAN (procedure, "load-mipmaps",
|
||||
"Load mipmaps",
|
||||
"Load mipmaps if present",
|
||||
_("Load _mipmaps"),
|
||||
_("Load mipmaps if present"),
|
||||
TRUE,
|
||||
G_PARAM_READWRITE);
|
||||
|
||||
GIMP_PROC_ARG_BOOLEAN (procedure, "decode-images",
|
||||
"Decode images",
|
||||
"Decode YCoCg/AExp images when detected",
|
||||
_("Automatically decode YCoCg/AE_xp images when detected"),
|
||||
_("Decode YCoCg/AExp images when detected"),
|
||||
TRUE,
|
||||
G_PARAM_READWRITE);
|
||||
}
|
||||
|
@ -324,8 +324,8 @@ dds_create_procedure (GimpPlugIn *plug_in,
|
|||
/* gimp_procedure_add_menu_path (procedure, "<Image>/Filters/Colors"); */
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
"Converts YCoCg encoded pixels to RGB",
|
||||
"Converts YCoCg encoded pixels to RGB",
|
||||
_("Converts YCoCg encoded pixels to RGB"),
|
||||
_("Converts YCoCg encoded pixels to RGB"),
|
||||
name);
|
||||
gimp_procedure_set_attribution (procedure,
|
||||
"Shawn Kirst",
|
||||
|
@ -346,10 +346,10 @@ dds_create_procedure (GimpPlugIn *plug_in,
|
|||
/* gimp_procedure_add_menu_path (procedure, "<Image>/Filters/Colors"); */
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
"Converts YCoCg (scaled) encoded "
|
||||
"pixels to RGB",
|
||||
"Converts YCoCg (scaled) encoded "
|
||||
"pixels to RGB",
|
||||
_("Converts YCoCg (scaled) encoded "
|
||||
"pixels to RGB"),
|
||||
_("Converts YCoCg (scaled) encoded "
|
||||
"pixels to RGB"),
|
||||
name);
|
||||
gimp_procedure_set_attribution (procedure,
|
||||
"Shawn Kirst",
|
||||
|
@ -370,10 +370,10 @@ dds_create_procedure (GimpPlugIn *plug_in,
|
|||
/* gimp_procedure_add_menu_path (procedure, "<Image>/Filters/Colors"); */
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
"Converts alpha exponent encoded "
|
||||
"pixels to RGB",
|
||||
"Converts alpha exponent encoded "
|
||||
_("Converts alpha exponent encoded "
|
||||
"pixels to RGB",
|
||||
_("Converts alpha exponent encoded "
|
||||
"pixels to RGB"),
|
||||
name);
|
||||
gimp_procedure_set_attribution (procedure,
|
||||
"Shawn Kirst",
|
||||
|
|
|
@ -1507,28 +1507,22 @@ load_dialog (GimpProcedure *procedure,
|
|||
{
|
||||
GtkWidget *dialog;
|
||||
GtkWidget *vbox;
|
||||
GtkWidget *check;
|
||||
gboolean run;
|
||||
|
||||
dialog = gimp_procedure_dialog_new (procedure,
|
||||
GIMP_PROCEDURE_CONFIG (config),
|
||||
_("Open DDS"));
|
||||
|
||||
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
|
||||
vbox = gimp_procedure_dialog_fill_box (GIMP_PROCEDURE_DIALOG (dialog),
|
||||
"dds-read-box",
|
||||
"load-mipmaps",
|
||||
"decode-images",
|
||||
NULL);
|
||||
gtk_box_set_spacing (GTK_BOX (vbox), 8);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
|
||||
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
|
||||
vbox, 1, 1, 0);
|
||||
gtk_widget_show (vbox);
|
||||
|
||||
check = gimp_prop_check_button_new (config, "load-mipmaps",
|
||||
_("_Load mipmaps"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), check, FALSE, FALSE, 0);
|
||||
|
||||
check = gimp_prop_check_button_new (config, "decode-images",
|
||||
_("_Automatically decode YCoCg/AExp "
|
||||
"images when detected"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), check, FALSE, FALSE, 0);
|
||||
|
||||
gimp_procedure_dialog_fill (GIMP_PROCEDURE_DIALOG (dialog),
|
||||
"dds-read-box", NULL);
|
||||
gtk_widget_show (dialog);
|
||||
|
||||
run = gimp_procedure_dialog_run (GIMP_PROCEDURE_DIALOG (dialog));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue