mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
PixelPaint: Add Tool::tool_name() as a single-point-of-truth
Let the tools know what their names are.
This commit is contained in:
parent
c45f99f735
commit
101eb53de5
16 changed files with 46 additions and 16 deletions
|
@ -74,6 +74,8 @@ public:
|
|||
GUI::Action* action() { return m_action; }
|
||||
void set_action(GUI::Action*);
|
||||
|
||||
virtual StringView tool_name() const = 0;
|
||||
|
||||
protected:
|
||||
Tool() = default;
|
||||
WeakPtr<ImageEditor> m_editor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue