1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:07:45 +00:00

Keymap Applet: Spawn KeyboardSettings when clicking

This commit is contained in:
Maciej 2022-02-04 21:04:25 +01:00 committed by Andreas Kling
parent e087cd574e
commit 99e3e42fa5
3 changed files with 24 additions and 12 deletions

View file

@ -9,19 +9,22 @@
#include <LibGUI/Label.h>
#include <LibGUI/Window.h>
class KeymapStatusWidget;
class KeymapStatusWidget : public GUI::Label {
C_OBJECT(KeymapStatusWidget);
virtual void mousedown_event(GUI::MouseEvent& event) override;
};
class KeymapStatusWindow final : public GUI::Window {
C_OBJECT(KeymapStatusWindow)
public:
virtual ~KeymapStatusWindow() override;
private:
void wm_event(GUI::WMEvent&) override;
virtual void wm_event(GUI::WMEvent&) override;
KeymapStatusWindow();
RefPtr<GUI::Label> m_label;
RefPtr<KeymapStatusWidget> m_status_widget;
void set_keymap_text(String const& keymap);
};