PrusaSlicer-NonPlainar/src/slic3r/GUI/KBShortcutsDialog.hpp

34 lines
667 B
C++
Raw Normal View History

2018-12-19 12:06:24 +00:00
#ifndef slic3r_GUI_KBShortcutsDialog_hpp_
#define slic3r_GUI_KBShortcutsDialog_hpp_
#include <wx/wx.h>
#include <map>
#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