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

48 lines
972 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
#include "GUI_Utils.hpp"
#include "wxExtensions.hpp"
2018-12-19 12:06:24 +00:00
namespace Slic3r {
namespace GUI {
class KBShortcutsDialog : public DPIDialog
2018-12-19 12:06:24 +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;
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};
ShortcutsVec m_full_shortcuts;
ScalableBitmap m_logo_bmp;
std::vector<wxStaticBitmap*> m_head_bitmaps;
2018-12-19 12:06:24 +00:00
public:
KBShortcutsDialog();
void fill_shortcuts();
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