mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 02:37:04 +00:00
feature open tag for export gcode.3mf
This commit is contained in:
@@ -1747,8 +1747,8 @@ wxBoxSizer* MainFrame::create_side_tools()
|
|||||||
{
|
{
|
||||||
SidePopup* p = new SidePopup(this);
|
SidePopup* p = new SidePopup(this);
|
||||||
|
|
||||||
if (wxGetApp().preset_bundle
|
// if (wxGetApp().preset_bundle && !wxGetApp().preset_bundle->is_bbl_vendor())
|
||||||
&& !wxGetApp().preset_bundle->is_bbl_vendor()) {
|
if (0) {
|
||||||
// ThirdParty Buttons
|
// ThirdParty Buttons
|
||||||
SideButton* export_gcode_btn = new SideButton(p, _L("Export G-code file"), "");
|
SideButton* export_gcode_btn = new SideButton(p, _L("Export G-code file"), "");
|
||||||
export_gcode_btn->SetCornerRadius(0);
|
export_gcode_btn->SetCornerRadius(0);
|
||||||
@@ -1775,15 +1775,10 @@ wxBoxSizer* MainFrame::create_side_tools()
|
|||||||
|
|
||||||
p->append_button(send_gcode_btn);
|
p->append_button(send_gcode_btn);
|
||||||
p->append_button(export_gcode_btn);
|
p->append_button(export_gcode_btn);
|
||||||
}
|
} else {
|
||||||
else {
|
SideButton* print_plate_btn = new SideButton(p, _L("Print"), "");
|
||||||
//Snapmaker Orca Buttons
|
|
||||||
SideButton* print_plate_btn = new SideButton(p, _L("Print plate"), "");
|
|
||||||
print_plate_btn->SetCornerRadius(0);
|
print_plate_btn->SetCornerRadius(0);
|
||||||
|
|
||||||
SideButton* send_to_printer_btn = new SideButton(p, _L("Send"), "");
|
|
||||||
send_to_printer_btn->SetCornerRadius(0);
|
|
||||||
|
|
||||||
SideButton* export_sliced_file_btn = new SideButton(p, _L("Export plate sliced file"), "");
|
SideButton* export_sliced_file_btn = new SideButton(p, _L("Export plate sliced file"), "");
|
||||||
export_sliced_file_btn->SetCornerRadius(0);
|
export_sliced_file_btn->SetCornerRadius(0);
|
||||||
|
|
||||||
@@ -1791,39 +1786,8 @@ wxBoxSizer* MainFrame::create_side_tools()
|
|||||||
export_all_sliced_file_btn->SetCornerRadius(0);
|
export_all_sliced_file_btn->SetCornerRadius(0);
|
||||||
|
|
||||||
print_plate_btn->Bind(wxEVT_BUTTON, [this, p](wxCommandEvent&) {
|
print_plate_btn->Bind(wxEVT_BUTTON, [this, p](wxCommandEvent&) {
|
||||||
m_print_btn->SetLabel(_L("Print plate"));
|
m_print_btn->SetLabel(_L("Print"));
|
||||||
m_print_select = ePrintPlate;
|
m_print_select = eSendGcode;
|
||||||
m_print_enable = get_enable_print_status();
|
|
||||||
m_print_btn->Enable(m_print_enable);
|
|
||||||
this->Layout();
|
|
||||||
p->Dismiss();
|
|
||||||
});
|
|
||||||
|
|
||||||
SideButton* print_all_btn = new SideButton(p, _L("Print all"), "");
|
|
||||||
print_all_btn->SetCornerRadius(0);
|
|
||||||
print_all_btn->Bind(wxEVT_BUTTON, [this, p](wxCommandEvent&) {
|
|
||||||
m_print_btn->SetLabel(_L("Print all"));
|
|
||||||
m_print_select = ePrintAll;
|
|
||||||
m_print_enable = get_enable_print_status();
|
|
||||||
m_print_btn->Enable(m_print_enable);
|
|
||||||
this->Layout();
|
|
||||||
p->Dismiss();
|
|
||||||
});
|
|
||||||
|
|
||||||
send_to_printer_btn->Bind(wxEVT_BUTTON, [this, p](wxCommandEvent&) {
|
|
||||||
m_print_btn->SetLabel(_L("Send"));
|
|
||||||
m_print_select = eSendToPrinter;
|
|
||||||
m_print_enable = get_enable_print_status();
|
|
||||||
m_print_btn->Enable(m_print_enable);
|
|
||||||
this->Layout();
|
|
||||||
p->Dismiss();
|
|
||||||
});
|
|
||||||
|
|
||||||
SideButton* send_to_printer_all_btn = new SideButton(p, _L("Send all"), "");
|
|
||||||
send_to_printer_all_btn->SetCornerRadius(0);
|
|
||||||
send_to_printer_all_btn->Bind(wxEVT_BUTTON, [this, p](wxCommandEvent&) {
|
|
||||||
m_print_btn->SetLabel(_L("Send all"));
|
|
||||||
m_print_select = eSendToPrinterAll;
|
|
||||||
m_print_enable = get_enable_print_status();
|
m_print_enable = get_enable_print_status();
|
||||||
m_print_btn->Enable(m_print_enable);
|
m_print_btn->Enable(m_print_enable);
|
||||||
this->Layout();
|
this->Layout();
|
||||||
@@ -1867,13 +1831,7 @@ wxBoxSizer* MainFrame::create_side_tools()
|
|||||||
}
|
}
|
||||||
|
|
||||||
p->append_button(print_plate_btn);
|
p->append_button(print_plate_btn);
|
||||||
if (support_print_all) {
|
|
||||||
p->append_button(print_all_btn);
|
|
||||||
}
|
|
||||||
if (support_send) {
|
|
||||||
p->append_button(send_to_printer_btn);
|
|
||||||
p->append_button(send_to_printer_all_btn);
|
|
||||||
}
|
|
||||||
if (enable_multi_machine) {
|
if (enable_multi_machine) {
|
||||||
SideButton* print_multi_machine_btn = new SideButton(p, _L("Send to Multi-device"), "");
|
SideButton* print_multi_machine_btn = new SideButton(p, _L("Send to Multi-device"), "");
|
||||||
print_multi_machine_btn->SetCornerRadius(0);
|
print_multi_machine_btn->SetCornerRadius(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user