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:
parent
e4b11a23b7
commit
18d68c8c94
10 changed files with 77 additions and 185 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue