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:
milk
2025-05-12 10:42:49 +08:00
committed by Noisyfox
parent 32ca001701
commit f0825f2c2d
4 changed files with 166 additions and 71 deletions

View File

@@ -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