2018-12-19 13:06:24 +01:00
|
|
|
#ifndef slic3r_GUI_KBShortcutsDialog_hpp_
|
|
|
|
#define slic3r_GUI_KBShortcutsDialog_hpp_
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <map>
|
2019-03-02 01:40:24 -05:00
|
|
|
#include <vector>
|
2018-12-19 13:06:24 +01:00
|
|
|
|
2019-04-18 02:03:40 +02:00
|
|
|
#include "GUI_Utils.hpp"
|
|
|
|
#include "wxExtensions.hpp"
|
|
|
|
|
2018-12-19 13:06:24 +01:00
|
|
|
namespace Slic3r {
|
|
|
|
namespace GUI {
|
|
|
|
|
2019-04-25 01:45:00 +02:00
|
|
|
class KBShortcutsDialog : public DPIDialog
|
2018-12-19 13:06:24 +01:00
|
|
|
{
|
|
|
|
typedef std::pair<std::string, std::string> Shortcut;
|
2020-02-12 08:49:56 +01:00
|
|
|
typedef std::vector<Shortcut> Shortcuts;
|
|
|
|
typedef std::vector<std::pair<wxString, Shortcuts>> ShortcutsVec;
|
2018-12-19 13:06:24 +01:00
|
|
|
|
2020-02-12 08:49:56 +01:00
|
|
|
ShortcutsVec m_full_shortcuts;
|
|
|
|
ScalableBitmap m_logo_bmp;
|
|
|
|
wxStaticBitmap* m_header_bitmap;
|
2020-02-12 11:25:36 +01:00
|
|
|
std::vector<wxPanel*> m_pages;
|
2018-12-19 13:06:24 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
KBShortcutsDialog();
|
|
|
|
|
2019-04-18 02:03:40 +02:00
|
|
|
protected:
|
|
|
|
void on_dpi_changed(const wxRect &suggested_rect) override;
|
|
|
|
|
2018-12-19 13:06:24 +01:00
|
|
|
private:
|
2020-02-11 14:27:44 +01:00
|
|
|
void fill_shortcuts();
|
|
|
|
|
|
|
|
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);
|
2020-02-12 11:25:36 +01:00
|
|
|
|
2018-12-19 13:06:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace GUI
|
|
|
|
} // namespace Slic3r
|
|
|
|
|
|
|
|
#endif
|