2022-01-19 08:44:56 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, Timur Sultanov <SultanovTS@yandex.ru>
|
2022-02-10 15:24:17 -03:00
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
2022-01-19 08:44:56 -03:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2022-04-02 20:06:35 -03:00
|
|
|
#include "KeymapStatusWidget.h"
|
2022-01-19 08:44:56 -03:00
|
|
|
#include <LibGUI/Label.h>
|
|
|
|
|
#include <LibGUI/Window.h>
|
|
|
|
|
|
|
|
|
|
class KeymapStatusWindow final : public GUI::Window {
|
|
|
|
|
C_OBJECT(KeymapStatusWindow)
|
|
|
|
|
public:
|
2022-02-10 15:24:17 -03:00
|
|
|
virtual ~KeymapStatusWindow() override = default;
|
2022-01-19 08:44:56 -03:00
|
|
|
|
|
|
|
|
private:
|
2022-02-04 17:04:25 -03:00
|
|
|
virtual void wm_event(GUI::WMEvent&) override;
|
2022-01-19 08:44:56 -03:00
|
|
|
|
|
|
|
|
KeymapStatusWindow();
|
|
|
|
|
|
2022-02-04 17:04:25 -03:00
|
|
|
RefPtr<KeymapStatusWidget> m_status_widget;
|
2022-01-19 08:44:56 -03:00
|
|
|
|
|
|
|
|
void set_keymap_text(String const& keymap);
|
|
|
|
|
};
|