#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/HMSPanel.hpp>
◆ HMSPanel()
| Slic3r::GUI::HMSPanel::HMSPanel |
( |
wxWindow * | parent, |
|
|
wxWindowID | id = wxID_ANY, |
|
|
const wxPoint & | pos = wxDefaultPosition, |
|
|
const wxSize & | size = wxDefaultSize, |
|
|
long | style = wxTAB_TRAVERSAL ) |
178 :wxPanel(parent,
id, pos, size,
style)
179{
180 this->SetBackgroundColour(wxColour(238, 238, 238));
181
182 auto m_main_sizer = new wxBoxSizer(wxVERTICAL);
183
184 m_scrolledWindow =
new wxScrolledWindow(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL);
187
189
191
193
195
196 this->SetSizerAndFit(m_main_sizer);
197
198 Layout();
199
200 wxGetApp().UpdateDarkUIWin(this);
201}
#define style
Definition WipeTowerDialog.cpp:101
wxScrolledWindow * m_scrolledWindow
Definition HMSPanel.hpp:55
wxBoxSizer * m_top_sizer
Definition HMSPanel.hpp:56
References m_scrolledWindow, m_top_sizer, and style.
◆ ~HMSPanel()
| Slic3r::GUI::HMSPanel::~HMSPanel |
( |
| ) |
|
◆ append_hms_panel()
| void Slic3r::GUI::HMSPanel::append_hms_panel |
( |
const std::string & | dev_id, |
|
|
DevHMSItem & | item ) |
|
protected |
◆ clear_hms_tag()
| void Slic3r::GUI::HMSPanel::clear_hms_tag |
( |
| ) |
|
224{
226}
std::map< std::string, DevHMSItem > temp_hms_list
Definition HMSPanel.hpp:79
References temp_hms_list.
◆ delete_hms_panels()
| void Slic3r::GUI::HMSPanel::delete_hms_panels |
( |
| ) |
|
|
protected |
◆ msw_rescale()
| void Slic3r::GUI::HMSPanel::msw_rescale |
( |
| ) |
|
|
inline |
◆ Show()
| bool Slic3r::GUI::HMSPanel::Show |
( |
bool | show = true | ) |
|
|
override |
289{
290 return wxPanel::Show(show);
291}
◆ show_status()
| void Slic3r::GUI::HMSPanel::show_status |
( |
int | status | ) |
|
◆ update()
229{
231 this->Freeze();
233 wxString hms_text;
234 for (
auto item :
obj->GetHMS()->GetHMSItems()) {
235 if (wxGetApp().get_hms_query()) {
236
237 auto key = item.get_long_error_code();
241 }
242
244 }
245 }
246
248 auto key = it->second.get_long_error_code();
249 bool inr = false;
250 for (
auto hms :
obj->GetHMS()->GetHMSItems()) {
251 if (hms.get_long_error_code() == key) {
252 inr = true;
253 break;
254 }
255 }
256
257 if (!inr) {
259 }
260 else {
261 ++it;
262 }
263 }
264
265 Layout();
266 this->Thaw();
267 } else {
269 Layout();
270 }
271}
MachineObject * obj
Definition HMSPanel.hpp:78
void append_hms_panel(const std::string &dev_id, DevHMSItem &item)
Definition HMSPanel.cpp:207
References append_hms_panel(), delete_hms_panels(), obj, and temp_hms_list.
◆ last_status
| int Slic3r::GUI::HMSPanel::last_status |
|
protected |
◆ m_scrolledWindow
| wxScrolledWindow* Slic3r::GUI::HMSPanel::m_scrolledWindow |
|
protected |
◆ m_top_sizer
| wxBoxSizer* Slic3r::GUI::HMSPanel::m_top_sizer |
|
protected |
◆ obj
◆ temp_hms_list
| std::map<std::string, DevHMSItem> Slic3r::GUI::HMSPanel::temp_hms_list |
The documentation for this class was generated from the following files:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/HMSPanel.hpp
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/HMSPanel.cpp