1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

PixelPaint: Add Text Tool

This commit is contained in:
Timothy Slater 2022-10-24 08:07:59 -05:00 committed by Sam Atkins
parent 7b62e02bc3
commit 7b4e5d6ac0
5 changed files with 362 additions and 0 deletions

View file

@ -21,6 +21,7 @@
#include "Tools/RectangleSelectTool.h"
#include "Tools/RectangleTool.h"
#include "Tools/SprayTool.h"
#include "Tools/TextTool.h"
#include "Tools/WandSelectTool.h"
#include "Tools/ZoomTool.h"
#include <LibGUI/Action.h>
@ -87,6 +88,7 @@ void ToolboxWidget::setup_tools()
add_tool("line"sv, { Mod_Ctrl | Mod_Shift, Key_L }, make<LineTool>());
add_tool("rectangle"sv, { Mod_Ctrl | Mod_Shift, Key_R }, make<RectangleTool>());
add_tool("circle"sv, { Mod_Ctrl | Mod_Shift, Key_E }, make<EllipseTool>());
add_tool("text"sv, { Mod_Ctrl | Mod_Shift, Key_T }, make<TextTool>());
add_tool("zoom"sv, { 0, Key_Z }, make<ZoomTool>());
add_tool("rectangle-select"sv, { 0, Key_R }, make<RectangleSelectTool>());
add_tool("wand-select"sv, { 0, Key_W }, make<WandSelectTool>());