OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::DevicePickItem Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/MultiMachinePage.hpp>

Inheritance diagram for Slic3r::GUI::DevicePickItem:
Collaboration diagram for Slic3r::GUI::DevicePickItem:

Public Member Functions

 DevicePickItem (wxWindow *parent, MachineObject *obj)
 ~DevicePickItem ()
void DrawTextWithEllipsis (wxDC &dc, const wxString &text, int maxWidth, int left, int top=0)
void OnEnterWindow (wxMouseEvent &evt)
void OnLeaveWindow (wxMouseEvent &evt)
void OnSelectedDevice (wxCommandEvent &evt)
void OnLeftDown (wxMouseEvent &evt)
void OnMove (wxMouseEvent &evt)
void paintEvent (wxPaintEvent &evt)
void render (wxDC &dc)
void doRender (wxDC &dc)
void post_event (wxCommandEvent &&event)
virtual void DoSetSize (int x, int y, int width, int height, int sizeFlags=wxSIZE_AUTO)
void on_refresh (wxCommandEvent &evt)
void sync_state ()
wxString get_state_printable ()
int get_state_printable () const
wxString get_state_device ()
int get_state_device () const
wxString get_local_state_task ()
wxString get_cloud_state_task ()
MachineObject * get_obj () const
int get_state_online () const
int get_state_selected () const
int get_state_enable_ams () const
int get_state_local_task () const
int get_state_cloud_task () const
std::string get_state_dev_name () const
void selected ()
void unselected ()
void update_item (const DeviceItem *item)

Public Attributes

bool m_hover { false }
ScalableBitmap m_bitmap_check_disable
ScalableBitmap m_bitmap_check_off
ScalableBitmap m_bitmap_check_on
MachineObject * obj_ {nullptr}
int state_online = { 0 }
std::string state_dev_name
int state_printable { 0 }
int state_selected { 0 }
int state_enable_ams { 0 }
int state_device { 0 }
int state_local_task { 0 }
int state_cloud_task { 0 }
int state_optional {0}
std::string m_send_time

Detailed Description

Constructor & Destructor Documentation

◆ DevicePickItem()

Slic3r::GUI::DevicePickItem::DevicePickItem ( wxWindow * parent,
MachineObject * obj )
142 : DeviceItem(parent, obj)
143{
144 SetBackgroundColour(*wxWHITE);
145 m_bitmap_check_disable = ScalableBitmap(this, "check_off_disabled", 18);
146 m_bitmap_check_off = ScalableBitmap(this, "check_off_focused", 18);
147 m_bitmap_check_on = ScalableBitmap(this, "check_on", 18);
148
149
150 SetMinSize(wxSize(FromDIP(400), FromDIP(30)));
151 SetMaxSize(wxSize(FromDIP(400), FromDIP(30)));
152
153 Bind(wxEVT_PAINT, &DevicePickItem::paintEvent, this);
154 Bind(wxEVT_ENTER_WINDOW, &DevicePickItem::OnEnterWindow, this);
155 Bind(wxEVT_LEAVE_WINDOW, &DevicePickItem::OnLeaveWindow, this);
156 Bind(wxEVT_LEFT_DOWN, &DevicePickItem::OnLeftDown, this);
157 Bind(wxEVT_MOTION, &DevicePickItem::OnMove, this);
158 Bind(EVT_MULTI_DEVICE_SELECTED, &DevicePickItem::OnSelectedDevice, this);
159 wxGetApp().UpdateDarkUIWin(this);
160}
DeviceItem(wxWindow *parent, MachineObject *obj)
Definition MultiMachine.cpp:22
ScalableBitmap m_bitmap_check_on
Definition MultiMachinePage.hpp:88
void OnSelectedDevice(wxCommandEvent &evt)
Definition MultiMachinePage.cpp:215
void OnEnterWindow(wxMouseEvent &evt)
Definition MultiMachinePage.cpp:203
void OnLeaveWindow(wxMouseEvent &evt)
Definition MultiMachinePage.cpp:209
void OnLeftDown(wxMouseEvent &evt)
Definition MultiMachinePage.cpp:231
void paintEvent(wxPaintEvent &evt)
Definition MultiMachinePage.cpp:263
ScalableBitmap m_bitmap_check_off
Definition MultiMachinePage.hpp:87
void OnMove(wxMouseEvent &evt)
Definition MultiMachinePage.cpp:246
ScalableBitmap m_bitmap_check_disable
Definition MultiMachinePage.hpp:86

References Slic3r::GUI::DeviceItem::DeviceItem(), m_bitmap_check_disable, m_bitmap_check_off, m_bitmap_check_on, OnEnterWindow(), OnLeaveWindow(), OnLeftDown(), OnMove(), OnSelectedDevice(), and paintEvent().

Here is the call graph for this function:

◆ ~DevicePickItem()

Slic3r::GUI::DevicePickItem::~DevicePickItem ( )
inline
69{};

Member Function Documentation

◆ doRender()

void Slic3r::GUI::DevicePickItem::doRender ( wxDC & dc)
291{
292 wxSize size = GetSize();
293 dc.SetPen(wxPen(*wxBLACK));
294
295 int left = FromDIP(PICK_LEFT_PADDING_LEFT);
296
297
298 //checkbox
299 if (state_selected == 0) {
300 dc.DrawBitmap(m_bitmap_check_off.bmp(), wxPoint(left, (size.y - m_bitmap_check_disable.GetBmpSize().y) / 2));
301 }
302 else if (state_selected == 1) {
303 dc.DrawBitmap(m_bitmap_check_on.bmp(), wxPoint(left, (size.y - m_bitmap_check_disable.GetBmpSize().y) / 2));
304 }
305
306 left += FromDIP(PICK_LEFT_PRINTABLE);
307
308 //dev names
309 DrawTextWithEllipsis(dc, wxString::FromUTF8(get_obj()->get_dev_name()), FromDIP(PICK_LEFT_DEV_NAME), left);
310 left += FromDIP(PICK_LEFT_DEV_NAME);
311}
#define PICK_LEFT_PRINTABLE
Definition MultiMachinePage.hpp:31
#define PICK_LEFT_PADDING_LEFT
Definition MultiMachinePage.hpp:30
#define PICK_LEFT_DEV_NAME
Definition MultiMachinePage.hpp:32
MachineObject * get_obj() const
Definition MultiMachine.hpp:55
int state_selected
Definition MultiMachine.hpp:36
void DrawTextWithEllipsis(wxDC &dc, const wxString &text, int maxWidth, int left, int top=0)
Definition MultiMachinePage.cpp:162
@ left
Definition MarchingSquares.hpp:188

References DrawTextWithEllipsis(), Slic3r::GUI::DeviceItem::get_obj(), m_bitmap_check_disable, m_bitmap_check_off, m_bitmap_check_on, PICK_LEFT_DEV_NAME, PICK_LEFT_PADDING_LEFT, PICK_LEFT_PRINTABLE, and Slic3r::GUI::DeviceItem::state_selected.

Referenced by render().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DoSetSize()

void Slic3r::GUI::DevicePickItem::DoSetSize ( int x,
int y,
int width,
int height,
int sizeFlags = wxSIZE_AUTO )
virtual
321{
322 wxWindow::DoSetSize(x, y, width, height, sizeFlags);
323}

◆ DrawTextWithEllipsis()

void Slic3r::GUI::DevicePickItem::DrawTextWithEllipsis ( wxDC & dc,
const wxString & text,
int maxWidth,
int left,
int top = 0 )
163{
164 wxSize size = GetSize();
165 wxFont font = dc.GetFont();
166
167 wxSize textSize = dc.GetTextExtent(text);
168 dc.SetTextForeground(StateColor::darkModeColorFor(wxColour(50, 58, 61)));
169 int textWidth = textSize.GetWidth();
170
171 if (textWidth > maxWidth) {
172 wxString truncatedText = text;
173 int ellipsisWidth = dc.GetTextExtent("...").GetWidth();
174 int numChars = text.length();
175
176 for (int i = numChars - 1; i >= 0; --i) {
177 truncatedText = text.substr(0, i) + "...";
178 int truncatedWidth = dc.GetTextExtent(truncatedText).GetWidth();
179
180 if (truncatedWidth <= maxWidth - ellipsisWidth) {
181 break;
182 }
183 }
184
185 if (top == 0) {
186 dc.DrawText(truncatedText, left, (size.y - textSize.y) / 2);
187 }
188 else {
189 dc.DrawText(truncatedText, left, (size.y - textSize.y) / 2 - top);
190 }
191
192 }
193 else {
194 if (top == 0) {
195 dc.DrawText(text, left, (size.y - textSize.y) / 2);
196 }
197 else {
198 dc.DrawText(text, left, (size.y - textSize.y) / 2 - top);
199 }
200 }
201}
static wxColour darkModeColorFor(wxColour const &color)
Definition StateColor.cpp:219

References StateColor::darkModeColorFor().

Referenced by doRender().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_cloud_state_task()

wxString Slic3r::GUI::DeviceItem::get_cloud_state_task ( )
inherited
172{
173 //0-printing 1-printing finish 2-printing failed
174 std::vector<wxString> str_state_task;
175 str_state_task.push_back(_L("Printing"));
176 str_state_task.push_back(_L("Printing Finish"));
177 str_state_task.push_back(_L("Printing Failed"));
178
179 return str_state_task[state_cloud_task];
180}
#define _L(s)
Definition OBJ.cpp:34
int state_cloud_task
Definition MultiMachine.hpp:40

References _L, and state_cloud_task.

Referenced by Slic3r::GUI::MultiTaskItem::doRender().

Here is the caller graph for this function:

◆ get_local_state_task()

wxString Slic3r::GUI::DeviceItem::get_local_state_task ( )
inherited
155{
156 //0-padding 1-sending 2-sending finish 3-sending cancel 4-sending failed 5-Removed
157 std::vector<wxString> str_state_task;
158 str_state_task.push_back(_L("Pending"));
159 str_state_task.push_back(_L("Sending"));
160 str_state_task.push_back(_L("Sending Finish"));
161 str_state_task.push_back(_L("Sending Cancel"));
162 str_state_task.push_back(_L("Sending Failed"));
163 str_state_task.push_back(_L("Printing"));
164 str_state_task.push_back(_L("Print Success"));
165 str_state_task.push_back(_L("Print Failed"));
166 str_state_task.push_back(_L("Removed"));
167 str_state_task.push_back(_L("Idle"));
168 return str_state_task[state_local_task];
169}
int state_local_task
Definition MultiMachine.hpp:39

References _L, and state_local_task.

Referenced by Slic3r::GUI::MultiTaskItem::doRender().

Here is the caller graph for this function:

◆ get_obj()

MachineObject * Slic3r::GUI::DeviceItem::get_obj ( ) const
inlineinherited
55{ return obj_; }
MachineObject * obj_
Definition MultiMachine.hpp:32

References obj_.

Referenced by Slic3r::GUI::DevicePickItem::doRender(), Slic3r::GUI::MultiTaskItem::doRender(), Slic3r::GUI::SendDeviceItem::doRender(), Slic3r::GUI::MultiTaskItem::onCancel(), Slic3r::GUI::MultiTaskItem::onPause(), Slic3r::GUI::MultiTaskItem::onResume(), Slic3r::GUI::MultiTaskItem::onStop(), and Slic3r::GUI::MultiTaskItem::update_info().

Here is the caller graph for this function:

◆ get_state_cloud_task()

int Slic3r::GUI::DeviceItem::get_state_cloud_task ( ) const
inlineinherited
63{ return state_cloud_task; }

References state_cloud_task.

◆ get_state_dev_name()

std::string Slic3r::GUI::DeviceItem::get_state_dev_name ( ) const
inlineinherited
64{ return state_dev_name; }
std::string state_dev_name
Definition MultiMachine.hpp:34

References state_dev_name.

◆ get_state_device() [1/2]

wxString Slic3r::GUI::DeviceItem::get_state_device ( )
inherited
139{
140 //0-idle 1-finish 2-running 3-pause 4-failed 5-prepare
141 std::vector<wxString> str_state_device;
142 str_state_device.push_back(_L("Idle"));
143 str_state_device.push_back(_L("Printing Finish"));
144 str_state_device.push_back(_L("Printing Failed"));
145 str_state_device.push_back(_L("Printing"));
146 str_state_device.push_back(_L("Printing Pause"));
147 str_state_device.push_back(_L_CONTEXT("Prepare", "Device status"));
148 str_state_device.push_back(_L("Slicing"));
149 str_state_device.push_back(_L("Syncing"));
150
151 return str_state_device[state_device];
152}
int state_device
Definition MultiMachine.hpp:38
#define _L_CONTEXT(s, ctx)
Definition I18N.hpp:15

References _L, _L_CONTEXT, and state_device.

Referenced by Slic3r::GUI::MultiMachineItem::doRender(), and Slic3r::GUI::MultiTaskItem::doRender().

Here is the caller graph for this function:

◆ get_state_device() [2/2]

int Slic3r::GUI::DeviceItem::get_state_device ( ) const
inlineinherited
61{ return state_device; }

References state_device.

◆ get_state_enable_ams()

int Slic3r::GUI::DeviceItem::get_state_enable_ams ( ) const
inlineinherited
60{ return state_enable_ams; }
int state_enable_ams
Definition MultiMachine.hpp:37

References state_enable_ams.

◆ get_state_local_task()

int Slic3r::GUI::DeviceItem::get_state_local_task ( ) const
inlineinherited
62{ return state_local_task; }

References state_local_task.

◆ get_state_online()

int Slic3r::GUI::DeviceItem::get_state_online ( ) const
inlineinherited
57{ return state_online; }
int state_online
Definition MultiMachine.hpp:33

References state_online.

◆ get_state_printable() [1/2]

wxString Slic3r::GUI::DeviceItem::get_state_printable ( )
inherited
124{
125 //0-idle 1-finish 2-printing 3-upgrading 4-preset incompatible 5-unknown
126 std::vector<wxString> str_state_printable;
127 str_state_printable.push_back(_L("Idle"));
128 str_state_printable.push_back(_L("Idle"));
129 str_state_printable.push_back(_L("Idle"));
130 str_state_printable.push_back(_L("Printing"));
131 str_state_printable.push_back(_L("Upgrading"));
132 str_state_printable.push_back(_L("Incompatible"));
133 str_state_printable.push_back(_L("Syncing"));
134
135 return str_state_printable[state_printable];
136}
int state_printable
Definition MultiMachine.hpp:35

References _L, and state_printable.

Referenced by Slic3r::GUI::SendDeviceItem::doRender().

Here is the caller graph for this function:

◆ get_state_printable() [2/2]

int Slic3r::GUI::DeviceItem::get_state_printable ( ) const
inlineinherited
58{ return state_printable; }

References state_printable.

◆ get_state_selected()

int Slic3r::GUI::DeviceItem::get_state_selected ( ) const
inlineinherited
59{ return state_selected; }

References state_selected.

◆ on_refresh()

void Slic3r::GUI::DeviceItem::on_refresh ( wxCommandEvent & evt)
inherited
31{
32 Refresh();
33}

Referenced by DeviceItem().

Here is the caller graph for this function:

◆ OnEnterWindow()

void Slic3r::GUI::DevicePickItem::OnEnterWindow ( wxMouseEvent & evt)
204{
205 m_hover = true;
206 Refresh(false);
207}
bool m_hover
Definition MultiMachinePage.hpp:85

References m_hover, and Slic3r::GUI::wxMouseEvent.

Referenced by DevicePickItem().

Here is the caller graph for this function:

◆ OnLeaveWindow()

void Slic3r::GUI::DevicePickItem::OnLeaveWindow ( wxMouseEvent & evt)
210{
211 m_hover = false;
212 Refresh(false);
213}

References m_hover, and Slic3r::GUI::wxMouseEvent.

Referenced by DevicePickItem().

Here is the caller graph for this function:

◆ OnLeftDown()

void Slic3r::GUI::DevicePickItem::OnLeftDown ( wxMouseEvent & evt)
232{
233 int left = FromDIP(15);
234 auto mouse_pos = ClientToScreen(evt.GetPosition());
235 auto item = this->ClientToScreen(wxPoint(0, 0));
236
237 if (mouse_pos.x > (item.x + left) &&
238 mouse_pos.x < (item.x + left + m_bitmap_check_disable.GetBmpWidth()) &&
239 mouse_pos.y > item.y &&
240 mouse_pos.y < (item.y + DEVICE_ITEM_MAX_HEIGHT)) {
241
242 post_event(wxCommandEvent(EVT_MULTI_DEVICE_SELECTED));
243 }
244}
#define DEVICE_ITEM_MAX_HEIGHT
Definition MultiMachine.hpp:20
void post_event(wxCommandEvent &&event)
Definition MultiMachinePage.cpp:312

References DEVICE_ITEM_MAX_HEIGHT, m_bitmap_check_disable, post_event(), and Slic3r::GUI::wxMouseEvent.

Referenced by DevicePickItem().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnMove()

void Slic3r::GUI::DevicePickItem::OnMove ( wxMouseEvent & evt)
247{
248 int left = FromDIP(15);
249 auto mouse_pos = ClientToScreen(evt.GetPosition());
250 auto item = this->ClientToScreen(wxPoint(0, 0));
251
252 if (mouse_pos.x > (item.x + left) &&
253 mouse_pos.x < (item.x + left + m_bitmap_check_disable.GetBmpWidth()) &&
254 mouse_pos.y > item.y &&
255 mouse_pos.y < (item.y + DEVICE_ITEM_MAX_HEIGHT)) {
256 SetCursor(wxCURSOR_HAND);
257 }
258 else {
259 SetCursor(wxCURSOR_ARROW);
260 }
261}

References DEVICE_ITEM_MAX_HEIGHT, m_bitmap_check_disable, and Slic3r::GUI::wxMouseEvent.

Referenced by DevicePickItem().

Here is the caller graph for this function:

◆ OnSelectedDevice()

void Slic3r::GUI::DevicePickItem::OnSelectedDevice ( wxCommandEvent & evt)
216{
217 auto dev_id = evt.GetString();
218 auto state = evt.GetInt();
219 if (state == 0) {
220 state_selected = 1;
221 }
222 else if (state == 1) {
223 state_selected = 0;
224 }
225 Refresh(false);
226 evt.Skip();
227
228 post_event(wxCommandEvent(EVT_MULTI_DEVICE_SELECTED_FINHSH));
229}

References post_event(), and Slic3r::GUI::DeviceItem::state_selected.

Referenced by DevicePickItem().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ paintEvent()

void Slic3r::GUI::DevicePickItem::paintEvent ( wxPaintEvent & evt)
264{
265 wxPaintDC dc(this);
266 render(dc);
267}
void render(wxDC &dc)
Definition MultiMachinePage.cpp:269

References render().

Referenced by DevicePickItem().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ post_event()

void Slic3r::GUI::DevicePickItem::post_event ( wxCommandEvent && event)
313{
314 event.SetEventObject(this);
315 event.SetString(obj_->get_dev_id());
316 event.SetInt(state_selected);
317 wxPostEvent(this, event);
318}

References Slic3r::GUI::DeviceItem::obj_, and Slic3r::GUI::DeviceItem::state_selected.

Referenced by OnLeftDown(), and OnSelectedDevice().

Here is the caller graph for this function:

◆ render()

void Slic3r::GUI::DevicePickItem::render ( wxDC & dc)
270{
271#ifdef __WXMSW__
272 wxSize size = GetSize();
273 wxMemoryDC memdc;
274 wxBitmap bmp(size.x, size.y);
275 memdc.SelectObject(bmp);
276 memdc.Blit({ 0, 0 }, size, &dc, { 0, 0 });
277
278 {
279 wxGCDC dc2(memdc);
280 doRender(dc2);
281 }
282
283 memdc.SelectObject(wxNullBitmap);
284 dc.DrawBitmap(bmp, 0, 0);
285#else
286 doRender(dc);
287#endif
288}
void doRender(wxDC &dc)
Definition MultiMachinePage.cpp:290

References doRender().

Referenced by paintEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ selected()

void Slic3r::GUI::DeviceItem::selected ( )
inherited
98{
99 if (state_selected != 2) {
100 state_selected = 1;
101 }
102}

References state_selected.

◆ sync_state()

void Slic3r::GUI::DeviceItem::sync_state ( )
inherited
36{
37 if (obj_) {
38 state_online = obj_->is_online();
39 state_dev_name = obj_->get_dev_name();
40
41 //printable
42 if (obj_->print_status == "IDLE") {
44 }
45 else if (obj_->print_status == "FINISH") {
47 }
48 else if (obj_->print_status == "FAILED") {
50 }
51 else if (obj_->is_in_printing()) {
53 }
54 else {
56 }
57
58 if (wxGetApp().is_blocking_printing(obj_)) {
60 }
61
62 if (obj_->is_in_upgrading()) {
64 }
65
66 state_enable_ams = obj_->ams_exist_bits;
67
68
69 //device
70 if (obj_->print_status == "IDLE") {
71 state_device = 0;
72 }
73 else if (obj_->print_status == "FINISH") {
74 state_device = 1;
75 }
76 else if (obj_->print_status == "FAILED") {
77 state_device = 2;
78 }
79 else if (obj_->print_status == "RUNNING") {
80 state_device = 3;
81 }
82 else if (obj_->print_status == "PAUSE") {
83 state_device = 4;
84 }
85 else if (obj_->print_status == "PREPARE") {
86 state_device = 5;
87 }
88 else if (obj_->print_status == "SLICING") {
89 state_device = 6;
90 }
91 else {
92 state_device = 7;
93 }
94 }
95}

References obj_, state_dev_name, state_device, state_enable_ams, state_online, and state_printable.

Referenced by DeviceItem().

Here is the caller graph for this function:

◆ unselected()

void Slic3r::GUI::DeviceItem::unselected ( )
inherited
105{
106 if (state_selected != 2) {
107 state_selected = 0;
108 }
109}

References state_selected.

Referenced by Slic3r::GUI::MultiMachinePickPage::refresh_user_device().

Here is the caller graph for this function:

◆ update_item()

void Slic3r::GUI::DeviceItem::update_item ( const DeviceItem * item)
inherited
112{
113 // Except for the selected status, everything else is updated
114 if (this == item)
115 return;
116 this->state_online = item->state_online;
117 this->state_printable = item->state_printable;
118 this->state_enable_ams = item->state_enable_ams;
119 this->state_device = item->state_device;
120 this->state_local_task = item->state_local_task;
121}

References DeviceItem(), state_device, state_enable_ams, state_local_task, state_online, and state_printable.

Here is the call graph for this function:

Member Data Documentation

◆ m_bitmap_check_disable

ScalableBitmap Slic3r::GUI::DevicePickItem::m_bitmap_check_disable

◆ m_bitmap_check_off

ScalableBitmap Slic3r::GUI::DevicePickItem::m_bitmap_check_off

Referenced by DevicePickItem(), and doRender().

◆ m_bitmap_check_on

ScalableBitmap Slic3r::GUI::DevicePickItem::m_bitmap_check_on

Referenced by DevicePickItem(), and doRender().

◆ m_hover

bool Slic3r::GUI::DevicePickItem::m_hover { false }
85{ false };

Referenced by OnEnterWindow(), and OnLeaveWindow().

◆ m_send_time

◆ obj_

◆ state_cloud_task

◆ state_dev_name

std::string Slic3r::GUI::DeviceItem::state_dev_name
inherited

◆ state_device

int Slic3r::GUI::DeviceItem::state_device { 0 }
inherited
38{ 0 }; //0-idle 1-finish 2-failed 3-running 4-pause 5-prepare 6-slicing 7-removed

Referenced by Slic3r::GUI::SortItem::SortItem(), Slic3r::GUI::MultiMachineItem::doRender(), Slic3r::GUI::MultiTaskItem::doRender(), get_state_device(), get_state_device(), sync_state(), and update_item().

◆ state_enable_ams

int Slic3r::GUI::DeviceItem::state_enable_ams { 0 }
inherited
37{ 0 };//0-no ams 1-enabled ams 2-not enabled ams

Referenced by Slic3r::GUI::SortItem::SortItem(), get_state_enable_ams(), sync_state(), and update_item().

◆ state_local_task

int Slic3r::GUI::DeviceItem::state_local_task { 0 }
inherited

◆ state_online

int Slic3r::GUI::DeviceItem::state_online = { 0 }
inherited
33{ 0 }; //0-Offline 1-Online

Referenced by Slic3r::GUI::SortItem::SortItem(), get_state_online(), sync_state(), and update_item().

◆ state_optional

int Slic3r::GUI::DeviceItem::state_optional {0}
inherited
41{0}; //0-Not optional 1-Optional

◆ state_printable

int Slic3r::GUI::DeviceItem::state_printable { 0 }
inherited

◆ state_selected


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