Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_ops.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| void IMAGE_OT_save_as(wmOperatorType *ot) | void IMAGE_OT_save_as(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Save As Image"; | ot->name = "Save as Image"; | ||||
| ot->idname = "IMAGE_OT_save_as"; | ot->idname = "IMAGE_OT_save_as"; | ||||
| ot->description = "Save the image with another name and/or settings"; | ot->description = "Save the image with another name and/or settings"; | ||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->exec = image_save_as_exec; | ot->exec = image_save_as_exec; | ||||
| ot->check = image_save_as_check; | ot->check = image_save_as_check; | ||||
| ot->invoke = image_save_as_invoke; | ot->invoke = image_save_as_invoke; | ||||
| ot->cancel = image_save_as_cancel; | ot->cancel = image_save_as_cancel; | ||||
| ot->ui = image_save_as_draw; | ot->ui = image_save_as_draw; | ||||
| ot->poll = image_save_as_poll; | ot->poll = image_save_as_poll; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| /* properties */ | /* properties */ | ||||
| RNA_def_boolean(ot->srna, | RNA_def_boolean(ot->srna, | ||||
| "save_as_render", | "save_as_render", | ||||
| 0, | 0, | ||||
| "Save As Render", | "Save as Render", | ||||
| "Apply render part of display transform when saving byte image"); | "Apply render part of display transform when saving byte image"); | ||||
| RNA_def_boolean(ot->srna, | RNA_def_boolean(ot->srna, | ||||
| "copy", | "copy", | ||||
| 0, | 0, | ||||
| "Copy", | "Copy", | ||||
| "Create a new image file without modifying the current image in blender"); | "Create a new image file without modifying the current image in Blender"); | ||||
| WM_operator_properties_filesel(ot, | WM_operator_properties_filesel(ot, | ||||
| FILE_TYPE_FOLDER | FILE_TYPE_IMAGE | FILE_TYPE_MOVIE, | FILE_TYPE_FOLDER | FILE_TYPE_IMAGE | FILE_TYPE_MOVIE, | ||||
| FILE_SPECIAL, | FILE_SPECIAL, | ||||
| FILE_SAVE, | FILE_SAVE, | ||||
| WM_FILESEL_FILEPATH | WM_FILESEL_RELPATH | WM_FILESEL_SHOW_PROPS, | WM_FILESEL_FILEPATH | WM_FILESEL_RELPATH | WM_FILESEL_SHOW_PROPS, | ||||
| FILE_DEFAULTDISPLAY, | FILE_DEFAULTDISPLAY, | ||||
| FILE_SORT_DEFAULT); | FILE_SORT_DEFAULT); | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||