mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +00:00
CharacterMap: Add new Character Map application :^)
This commit is contained in:
parent
1d79e8cb0f
commit
2327ea8970
7 changed files with 278 additions and 0 deletions
34
Userland/Applications/CharacterMap/CharacterMapWidget.h
Normal file
34
Userland/Applications/CharacterMap/CharacterMapWidget.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Sam Atkins <atkinssj@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibGUI/Button.h>
|
||||
#include <LibGUI/GlyphMapWidget.h>
|
||||
#include <LibGUI/Statusbar.h>
|
||||
|
||||
class CharacterMapWidget final : public GUI::Widget {
|
||||
C_OBJECT(CharacterMapWidget);
|
||||
|
||||
public:
|
||||
virtual ~CharacterMapWidget() override;
|
||||
|
||||
void initialize_menubar(GUI::Window& window);
|
||||
|
||||
private:
|
||||
CharacterMapWidget();
|
||||
|
||||
virtual void did_change_font() override;
|
||||
void update_statusbar();
|
||||
|
||||
RefPtr<GUI::Toolbar> m_toolbar;
|
||||
RefPtr<GUI::Label> m_font_name_label;
|
||||
RefPtr<GUI::GlyphMapWidget> m_glyph_map;
|
||||
RefPtr<GUI::Statusbar> m_statusbar;
|
||||
|
||||
RefPtr<GUI::Action> m_choose_font_action;
|
||||
RefPtr<GUI::Action> m_copy_selection_action;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue