summaryrefslogtreecommitdiff
path: root/DevTools/HackStudio/Tool.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-02 15:07:41 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-02 15:15:33 +0100
commitc5bd9d4ed1d80ac91d46146565127b0c185f1b43 (patch)
treeb4ee9ba5999778450f8eb4006df89110617b4a10 /DevTools/HackStudio/Tool.h
parent2d39da5405a4527e91e853ddb1e56a539c96c6c1 (diff)
downloadserenity-c5bd9d4ed1d80ac91d46146565127b0c185f1b43.zip
LibGUI: Put all classes in the GUI namespace and remove the leading G
This took me a moment. Welcome to the new world of GUI::Widget! :^)
Diffstat (limited to 'DevTools/HackStudio/Tool.h')
-rw-r--r--DevTools/HackStudio/Tool.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/DevTools/HackStudio/Tool.h b/DevTools/HackStudio/Tool.h
index 650722877d..e181f43458 100644
--- a/DevTools/HackStudio/Tool.h
+++ b/DevTools/HackStudio/Tool.h
@@ -29,10 +29,13 @@
#include <AK/Noncopyable.h>
class FormEditorWidget;
-class GKeyEvent;
-class GMouseEvent;
-class GPaintEvent;
-class GPainter;
+
+namespace GUI {
+class KeyEvent;
+class MouseEvent;
+class PaintEvent;
+class Painter;
+}
class Tool {
AK_MAKE_NONCOPYABLE(Tool)
@@ -40,11 +43,11 @@ class Tool {
public:
virtual ~Tool() {}
- virtual void on_mousedown(GMouseEvent&) = 0;
- virtual void on_mouseup(GMouseEvent&) = 0;
- virtual void on_mousemove(GMouseEvent&) = 0;
- virtual void on_keydown(GKeyEvent&) = 0;
- virtual void on_second_paint(GPainter&, GPaintEvent&) {}
+ virtual void on_mousedown(GUI::MouseEvent&) = 0;
+ virtual void on_mouseup(GUI::MouseEvent&) = 0;
+ virtual void on_mousemove(GUI::MouseEvent&) = 0;
+ virtual void on_keydown(GUI::KeyEvent&) = 0;
+ virtual void on_second_paint(GUI::Painter&, GUI::PaintEvent&) {}
virtual const char* class_name() const = 0;