ENH: jump to monitor->device-status after sending print task
Change-Id: Id94e1d153c1462941460914dc5bac54f6fa85133
This commit is contained in:
parent
41508fc5ad
commit
3ad719cd50
|
@ -112,10 +112,20 @@ private:
|
||||||
public:
|
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();
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue