1996 Commits

Author SHA1 Message Date
David Kocik
4358382db7 Check selected profile in connect by compatible printers vector.
Select printer in plater based on compatible printers vector, if given.
2024-03-25 17:08:02 +01:00
David Kocik
123a299a9b Improvements in ConnectTab and PrinterPick Dialog
Webview access token sending and compatible printer request.

Printer Pick Dialog UI changes

Connect request_config improvements

Switch printer or send gcode dialog
2024-03-25 12:05:55 +01:00
David Kocik
0c7e6cb063 PrusaConnectNew class - new way to upload to Connect
Several bugs in UI fixed
Added Connect user data action, we might need it in future


Missing file in cmake and smaller fixes

new Connect frontend
2024-03-25 12:05:55 +01:00
David Kocik
b232894451 Changes in PrusaConnect interface
Prepared handling methods. Inside is WIP.

Handling UPDATE_SELECTED_PRINTER Connect request

ConnectRequestHandler class

Error screen as default
2024-03-25 12:05:55 +01:00
David Kocik
218a24c7cf Printer webview tab with apikey injecting (username w password does not work).
Webview developer tools added but hidden in tech.
Fixed adding / removing / loading webview tabs and blinking on add.
Rename tabs and related functions.

Apikey injection from https://github.com/SoftFever/OrcaSlicer. Thank you.

Co-authored-by: SoftFever <softfeverever@gmail.com>
2024-03-25 12:05:55 +01:00
David Kocik
af97422ea9 Store avatar png in temp folder 2024-03-25 12:05:55 +01:00
David Kocik
f3dd5fa17d Rename Auth to UserAccount 2024-03-25 12:05:55 +01:00
David Kocik
2031fb5133 Set downloaded avatar to scalable button 2024-03-25 12:05:55 +01:00
David Kocik
c129340712 Prusa Account communication changes after testing all possible error states. 2024-03-25 12:05:55 +01:00
David Kocik
f716497318 Remember session refactoring. Browser login redirect dialog only until first confirmation 2024-03-25 12:05:55 +01:00
YuSanka
946c0caf78 TopBar: Added user name to "Login" button
+ Deleted unused names for mode button
2024-03-25 12:05:55 +01:00
David Kocik
7011322f62 Download Prusa account Avatar
Missing adding avatar to topbar
2024-03-25 12:05:55 +01:00
David Kocik
2309b66e02 Get apikey from printer message and use it for upload.
Several compiler warning fixes

Fix of MacOS SHA256 generator
2024-03-25 12:05:55 +01:00
David Kocik
ff64f7167d Fixes and icons.
Sla printer icons with Connect status.

Fix of non-static variable and missing includes

update of priter_type table

missing include
2024-03-25 12:05:55 +01:00
David Kocik
161d3f40d4 notification about printer change 2024-03-25 12:05:55 +01:00
David Kocik
55525d2ebf upload file to connect - missing api key to work 2024-03-25 12:05:55 +01:00
David Kocik
da977db4c4 disable testing notification and monitor tab showing 2024-03-25 12:05:55 +01:00
David Kocik
167d92872f Automatic reset on failed login and other communication fixes 2024-03-25 12:05:55 +01:00
YuSanka
e065f0c83b TopBar: Added "Search" control
+ Deleted old search controls from tab and canvas3D
2024-03-25 12:05:55 +01:00
David Kocik
822b862fce Printers action and webview development
Automatic "Connect printers" action after login

periodic connect printers update

adding and removing connect tab on login

Webview refactor

remove unused code

load url on adding panel

monitor tab

upload to connect button
2024-03-25 12:05:55 +01:00
YuSanka
55ba9f2351 Topbar: Implement Auth menu 2024-03-25 12:05:55 +01:00
David Kocik
78c9aa668c User Account: Store more user data, not only username
Compare new and old printer maps
2024-03-25 12:05:55 +01:00
YuSanka
e774d25f7a Implemented UI to show a state of printers in PrusaConnect 2024-03-25 12:05:55 +01:00
David Kocik
2276cedc10 WebView prototype
Web View has working panel with Connect webpage with Auth token login.
Webview2 is used on windows. It uses small dll to find its runtime.

WebViewDialog.cpp, WebViewDialog.hpp, WebView.cpp and WebView.hpp were taken from https://github.com/bambulab/BambuStudio and used as protype for future WebView Development. Thank you.

Co-authored-by: cmguo <chunmao.guo@bambulab.com>

Co-authored-by: lane.wei <lane.wei@bambulab.com>
2024-03-25 12:05:55 +01:00
David Kocik
adc650ef4e PrusaConnect communication with PrusaAuth login
Background communication with keeping tokens
Temporary output is notification
Temporary storing tokens in prusaslicer.ini

Using wx secret store to store tokens if possible

Improved PrusaConnect message - number of compatible models


Fix of saving refresh token


Refactoring of Auth and Auth Session classes.
2024-03-25 12:05:55 +01:00
David Kocik
f624c55f6f Store PrusaLink passwords in wxsecretstore 2024-03-25 10:22:30 +01:00
Lukas Matena
1f87c498cd Merge branch 'master_27x' 2024-02-20 23:01:02 +01:00
YuSanka
79edd48fbc Fix for #4682 - When reloading a model that had manifold errors, warning triangle is still shown 2024-02-20 16:20:40 +01:00
Lukáš Hejl
76435e7add SPE-1840: Rework multi-material segmentation to work directly on the Voronoi diagram without creating a copy of it.
Previous algorithms assume that they can get an invalid Voronoi diagram. Because of that, during the multi-material segmentation, a copy of the Voronoi diagram was created, and there were several attempts to fix missing vertices and edges. But as it shows, this wasn't a good enough approach and sometimes led to several issues like bleeding layers.

After generalization, our approach for detection and repairs of invalid Voronoi diagrams from Arachne, we could assume that multi-material segmentation gets non-invalid Voronoi diagrams.
With this assumption, we reimplement multi-materials segmentation to work directly on the Voronoi diagram. That should make multi-material segmentation more stable.

So, this should fix several issues like bleeding layers. Also, memory consumption should decrease by a lot. Also, there should be some speedup of multi-materials segmentation.
2024-02-08 15:40:20 +01:00
YuSanka
e8214901d4 SLA overrides: Fixed preset update, when config is loaded from old PS
+ Config.cpp: Fixed comparison of nil values
2024-02-05 16:59:09 +01:00
Lukas Matena
e5b926690e Revert "Revert "Fix for #11988 : Drop down menus appear outside of PS and cannot be opened again""
This reverts commit 69e0bc3064298fc58dd2a870801161821fa16da5.
The reason the original commit was reverted was to get cleaner git history after
merging master_27x into master. The change in this commit is implemented in master as b85e80c.
2024-01-26 16:06:10 +01:00
Lukas Matena
a42223f963 Merge branch 'master_27x' 2024-01-26 13:07:19 +01:00
Lukas Matena
69e0bc3064 Revert "Fix for #11988 : Drop down menus appear outside of PS and cannot be opened again"
This reverts commit 6ff8537ff4fbd14ca09934cdb2bb987131a7b559. There is a non-trivial conflict
when merging to master, let's redo the commit after the merge so it is clear in history.
2024-01-26 12:54:10 +01:00
YuSanka
85fa892c12 SPE-2112 : Don't check an object units, when it was loaded from file with known units (3mf) 2024-01-22 11:32:27 +01:00
YuSanka
6ff8537ff4 Fix for #11988 : Drop down menus appear outside of PS and cannot be opened again
Note: Win specific
2024-01-18 18:53:44 +01:00
Lukas Matena
e922fdceb4 Fixed usage of custom filename extension in SLA mode, broken in 283fd6f. 2024-01-05 15:10:01 +01:00
Lukáš Hejl
611afd9789 Replace some deprecated boost functions.
Actually, all those deprecated functions were internally called those new functions. So there isn't any risk to use them directly.
2024-01-04 10:22:27 +01:00
tamasmeszaros
8d6497297a Replaced all occurrences of boost::nowide::narrow for wxStrings with into_u8 2023-12-18 14:33:30 +01:00
Lukas Matena
4ccc259c5a Merge branch 'master_27x' 2023-12-13 15:55:13 +01:00
YuSanka
a0365af92c Translations: fixes and changes in phrases 2023-12-11 15:43:41 +01:00
Lukas Matena
6f2e22280b Fixed crashes related to SLA 2023-12-11 15:40:35 +01:00
Lukas Matena
fd15c8cca5 Some tweaks in dialogs related to binary G-code 2023-12-11 15:40:35 +01:00
Lukas Matena
d50ecd80d1 Added a binary G-code switch into Preferences 2023-12-11 15:40:35 +01:00
Lukas Matena
2d130c71b6 Move binary gcode checkbox to Printer Settings 2023-12-11 15:40:35 +01:00
YuSanka
dad1f2727c Follow-up 34848f0f : fixed non-MSW build 2023-11-30 15:26:20 +01:00
YuSanka
dd20cc5750 StatusBar: Removed commented code 2023-11-30 15:26:20 +01:00
YuSanka
818bb91449 Plater refactoring
* Extract unrelated functions
2023-11-30 15:26:20 +01:00
YuSanka
feac3b62ed Sidebar: Next refactoring and beautification
+ Deleted long time unused or commented code
+ Some unrelated functions are moved from Plater to Sidebar
2023-11-30 15:26:20 +01:00
YuSanka
69650f703d Plater refactoring:
* Sidebar and related classes are extracted to separate file.
* Frequently changed parameters are extracted to separate file too.
2023-11-30 15:26:20 +01:00
YuSanka
fa86a3d047 Searcher related refactoring:
* Searcher moved form Plater to Gui_App
2023-11-30 15:26:20 +01:00