13 Commits

Author SHA1 Message Date
Kostas Karmas
3d5bbfbfaa Change color of busyIndicator according to the Theme
Also for the text "No printer found in your network" in AddNetworkPrinterScrollView

CURA-7627
2020-08-03 16:19:37 +02:00
Jaime van Kessel
5e788235c8 Add missing theme-ing to cloud first run screen
CURA-7627
2020-08-03 16:19:26 +02:00
Kostas Karmas
eac4d3e463 Make login parametrized with a force_logout boolean
Instead of using a separate function to force logging out before
login, login now has a boolean parameter that instructs it to logout
before loging in again, if the user is alread logged in. It then
starts the authorization with a force browser logout first.

CURA-7427
2020-05-12 16:54:41 +02:00
Kostas Karmas
b717755f20 Add "Sign in with another account" button in AddCloudPrintersView
There are cases where Cura and the browser fall out of sync when it
comes to accounts. In such cases, you may be logged in cura with an
account that has no cloud printers and in the browser with an account
that has printers. So when you press the "Add cloud printer" button,
you are redirected to mycloud and you see cloud printers that are not
detected by Cura (because Cura is in a different acconut). In such
cases, the user can now press the "Sign in with a different account"
link in the "Waiting for cloud response" page, which will log him/her
out in Cura AND in the browser, and then reinitiate the whole
authorization flow, to make sure the accounts are in sync.

CURA-7427
2020-05-11 17:47:09 +02:00
Kostas Karmas
b459895589 Add comments
CURA-7022
2020-04-29 14:19:28 +02:00
Kostas Karmas
4a49c1cc8d Fix bottom margin of the discoveredCloudPrintersScrollView
CURA-7022
2020-04-29 14:14:01 +02:00
Kostas Karmas
eda868f938 Make the discovered cloud printers model generic
Removed the dependency of the DiscoveredCloudPrintersModel on CloudOutputDevice,
which is Ultimaker specific. This can allow even external plugins to add to this
model in the future.

CURA-7022
2020-04-29 13:31:45 +02:00
Kostas Karmas
411a02a827 Simplify the DiscoveredUltimakerCloudPrintersModel reference calls
CURA-7022
2020-04-29 11:40:47 +02:00
Kostas Karmas
1981325b05 Make "Add printers manually" button invisible when cloud printers found
CURA-7022
2020-04-28 16:31:01 +02:00
Kostas Karmas
6583f5f5ac Reset the model when pressing the Add cloud printer button
CURA-7022
2020-04-28 12:08:48 +02:00
Kostas Karmas
1d4225a44a Refine the AddCloudPrinter page to display the new cloud printers
Added a scrollView to the page, which depends on the DiscoveredUltimakerCloudPrinters
model and displays the printer name, type, and firmware version. If the model is
empty, this page displays a busy indicator and a message instead.

In addition, whenever the "Add printer manually" or "Finish" button are pressed,
they also reset the DiscoveredUltimakerCloudPrintersModel.

CURA-7022
2020-04-24 19:21:01 +02:00
Kostas Karmas
1aea28a8eb Add busyIndicator and text in AddCloudPrintersView
CURA-7022
2020-04-23 15:10:45 +02:00
Kostas Karmas
41c472c2ed Add "Add a Cloud printer" QML page
CURA-7022
2020-04-22 16:09:24 +02:00