1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +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,12 @@
#include <LibGUI/GFrame.h>
class GProgressBar : public GFrame {
C_OBJECT(GProgressBar)
namespace GUI {
class ProgressBar : public Frame {
C_OBJECT(ProgressBar)
public:
virtual ~GProgressBar() override;
virtual ~ProgressBar() override;
void set_range(int min, int max);
void set_min(int min) { set_range(min, max()); }
@ -54,9 +56,9 @@ public:
void set_format(Format format) { m_format = format; }
protected:
explicit GProgressBar(GWidget* parent);
explicit ProgressBar(Widget* parent);
virtual void paint_event(GPaintEvent&) override;
virtual void paint_event(PaintEvent&) override;
private:
Format m_format { Percentage };
@ -65,3 +67,5 @@ private:
int m_value { 0 };
String m_caption;
};
}