1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:27:44 +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

@ -29,15 +29,17 @@
#include <AK/HashTable.h>
#include <AK/Weakable.h>
class GAction;
namespace GUI {
class GActionGroup : public Weakable<GActionGroup> {
class Action;
class ActionGroup : public Weakable<ActionGroup> {
public:
GActionGroup() {}
~GActionGroup() {}
ActionGroup() {}
~ActionGroup() {}
void add_action(GAction&);
void remove_action(GAction&);
void add_action(Action&);
void remove_action(Action&);
bool is_exclusive() const { return m_exclusive; }
void set_exclusive(bool exclusive) { m_exclusive = exclusive; }
@ -55,7 +57,9 @@ public:
}
private:
HashTable<GAction*> m_actions;
HashTable<Action*> m_actions;
bool m_exclusive { false };
bool m_unchecking_allowed { false };
};
}