First draft of SendSystemInfoDialog
This commit is contained in:
39
src/slic3r/GUI/SendSystemInfoDialog.hpp
Normal file
39
src/slic3r/GUI/SendSystemInfoDialog.hpp
Normal file
@@ -0,0 +1,39 @@
|
||||
#ifndef slic3r_SendSystemInfoDialog_hpp_
|
||||
#define slic3r_SendSystemInfoDialog_hpp_
|
||||
|
||||
#include "GUI_Utils.hpp"
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
namespace GUI {
|
||||
|
||||
class SendSystemInfoDialog : public DPIDialog
|
||||
{
|
||||
enum {
|
||||
DIALOG_MARGIN = 15,
|
||||
SPACING = 10,
|
||||
MIN_WIDTH = 60,
|
||||
MIN_HEIGHT = 40,
|
||||
MIN_HEIGHT_EXPANDED = 40,
|
||||
};
|
||||
|
||||
public:
|
||||
SendSystemInfoDialog(wxWindow* parent);
|
||||
|
||||
private:
|
||||
const std::string m_system_info_json;
|
||||
int m_min_width;
|
||||
int m_min_height;
|
||||
|
||||
void on_dpi_changed(const wxRect&) override;
|
||||
};
|
||||
|
||||
void show_send_system_info_dialog_if_needed();
|
||||
|
||||
|
||||
} // namespace GUI
|
||||
} // namespace Slic3r
|
||||
|
||||
#endif // slic3r_SendSystemInfoDialog_hpp_
|
||||
Reference in New Issue
Block a user