24380 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
60b4789eed change name in searched json 2024-03-25 12:32:09 +01:00
David Kocik
456087ca23 remove media control references 2024-03-25 12:05:55 +01:00
David Kocik
d289b11950 User Account avatar extension
(Missing support for jpg in ScalableBitmap)
2024-03-25 12:05:55 +01:00
David Kocik
600086df56 Read printer_name from printer_type in printers states message 2024-03-25 12:05:55 +01:00
David Kocik
c669ef49aa sys_color_change for webview windows 2024-03-25 12:05:55 +01:00
YuSanka
f05318686c TopBar: Fixed a crash on switch print technology 2024-03-25 12:05:55 +01:00
YuSanka
83ce1d600a Suppress a tab selection when the application is started as a G-codeViewer 2024-03-25 12:05:55 +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
7ad9431e3a New connect endpoint slicer/status replacing slicer/printers
move enum value to if 0
2024-03-25 12:05:55 +01:00
YuSanka
9619999c70 Linux specific: Fixed background color of the Settings Tabs 2024-03-25 12:05:55 +01:00
YuSanka
9f76f9051e TopBar buttons: Implemented render() function.
Note: on Linux wxButton doesn't receive wxEVT_PAINT event, so we cant redraw it with rounded corners.
So, we just set related colors of back/foreground for the TopBar buttons.
2024-03-25 12:05:55 +01:00
YuSanka
8d74318888 Added missed includes 2024-03-25 12:05:55 +01:00
David Kocik
b21c65de23 Added missed includes 2024-03-25 12:05:55 +01:00
David Kocik
93df0ce384 Temporary sending session id instead of access key 2024-03-25 12:05:55 +01:00
David Kocik
5f48e61992 Fix of waking up session thread
Polling every 5 seconds
Do not switch printers on Connect webview click
2024-03-25 12:05:55 +01:00
David Kocik
93d47dd121 Fix of showing Physical printer webview tab at startup 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
565d89a2e2 Simple error page 2024-03-25 12:05:55 +01:00
David Kocik
b032bf792b Fix of Webview2 deps.
Added checking existence of target (Mac + Linux).
Force webview2 to be appended to build list (Win).
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
7c1f8f8807 PrusaConnect web app communications
Set Access token.
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
e9706f4032 Rename source files.
So the files are named as classes from commit 0ba535967bfbf00dbdce0a441105adb98671eb0e
2024-03-25 12:05:55 +01:00
David Kocik
f3dd5fa17d Rename Auth to UserAccount 2024-03-25 12:05:55 +01:00
Lukas Matena
5791bcb43f Fix cmake for WebView2 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
YuSanka
5804d5aa71 TopBar: Fixed Rescale() function 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
David Kocik
1be8144b1c Prusa Auth renamed to Account in UI 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
YuSanka
ce91ef8f49 TopBar: Search: Fixed OSX issue with Layout on Show() 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
YuSanka
e92304c6eb TextInput: Added possibility to set function on DropDown icon 2024-03-25 12:05:55 +01:00
YuSanka
a336a2c379 TopBar: Fixed strange small rectangle in TopLeft corner
OSX specific issues:
* Fixed Layout
* Fixed a crash on start
* Buttons: Fixed colors on selecting and hovering

MSW specific:
*Fixed update color mode
2024-03-25 12:05:55 +01:00
YuSanka
e4e19f1358 TextInput: Implemented SysColorsChanged function 2024-03-25 12:05:55 +01:00
YuSanka
1fdfbf3921 Deleted code related to mode sizer. 2024-03-25 12:05:55 +01:00
David Kocik
30a1279d90 connect_polling app config variable
Can be used to disable periodical update of Connect printers.
2024-03-25 12:05:55 +01:00
David Kocik
db43c069d9 Fix of not selecting presets from Connect when physical printer was selected.
Note: There might be other similar settings that needs to be done next to the unselecting of ph printer.
2024-03-25 12:05:55 +01:00
David Kocik
488254f7fb Missing Mac implementation of receiving login data from browser.
+ fix of current connect address
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
YuSanka
bf8c3e7653 Fixed OSX build and some of warnings 2024-03-25 12:05:55 +01:00
YuSanka
1c4b9d43d1 Search improvements:
* Set max size.
* Close search dialog, when both of search dialog and search input lose a focus
* Update dialog position in respect to the position and size of search input
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
YuSanka
7b8238a905 TopBar : Follow-up 217c41ee - Fixed User and Workspace menus 2024-03-25 12:05:55 +01:00