summaryrefslogtreecommitdiff
path: root/Userland/Applications/CharacterMap/CharacterMapWidget.h
blob: 0b57a35a01f8f57ef7fbec079d84198d747c91d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * 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::TextBox> m_output_box;
    RefPtr<GUI::Button> m_copy_output_button;
    RefPtr<GUI::Statusbar> m_statusbar;

    RefPtr<GUI::Action> m_choose_font_action;
    RefPtr<GUI::Action> m_copy_selection_action;
    RefPtr<GUI::Action> m_previous_glyph_action;
    RefPtr<GUI::Action> m_next_glyph_action;
    RefPtr<GUI::Action> m_go_to_glyph_action;
};