Tim Ledbetter
f34b1c7a7e
PixelPaint: Make tool properties widget construction non-fallible
...
`Tool::get_properties_widget()` now also returns a NNRP to a widget
rather than a raw pointer.
2023-09-25 10:58:31 +02:00
Andreas Kling
df07416171
PixelPaint: Store tool cursors as NNRP<Gfx::Bitmap const>
2023-02-21 00:54:04 +01:00
Karol Kosek
be717edd33
PixelPaint: Propagate errors from making tool property widgets
2023-02-16 23:36:58 +00:00
Timothy Slater
296b76095f
PixelPaint: Change tool keydown handle to non-const
...
This was changed to const in PR #15788 but presents problems for tools
that may need to forward this event to non-const event handlers.
2022-12-16 10:14:20 +00:00
MacDue
7be0b27dd3
Meta+Userland: Pass Gfx::IntPoint by value
...
This is just two ints or 8 bytes or the size of the reference on
x86_64 or AArch64.
2022-12-07 11:48:27 +01:00
Zaggy1024
7ce346e50e
PixelPaint: Allow keydown events to bubble from ImageEditor
...
Previously, all keydown KeyEvents were accepted, causing parent widgets
not to receive them. With the addition of shortcut handling to keydown,
shortcuts were not called when the ImageEditor was focused.
2022-11-14 16:08:11 +00:00
Fausto Tommasi
813ca5ebbe
PixelPaint: Make Alt-Clicking with all tool act like the PickerTool
...
Refactored PickerTool functionality to the ImageEditor level and added a
flag to Tool Base Class to allow for tools to override Alt+Click
ColorPicker functionality
2022-10-17 09:39:57 +02:00
Andreas Kling
101eb53de5
PixelPaint: Add Tool::tool_name() as a single-point-of-truth
...
Let the tools know what their names are.
2022-08-21 20:33:01 +02:00
MacDue
a30c81104d
PixelPaint: Add option for antialiased lines
2022-06-02 13:20:27 +02:00
Lenny Maiorani
160bda7228
Applications: Use default constructors/destructors
...
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules
"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
2022-02-14 22:06:55 +00:00
Marco Cutecchia
0f24678eaf
PixelPaint: Support using a bitmap as a tool's cursor
2021-10-31 12:37:49 +01:00
Marcus Nilsson
f9e0815c3b
PixelPaint: Move Tools to it's own subdirectory
...
The PixelPaint source directory was getting a bit large, let's move all
the Tools to it's own subdirectory. Also remove some unused includes.
2021-09-20 03:04:24 +00:00