Add a new error dialog

This commit is contained in:
Vojtech Kral 2018-04-30 14:31:57 +02:00
parent 4344eaebca
commit 5624b8afd2
9 changed files with 178 additions and 85 deletions

View file

@ -4,11 +4,8 @@
#include <string>
#include <unordered_map>
#include <wx/dialog.h>
#include <wx/font.h>
#include <wx/bitmap.h>
#include "slic3r/Utils/Semver.hpp"
#include "MsgDialog.hpp"
class wxBoxSizer;
class wxCheckBox;
@ -18,26 +15,6 @@ namespace Slic3r {
namespace GUI {
// A message / query dialog with a bitmap on the left and any content on the right
// with buttons underneath.
struct MsgDialog : wxDialog
{
MsgDialog(MsgDialog &&) = delete;
MsgDialog(const MsgDialog &) = delete;
MsgDialog &operator=(MsgDialog &&) = delete;
MsgDialog &operator=(const MsgDialog &) = delete;
virtual ~MsgDialog();
protected:
// button_id is an id of a button that can be added by default, use wxID_NONE to disable
MsgDialog(const wxString &title, const wxString &headline, wxWindowID button_id = wxID_OK);
MsgDialog(const wxString &title, const wxString &headline, wxBitmap bitmap, wxWindowID button_id = wxID_OK);
wxFont boldfont;
wxBoxSizer *content_sizer;
wxBoxSizer *btn_sizer;
};
// A confirmation dialog listing configuration updates
class MsgUpdateSlic3r : public MsgDialog
{