mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 13:37:44 +00:00
PaintBrush: Add a "Tool" menu and put all the tools in it
This commit is contained in:
parent
cbd746e3ec
commit
98cb442edf
5 changed files with 31 additions and 3 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include "Tool.h"
|
||||
#include "ImageEditor.h"
|
||||
#include <LibGUI/Action.h>
|
||||
|
||||
namespace PaintBrush {
|
||||
|
||||
|
@ -42,4 +43,9 @@ void Tool::setup(ImageEditor& editor)
|
|||
m_editor = editor.make_weak_ptr();
|
||||
}
|
||||
|
||||
void Tool::set_action(GUI::Action* action)
|
||||
{
|
||||
m_action = action;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue