New keyboard shortcuts dialog -> Scrollable pages and resizable dialog

This commit is contained in:
Enrico Turri 2020-02-12 11:25:36 +01:00
parent b5152e4126
commit c33dc5c2fe
2 changed files with 35 additions and 2 deletions

View file

@ -8,6 +8,8 @@
#include "GUI_Utils.hpp"
#include "wxExtensions.hpp"
#define ENABLE_SCROLLABLE 1
namespace Slic3r {
namespace GUI {
@ -20,6 +22,9 @@ class KBShortcutsDialog : public DPIDialog
ShortcutsVec m_full_shortcuts;
ScalableBitmap m_logo_bmp;
wxStaticBitmap* m_header_bitmap;
#if ENABLE_SCROLLABLE
std::vector<wxPanel*> m_pages;
#endif // ENABLE_SCROLLABLE
public:
KBShortcutsDialog();
@ -32,6 +37,7 @@ private:
wxPanel* create_header(wxWindow* parent, const wxFont& bold_font);
wxPanel* create_page(wxWindow* parent, const std::pair<wxString, Shortcuts>& shortcuts, const wxFont& font, const wxFont& bold_font);
};
} // namespace GUI