1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

PixelPaint: Add a new "Rectangle Select" tool :^)

This patch only adds the tool along with a toolbar icon for it.
It doesn't do anything yet.
This commit is contained in:
Andreas Kling 2021-06-14 16:51:29 +02:00
parent ab840423a8
commit 4bd905de0e
5 changed files with 62 additions and 0 deletions

View file

@ -13,6 +13,7 @@
#include "MoveTool.h"
#include "PenTool.h"
#include "PickerTool.h"
#include "RectangleSelectTool.h"
#include "RectangleTool.h"
#include "SprayTool.h"
#include "ZoomTool.h"
@ -77,6 +78,7 @@ void ToolboxWidget::setup_tools()
add_tool("Rectangle", "rectangle", { Mod_Ctrl | Mod_Shift, Key_R }, make<RectangleTool>());
add_tool("Ellipse", "circle", { Mod_Ctrl | Mod_Shift, Key_E }, make<EllipseTool>());
add_tool("Zoom", "zoom", { 0, Key_Z }, make<ZoomTool>());
add_tool("Rectangle Select", "rectangle-select", { 0, Key_R }, make<RectangleSelectTool>());
}
}