#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/MultiMachine.hpp>
◆ DeviceItem()
| Slic3r::GUI::DeviceItem::DeviceItem |
( |
wxWindow * | parent, |
|
|
MachineObject * | obj ) |
◆ ~DeviceItem()
| Slic3r::GUI::DeviceItem::~DeviceItem |
( |
| ) |
|
|
inline |
◆ get_cloud_state_task()
| wxString Slic3r::GUI::DeviceItem::get_cloud_state_task |
( |
| ) |
|
172{
173
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
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().
◆ get_local_state_task()
| wxString Slic3r::GUI::DeviceItem::get_local_state_task |
( |
| ) |
|
155{
156
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"));
169}
int state_local_task
Definition MultiMachine.hpp:39
References _L, and state_local_task.
Referenced by Slic3r::GUI::MultiTaskItem::doRender().
◆ get_obj()
◆ get_state_cloud_task()
| int Slic3r::GUI::DeviceItem::get_state_cloud_task |
( |
| ) |
const |
|
inline |
◆ get_state_dev_name()
| std::string Slic3r::GUI::DeviceItem::get_state_dev_name |
( |
| ) |
const |
|
inline |
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 |
( |
| ) |
|
139{
140
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
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().
◆ get_state_device() [2/2]
| int Slic3r::GUI::DeviceItem::get_state_device |
( |
| ) |
const |
|
inline |
◆ get_state_enable_ams()
| int Slic3r::GUI::DeviceItem::get_state_enable_ams |
( |
| ) |
const |
|
inline |
◆ get_state_local_task()
| int Slic3r::GUI::DeviceItem::get_state_local_task |
( |
| ) |
const |
|
inline |
◆ get_state_online()
| int Slic3r::GUI::DeviceItem::get_state_online |
( |
| ) |
const |
|
inline |
int state_online
Definition MultiMachine.hpp:33
References state_online.
◆ get_state_printable() [1/2]
| wxString Slic3r::GUI::DeviceItem::get_state_printable |
( |
| ) |
|
124{
125
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
136}
int state_printable
Definition MultiMachine.hpp:35
References _L, and state_printable.
Referenced by Slic3r::GUI::SendDeviceItem::doRender().
◆ get_state_printable() [2/2]
| int Slic3r::GUI::DeviceItem::get_state_printable |
( |
| ) |
const |
|
inline |
◆ get_state_selected()
| int Slic3r::GUI::DeviceItem::get_state_selected |
( |
| ) |
const |
|
inline |
int state_selected
Definition MultiMachine.hpp:36
References state_selected.
◆ on_refresh()
| void Slic3r::GUI::DeviceItem::on_refresh |
( |
wxCommandEvent & | evt | ) |
|
◆ selected()
| void Slic3r::GUI::DeviceItem::selected |
( |
| ) |
|
◆ sync_state()
| void Slic3r::GUI::DeviceItem::sync_state |
( |
| ) |
|
36{
40
41
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
67
68
69
70 if (
obj_->print_status ==
"IDLE") {
72 }
73 else if (
obj_->print_status ==
"FINISH") {
75 }
76 else if (
obj_->print_status ==
"FAILED") {
78 }
79 else if (
obj_->print_status ==
"RUNNING") {
81 }
82 else if (
obj_->print_status ==
"PAUSE") {
84 }
85 else if (
obj_->print_status ==
"PREPARE") {
87 }
88 else if (
obj_->print_status ==
"SLICING") {
90 }
91 else {
93 }
94 }
95}
References obj_, state_dev_name, state_device, state_enable_ams, state_online, and state_printable.
Referenced by DeviceItem().
◆ unselected()
| void Slic3r::GUI::DeviceItem::unselected |
( |
| ) |
|
◆ update_item()
| void Slic3r::GUI::DeviceItem::update_item |
( |
const DeviceItem * | item | ) |
|
◆ m_send_time
| std::string Slic3r::GUI::DeviceItem::m_send_time |
◆ obj_
◆ state_cloud_task
| int Slic3r::GUI::DeviceItem::state_cloud_task { 0 } |
◆ state_dev_name
| std::string Slic3r::GUI::DeviceItem::state_dev_name |
◆ state_device
| int Slic3r::GUI::DeviceItem::state_device { 0 } |
◆ state_enable_ams
| int Slic3r::GUI::DeviceItem::state_enable_ams { 0 } |
◆ state_local_task
| int Slic3r::GUI::DeviceItem::state_local_task { 0 } |
◆ state_online
| int Slic3r::GUI::DeviceItem::state_online = { 0 } |
◆ state_optional
| int Slic3r::GUI::DeviceItem::state_optional {0} |
◆ state_printable
| int Slic3r::GUI::DeviceItem::state_printable { 0 } |
◆ state_selected
| int Slic3r::GUI::DeviceItem::state_selected { 0 } |
Referenced by Slic3r::GUI::DevicePickItem::doRender(), Slic3r::GUI::MultiTaskItem::doRender(), Slic3r::GUI::SendDeviceItem::doRender(), get_state_selected(), Slic3r::GUI::DevicePickItem::OnSelectedDevice(), Slic3r::GUI::MultiTaskItem::OnSelectedDevice(), Slic3r::GUI::SendDeviceItem::OnSelectedDevice(), Slic3r::GUI::DevicePickItem::post_event(), Slic3r::GUI::MultiMachineItem::post_event(), Slic3r::GUI::MultiTaskItem::post_event(), Slic3r::GUI::SendDeviceItem::post_event(), Slic3r::GUI::CloudTaskManagerPage::refresh_user_device(), Slic3r::GUI::LocalTaskManagerPage::refresh_user_device(), Slic3r::GUI::MultiMachinePickPage::refresh_user_device(), Slic3r::GUI::SendMultiMachinePage::refresh_user_device(), selected(), and unselected().
The documentation for this class was generated from the following files: