2018-12-19 12:06:24 +00:00
|
|
|
#ifndef slic3r_GUI_KBShortcutsDialog_hpp_
|
|
|
|
#define slic3r_GUI_KBShortcutsDialog_hpp_
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <map>
|
2019-03-02 06:40:24 +00:00
|
|
|
#include <vector>
|
2018-12-19 12:06:24 +00:00
|
|
|
|
2019-04-18 00:03:40 +00:00
|
|
|
#include "GUI_Utils.hpp"
|
|
|
|
#include "wxExtensions.hpp"
|
|
|
|
|
2018-12-19 12:06:24 +00:00
|
|
|
namespace Slic3r {
|
|
|
|
namespace GUI {
|
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
class KBShortcutsDialog : public DPIDialog
|
2018-12-19 12:06:24 +00:00
|
|
|
{
|
2019-04-18 00:03:40 +00:00
|
|
|
enum PLACED_SIZER_ID
|
|
|
|
{
|
|
|
|
szLeft = 0,
|
|
|
|
szRight
|
|
|
|
};
|
|
|
|
|
2018-12-19 12:06:24 +00:00
|
|
|
typedef std::pair<std::string, std::string> Shortcut;
|
|
|
|
typedef std::vector< Shortcut > Shortcuts;
|
2019-04-18 00:03:40 +00:00
|
|
|
typedef std::vector< std::pair<wxString, std::pair<Shortcuts, PLACED_SIZER_ID>> > ShortcutsVec;
|
2018-12-19 12:06:24 +00:00
|
|
|
|
|
|
|
wxString text_info {wxEmptyString};
|
|
|
|
|
2019-04-18 00:03:40 +00:00
|
|
|
ShortcutsVec m_full_shortcuts;
|
2019-04-24 23:45:00 +00:00
|
|
|
ScalableBitmap m_logo_bmp;
|
2019-04-18 00:03:40 +00:00
|
|
|
std::vector<wxStaticBitmap*> m_head_bitmaps;
|
2018-12-19 12:06:24 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
KBShortcutsDialog();
|
|
|
|
|
|
|
|
void fill_shortcuts();
|
|
|
|
|
2019-04-18 00:03:40 +00:00
|
|
|
protected:
|
|
|
|
void on_dpi_changed(const wxRect &suggested_rect) override;
|
|
|
|
|
2018-12-19 12:06:24 +00:00
|
|
|
private:
|
|
|
|
void onCloseDialog(wxEvent &);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace GUI
|
|
|
|
} // namespace Slic3r
|
|
|
|
|
|
|
|
#endif
|