mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -06:00
New keyboard shortcuts dialog -> Scrollable pages and resizable dialog
This commit is contained in:
parent
b5152e4126
commit
c33dc5c2fe
2 changed files with 35 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue