2022-01-10 18:59:42 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, Sam Atkins <atkinssj@serenityos.org>
|
2022-02-10 22:28:48 +03:00
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
2022-01-10 18:59:42 +03:00
|
|
|
*
|
|
|
|
* 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:
|
2022-02-10 22:28:48 +03:00
|
|
|
virtual ~CharacterMapWidget() override = default;
|
2022-01-10 18:59:42 +03:00
|
|
|
|
|
|
|
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;
|
2022-01-11 23:24:11 +03:00
|
|
|
RefPtr<GUI::TextBox> m_output_box;
|
|
|
|
RefPtr<GUI::Button> m_copy_output_button;
|
2022-01-10 18:59:42 +03:00
|
|
|
RefPtr<GUI::Statusbar> m_statusbar;
|
2022-01-12 19:12:59 +03:00
|
|
|
RefPtr<GUI::Window> m_find_window;
|
2022-02-13 21:47:55 +03:00
|
|
|
RefPtr<GUI::ListView> m_unicode_block_listview;
|
|
|
|
RefPtr<GUI::Model> m_unicode_block_model;
|
2022-01-10 18:59:42 +03:00
|
|
|
|
|
|
|
RefPtr<GUI::Action> m_choose_font_action;
|
|
|
|
RefPtr<GUI::Action> m_copy_selection_action;
|
2022-01-11 23:52:03 +03:00
|
|
|
RefPtr<GUI::Action> m_previous_glyph_action;
|
|
|
|
RefPtr<GUI::Action> m_next_glyph_action;
|
|
|
|
RefPtr<GUI::Action> m_go_to_glyph_action;
|
2022-01-12 19:12:59 +03:00
|
|
|
RefPtr<GUI::Action> m_find_glyphs_action;
|
2022-02-13 21:47:55 +03:00
|
|
|
|
2022-12-04 21:02:33 +03:00
|
|
|
Vector<DeprecatedString> m_unicode_block_list;
|
2022-02-13 21:47:55 +03:00
|
|
|
Unicode::CodePointRange m_range { 0x0000, 0x10FFFF };
|
2022-01-10 18:59:42 +03:00
|
|
|
};
|