OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::ShowJsonDialog Class Reference
Inheritance diagram for Slic3r::GUI::ShowJsonDialog:
Collaboration diagram for Slic3r::GUI::ShowJsonDialog:

Public Member Functions

 ShowJsonDialog (wxWindow *parent, const wxString &json, const wxSize &size)

Detailed Description

Constructor & Destructor Documentation

◆ ShowJsonDialog()

Slic3r::GUI::ShowJsonDialog::ShowJsonDialog ( wxWindow * parent,
const wxString & json,
const wxSize & size )
inline
161 : wxDialog(parent, wxID_ANY, wxEmptyString, wxDefaultPosition, size, wxCAPTION|wxRESIZE_BORDER)
162 {
163 auto* text = new wxTextCtrl(this, wxID_ANY, json,
164 wxDefaultPosition, wxDefaultSize,
165 wxTE_MULTILINE | wxTE_READONLY | wxTE_DONTWRAP);
166 text->SetFont(wxGetApp().code_font());
167 text->ShowPosition(0);
168
169 //auto* btn = new wxButton(this, wxID_CANCEL, _L("Close"));
170 auto* btn = new wxButton(this, wxID_CANCEL, wxEmptyString);
171 auto* vsizer = new wxBoxSizer(wxVERTICAL);
172 auto *top_sizer = new wxBoxSizer(wxVERTICAL);
173 vsizer->Add(text, 1, wxEXPAND);
174 vsizer->AddSpacer(5);
175 vsizer->Add(btn, 0, wxALIGN_CENTER_HORIZONTAL);
176 top_sizer->Add(vsizer, 1, wxEXPAND | wxLEFT | wxTOP | wxRIGHT | wxBOTTOM, 10);
177 SetSizer(top_sizer);
178 #ifdef _WIN32
179 wxGetApp().UpdateDlgDarkUI(this);
180 #endif
181 }
class WXDLLIMPEXP_FWD_CORE wxButton
Definition ProgressDialog.hpp:27
nlohmann::json json
Definition AssembleList.cpp:42

References wxButton.


The documentation for this class was generated from the following file: