1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:17:35 +00:00

PixelPaint: Add selection functionality to the LayerListWidget

Now we can get rid of the old table view and with it the LayerModel.
This commit is contained in:
Andreas Kling 2020-05-26 09:51:28 +02:00
parent e4b11a23b7
commit 18d68c8c94
10 changed files with 77 additions and 185 deletions

View file

@ -41,6 +41,13 @@ public:
void set_image(Image*);
void set_selected_layer(Layer*);
Function<void(Layer*)> on_layer_select;
void select_bottom_layer();
void select_top_layer();
void move_selection(int delta);
private:
explicit LayerListWidget();
@ -65,6 +72,7 @@ private:
Gfx::Rect rect;
Gfx::Rect temporary_rect_during_move;
bool is_moving { false };
bool is_selected { false };
Gfx::Point movement_delta;
};