ENH: Open Prinables.com Links and Zip Archives (#3823)

* Enable ability to open `prusaslicer://` links

* Add needed function to miniz

* Import Zip Functionality

Allows zip file to be drag and dropped or imported via the menu option

Based on prusa3d/PrusaSlicer@ce38e57 and current master branch files

* Update dialog style to match Orca

* Ensure link is from printables

* add toggle option in preferences

doesn't actually control anything yet

* Add Downloader classes

As-is from PS master

* Create Orca Styled Variant of Icons

* Add Icons to ImGui

* Use PS's Downloader impl for `prusaslicer://` links

* Implement URL Registering on Windows

* Implement prusaslicer:// link on macOS

* Remove unnecessary class name qualifier in Plater.hpp

* Add downloader desktop integration registration and undo

* Revert Info.plist

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
Ocraftyone 2024-05-21 22:52:34 -04:00 committed by GitHub
parent 0dbf610226
commit a764d836e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 3109 additions and 41 deletions

View file

@ -136,6 +136,19 @@ static const std::map<const wchar_t, std::string> font_icons_large = {
{ImGui::PrevArrowBtnIcon, "notification_arrow_left" },
{ImGui::NextArrowBtnIcon, "notification_arrow_right" },
{ImGui::CompleteIcon, "notification_slicing_complete" },
{ImGui::PlayButton, "notification_play" },
{ImGui::PlayDarkButton, "notification_play_dark" },
{ImGui::PlayHoverButton, "notification_play_hover" },
{ImGui::PlayHoverDarkButton, "notification_play_hover_dark" },
{ImGui::PauseButton, "notification_pause" },
{ImGui::PauseDarkButton, "notification_pause_dark" },
{ImGui::PauseHoverButton, "notification_pause_hover" },
{ImGui::PauseHoverDarkButton, "notification_pause_hover_dark" },
{ImGui::OpenButton, "notification_open" },
{ImGui::OpenDarkButton, "notification_open_dark" },
{ImGui::OpenHoverButton, "notification_open_hover" },
{ImGui::OpenHoverDarkButton, "notification_open_hover_dark" },
};
static const std::map<const wchar_t, std::string> font_icons_extra_large = {