diff options
author | YuSanka <yusanka@gmail.com> | 2021-10-26 15:52:20 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2021-10-26 15:52:45 +0300 |
commit | ef0dae8c97839686e41753cb03232b5a04d6e954 (patch) | |
tree | f346c701bde4637325281f065c9029190c4ae5c6 /src/slic3r/GUI/MsgDialog.hpp | |
parent | fe748ca43bdf40f0852d7f659bd024f30853579f (diff) |
Implemented possibility to apply conversion from inches/meters to mm for all loaded objects at once
+ Added MessageWithCheckBox dialog
+ some code refactoring for MessageDlg
Diffstat (limited to 'src/slic3r/GUI/MsgDialog.hpp')
-rw-r--r-- | src/slic3r/GUI/MsgDialog.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/slic3r/GUI/MsgDialog.hpp b/src/slic3r/GUI/MsgDialog.hpp index 77617fea1..d3263f970 100644 --- a/src/slic3r/GUI/MsgDialog.hpp +++ b/src/slic3r/GUI/MsgDialog.hpp @@ -43,6 +43,8 @@ protected: MsgDialog(wxWindow *parent, const wxString &title, const wxString &headline, wxWindowID button_id = wxID_OK, wxBitmap bitmap = wxNullBitmap); void add_btn(wxWindowID btn_id, bool set_focus = false); + void apply_style(long style); + void finalize(); wxFont boldfont; wxBoxSizer *content_sizer; @@ -113,6 +115,23 @@ public: }; #endif +class MessageWithCheckDialog : public MsgDialog +{ + wxCheckBox* m_check{ nullptr }; +public: + MessageWithCheckDialog(wxWindow* parent, + const wxString& message, + const wxString& checkbox_label, + const wxString& caption = wxEmptyString, + long style = wxOK); + MessageWithCheckDialog(MessageWithCheckDialog&&) = delete; + MessageWithCheckDialog(const MessageWithCheckDialog&) = delete; + MessageWithCheckDialog& operator=(MessageWithCheckDialog&&) = delete; + MessageWithCheckDialog& operator=(const MessageWithCheckDialog&) = delete; + virtual ~MessageWithCheckDialog() = default; + + bool GetCheckVal(); +}; // Generic info dialog, used for displaying exceptions class InfoDialog : public MsgDialog |