mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 07:17:35 +00:00
WindowServer+Keymap+LibGUI: Add widget to display current keymap
This commit is contained in:
parent
68a01f0e27
commit
b9c558f6c6
14 changed files with 160 additions and 17 deletions
27
Userland/Applets/Keymap/KeymapStatusWindow.h
Normal file
27
Userland/Applets/Keymap/KeymapStatusWindow.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Timur Sultanov <SultanovTS@yandex.ru>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibGUI/Label.h>
|
||||
#include <LibGUI/Window.h>
|
||||
|
||||
class KeymapStatusWidget;
|
||||
|
||||
class KeymapStatusWindow final : public GUI::Window {
|
||||
C_OBJECT(KeymapStatusWindow)
|
||||
public:
|
||||
virtual ~KeymapStatusWindow() override;
|
||||
|
||||
private:
|
||||
void wm_event(GUI::WMEvent&) override;
|
||||
|
||||
KeymapStatusWindow();
|
||||
|
||||
RefPtr<GUI::Label> m_label;
|
||||
|
||||
void set_keymap_text(String const& keymap);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue