mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-30 13:26:58 +00:00
ENH:The print page needs to support multiple alert messages
jira: [STUDIO-10756] Change-Id: I61edceef2f6bcf30bb87aec41593009af30831fa (cherry picked from commit 2a7da8456c1dbc96daf875bb0c21a1aa4905852a)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#define slic3r_GUI_PRE_PRINT_CHECK_hpp_
|
||||
|
||||
#include <wx/wx.h>
|
||||
|
||||
#include "Widgets/Label.hpp"
|
||||
namespace Slic3r { namespace GUI {
|
||||
|
||||
enum prePrintInfoLevel {
|
||||
@@ -130,8 +130,6 @@ public:
|
||||
bool is_warning_printer(PrintDialogStatus status) { return (PrintStatusPrinterWarningBegin < status) && (PrintStatusPrinterWarningEnd > status); };
|
||||
bool is_warning_filament(PrintDialogStatus status) { return (PrintStatusFilamentWarningBegin < status) && (PrintStatusFilamentWarningEnd > status); };
|
||||
};
|
||||
|
||||
|
||||
//class PrePrintMsgBoard : public wxWindow
|
||||
//{
|
||||
//public:
|
||||
@@ -161,6 +159,25 @@ public:
|
||||
|
||||
|
||||
|
||||
class PrinterMsgPanel : public wxPanel
|
||||
{
|
||||
public:
|
||||
PrinterMsgPanel(wxWindow *parent);
|
||||
|
||||
void SetLabelList(const std::vector<wxString> &texts, const wxColour &colour);
|
||||
|
||||
// void SetLabelSingle(const wxString &texts,const wxColour& colour);
|
||||
|
||||
wxString GetLabel();
|
||||
|
||||
|
||||
private:
|
||||
wxBoxSizer * m_sizer = nullptr;
|
||||
std::vector<Label *> m_labels;
|
||||
std::vector<wxString> m_last_texts;
|
||||
};
|
||||
|
||||
|
||||
}} // namespace Slic3r::GUI
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user