PixelPaint: Add Tool::tool_name() as a single-point-of-truth

Let the tools know what their names are.
This commit is contained in:
Andreas Kling
2022-08-21 20:25:52 +02:00
parent c45f99f735
commit 101eb53de5
Notes: sideshowbarker 2024-07-17 08:05:29 +09:00
16 changed files with 46 additions and 16 deletions

View File

@@ -30,6 +30,8 @@ public:
virtual Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> cursor() override { return Gfx::StandardCursor::Crosshair; }
private:
virtual StringView tool_name() const override { return "Rectangle Select Tool"sv; }
enum class MovingMode {
MovingOrigin,
AroundCenter,