Andreas Kling
116cf92156
LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize
...
This fits nicer with FloatRect,FloatPoint,FloatSize and gives a much
better visual clue about what type of metric is being used.
2020-06-10 10:59:04 +02:00
Hüseyin ASLITÜRK
d315281d56
PixelPaint: Use new app-pixel-paint.png for app icon
2020-06-04 12:34:31 +02:00
Gabriel Mihalache
8e151ff33e
PixelPaint: Set active layer to nullptr after its removal ( #2433 )
...
This prevents a crash if removal was called twice, without setting a
new active layer in the meanwhile.
2020-05-29 07:58:22 +02:00
Andreas Kling
b5788594f9
PixelPaint: Let Layer track whether it's selected or not
...
This will simplify a lot of code that keeps getting more confusing.
2020-05-26 10:18:03 +02:00
Andreas Kling
18d68c8c94
PixelPaint: Add selection functionality to the LayerListWidget
...
Now we can get rid of the old table view and with it the LayerModel.
2020-05-26 10:18:03 +02:00
Andreas Kling
e4b11a23b7
PixelPaint: Allow reordering layer by dragging them in LayerListWidget
...
This is rather cool! :^)
2020-05-26 10:18:03 +02:00
Andreas Kling
dc3de47b03
PixelPaint: Have layers and images send out notifications on changes
...
We use this to automatically update the thumbnail in LayerListWidget
when you draw into a layer. We also use it to repaint the ImageEditor
when the image changes somehow. :^)
2020-05-26 10:18:03 +02:00
Andreas Kling
de85cd0907
PixelPaint: Start working on a custom layer list widget
...
Instead of using a TableView to show the layer stack, let's build a new
custom widget for this purpose and give it some neat features!
This patch also introduces an ImageClient interface for Image to notify
interested parties about things happening. The LayerListWidget is the
first ImageClient and listens for "layer added" and "layer removed"
notifications. :^)
2020-05-26 10:18:03 +02:00
Andreas Kling
9fc4ad2a52
PixelPaint: Make the EllipseTool previews work while zoomed in
2020-05-22 15:57:04 +02:00
Andreas Kling
d12cce76a7
PixelPaint: Make the RectangleTool previews work while zoomed in
2020-05-22 14:57:10 +02:00
Andreas Kling
f57df29724
PixelPaint: Make the LineTool previews work while zoomed in
2020-05-22 14:45:14 +02:00
Andreas Kling
84b508befa
PixelPaint: Rename original_event => image_event
...
These events are in image coordinates, not really original coordinates.
2020-05-21 22:56:32 +02:00
Andreas Kling
2adb0a07e5
LibGUI: Get rid of Model::ColumnMetadata and always use auto-sizing
...
Auto-sizing of view columns is now enabled by default. This removes the
last remaining need for ColumnMetadata, so this patch gets rid of it.
2020-05-21 19:55:44 +02:00
Andreas Kling
bf9e190533
PixelPaint: Support panning and scaling the image we're working on :^)
...
ImageEditor now supports panning (Ctrl+MiddleMouse) and scaling (Wheel)
the image. This took a lot of unpleasant coordinate math, but now it
actually kinda works and feels awesome! :^)
2020-05-20 22:30:42 +02:00
Andreas Kling
58fa9c6e89
PixelPaint: Rename from PaintBrush :^)
2020-05-20 20:35:35 +02:00