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
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
namespace GUI {
|
|
|
|
|
|
|
|
class KBShortcutsDialog : public wxDialog
|
|
|
|
{
|
|
|
|
typedef std::pair<std::string, std::string> Shortcut;
|
|
|
|
typedef std::vector< Shortcut > Shortcuts;
|
2019-01-31 12:21:17 +00:00
|
|
|
typedef std::vector< std::pair<wxString, std::pair<Shortcuts, int>> > ShortcutsVec;
|
2018-12-19 12:06:24 +00:00
|
|
|
|
|
|
|
wxString text_info {wxEmptyString};
|
|
|
|
|
2019-01-31 12:21:17 +00:00
|
|
|
ShortcutsVec m_full_shortcuts;
|
2018-12-19 12:06:24 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
KBShortcutsDialog();
|
|
|
|
|
|
|
|
void fill_shortcuts();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void onCloseDialog(wxEvent &);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace GUI
|
|
|
|
} // namespace Slic3r
|
|
|
|
|
|
|
|
#endif
|