summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/ToolboxWidget.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-14 16:51:29 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-14 18:25:17 +0200
commit4bd905de0ec054c94a3853ded832ee00573d4bc2 (patch)
tree7c2389278a16ffa600b3b78283072140f4a5501d /Userland/Applications/PixelPaint/ToolboxWidget.cpp
parentab840423a8f1362926c95e05776413f749c54964 (diff)
downloadserenity-4bd905de0ec054c94a3853ded832ee00573d4bc2.zip
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.
Diffstat (limited to 'Userland/Applications/PixelPaint/ToolboxWidget.cpp')
-rw-r--r--Userland/Applications/PixelPaint/ToolboxWidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/ToolboxWidget.cpp b/Userland/Applications/PixelPaint/ToolboxWidget.cpp
index 0a1d2f5279..c12c1870ab 100644
--- a/Userland/Applications/PixelPaint/ToolboxWidget.cpp
+++ b/Userland/Applications/PixelPaint/ToolboxWidget.cpp
@@ -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>());
}
}