mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 14:13:57 -06:00
Support for Obico cloud integration (#4116)
support obico (#3) Add printer support for Obico cloud. --------- Co-authored-by: zzh <anjingxw@126.com>
This commit is contained in:
parent
047b889ba6
commit
8c941df4e8
11 changed files with 519 additions and 2 deletions
51
src/slic3r/GUI/PrinterCloudAuthDialog.hpp
Normal file
51
src/slic3r/GUI/PrinterCloudAuthDialog.hpp
Normal file
|
@ -0,0 +1,51 @@
|
|||
#ifndef slic3r_GUI_PrinterCloudAuthDialog_hpp_
|
||||
#define slic3r_GUI_PrinterCloudAuthDialog_hpp_
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/font.h>
|
||||
#include <wx/colour.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/dialog.h>
|
||||
#include "wx/webview.h"
|
||||
|
||||
#if wxUSE_WEBVIEW_IE
|
||||
#include "wx/msw/webview_ie.h"
|
||||
#endif
|
||||
#if wxUSE_WEBVIEW_EDGE
|
||||
#include "wx/msw/webview_edge.h"
|
||||
#endif
|
||||
|
||||
#include "GUI_Utils.hpp"
|
||||
#include "PrintHost.hpp"
|
||||
|
||||
namespace Slic3r { namespace GUI {
|
||||
|
||||
class PrinterCloudAuthDialog : public wxDialog
|
||||
{
|
||||
protected:
|
||||
wxWebView* m_browser;
|
||||
wxString m_TargetUrl;
|
||||
|
||||
wxString m_javascript;
|
||||
wxString m_response_js;
|
||||
PrintHost* m_host;
|
||||
std::string m_apikey;
|
||||
|
||||
public:
|
||||
PrinterCloudAuthDialog(wxWindow* parent, PrintHost* host);
|
||||
~PrinterCloudAuthDialog();
|
||||
|
||||
std::string GetApiKey() { return m_apikey; };
|
||||
|
||||
void OnNavigationRequest(wxWebViewEvent& evt);
|
||||
void OnNavigationComplete(wxWebViewEvent& evt);
|
||||
void OnDocumentLoaded(wxWebViewEvent& evt);
|
||||
void OnNewWindow(wxWebViewEvent& evt);
|
||||
void OnScriptMessage(wxWebViewEvent& evt);
|
||||
|
||||
};
|
||||
|
||||
}} // namespace Slic3r::GUI
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue