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
commit 4bd905de0e
Notes: sideshowbarker 2024-07-18 12:14:47 +09:00
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>());
}
}