diff options
author | Vojtech Kral <vojtech@kral.hk> | 2018-12-20 13:50:08 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2018-12-20 15:37:50 +0300 |
commit | afc5ed0c624b585cb41c365b591e3a917d80a096 (patch) | |
tree | 1df7f1cdf5c554bf46e85dae2c3feaca20ce9796 /src/slic3r/GUI/PrintHostDialogs.hpp | |
parent | 68684dd0037a76d1f74e7368159bfc2a43ae6d9d (diff) |
Printhost: Error message stashing, improvements
Diffstat (limited to 'src/slic3r/GUI/PrintHostDialogs.hpp')
-rw-r--r-- | src/slic3r/GUI/PrintHostDialogs.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/slic3r/GUI/PrintHostDialogs.hpp b/src/slic3r/GUI/PrintHostDialogs.hpp index e38acee32..b8b5d62bb 100644 --- a/src/slic3r/GUI/PrintHostDialogs.hpp +++ b/src/slic3r/GUI/PrintHostDialogs.hpp @@ -13,10 +13,12 @@ #include "MsgDialog.hpp" #include "../Utils/PrintHost.hpp" +class wxButton; class wxTextCtrl; class wxCheckBox; class wxDataViewListCtrl; + namespace Slic3r { struct PrintHostJob; @@ -60,11 +62,34 @@ public: void append_job(const PrintHostJob &job); private: + enum Column { + COL_ID, + COL_PROGRESS, + COL_STATUS, + COL_HOST, + COL_FILENAME, + COL_ERRORMSG, + }; + + enum JobState { + ST_NEW, + ST_PROGRESS, + ST_ERROR, + ST_CANCELLING, + ST_CANCELLED, + ST_COMPLETED, + }; + + wxButton *btn_cancel; + wxButton *btn_error; wxDataViewListCtrl *job_list; // Note: EventGuard prevents delivery of progress evts to a freed PrintHostQueueDialog EventGuard on_progress_evt; EventGuard on_error_evt; + JobState get_state(int idx); + void set_state(int idx, JobState); + void on_list_select(); void on_progress(Event&); void on_error(Event&); }; |