From 23dcbd58bc8f26a71b0483ed907c0052ca348899 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Tue, 25 Mar 2025 06:14:23 +0000 Subject: [PATCH] rename convert to extensions (#3605) --- lib/extensions/__init__.py | 8 ++++---- .../{convert_to_stroke.py => satin_to_stroke.py} | 2 +- .../{convert_to_satin.py => stroke_to_satin.py} | 2 +- templates/{convert_to_stroke.xml => satin_to_stroke.xml} | 6 +++--- templates/{convert_to_satin.xml => stroke_to_satin.xml} | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) rename lib/extensions/{convert_to_stroke.py => satin_to_stroke.py} (97%) rename lib/extensions/{convert_to_satin.py => stroke_to_satin.py} (99%) rename templates/{convert_to_stroke.xml => satin_to_stroke.xml} (86%) rename templates/{convert_to_satin.xml => stroke_to_satin.xml} (75%) diff --git a/lib/extensions/__init__.py b/lib/extensions/__init__.py index ca15d42db..60d0e10de 100644 --- a/lib/extensions/__init__.py +++ b/lib/extensions/__init__.py @@ -12,8 +12,6 @@ from .batch_lettering import BatchLettering from .break_apart import BreakApart from .cleanup import Cleanup from .commands_scale_symbols import CommandsScaleSymbols -from .convert_to_satin import ConvertToSatin -from .convert_to_stroke import ConvertToStroke from .cut_satin import CutSatin from .cutwork_segmentation import CutworkSegmentation from .density_map import DensityMap @@ -60,6 +58,7 @@ from .remove_duplicated_points import RemoveDuplicatedPoints from .remove_embroidery_settings import RemoveEmbroiderySettings from .reorder import Reorder from .satin_multicolor import SatinMulticolor +from .satin_to_stroke import SatinToStroke from .select_elements import SelectElements from .selection_to_anchor_line import SelectionToAnchorLine from .selection_to_guide_line import SelectionToGuideLine @@ -69,6 +68,7 @@ from .simulator import Simulator from .stitch_plan_preview import StitchPlanPreview from .stitch_plan_preview_undo import StitchPlanPreviewUndo from .stroke_to_lpe_satin import StrokeToLpeSatin +from .stroke_to_satin import StrokeToSatin from .tartan import Tartan from .test_swatches import TestSwatches from .thread_list import ThreadList @@ -88,8 +88,6 @@ extensions = [ BreakApart, Cleanup, CommandsScaleSymbols, - ConvertToSatin, - ConvertToStroke, CutSatin, CutworkSegmentation, DensityMap, @@ -136,6 +134,7 @@ extensions = [ RemoveEmbroiderySettings, Reorder, SatinMulticolor, + SatinToStroke, SelectElements, SelectionToAnchorLine, SelectionToGuideLine, @@ -145,6 +144,7 @@ extensions = [ StitchPlanPreview, StitchPlanPreviewUndo, StrokeToLpeSatin, + StrokeToSatin, Tartan, TestSwatches, ThreadList, diff --git a/lib/extensions/convert_to_stroke.py b/lib/extensions/satin_to_stroke.py similarity index 97% rename from lib/extensions/convert_to_stroke.py rename to lib/extensions/satin_to_stroke.py index af6563dfb..e35b7c856 100644 --- a/lib/extensions/convert_to_stroke.py +++ b/lib/extensions/satin_to_stroke.py @@ -11,7 +11,7 @@ from ..svg import get_correction_transform from .base import InkstitchExtension -class ConvertToStroke(InkstitchExtension): +class SatinToStroke(InkstitchExtension): """Convert a satin column into a running stitch.""" def __init__(self, *args, **kwargs): diff --git a/lib/extensions/convert_to_satin.py b/lib/extensions/stroke_to_satin.py similarity index 99% rename from lib/extensions/convert_to_satin.py rename to lib/extensions/stroke_to_satin.py index 184bb8bdb..d9bf2ff0d 100644 --- a/lib/extensions/convert_to_satin.py +++ b/lib/extensions/stroke_to_satin.py @@ -25,7 +25,7 @@ class SelfIntersectionError(Exception): pass -class ConvertToSatin(InkstitchExtension): +class StrokeToSatin(InkstitchExtension): """Convert a line to a satin column of the same width.""" def effect(self): diff --git a/templates/convert_to_stroke.xml b/templates/satin_to_stroke.xml similarity index 86% rename from templates/convert_to_stroke.xml rename to templates/satin_to_stroke.xml index 13761136e..d4ac314c6 100644 --- a/templates/convert_to_stroke.xml +++ b/templates/satin_to_stroke.xml @@ -1,8 +1,8 @@ - Convert Satin to Stroke - org.{{ id_inkstitch }}.convert_to_stroke - convert_to_stroke + Satin to Stroke + org.{{ id_inkstitch }}.satin_to_stroke + satin_to_stroke diff --git a/templates/convert_to_satin.xml b/templates/stroke_to_satin.xml similarity index 75% rename from templates/convert_to_satin.xml rename to templates/stroke_to_satin.xml index 4d02dd1a5..07e270e10 100644 --- a/templates/convert_to_satin.xml +++ b/templates/stroke_to_satin.xml @@ -1,8 +1,8 @@ - Convert Line to Satin - org.{{ id_inkstitch }}.convert_to_satin - convert_to_satin + Stroke to Satin + org.{{ id_inkstitch }}.stroke_to_satin + stroke_to_satin all {{ icon_path }}inx/to_satin.svg