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:
parent
2d39da5405
commit
c5bd9d4ed1
337 changed files with 5400 additions and 4816 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue