1// Aseprite
2// Copyright (C) 2021 Igara Studio S.A.
3// Copyright (C) 2001-2017 David Capello
4//
5// This program is distributed under the terms of
6// the End-User License Agreement for Aseprite.
7
8#ifndef APP_UI_FONT_POPUP_H_INCLUDED
9#define APP_UI_FONT_POPUP_H_INCLUDED
10#pragma once
11
12#include "ui/listbox.h"
13#include "ui/popup_window.h"
14
15namespace ui {
16 class Button;
17 class View;
18}
19
20namespace app {
21
22 namespace gen {
23 class FontPopup;
24 }
25
26 class FontPopup : public ui::PopupWindow {
27 public:
28 FontPopup();
29
30 void showPopup(ui::Display* display,
31 const gfx::Rect& buttonBounds);
32
33 obs::signal<void(const std::string&)> Load;
34
35 protected:
36 void onSearchChange();
37 void onChangeFont();
38 void onLoadFont();
39
40 private:
41 gen::FontPopup* m_popup;
42 ui::ListBox m_listBox;
43 };
44
45} // namespace app
46
47#endif
48