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

PixelPaint: Remove context menu for MoveTool

Remove the context menu for MoveTool and move the actions to the layer
menu instead.
This commit is contained in:
Marcus Nilsson 2021-08-02 22:38:47 +02:00 committed by Andreas Kling
parent 15e9d0b4d8
commit 3392c66c94
3 changed files with 26 additions and 35 deletions

View file

@ -19,14 +19,11 @@ public:
virtual void on_mousemove(Layer&, GUI::MouseEvent& layer_event, GUI::MouseEvent& image_event) override;
virtual void on_mouseup(Layer&, GUI::MouseEvent& layer_event, GUI::MouseEvent& image_event) override;
virtual void on_keydown(GUI::KeyEvent&) override;
virtual void on_context_menu(Layer&, GUI::ContextMenuEvent&) override;
private:
RefPtr<Layer> m_layer_being_moved;
Gfx::IntPoint m_event_origin;
Gfx::IntPoint m_layer_origin;
RefPtr<GUI::Menu> m_context_menu;
RefPtr<Layer> m_context_menu_layer;
};
}