mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +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:
parent
2d39da5405
commit
c5bd9d4ed1
337 changed files with 5400 additions and 4816 deletions
|
@ -29,8 +29,10 @@
|
|||
#include <LibCore/CEventLoop.h>
|
||||
#include <LibGUI/GWindow.h>
|
||||
|
||||
class GDialog : public GWindow {
|
||||
C_OBJECT(GDialog)
|
||||
namespace GUI {
|
||||
|
||||
class Dialog : public Window {
|
||||
C_OBJECT(Dialog)
|
||||
public:
|
||||
enum ExecResult {
|
||||
ExecOK = 0,
|
||||
|
@ -38,7 +40,7 @@ public:
|
|||
ExecAborted = 2
|
||||
};
|
||||
|
||||
virtual ~GDialog() override;
|
||||
virtual ~Dialog() override;
|
||||
|
||||
int exec();
|
||||
|
||||
|
@ -50,9 +52,11 @@ public:
|
|||
virtual void close() override;
|
||||
|
||||
protected:
|
||||
explicit GDialog(Core::Object* parent);
|
||||
explicit Dialog(Core::Object* parent);
|
||||
|
||||
private:
|
||||
OwnPtr<Core::EventLoop> m_event_loop;
|
||||
int m_result { ExecAborted };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue