42 Commits

Author SHA1 Message Date
Ian Paschal
c0561bc525 CURA-4935 Can't disable sending anonymous slice data and checking updates
This is the ~5 minute~ 3 second fix. I know it's not the more proper way to do it, but I've spent several hours on the more proper way to do it and it's causing huge amounts of headache (because, for example, the PluginBrowser installs plugins and the PluginRegistry removes them, and the PluginBrowser can't update the PluginsModel because the PluginsModel is intantiated in QML instead of in `PluginBrowser.py`, etc. etc. etc.

I'm effectively doing a full refactor of this functionality while simultaneously avoiding moving any "install from remote URL" functionality into the PluginRegistry which is dumb.

I'd prefer a simple, stable soution now instead of re-writing this all again.

I'll make a proposal for a proper, organized refactor for Cookies & Cura.
2018-02-13 15:50:29 +01:00
Ian Paschal
27d250374f Removed print() statements 2018-02-05 14:34:29 +01:00
Ian Paschal
f7ef1c7aa8 Remove debug output
Removed debug `print()` from `PluginBrowser.py`
2018-02-02 14:02:51 +01:00
Lipu Fei
91c9a82627
Merge pull request #3203 from Ultimaker/plugin-browser
Plugin browser
2018-02-01 11:51:50 +01:00
Ian Paschal
d3b2241616 Fixed "Quit" button & others
- Quit button in the dialog post-install now quits the application instead of simply closing the window
- Improved styling:
    - All colors now pulled from `UM.Theme.getColor()`
    - Dialog has white background
    - Buttons look like Cura buttons
- Removed inaccurate comments regarding the structure that were created while working on it
2018-02-01 11:37:23 +01:00
Ian Paschal
757f83fad2 Change download source
`update_url` is used only for updaitng plugins (when `file_location` refers to a place on the hard drive).
2018-01-26 17:06:36 +01:00
Ian Paschal
211f87bf09 New format and functionality
- Browser is combined with plugin settings
- Two tabs, one for viewing 3rd party plugins, one for installed
- Enable/disable for bundled plugins
- Install/Remove/Update for 3rd party plugins
2018-01-26 14:59:47 +01:00
ChrisTerBeke
c471991044 Update plugin browser version to 4 as network rewrite has another set of breaking changes 2018-01-24 13:30:08 +01:00
ChrisTerBeke
9488c39f68 Update plugin browser version as we have breaking changes in Cura 3.2 2018-01-24 11:07:13 +01:00
Ian Paschal
dcb1ac5deb Plugin browswer updates
- Partial refactor
- Preparation for merge with plugins in preferences
2018-01-23 16:20:19 +01:00
Ian Paschal
f27dc4473e Possible to remove plugins
Note that this required adding an `uninstallPlugin()` method to the `PluginRegistry` class of Uranium.
2018-01-22 14:25:34 +01:00
Ian Paschal
628314af9e Basic style ready for PR
- Temporarily removed remove/disable button as it's non-functional for now
2018-01-22 13:00:22 +01:00
ChrisTerBeke
9a7fa67da7 Cleanup plugin browser dialog creation - CURA-4568 2017-11-28 15:02:17 +01:00
ChrisTerBeke
e3f1144d97 Update creating QML component in plugin browser - CURA-4568 2017-11-28 14:25:09 +01:00
Ghostkeeper
4d0c0f606e
Use new version for downloading plugins 2017-10-17 16:44:27 +02:00
ChrisTerBeke
b0fa87231c CURA-4390 add new menu item for plugins 2017-10-03 17:33:24 +02:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
alekseisasin
204019702d Added Title for messages
CURA-4203
2017-09-13 13:58:08 +02:00
Lipu Fei
0358b1fcae Fix User-Agent header in PluginBrowser 2017-09-04 09:23:46 +02:00
Jaime van Kessel
6d40882bdc Ensure that installing files works on non Windows os'es as well
CURA-4222
2017-08-30 15:06:08 +02:00
Lipu Fei
679c7dcfda Let user accept/decline a plugin license if present
CURA-4222

If a downloaded plugin contains a license file, a dialog which contains
the license information will pop up. The user has to accept the license
before he/she can install the plugin.

If a plugin doesn't have a license file, after it is downloaded, it will
be installed directly just like before.
2017-08-30 14:09:51 +02:00
alekseisasin
6c280fff9a Merge pull request #2271 from Ultimaker/thopiekar-plugin-browser-send-more-info
PluginBrowser: Send also OS and architecture
2017-08-28 15:30:49 +02:00
Ghostkeeper
6349f1b5e6
Add context for 'Browse plugins' translated text
So that the translator knows what sort of text this is. It's the menu item in the application menu.

Contributes to issue CURA-4113.
2017-08-14 14:55:50 +02:00
Thomas Karl Pietrowski
599009f176 PluginBrowser: Send also OS and architecture
Orientated a bit on the way how browsers are sending their strings.
No idea, whether there is a standard on this or not.
Needs to be discussed I guess..
2017-08-13 19:31:39 +02:00
fieldOfView
6503b87a3a Add a way to cancel a download
and cancel download when closing the window
2017-07-07 12:30:58 +02:00
Lipu Fei
8827b02020 Create persistent temporary file on Windows for plugins
CURA-3856
2017-07-07 10:49:06 +02:00
Jaime van Kessel
fc70715cd1 Fixed plugin installing for windows
CURA-3856
2017-07-07 10:31:26 +02:00
Jaime van Kessel
52954460a3 Added refresh option for plugin list.
This fixes the issue that if you don't have internet connection on first start of the browser, you'd need a reboot of cura to get the list.

CURA-3856
2017-06-30 15:30:22 +02:00
Jaime van Kessel
5d0908e8ce Added handling for timeout & network connection broken
CURA-3856
2017-06-30 15:19:53 +02:00
Jaime van Kessel
8a8123a021 Correctly set User-Agent header 2017-06-23 14:35:15 +02:00
Jaime van Kessel
37162683e5 Show result message after installing / upgrading plugin with the browser
CURA-3856
2017-06-23 13:51:13 +02:00
Jaime van Kessel
83b3dcbb2f Freshly installed plugins can't be downloaded again anymore
CURA-3856
2017-06-23 13:32:19 +02:00
Jaime van Kessel
68663b2789 Plugin browser now shows difference between new & upgradable plugins
CURA-3856
2017-06-23 13:03:30 +02:00
Jaime van Kessel
b2a21f0443 Uninstalled plugins are now correctly marked as such again
CURA-3856
2017-06-23 12:49:36 +02:00
Jaime van Kessel
a4e353c830 Download buttons are now disabled when another plugin is being downloaded
CURA-3856
2017-06-23 12:42:39 +02:00
Jaime van Kessel
d815c2afcf Added download progress bar to plugin browser
CURA-3856
2017-06-23 11:48:13 +02:00
Jaime van Kessel
e6a3577e9d Plugin browser now also uses version to check if plugin is already installed
CURA-3856
2017-06-23 11:25:53 +02:00
Jaime van Kessel
e3dffd6610 Plugin browser can now download & install plugins 2017-06-23 11:18:10 +02:00
Jaime van Kessel
503aa00137 Added rough dialog for the PluginBrowser
CURA-3856
2017-06-22 17:55:45 +02:00
Jaime van Kessel
8f1608bc3b Added model to PluginBrowser
We need the model to display items in the popup view.
CURA-3856
2017-06-22 17:25:48 +02:00
Jaime van Kessel
b9241e8070 PluginBrowser now retrieves list of plugins from the server
CURA-3856
2017-06-22 16:13:33 +02:00
Jaime van Kessel
b9e863a953 Added PluginBrowser stub
CURA-3856
2017-06-22 14:39:46 +02:00