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

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

Inheritance diagram for Slic3r::GUI::SendDeviceItem:
Collaboration diagram for Slic3r::GUI::SendDeviceItem:

Public Member Functions

 SendDeviceItem (wxWindow *parent, MachineObject *obj)
 ~SendDeviceItem ()
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

◆ SendDeviceItem()

Slic3r::GUI::SendDeviceItem::SendDeviceItem ( wxWindow * parent,
MachineObject * obj )
102 : DeviceItem(parent, obj)
103{
104 SetBackgroundColour(*wxWHITE);
105 m_bitmap_check_disable = ScalableBitmap(this, "check_off_disabled", 18);
106 m_bitmap_check_off = ScalableBitmap(this, "check_off_focused", 18);
107 m_bitmap_check_on = ScalableBitmap(this, "check_on", 18);
108
109
110 SetMinSize(wxSize(FromDIP(DEVICE_ITEM_MAX_WIDTH), FromDIP(SEND_ITEM_MAX_HEIGHT)));
111 SetMaxSize(wxSize(FromDIP(DEVICE_ITEM_MAX_WIDTH), FromDIP(SEND_ITEM_MAX_HEIGHT)));
112
113 Bind(wxEVT_PAINT, &SendDeviceItem::paintEvent, this);
114 Bind(wxEVT_ENTER_WINDOW, &SendDeviceItem::OnEnterWindow, this);
115 Bind(wxEVT_LEAVE_WINDOW, &SendDeviceItem::OnLeaveWindow, this);
116 Bind(wxEVT_LEFT_DOWN, &SendDeviceItem::OnLeftDown, this);
117 Bind(wxEVT_MOTION, &SendDeviceItem::OnMove, this);
118 Bind(EVT_MULTI_DEVICE_SELECTED, &SendDeviceItem::OnSelectedDevice, this);
119 wxGetApp().UpdateDarkUIWin(this);
120}
#define SEND_ITEM_MAX_HEIGHT
Definition MultiMachine.hpp:19
#define DEVICE_ITEM_MAX_WIDTH
Definition MultiMachine.hpp:18
DeviceItem(wxWindow *parent, MachineObject *obj)
Definition MultiMachine.cpp:22
void OnSelectedDevice(wxCommandEvent &evt)
Definition SendMultiMachinePage.cpp:175
ScalableBitmap m_bitmap_check_off
Definition SendMultiMachinePage.hpp:95
void OnLeftDown(wxMouseEvent &evt)
Definition SendMultiMachinePage.cpp:188
void paintEvent(wxPaintEvent &evt)
Definition SendMultiMachinePage.cpp:222
ScalableBitmap m_bitmap_check_disable
Definition SendMultiMachinePage.hpp:94
ScalableBitmap m_bitmap_check_on
Definition SendMultiMachinePage.hpp:96
void OnLeaveWindow(wxMouseEvent &evt)
Definition SendMultiMachinePage.cpp:169
void OnEnterWindow(wxMouseEvent &evt)
Definition SendMultiMachinePage.cpp:163
void OnMove(wxMouseEvent &evt)
Definition SendMultiMachinePage.cpp:205

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

Here is the call graph for this function:

◆ ~SendDeviceItem()

Slic3r::GUI::SendDeviceItem::~SendDeviceItem ( )
inline
77{};

Member Function Documentation

◆ doRender()

void Slic3r::GUI::SendDeviceItem::doRender ( wxDC & dc)
250{
251 wxSize size = GetSize();
252 dc.SetPen(wxPen(*wxBLACK));
253
254 int left = FromDIP(SEND_LEFT_PADDING_LEFT);
255
256
257 //checkbox
258 if (state_printable > 2) {
259 dc.DrawBitmap(m_bitmap_check_disable.bmp(), wxPoint(left, (size.y - m_bitmap_check_disable.GetBmpSize().y) / 2 ));
260 }
261 else {
262 if (state_selected == 0) {
263 dc.DrawBitmap(m_bitmap_check_off.bmp(), wxPoint(left, (size.y - m_bitmap_check_disable.GetBmpSize().y) / 2 ));
264 }
265 else if(state_selected == 1) {
266 dc.DrawBitmap(m_bitmap_check_on.bmp(), wxPoint(left, (size.y - m_bitmap_check_disable.GetBmpSize().y) / 2 ));
267 }
268 }
269
270 //task status
271 if (state_local_task <= 1) {
272 dc.DrawBitmap(m_bitmap_check_disable.bmp(), wxPoint(left, (size.y - m_bitmap_check_disable.GetBmpSize().y) / 2 ));
273 }
274
275 left += FromDIP(SEND_LEFT_PRINTABLE);
276
277 //dev names
278 DrawTextWithEllipsis(dc, wxString::FromUTF8(get_obj()->get_dev_name()), FromDIP(SEND_LEFT_DEV_NAME), left);
279 left += FromDIP(SEND_LEFT_DEV_NAME);
280
281 //device state
282 if (state_printable <= 2) {
283 dc.SetTextForeground(wxColour(0, 150, 136));
284 }
285 else {
286 dc.SetTextForeground(wxColour(208, 27, 27));
287 }
288
290 left += FromDIP(SEND_LEFT_DEV_STATUS);
291
292 dc.SetTextForeground(*wxBLACK);
293
294 //task state
295 //DrawTextWithEllipsis(dc, get_local_state_task(), FromDIP(SEND_LEFT_DEV_NAME), left);
296 //left += FromDIP(SEND_LEFT_DEV_STATUS);
297
298
299 //AMS
300 if (!obj_->HasAms()) {
301 DrawTextWithEllipsis(dc, _L("No AMS"), FromDIP(SEND_LEFT_DEV_NAME), left);
302 }
303 else {
304 DrawTextWithEllipsis(dc, _L("AMS"), FromDIP(SEND_LEFT_DEV_NAME), left);
305 }
306
307 if (m_hover) {
308 dc.SetPen(wxPen(wxColour(0, 150, 136)));
309 dc.SetBrush(*wxTRANSPARENT_BRUSH);
310 dc.DrawRoundedRectangle(0, 0, size.x, size.y, 3);
311 }
312}
#define _L(s)
Definition OBJ.cpp:34
#define SEND_LEFT_DEV_NAME
Definition SendMultiMachinePage.hpp:41
#define SEND_LEFT_PRINTABLE
Definition SendMultiMachinePage.hpp:40
#define SEND_LEFT_PADDING_LEFT
Definition SendMultiMachinePage.hpp:39
#define SEND_LEFT_DEV_STATUS
Definition SendMultiMachinePage.hpp:42
MachineObject * obj_
Definition MultiMachine.hpp:32
int state_printable
Definition MultiMachine.hpp:35
MachineObject * get_obj() const
Definition MultiMachine.hpp:55
wxString get_state_printable()
Definition MultiMachine.cpp:123
int state_local_task
Definition MultiMachine.hpp:39
int state_selected
Definition MultiMachine.hpp:36
void DrawTextWithEllipsis(wxDC &dc, const wxString &text, int maxWidth, int left, int top=0)
Definition SendMultiMachinePage.cpp:122
bool m_hover
Definition SendMultiMachinePage.hpp:93
@ left
Definition MarchingSquares.hpp:188

References _L, DrawTextWithEllipsis(), Slic3r::GUI::DeviceItem::get_obj(), Slic3r::GUI::DeviceItem::get_state_printable(), m_bitmap_check_disable, m_bitmap_check_off, m_bitmap_check_on, m_hover, Slic3r::GUI::DeviceItem::obj_, SEND_LEFT_DEV_NAME, SEND_LEFT_DEV_STATUS, SEND_LEFT_PADDING_LEFT, SEND_LEFT_PRINTABLE, Slic3r::GUI::DeviceItem::state_local_task, Slic3r::GUI::DeviceItem::state_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::SendDeviceItem::DoSetSize ( int x,
int y,
int width,
int height,
int sizeFlags = wxSIZE_AUTO )
virtual
322{
323 wxWindow::DoSetSize(x, y, width, height, sizeFlags);
324}

◆ DrawTextWithEllipsis()

void Slic3r::GUI::SendDeviceItem::DrawTextWithEllipsis ( wxDC & dc,
const wxString & text,
int maxWidth,
int left,
int top = 0 )
123{
124 wxSize size = GetSize();
125 wxFont font = dc.GetFont();
126
127 wxSize textSize = dc.GetTextExtent(text);
128 dc.SetTextForeground(StateColor::darkModeColorFor(wxColour(50, 58, 61)));
129 int textWidth = textSize.GetWidth();
130
131 if (textWidth > maxWidth) {
132 wxString truncatedText = text;
133 int ellipsisWidth = dc.GetTextExtent("...").GetWidth();
134 int numChars = text.length();
135
136 for (int i = numChars - 1; i >= 0; --i) {
137 truncatedText = text.substr(0, i) + "...";
138 int truncatedWidth = dc.GetTextExtent(truncatedText).GetWidth();
139
140 if (truncatedWidth <= maxWidth - ellipsisWidth) {
141 break;
142 }
143 }
144
145 if (top == 0) {
146 dc.DrawText(truncatedText, left, (size.y - textSize.y) / 2);
147 }
148 else {
149 dc.DrawText(truncatedText, left, (size.y - textSize.y) / 2 - top);
150 }
151
152 }
153 else {
154 if (top == 0) {
155 dc.DrawText(text, left, (size.y - textSize.y) / 2);
156 }
157 else {
158 dc.DrawText(text, left, (size.y - textSize.y) / 2 - top);
159 }
160 }
161}
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}
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}

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

◆ 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}

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::SendDeviceItem::OnEnterWindow ( wxMouseEvent & evt)
164{
165 m_hover = true;
166 Refresh(false);
167}

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

Referenced by SendDeviceItem().

Here is the caller graph for this function:

◆ OnLeaveWindow()

void Slic3r::GUI::SendDeviceItem::OnLeaveWindow ( wxMouseEvent & evt)
170{
171 m_hover = false;
172 Refresh(false);
173}

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

Referenced by SendDeviceItem().

Here is the caller graph for this function:

◆ OnLeftDown()

void Slic3r::GUI::SendDeviceItem::OnLeftDown ( wxMouseEvent & evt)
189{
190 int left = FromDIP(15);
191 auto mouse_pos = ClientToScreen(evt.GetPosition());
192 auto item = this->ClientToScreen(wxPoint(0, 0));
193
194 if (mouse_pos.x > (item.x + left) &&
195 mouse_pos.x < (item.x + left + m_bitmap_check_disable.GetBmpWidth()) &&
196 mouse_pos.y > item.y &&
197 mouse_pos.y < (item.y + DEVICE_ITEM_MAX_HEIGHT)) {
198
200 post_event(wxCommandEvent(EVT_MULTI_DEVICE_SELECTED));
201 }
202 }
203}
#define DEVICE_ITEM_MAX_HEIGHT
Definition MultiMachine.hpp:20
void post_event(wxCommandEvent &&event)
Definition SendMultiMachinePage.cpp:313

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

Referenced by SendDeviceItem().

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

◆ OnMove()

void Slic3r::GUI::SendDeviceItem::OnMove ( wxMouseEvent & evt)
206{
207 int left = FromDIP(15);
208 auto mouse_pos = ClientToScreen(evt.GetPosition());
209 auto item = this->ClientToScreen(wxPoint(0, 0));
210
211 if (mouse_pos.x > (item.x + left) &&
212 mouse_pos.x < (item.x + left + m_bitmap_check_disable.GetBmpWidth()) &&
213 mouse_pos.y > item.y &&
214 mouse_pos.y < (item.y + DEVICE_ITEM_MAX_HEIGHT)) {
215 SetCursor(wxCURSOR_HAND);
216 }
217 else {
218 SetCursor(wxCURSOR_ARROW);
219 }
220}

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

Referenced by SendDeviceItem().

Here is the caller graph for this function:

◆ OnSelectedDevice()

void Slic3r::GUI::SendDeviceItem::OnSelectedDevice ( wxCommandEvent & evt)
176{
177 auto dev_id = evt.GetString();
178 auto state = evt.GetInt();
179 if (state == 0) {
180 state_selected = 1;
181 }
182 else if (state == 1) {
183 state_selected = 0;
184 }
185 Refresh(false);
186}

References Slic3r::GUI::DeviceItem::state_selected.

Referenced by SendDeviceItem().

Here is the caller graph for this function:

◆ paintEvent()

void Slic3r::GUI::SendDeviceItem::paintEvent ( wxPaintEvent & evt)
223{
224 wxPaintDC dc(this);
225 render(dc);
226}
void render(wxDC &dc)
Definition SendMultiMachinePage.cpp:228

References render().

Referenced by SendDeviceItem().

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

◆ post_event()

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

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

Referenced by OnLeftDown().

Here is the caller graph for this function:

◆ render()

void Slic3r::GUI::SendDeviceItem::render ( wxDC & dc)
229{
230#ifdef __WXMSW__
231 wxSize size = GetSize();
232 wxMemoryDC memdc;
233 wxBitmap bmp(size.x, size.y);
234 memdc.SelectObject(bmp);
235 memdc.Blit({ 0, 0 }, size, &dc, { 0, 0 });
236
237 {
238 wxGCDC dc2(memdc);
239 doRender(dc2);
240 }
241
242 memdc.SelectObject(wxNullBitmap);
243 dc.DrawBitmap(bmp, 0, 0);
244#else
245 doRender(dc);
246#endif
247}
void doRender(wxDC &dc)
Definition SendMultiMachinePage.cpp:249

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::SendDeviceItem::m_bitmap_check_disable

◆ m_bitmap_check_off

ScalableBitmap Slic3r::GUI::SendDeviceItem::m_bitmap_check_off

Referenced by SendDeviceItem(), and doRender().

◆ m_bitmap_check_on

ScalableBitmap Slic3r::GUI::SendDeviceItem::m_bitmap_check_on

Referenced by SendDeviceItem(), and doRender().

◆ m_hover

bool Slic3r::GUI::SendDeviceItem::m_hover {false}
93{false};

Referenced by doRender(), 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: