First draft of SendSystemInfoDialog

This commit is contained in:
Lukas Matena 2021-08-11 12:03:44 +02:00
parent 37219fe4f3
commit faa808b385
8 changed files with 401 additions and 19 deletions

View 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_