mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
New keyboard shortcuts dialog -> Scrollable pages and resizable dialog
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user