#ifndef slic3r_GUI_KBShortcutsDialog_hpp_ #define slic3r_GUI_KBShortcutsDialog_hpp_ #include #include #include #include "GUI_Utils.hpp" #include "wxExtensions.hpp" #define ENABLE_SCROLLABLE 1 namespace Slic3r { namespace GUI { class KBShortcutsDialog : public DPIDialog { typedef std::pair Shortcut; typedef std::vector Shortcuts; typedef std::vector> ShortcutsVec; ShortcutsVec m_full_shortcuts; ScalableBitmap m_logo_bmp; wxStaticBitmap* m_header_bitmap; #if ENABLE_SCROLLABLE std::vector m_pages; #endif // ENABLE_SCROLLABLE public: KBShortcutsDialog(); protected: void on_dpi_changed(const wxRect &suggested_rect) override; private: void fill_shortcuts(); wxPanel* create_header(wxWindow* parent, const wxFont& bold_font); wxPanel* create_page(wxWindow* parent, const std::pair& shortcuts, const wxFont& font, const wxFont& bold_font); }; } // namespace GUI } // namespace Slic3r #endif