GimpUi.VectorLoadProcedureDialog.new
function new(procedure: Gimp.VectorLoadProcedure, config: Gimp.ProcedureConfig, extracted_data: Gimp.VectorLoadData, file: Gio.File): Gtk.Widget {
// Gjs wrapper for gimp_vector_load_procedure_dialog_new()
}
Creates a new dialog for procedure using widgets generated from properties of config.
file must be the same vector file which was passed to the [callback@Gimp.RunVectorLoadFunc] implementation for your plug-in. If you pass any other file, then the preview may be wrong or not showing at all. And it is considered a programming error.
As for all Gtk.Window, the returned GimpUi.ProcedureDialog object is owned by GTK and its initial reference is stored in an internal list of top-level windows. To delete the dialog, call gtk_widget_destroy().
- procedure
the associated Gimp.VectorLoadProcedure.
- config
a Gimp.ProcedureConfig from which properties will be turned into widgets.
- extracted_data
the extracted dimensions of the file to load.
- file
a [iface@Gio.File] to load the preview from.
- Returns
the newly created GimpUi.VectorLoadProcedureDialog.