OrcaSlicer/src/slic3r/GUI/Widgets/WebView.hpp
ZdDroid 51eae690bd
启动时进行 WebView2 运行时检查 (#1944)
* 启动时进行 WebView2 运行时检查

* 启动时进行 WebView2 运行时检查

* skip code sign for PR build

* Russian translation for OrcaSlicer V1.6.4 (#1900)

* Russian translation for OrcaSlicer V1.6.4

Please replace the existing translation with my translation.

Advantages of this translation:
-A normal translation based on the Prusa slicer translation (the translation of which I have been supporting for a long time). The translation that is used now is crude, there are a lot of errors and typos.
-Added missing lines

I also made a pull request for this translation for Bambu Studio (with small edits and add lines)

* file name and location updates

* update

rename Russian.po in OrcaSlicer_ru.po

* update

* move OrcaSlicer_ru.po to correct location

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>

* Fixed viewer resize malfunction when cjk language is use (#1909)

* Update Korean translation

* 1. Fix blank button text after translation
2. Fix some mistranslated korean

* -fix bottom surface in gcode viewer
-update korean translation

* - Fixed UI being broken 'cause "display" text size could not be calculated when cjk language is use

* Port overhang extra perimeters from PrusaSlicer (#1939)

* Port overhang extra perimeters from PrusaSlicer

* Reduce duplicated code

* Add credits

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
Co-authored-by: PavelMikus <pavel.mikus.mail@seznam.cz>

* Create OrcaSlicer_zh_TW.po for traditional Chinese translate (#1952)

Create OrcaSlicer_zh_TW.po

* update czech translate (#1949)

* QoL: make slider thinner

* QoL: show transparent shell in gcode preview and truncate long gcode line caused by native Klipper commands

* PlaceholderParser: new interpolate_table() "function"
interpolate_table(x, (x0, y0), (x1, y1), (x2, y2), ...)
interpolates a table at position x.

* GCodeGenerator / custom G-codes: Added new read/only options providing
the amount of total extruded material and per extruder extruded material
up to the point the value is evaluated:
"extruded_volume", "extruded_weight",
"extruded_volume_total", "extruded_weight_total"

* support profile notes

* Add support for PrusaLink webview

* update Prusa profiles

* Support Marlin 2

* tweak MK4IS

* Fix Linux build errors

* Add Tranditional Chinese

* Fix *nix build error and some other fixes

---------

Co-authored-by: ZdDroid <601865048@qq.com>
Co-authored-by: SoftFever <softfeverever@gmail.com>
Co-authored-by: Andy <andylg@yandex.ru>
Co-authored-by: Hotsolidinfill <138652683+Hotsolidinfill@users.noreply.github.com>
Co-authored-by: Noisyfox <timemanager.rick@gmail.com>
Co-authored-by: PavelMikus <pavel.mikus.mail@seznam.cz>
Co-authored-by: ablegods <85563455+ablegods@users.noreply.github.com>
Co-authored-by: renemosner <99507763+renemosner@users.noreply.github.com>
Co-authored-by: Vojtech Bubnik <bubnikv@gmail.com>
2023-08-31 21:36:57 +08:00

21 lines
520 B
C++

#ifndef slic3r_GUI_WebView_hpp_
#define slic3r_GUI_WebView_hpp_
#include <wx/webview.h>
class WebView
{
public:
static wxWebView *CreateWebView(wxWindow *parent, wxString const &url);
#if wxUSE_WEBVIEW_EDGE
static bool CheckWebViewRuntime();
static bool DownloadAndInstallWebViewRuntime();
#endif
static void LoadUrl(wxWebView * webView, wxString const &url);
static bool RunScript(wxWebView * webView, wxString const & msg);
static void RecreateAll();
};
#endif // !slic3r_GUI_WebView_hpp_