OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
StatusPanel.cpp File Reference
#include "StatusPanel.hpp"
#include "I18N.hpp"
#include "IPrinterAgent.hpp"
#include "Widgets/Label.hpp"
#include "Widgets/Button.hpp"
#include "Widgets/StepCtrl.hpp"
#include "Widgets/SideTools.hpp"
#include "Widgets/WebView.hpp"
#include "BitmapCache.hpp"
#include "GUI_App.hpp"
#include "MainFrame.hpp"
#include "MsgDialog.hpp"
#include "bambu_networking.hpp"
#include "slic3r/Utils/Http.hpp"
#include "DeviceErrorDialog.hpp"
#include "RecenterDialog.hpp"
#include "CalibUtils.hpp"
#include <boost/algorithm/string/replace.hpp>
#include <cstddef>
#include <ctime>
#include "slic3r/GUI/DeviceManager.hpp"
#include "slic3r/GUI/DeviceCore/DevExtruderSystem.h"
#include "slic3r/GUI/Widgets/ProgressBar.hpp"
#include "libslic3r/calib.hpp"
#include <boost/log/trivial.hpp>
#include "libslic3r/Utils.hpp"
#include "slic3r/GUI/CameraPopup.hpp"
#include <memory>
#include "slic3r/GUI/WebMediaController.hpp"
#include "slic3r/GUI/MediaPlayCtrl.h"
#include "slic3r/GUI/Widgets/ImageSwitchButton.hpp"
#include "slic3r/GUI/Widgets/AxisCtrlButton.hpp"
#include "slic3r/GUI/Widgets/AMSControl.hpp"
#include "slic3r/GUI/Widgets/FilamentLoad.hpp"
#include "slic3r/GUI/DeviceCore/DevConfigUtil.h"
#include "slic3r/GUI/Widgets/AMSItem.hpp"
#include "slic3r/GUI/Widgets/FanControl.hpp"
#include "slic3r/GUI/ReleaseNote.hpp"
#include <cstdio>
#include "slic3r/GUI/CalibrationWizardPage.hpp"
#include "slic3r/GUI/SelectMachine.hpp"
#include "slic3r/GUI/DeviceCore/DevDefs.h"
#include <cstdlib>
#include "libslic3r/ProjectTask.hpp"
#include "slic3r/GUI/GUI.hpp"
#include <map>
#include "slic3r/GUI/Event.hpp"
#include <optional>
#include "slic3r/GUI/AmsMappingPopup.hpp"
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/date_time/posix_time/posix_time_duration.hpp>
#include "slic3r/GUI/Widgets/PopupWindow.hpp"
#include "slic3r/GUI/GUI_Utils.hpp"
#include <set>
#include "libslic3r/libslic3r.h"
#include <slic3r/GUI/Widgets/ProgressDialog.hpp>
#include <wx/colour.h>
#include <string>
#include <wx/dcclient.h>
#include <wx/dc.h>
#include "slic3r/GUI/Widgets/StateColor.hpp"
#include <wx/chartype.h>
#include <utility>
#include <wx/anybutton.h>
#include "slic3r/GUI/wxExtensions.hpp"
#include "slic3r/GUI/Widgets/SwitchButton.hpp"
#include "slic3r/GUI/wxMediaCtrl3.h"
#include "slic3r/GUI/Widgets/StaticBox.hpp"
#include "slic3r/GUI/Widgets/TempInput.hpp"
#include "slic3r/GUI/Widgets/StaticLine.hpp"
#include <vector>
#include <unordered_set>
#include <wx/arrstr.h>
#include <unordered_map>
#include <wx/display.h>
#include <wx/image.h>
#include <wx/gdicmn.h>
#include <wx/event.h>
#include <wx/font.h>
#include <wx/filedlg.h>
#include <wx/mstream.h>
#include <wx/panel.h>
#include <wx/scrolwin.h>
#include <wx/sizer.h>
#include <wx/simplebook.h>
#include <wx/sstream.h>
#include <wx/utils.h>
#include <wx/string.h>
#include <wx/stattext.h>
#include <wx/window.h>
#include <wx/webview.h>
#include <wx/webrequest.h>
#include <wx/tglbtn.h>
#include <wx/toplevel.h>
#include <wx/zstream.h>
#include <chrono>
#include "DeviceCore/DevBed.h"
#include "DeviceCore/DevCtrl.h"
#include "DeviceCore/DevFan.h"
#include "DeviceCore/DevFilaSystem.h"
#include "DeviceCore/DevLamp.h"
#include "DeviceCore/DevStorage.h"
#include "DeviceCore/DevConfig.h"
#include "DeviceCore/DevManager.h"
#include "DeviceCore/DevPrintTaskInfo.h"
#include "DeviceTab/wgtDeviceNozzleRack.h"
#include "PrintOptionsDialog.hpp"
#include "SafetyOptionsDialog.hpp"
#include "ThermalPreconditioningDialog.hpp"
#include <wx/dcgraph.h>

Go to the source code of this file.

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
namespace  Slic3r::GUI

Macros

#define TEMP_THRESHOLD_VAL   2
#define TEMP_THRESHOLD_ALLOW_E_CTRL   170.0f
#define PAGE_TITLE_HEIGHT   FromDIP(36)
#define PAGE_TITLE_TEXT_WIDTH   FromDIP(200)
#define PAGE_TITLE_LEFT_MARGIN   FromDIP(17)
#define GROUP_TITLE_LEFT_MARGIN   FromDIP(15)
#define GROUP_TITLE_LINE_MARGIN   FromDIP(11)
#define GROUP_TITLE_RIGHT_MARGIN   FromDIP(15)
#define NORMAL_SPACING   FromDIP(5)
#define PAGE_SPACING   FromDIP(10)
#define PAGE_MIN_WIDTH   FromDIP(574)
#define PROGRESSBAR_HEIGHT   FromDIP(8)
#define SWITCH_BUTTON_SIZE   (wxSize(FromDIP(40), -1))
#define TASK_THUMBNAIL_SIZE   (wxSize(FromDIP(120), FromDIP(120)))
#define TASK_BUTTON_SIZE   (wxSize(FromDIP(48), FromDIP(24)))
#define TASK_BUTTON_SIZE2   (wxSize(-1, FromDIP(24)))
#define Z_BUTTON_SIZE   (wxSize(FromDIP(44), FromDIP(40)))
#define MISC_BUTTON_PANEL_SIZE   (wxSize(FromDIP(136), FromDIP(55)))
#define MISC_BUTTON_1FAN_SIZE   (wxSize(FromDIP(132), FromDIP(51)))
#define MISC_BUTTON_2FAN_SIZE   (wxSize(FromDIP(66), FromDIP(51)))
#define MISC_BUTTON_3FAN_SIZE   (wxSize(FromDIP(44), FromDIP(51)))
#define TEMP_CTRL_MIN_SIZE_ALIGN_ONE_ICON   (wxSize(FromDIP(125), FromDIP(52)))
#define TEMP_CTRL_MIN_SIZE_ALIGN_TWO_ICON   (wxSize(FromDIP(145), FromDIP(48)))
#define AXIS_MIN_SIZE   (wxSize(FromDIP(258), FromDIP(258)))
#define EXTRUDER_IMAGE_SIZE   (wxSize(FromDIP(48), FromDIP(76)))
#define SWITCHING_STATUS_BTN_SIZE   wxSize(FromDIP(25), FromDIP(26))

Functions

static void Slic3r::GUI::market_model_scoring_page (int design_id)

Variables

static const wxString Slic3r::GUI::NA_STR = _L("N/A")
static const wxString Slic3r::GUI::TEMP_BLANK_STR = wxString("_")
static const wxFont Slic3r::GUI::SWITCH_FONT = Label::Body_10
static const int Slic3r::GUI::bed_temp_range [2] = {20, 120}
static const int Slic3r::GUI::default_champer_temp_min = 20
static const int Slic3r::GUI::default_champer_temp_max = 60
static const wxColour Slic3r::GUI::STATUS_PANEL_BG = wxColour(238, 238, 238)
static const wxColour Slic3r::GUI::STATUS_TITLE_BG = wxColour(248, 248, 248)
static const wxColour Slic3r::GUI::STATIC_BOX_LINE_COL = wxColour(238, 238, 238)
static const wxColour Slic3r::GUI::BUTTON_NORMAL1_COL = wxColour(238, 238, 238)
static const wxColour Slic3r::GUI::BUTTON_NORMAL2_COL = wxColour(206, 206, 206)
static const wxColour Slic3r::GUI::BUTTON_PRESS_COL = wxColour(172, 172, 172)
static const wxColour Slic3r::GUI::BUTTON_HOVER_COL = wxColour(0, 150, 136)
static const wxColour Slic3r::GUI::DISCONNECT_TEXT_COL = wxColour(171, 172, 172)
static const wxColour Slic3r::GUI::NORMAL_TEXT_COL = wxColour(48,58,60)
static const wxColour Slic3r::GUI::NORMAL_FAN_TEXT_COL = wxColour(107, 107, 107)
static const wxColour Slic3r::GUI::WARNING_INFO_BG_COL = wxColour(255, 111, 0)
static const wxColour Slic3r::GUI::STAGE_TEXT_COL = wxColour(0, 150, 136)
static const wxColour Slic3r::GUI::GROUP_STATIC_LINE_COL = wxColour(206, 206, 206)
static const wxFont Slic3r::GUI::PAGE_TITLE_FONT = Label::Body_14
static wxColour Slic3r::GUI::PAGE_TITLE_FONT_COL = wxColour(107, 107, 107)
static wxColour Slic3r::GUI::GROUP_TITLE_FONT_COL = wxColour(172, 172, 172)
static wxColour Slic3r::GUI::TEXT_LIGHT_FONT_COL = wxColour(107, 107, 107)
static wxImage Slic3r::GUI::fail_image

Macro Definition Documentation

◆ AXIS_MIN_SIZE

#define AXIS_MIN_SIZE   (wxSize(FromDIP(258), FromDIP(258)))

◆ EXTRUDER_IMAGE_SIZE

#define EXTRUDER_IMAGE_SIZE   (wxSize(FromDIP(48), FromDIP(76)))

◆ GROUP_TITLE_LEFT_MARGIN

#define GROUP_TITLE_LEFT_MARGIN   FromDIP(15)

◆ GROUP_TITLE_LINE_MARGIN

#define GROUP_TITLE_LINE_MARGIN   FromDIP(11)

◆ GROUP_TITLE_RIGHT_MARGIN

#define GROUP_TITLE_RIGHT_MARGIN   FromDIP(15)

◆ MISC_BUTTON_1FAN_SIZE

#define MISC_BUTTON_1FAN_SIZE   (wxSize(FromDIP(132), FromDIP(51)))

◆ MISC_BUTTON_2FAN_SIZE

#define MISC_BUTTON_2FAN_SIZE   (wxSize(FromDIP(66), FromDIP(51)))

◆ MISC_BUTTON_3FAN_SIZE

#define MISC_BUTTON_3FAN_SIZE   (wxSize(FromDIP(44), FromDIP(51)))

◆ MISC_BUTTON_PANEL_SIZE

#define MISC_BUTTON_PANEL_SIZE   (wxSize(FromDIP(136), FromDIP(55)))

◆ NORMAL_SPACING

#define NORMAL_SPACING   FromDIP(5)

◆ PAGE_MIN_WIDTH

◆ PAGE_SPACING

#define PAGE_SPACING   FromDIP(10)

◆ PAGE_TITLE_HEIGHT

◆ PAGE_TITLE_LEFT_MARGIN

◆ PAGE_TITLE_TEXT_WIDTH

#define PAGE_TITLE_TEXT_WIDTH   FromDIP(200)

◆ PROGRESSBAR_HEIGHT

#define PROGRESSBAR_HEIGHT   FromDIP(8)

◆ SWITCH_BUTTON_SIZE

#define SWITCH_BUTTON_SIZE   (wxSize(FromDIP(40), -1))

◆ SWITCHING_STATUS_BTN_SIZE

#define SWITCHING_STATUS_BTN_SIZE   wxSize(FromDIP(25), FromDIP(26))

◆ TASK_BUTTON_SIZE

#define TASK_BUTTON_SIZE   (wxSize(FromDIP(48), FromDIP(24)))

◆ TASK_BUTTON_SIZE2

#define TASK_BUTTON_SIZE2   (wxSize(-1, FromDIP(24)))

◆ TASK_THUMBNAIL_SIZE

#define TASK_THUMBNAIL_SIZE   (wxSize(FromDIP(120), FromDIP(120)))

◆ TEMP_CTRL_MIN_SIZE_ALIGN_ONE_ICON

#define TEMP_CTRL_MIN_SIZE_ALIGN_ONE_ICON   (wxSize(FromDIP(125), FromDIP(52)))

◆ TEMP_CTRL_MIN_SIZE_ALIGN_TWO_ICON

#define TEMP_CTRL_MIN_SIZE_ALIGN_TWO_ICON   (wxSize(FromDIP(145), FromDIP(48)))

◆ TEMP_THRESHOLD_ALLOW_E_CTRL

#define TEMP_THRESHOLD_ALLOW_E_CTRL   170.0f

◆ TEMP_THRESHOLD_VAL

#define TEMP_THRESHOLD_VAL   2

◆ Z_BUTTON_SIZE

#define Z_BUTTON_SIZE   (wxSize(FromDIP(44), FromDIP(40)))