summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/LineTool.h
AgeCommit message (Collapse)Author
2021-08-27PixelPaint: Make Layer passed to tools a pointerMaciej Zygmanowski
Some tools (e.g. ZoomTool) doesn't need layer to work. This commit makes mouse events fire even if there is no layer. This fixes a bug that ZoomTool didn't work when there is no layers.
2021-08-27PixelPaint: Pass raw mouse event to Tools and wrap them all in a structMaciej Zygmanowski
This commit adds a Tool::MouseEvent struct, which contains events that may be needed by tools: layer-relative, image-relative and raw (editor- relative) event. The raw event is used by ZoomTool to properly pan the view. This fixes a bug which caused image to snap out of sight.
2021-08-09PixelPaint: Let Tools have different cursorsMarcus Nilsson
This adds support for the Tools in PixelPaint to use different cursors within ImageEditor. For now most of them get the crosshair cursor since it's the most fitting, but in the future we will want to add custom cursors.
2021-08-03PixelPaint: Move properties for LineTool to ToolPropertiesWidgetMarcus Nilsson
Remove the context menu for LineTool and use the tool properties widget for options instead.
2021-07-10PixelPaint: Check modifier on mousemove in LineToolMarcus Nilsson
Previously m_constrain_angle could end up not being reset if the keyup-event was lost, for example when opening a dialog. Instead check the modifiers in on_mousemove().
2021-06-11PixelPaint: Convert to east-const styleAndreas Kling
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-01-12Applications: Move to Userland/Applications/Andreas Kling