24469 Commits

Author SHA1 Message Date
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
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
YuSanka
4263ca6283 TopBar: Fixed a hovering for the bar items 2024-03-25 12:05:55 +01:00
YuSanka
ba5e8b87a9 Fix for using of accelerators from menu items.
After TopBar implementation we don't use wxMenuBar anymore.
As a result menu accelerators was unused.
To workaround this issue the accelerator_entries_cache is generated during creating menu items
and than items from this cache are added to the acceleration table for mainframe.
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
cecfe485ab WIP: New simple top bar : Improve/delete redundant mode sizers
+ UI-fixes for OSX
2024-03-25 12:05:55 +01:00
YuSanka
ada1fc37ff WIP: Experiments with New simple top bar 2024-03-25 12:05:55 +01:00
YuSanka
5f34abf473 Follow-up a6324174: Add missed icons 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