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

36 lines
665 B
C++
Raw Normal View History

2018-04-20 11:27:25 +00:00
#ifndef slic3r_ButtonsDescription_hpp
#define slic3r_ButtonsDescription_hpp
#include <wx/dialog.h>
#include <vector>
class ScalableBitmap;
2018-04-20 11:27:25 +00:00
namespace Slic3r {
namespace GUI {
class ButtonsDescription : public wxDialog
{
public:
2019-05-09 17:24:21 +00:00
struct Entry {
Entry(ScalableBitmap *bitmap, const std::string &symbol, const std::string &explanation) : bitmap(bitmap), symbol(symbol), explanation(explanation) {}
ScalableBitmap *bitmap;
std::string symbol;
std::string explanation;
};
ButtonsDescription(wxWindow* parent, const std::vector<Entry> &entries);
2018-10-31 11:56:08 +00:00
~ButtonsDescription() {}
2019-05-09 17:24:21 +00:00
private:
std::vector<Entry> m_entries;
2018-04-20 11:27:25 +00:00
};
} // GUI
} // Slic3r
#endif