ENH: jump to monitor->device-status after sending print task

Change-Id: Id94e1d153c1462941460914dc5bac54f6fa85133
This commit is contained in:
tao.jin 2022-09-23 13:27:41 +08:00 committed by Lane.Wei
parent 41508fc5ad
commit 3ad719cd50
2 changed files with 14 additions and 0 deletions

View File

@ -113,9 +113,19 @@ public:
MonitorPanel(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL); MonitorPanel(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL);
~MonitorPanel(); ~MonitorPanel();
enum PrinterTab {
PT_STATUS = 0,
PT_MEDIA = 1,
PT_UPDATE = 2,
PT_HMS = 3,
PT_DEBUG = 4,
PT_MAX_NUM = 5
};
void init_bitmap(); void init_bitmap();
void init_timer(); void init_timer();
void init_tabpanel(); void init_tabpanel();
Tabbook* get_tabpanel() { return m_tabpanel; };
void set_default(); void set_default();
wxWindow* create_side_tools(); wxWindow* create_side_tools();

View File

@ -8954,6 +8954,10 @@ void Plater::print_job_finished(wxCommandEvent &evt)
p->hide_select_machine_dlg(); p->hide_select_machine_dlg();
p->main_frame->request_select_tab(MainFrame::TabPosition::tpMonitor); p->main_frame->request_select_tab(MainFrame::TabPosition::tpMonitor);
//jump to monitor and select device status panel
MonitorPanel* curr_monitor = p->main_frame->m_monitor;
if(curr_monitor)
curr_monitor->get_tabpanel()->ChangeSelection(MonitorPanel::PrinterTab::PT_STATUS);
} }
// Called when the Eject button is pressed. // Called when the Eject button is pressed.