mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-26 10:11:10 -06:00
First draft of SendSystemInfoDialog
This commit is contained in:
parent
37219fe4f3
commit
faa808b385
8 changed files with 401 additions and 19 deletions
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_
|
||||
Loading…
Add table
Add a link
Reference in a new issue