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

44 lines
817 B
C++
Raw Normal View History

2018-05-04 14:04:43 +00:00
#ifndef slic3r_FirmwareDialog_hpp_
#define slic3r_FirmwareDialog_hpp_
#include <memory>
#include <wx/dialog.h>
#include "GUI_Utils.hpp"
2018-05-04 14:04:43 +00:00
namespace Slic3r {
class FirmwareDialog: public GUI::DPIDialog
2018-05-04 14:04:43 +00:00
{
enum {
DIALOG_MARGIN = 15,
SPACING = 10,
MIN_WIDTH = 50,
MIN_HEIGHT = /*18*/25,
MIN_HEIGHT_EXPANDED = 40,
};
2018-05-04 14:04:43 +00:00
public:
FirmwareDialog(wxWindow *parent);
FirmwareDialog(FirmwareDialog &&) = delete;
FirmwareDialog(const FirmwareDialog &) = delete;
FirmwareDialog &operator=(FirmwareDialog &&) = delete;
FirmwareDialog &operator=(const FirmwareDialog &) = delete;
~FirmwareDialog();
static void run(wxWindow *parent);
protected:
void on_dpi_changed(const wxRect &suggested_rect) override;
2018-05-04 14:04:43 +00:00
private:
struct priv;
std::unique_ptr<priv> p;
};
}
#endif