1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 18:35:09 +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,14 +28,16 @@
#include <LibGUI/GDialog.h>
class GButton;
class GTextEditor;
namespace GUI {
class GInputBox : public GDialog {
C_OBJECT(GInputBox)
class Button;
class TextEditor;
class InputBox : public Dialog {
C_OBJECT(InputBox)
public:
explicit GInputBox(const StringView& prompt, const StringView& title, Core::Object* parent = nullptr);
virtual ~GInputBox() override;
explicit InputBox(const StringView& prompt, const StringView& title, Core::Object* parent = nullptr);
virtual ~InputBox() override;
String text_value() const { return m_text_value; }
@ -44,7 +46,9 @@ private:
String m_prompt;
String m_text_value;
RefPtr<GButton> m_ok_button;
RefPtr<GButton> m_cancel_button;
RefPtr<GTextEditor> m_text_editor;
RefPtr<Button> m_ok_button;
RefPtr<Button> m_cancel_button;
RefPtr<TextEditor> m_text_editor;
};
}