125 Commits

Author SHA1 Message Date
Nino van Hooff
96ed85f9c0 Move UltimakerCloudAuthentication and UltimakerCloudScope
...to their own module
Fixes an import error where UltimakerCloudScope was used my both the
Toolbox and CuraDrive plugins

CURA-7150
2020-03-12 17:48:54 +01:00
Nino van Hooff
2e7b47f1ea Add None-check for download url
CURA-7150
2020-03-12 17:21:03 +01:00
Nino van Hooff
6dd8ebb06a Process review comments in Cura project
CURA-7150
2020-03-12 17:06:33 +01:00
Nino van Hooff
d11b3b0921 Extra comment for RestoreBackupJob 2020-03-10 14:23:40 +01:00
Nino van Hooff
ebfad16508 Refactor the restore backup implementation to RestoreBackupJob 2020-03-10 14:21:52 +01:00
Nino van Hooff
ed5c2b3f43 Refactor the create backup implementation to CreateBackupJob 2020-03-10 13:35:37 +01:00
Nino van Hooff
244d018a2e Refactor createBackup to use HttpRequestManager 2020-03-02 15:14:04 +01:00
Nino van Hooff
7243dc63a4 Revert: Refactor UploadBackupJob to use HttpRequestManager
It doesn't make sense to have a Job using HttpRequestManager
because both are async and

Note that the job itself should not emit finished, the JobQueue does that.
2020-03-02 15:12:42 +01:00
Nino van Hooff
6c9b9909ba Fix UploadBackupJob 2020-03-02 14:46:33 +01:00
Nino van Hooff
932b12e66c Convert doxygen to rst for DriveApiService 2020-03-02 11:58:12 +01:00
Nino van Hooff
762f699f64 Refactor UploadBackupJob to use HttpRequestManager 2020-02-28 17:37:21 +01:00
Nino van Hooff
19c3f765f5 Refactor delete backups call to use HttpRequestManager 2020-02-28 17:08:31 +01:00
Nino van Hooff
4f2827e1bf Refactor restore backups call to use HttpRequestManager 2020-02-28 16:25:43 +01:00
Nino van Hooff
234acf0904 Fix bug: typo in variable name 2020-02-28 16:25:28 +01:00
Nino van Hooff
86fb0383de Refactor refresh backups call to use HttpRequestManager 2020-02-28 14:03:41 +01:00
Ghostkeeper
6f707f3149
Bump SDK version number of Cura 4.5 to 7.1
We've added new things to our API. This allows plug-in developers to use them.

Contributes to issue CURA-7205.
2020-02-10 10:45:07 +01:00
Jaime van Kessel
2195dbaad0
Make backup window modal
It could get hidden on osx quite easily, which is confusing as hell
2019-11-12 10:31:45 +01:00
Nino van Hooff
a88887dbdb Change Backup (Drive) plugin version to 7.0
CURA-6858
2019-10-23 10:50:04 +02:00
Lipu Fei
97def2f6b1 Handle requests ConnectionErrors in Backup plugin
CURA-6471
2019-04-23 09:07:19 +02:00
Jaime van Kessel
3de9cab1e2
Merge pull request #5363 from Ultimaker/backup-list-response-error-handling
Add extra validation to backup list response
2019-02-26 11:16:40 +01:00
ChrisTerBeke
53cc9cd188 Add extra validation to backup list response 2019-02-26 11:09:57 +01:00
Lipu Fei
64150cc7cf Merge remote-tracking branch 'origin/4.0' 2019-02-18 13:52:27 +01:00
Jaime van Kessel
222f8e6cdb Prevent crash for backup plugin if there is no internet connection 2019-02-18 10:38:39 +01:00
Ghostkeeper
232498980c
Merge branch '4.0'
Conflicts:
	cura/GlobalStacksModel.py -> CuraContainerRegistry being used in stead of ContainerRegistry, but imports were reordered.
	plugins/CuraDrive/src/DrivePluginExtension.py -> Typing being solved in two ways.
2019-01-28 16:45:45 +01:00
Jaime van Kessel
f723cdc8a3 Fix typing issues 2019-01-28 14:47:03 +01:00
Ghostkeeper
41c840adbc
Cast plug-in path of self to str
Because it can't be None.
2019-01-24 17:34:22 +01:00
Ghostkeeper
d535008e08
Don't repeat the plug-in name
If it changes, this will crash Cura.
2019-01-24 17:31:08 +01:00
Remco Burema
98ce0caaef
Merge pull request #5158 from Ultimaker/marketplace_use_busy_indicator
Remove loading gif
2019-01-17 16:17:00 +01:00
Diego Prado Gesto
c28aefac4e Add the maximum backups message to the backups plugin
It didn't work after previous changes, so now it will show again when the user already has 5 backups.

Contributes to CURA-6005
2019-01-16 17:33:14 +01:00
Diego Prado Gesto
c11e0cecc8 Remove loading gif
Instead of an external gif, use the BusyIndicator that exists in the ActionButton.
2019-01-13 16:58:38 +01:00
Diego Prado Gesto
801a43c874 Add a small margin in the right so the close button is never behind the scrollbar
Contributes to CURA-6005.
2019-01-11 17:04:51 +01:00
Lipu Fei
520b34ab89 Use getPluginPath()
CURA-6005
2019-01-09 08:41:15 +01:00
Lipu Fei
aee4034e3e No caching preferences
CURA-6005
2019-01-08 15:49:36 +01:00
Lipu Fei
a8fe5ced89 Remove unused import
CURA-6005
2019-01-08 13:33:49 +01:00
Lipu Fei
53cb2ce189 Add comments for http status >=300 check
CURA-6005
2019-01-08 13:29:48 +01:00
Jaime van Kessel
b4b7e1fc21 Codestyle & typing 2019-01-04 11:50:02 +01:00
Jaime van Kessel
b363be4afb Fix typing 2019-01-04 11:48:06 +01:00
Jaime van Kessel
3df9b369f7 Removed the divider as a seperate component
Since it's only used in one place, there is no real point in making it a seperate file

CURA-6005
2019-01-04 11:40:09 +01:00
Jaime van Kessel
c10b8b5c3f Fix crash when attempting to restore backup
CURA-6005
2019-01-04 11:37:52 +01:00
Jaime van Kessel
b4911478e3 Made the plugin depend more on the theme
CURA-6005
2019-01-04 11:35:34 +01:00
Jaime van Kessel
98153769ff Use wide_margin instead of multiplying default margin
CURA-6005
2019-01-04 11:23:34 +01:00
Jaime van Kessel
add5f17ae7 And removed even more unneeded / duplicate / orphaned images
CURA-6005
2019-01-04 11:06:43 +01:00
Jaime van Kessel
74087ade05 Remove a number of orphaned files
CURA-6005
2019-01-04 10:58:51 +01:00
Jaime van Kessel
0ec0b68360 Remove unneeded component
CURA-6005
2019-01-04 10:54:23 +01:00
Jaime van Kessel
3b498d3a34 Change name of the signals so they are consistent with rest of the code
CURA-6005
2019-01-04 10:51:07 +01:00
Jaime van Kessel
23315260ae Fix some of the documentation
CURA-6005
2019-01-04 10:49:41 +01:00
Jaime van Kessel
63c2a901bb Prevent double emits / recalculations when not needed
CURA-6005
2019-01-04 10:45:24 +01:00
Jaime van Kessel
87eb863451 Remove the final traces of the translation indirection
CURA-6005
2019-01-04 10:43:40 +01:00
Jaime van Kessel
8ebd4282fd Make the backupList use a scrollview instead of manually re-doing it
CURA-6005
2019-01-04 10:39:39 +01:00
Jaime van Kessel
31156d6230 Add missing signalemitter decorater
CURA-6005
2019-01-04 10:28:54 +01:00