Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/io/io_gpencil_export.c
| Show First 20 Lines • Show All 211 Lines • ▼ Show 20 Lines | static void ui_gpencil_export_svg_settings(uiLayout *layout, PointerRNA *imfptr) | ||||
| uiItemR(col, imfptr, "stroke_sample", 0, NULL, ICON_NONE); | uiItemR(col, imfptr, "stroke_sample", 0, NULL, ICON_NONE); | ||||
| uiItemR(col, imfptr, "use_fill", 0, NULL, ICON_NONE); | uiItemR(col, imfptr, "use_fill", 0, NULL, ICON_NONE); | ||||
| uiItemR(col, imfptr, "use_normalized_thickness", 0, NULL, ICON_NONE); | uiItemR(col, imfptr, "use_normalized_thickness", 0, NULL, ICON_NONE); | ||||
| uiItemR(col, imfptr, "use_clip_camera", 0, NULL, ICON_NONE); | uiItemR(col, imfptr, "use_clip_camera", 0, NULL, ICON_NONE); | ||||
| } | } | ||||
| static void wm_gpencil_export_svg_draw(bContext *UNUSED(C), wmOperator *op) | static void wm_gpencil_export_svg_draw(bContext *UNUSED(C), wmOperator *op) | ||||
| { | { | ||||
| PointerRNA ptr; | ui_gpencil_export_svg_settings(op->layout, op->ptr); | ||||
| RNA_pointer_create(NULL, op->type->srna, op->properties, &ptr); | |||||
| ui_gpencil_export_svg_settings(op->layout, &ptr); | |||||
| } | } | ||||
| static bool wm_gpencil_export_svg_poll(bContext *C) | static bool wm_gpencil_export_svg_poll(bContext *C) | ||||
| { | { | ||||
| if ((CTX_wm_window(C) == NULL) || (CTX_data_mode_enum(C) != CTX_MODE_OBJECT)) { | if ((CTX_wm_window(C) == NULL) || (CTX_data_mode_enum(C) != CTX_MODE_OBJECT)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | static void ui_gpencil_export_pdf_settings(uiLayout *layout, PointerRNA *imfptr) | ||||
| sub = uiLayoutColumn(col, true); | sub = uiLayoutColumn(col, true); | ||||
| uiItemR(sub, imfptr, "stroke_sample", 0, NULL, ICON_NONE); | uiItemR(sub, imfptr, "stroke_sample", 0, NULL, ICON_NONE); | ||||
| uiItemR(sub, imfptr, "use_fill", 0, NULL, ICON_NONE); | uiItemR(sub, imfptr, "use_fill", 0, NULL, ICON_NONE); | ||||
| uiItemR(sub, imfptr, "use_normalized_thickness", 0, NULL, ICON_NONE); | uiItemR(sub, imfptr, "use_normalized_thickness", 0, NULL, ICON_NONE); | ||||
| } | } | ||||
| static void wm_gpencil_export_pdf_draw(bContext *UNUSED(C), wmOperator *op) | static void wm_gpencil_export_pdf_draw(bContext *UNUSED(C), wmOperator *op) | ||||
| { | { | ||||
| PointerRNA ptr; | ui_gpencil_export_pdf_settings(op->layout, op->ptr); | ||||
| RNA_pointer_create(NULL, op->type->srna, op->properties, &ptr); | |||||
| ui_gpencil_export_pdf_settings(op->layout, &ptr); | |||||
| } | } | ||||
| static bool wm_gpencil_export_pdf_poll(bContext *C) | static bool wm_gpencil_export_pdf_poll(bContext *C) | ||||
| { | { | ||||
| if ((CTX_wm_window(C) == NULL) || (CTX_data_mode_enum(C) != CTX_MODE_OBJECT)) { | if ((CTX_wm_window(C) == NULL) || (CTX_data_mode_enum(C) != CTX_MODE_OBJECT)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| Show All 38 Lines | |||||