mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 15:37:30 -06:00
NEW: add HMS to query hms info
display hms msg in HMS tab of Monitor Change-Id: I4df1c63b104463ba62cdf7eb079a540a4176f8c5 Signed-off-by: Stone Li <stone.li@bambulab.com> (cherry picked from commit f4635d18f3383e70177536dfbe5edf2e1370b746)
This commit is contained in:
parent
efd20d0a84
commit
73e4078348
17 changed files with 385 additions and 128 deletions
|
@ -11,6 +11,7 @@
|
|||
#include "slic3r/GUI/DeviceManager.hpp"
|
||||
#include "slic3r/Utils/NetworkAgent.hpp"
|
||||
#include "slic3r/GUI/WebViewDialog.hpp"
|
||||
#include "slic3r/GUI/HMS.hpp"
|
||||
#include "slic3r/GUI/Jobs/UpgradeNetworkJob.hpp"
|
||||
|
||||
#include <wx/app.h>
|
||||
|
@ -59,6 +60,7 @@ class ParamsPanel;
|
|||
class NotificationManager;
|
||||
struct GUI_InitParams;
|
||||
class ParamsDialog;
|
||||
class HMSQuery;
|
||||
|
||||
|
||||
enum FileType
|
||||
|
@ -260,6 +262,7 @@ private:
|
|||
std::shared_ptr<UpgradeNetworkJob> m_upgrade_network_job;
|
||||
|
||||
VersionInfo version_info;
|
||||
HMSQuery *hms_query { nullptr };
|
||||
|
||||
boost::thread m_sync_update_thread;
|
||||
bool enable_sync = false;
|
||||
|
@ -276,6 +279,7 @@ public:
|
|||
void show_message_box(std::string msg) { wxMessageBox(msg); }
|
||||
EAppMode get_app_mode() const { return m_app_mode; }
|
||||
Slic3r::DeviceManager* getDeviceManager() { return m_device_manager; }
|
||||
HMSQuery* get_hms_query() { return hms_query; }
|
||||
NetworkAgent* getAgent() { return m_agent; }
|
||||
bool is_editor() const { return m_app_mode == EAppMode::Editor; }
|
||||
bool is_gcode_viewer() const { return m_app_mode == EAppMode::GCodeViewer; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue