WIP: Create reference image from current layer
Per a wishlist item (https://bugs.kde.org/show_bug.cgi?id=399058), this patch imtroduces a new button in the Reference Image Tool that creates a reference image from the current layer:
All feedback about this new feature are welcome.
TODO: In a second patch, I plan to provide a context menu option to convert a selected layer to a reference image as an alternative way to access this functionality.
Test Plan
- Open any .kra file (ideally one with multiple layers).
- Open the Reference Image Tool, and click on the button circled in red shown in the screenshot above. You should now see a new reference image on top of the canvas consistent with the current layer.
Formalities Checklist
-
I confirmed this builds. -
I confirmed Krita ran and the relevant functions work. -
I tested the relevant unit tests and can confirm they are not broken. (If not possible, don't hesitate to ask for help!) -
I made sure my commits build individually and have good descriptions as per KDE guidelines. -
I made sure my code conforms to the standards set in the HACKING file. -
I can confirm the code is licensed and attributed appropriately, and that unattributed code is mine, as per KDE Licensing Policy.