1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

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! :^)
This commit is contained in:
Andreas Kling 2020-02-02 15:07:41 +01:00
parent 2d39da5405
commit c5bd9d4ed1
337 changed files with 5400 additions and 4816 deletions

View file

@ -28,10 +28,13 @@
#include <LibGUI/GWidget.h>
class GLabel;
namespace GUI {
class Label;
}
class Editor;
class EditorWrapper : public GWidget {
class EditorWrapper : public GUI::Widget {
C_OBJECT(EditorWrapper)
public:
virtual ~EditorWrapper() override;
@ -39,15 +42,15 @@ public:
Editor& editor() { return *m_editor; }
const Editor& editor() const { return *m_editor; }
GLabel& filename_label() { return *m_filename_label; }
GUI::Label& filename_label() { return *m_filename_label; }
void set_editor_has_focus(Badge<Editor>, bool);
private:
explicit EditorWrapper(GWidget* parent = nullptr);
explicit EditorWrapper(GUI::Widget* parent = nullptr);
RefPtr<GLabel> m_filename_label;
RefPtr<GLabel> m_cursor_label;
RefPtr<GUI::Label> m_filename_label;
RefPtr<GUI::Label> m_cursor_label;
RefPtr<Editor> m_editor;
};