mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 21:55:07 +00:00

https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
31 lines
721 B
C++
31 lines
721 B
C++
/*
|
|
* Copyright (c) 2021, Timur Sultanov <SultanovTS@yandex.ru>
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGUI/Label.h>
|
|
#include <LibGUI/Window.h>
|
|
|
|
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 = default;
|
|
|
|
private:
|
|
virtual void wm_event(GUI::WMEvent&) override;
|
|
|
|
KeymapStatusWindow();
|
|
|
|
RefPtr<KeymapStatusWidget> m_status_widget;
|
|
|
|
void set_keymap_text(String const& keymap);
|
|
};
|