mirror of
https://github.com/QIDITECH/QIDIStudio.git
synced 2026-01-31 00:48:41 +03:00
fix build
This commit is contained in:
@@ -4258,15 +4258,18 @@ wxString GUI_App::transition_tridid(int trid_id, bool is_n3s) const
|
||||
//QDS
|
||||
void GUI_App::request_login(bool show_user_info)
|
||||
{
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
ShowUserLogin();
|
||||
|
||||
if (show_user_info) {
|
||||
get_login_info();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void GUI_App::get_login_info()
|
||||
{
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
// if (m_agent) {
|
||||
// if (m_agent->is_user_login()) {
|
||||
// std::string login_cmd = m_agent->build_login_cmd();
|
||||
@@ -4339,13 +4342,16 @@ void GUI_App::get_login_info()
|
||||
GUI::wxGetApp().run_script_left(strJS);
|
||||
m_qidi_login = false;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool GUI_App::is_user_login()
|
||||
{
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
if (m_agent) {
|
||||
return m_agent->is_user_login();
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -4353,6 +4359,7 @@ bool GUI_App::is_user_login()
|
||||
bool GUI_App::check_login()
|
||||
{
|
||||
bool result = false;
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
if (m_agent) {
|
||||
result = m_agent->is_user_login();
|
||||
}
|
||||
@@ -4360,6 +4367,7 @@ bool GUI_App::check_login()
|
||||
if (!result) {
|
||||
ShowUserLogin();
|
||||
}
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -5119,10 +5127,13 @@ void GUI_App::check_update(bool show_tips, int by_user)
|
||||
//B y41
|
||||
void GUI_App::check_new_version(bool show_tips, int by_user)
|
||||
{
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
QIDINetwork qidi;
|
||||
qidi.check_new_version(show_tips, by_user);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
void GUI_App::update_versioninfo(QIDIVersion version)
|
||||
{
|
||||
version_info.url = version.url;
|
||||
@@ -5130,7 +5141,7 @@ void GUI_App::update_versioninfo(QIDIVersion version)
|
||||
version_info.description = version.description;
|
||||
version_info.force_upgrade = version.force_upgrade;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
//QDS pop up a dialog and download files
|
||||
void GUI_App::request_new_version(int by_user)
|
||||
|
||||
@@ -271,8 +271,9 @@ private:
|
||||
wxColour m_color_selected_btn_bg;
|
||||
bool m_force_colors_update { false };
|
||||
//#endif
|
||||
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
std::vector<Device> m_devices;
|
||||
#endif
|
||||
|
||||
std::vector<std::string> m_mode_palette;
|
||||
|
||||
@@ -437,9 +438,10 @@ public:
|
||||
#endif //_MSW_DARK_MODE
|
||||
//#endif
|
||||
|
||||
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
std::vector<Device> get_devices() { return m_devices; };
|
||||
void set_devices(std::vector<Device> devices) { m_devices = devices; };
|
||||
#endif
|
||||
|
||||
|
||||
const wxFont& small_font() { return m_small_font; }
|
||||
@@ -719,7 +721,9 @@ public:
|
||||
const ColorRGB& get_picking_color() const;
|
||||
|
||||
//y
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
void update_versioninfo(QIDIVersion version);
|
||||
#endif
|
||||
|
||||
private:
|
||||
int updating_qidi_networking();
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
#include <slic3r/GUI/CreatePresetsDialog.hpp>
|
||||
|
||||
//y
|
||||
#ifdef QDT_RELEASE_TO_PUBLIC
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
#include "../QIDI/QIDINetwork.hpp"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -39,7 +39,9 @@
|
||||
#include <wx/tokenzr.h>
|
||||
|
||||
//B64
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
#include "../QIDI/QIDINetwork.hpp"
|
||||
#endif
|
||||
#include <boost/thread.hpp>
|
||||
#include "./Widgets/SwitchButton.hpp"
|
||||
#include "./Widgets/DeviceButton.hpp"
|
||||
|
||||
@@ -346,7 +346,9 @@ private:
|
||||
Machine_info select_machine;
|
||||
|
||||
//w42
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
Box_info machine_filament_info;
|
||||
#endif
|
||||
|
||||
bool has_box_machine = false;
|
||||
|
||||
|
||||
@@ -1881,6 +1881,7 @@ void SendMultiMachinePage::StopThread() {
|
||||
}
|
||||
|
||||
void SendMultiMachinePage::ThreadWorker() {
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
QIDINetwork qidi;
|
||||
wxString msg = "";
|
||||
while (!m_stopThread) {
|
||||
@@ -1892,6 +1893,7 @@ void SendMultiMachinePage::ThreadWorker() {
|
||||
temp_obj->ams_exist_bits = qidi.get_box_state(msg, temp_obj->dev_url, temp_obj->dev_apikey) ? 1 : 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void SendMultiMachinePage::OnClose(wxCloseEvent& event)
|
||||
|
||||
@@ -3432,6 +3432,7 @@ void GetBoxInfoDialog::synchronization(wxCommandEvent &event)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
void GetBoxInfoDialog::generate_filament_id(GUI::Box_info& machine_filament_info)
|
||||
{
|
||||
std::string filament_id = "QD";
|
||||
@@ -3468,6 +3469,7 @@ void GetBoxInfoDialog::update_filament_info(GUI::Box_info& machine_filament_info
|
||||
std::string preset_name_box = wxGetApp().get_tab(Preset::TYPE_PRINTER)->get_presets()->get_edited_preset().name;
|
||||
m_plater->box_msg.box_list_preset_name = preset_name_box;
|
||||
}
|
||||
#endif
|
||||
|
||||
void GetBoxInfoDialog::cancel(wxCommandEvent &event)
|
||||
{
|
||||
|
||||
@@ -385,9 +385,10 @@ public:
|
||||
void on_dpi_changed(const wxRect& suggested_rect) override;
|
||||
void init_printer_combox();
|
||||
std::string NormalizeVendor(const std::string& str);
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
void generate_filament_id(GUI::Box_info& machine_filament_info);
|
||||
void update_filament_info(GUI::Box_info& machine_filament_info);
|
||||
|
||||
#endif
|
||||
|
||||
std::vector<std::string> m_printer_ip;
|
||||
std::vector<std::string> m_printer_api_key;
|
||||
|
||||
@@ -25,7 +25,9 @@
|
||||
|
||||
#include <sstream>
|
||||
#include <slic3r/GUI/Widgets/WebView.hpp>
|
||||
#if QDT_RELEASE_TO_PUBLIC
|
||||
#include "../QIDI/QIDINetwork.hpp"
|
||||
#endif
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user