70 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
e02cb78d57 CURA-4578 Manually installed plugins handled correctly
3rd-party plugins which were manually installed were listed as uninstall-able instead of disable-able. The distinction between plugins which could be installed or disabled was previously made by whether or not it was 3rd party, but is now made by determining the install location.
2018-02-05 16:39:45 +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
Ian Paschal
81b2f0f7cd Added drop-down buttons 2018-01-19 09:56:19 +01:00
Ian Paschal
013f020a4a Initial styling changes
- Dual-button layout
- Blue buttons in line with Cura styles
- Contact info
2018-01-17 17:02:02 +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
9ad0fd2b83
Remove dash if plug-in author is empty
Contributes to issue CURA-4477.
2017-10-25 11:28:41 +02:00
Ghostkeeper
b119119ed2
Merge branch '3.0' 2017-10-18 13:09:38 +02:00
Ghostkeeper
4d0c0f606e
Use new version for downloading plugins 2017-10-17 16:44:27 +02:00
Ghostkeeper
d458fcde5c
Revert "Revert "Merge branch 'fix_garbled_fonts_macos' into 3.0""
This reverts commit e07e7bc9e714843cf853f0a255ee5a8432696886.

Contributes to issue CURA-4414.
2017-10-05 10:58:49 +02:00
Ghostkeeper
e07e7bc9e7
Revert "Merge branch 'fix_garbled_fonts_macos' into 3.0"
This reverts commit b62c19206f5e494fa27eb0b877197556c559e449, reversing
changes made to 104926c6ed1648ec20b4308fdacad4e99c14c8b3.

Contributes to issue CURA-4414.
2017-10-05 10:28:54 +02:00
ChrisTerBeke
b62c19206f Merge branch 'fix_garbled_fonts_macos' into 3.0 2017-10-04 14:09:59 +02:00
ChrisTerBeke
b0fa87231c CURA-4390 add new menu item for plugins 2017-10-03 17:33:24 +02:00
Mark
b4154b8cc0 Merge branch '3.0' 2017-09-28 13:01:10 +02:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
Ghostkeeper
94846d0faf
Add missing word
I'm guessing it was 'This'. That must've accidentally gotten selected when working with it.

Contributes to issue CURA-4341.
2017-09-27 17:30:29 +02:00
fieldOfView
c5fd0e6c80 Use screenScaleFactor to consistently adapt sizes to display pixel ratio 2017-09-25 22:07:12 +02:00
alekseisasin
204019702d Added Title for messages
CURA-4203
2017-09-13 13:58:08 +02:00
Lipu Fei
f803e72c18 Use Screen.devicePixelRatio for plugin browser
CURA-4279
2017-09-04 17:25:30 +02:00
Lipu Fei
0358b1fcae Fix User-Agent header in PluginBrowser 2017-09-04 09:23:46 +02:00
Lipu Fei
ceccca8244 Reduce the width of the license window
CURA-4222
2017-09-01 10:18:27 +02:00
alekseisasin
088092c7bc Added min and max dialog size
CURA-4222
2017-08-30 17:07:43 +02:00
Jaime van Kessel
3b2c528595 If no licence text is set, use empty string
It doesn't really matter that much, but QT complaining about it annoyed me.
CURA-4222
2017-08-30 15:07:58 +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
fieldOfView
6b05bd21fb Show why the download button is disabled 2017-07-07 12:11:54 +02:00
fieldOfView
0a163439a4 Use system-style progress bar. 2017-07-07 12:03:05 +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
44a22cbd3a Removed binding loops
CURA-3856
2017-07-07 10:41:44 +02:00
Jaime van Kessel
fc70715cd1 Fixed plugin installing for windows
CURA-3856
2017-07-07 10:31:26 +02:00
Mark
8a55469499 Revert "Add margins to buttons and progressBar so they align"
This reverts commit 8776cedd278ab0830f4f621d013e7ef75efbb9d1.
2017-07-03 14:49:26 +02:00
Mark
8776cedd27 Add margins to buttons and progressBar so they align
CURA-3856
2017-07-03 14:46:31 +02:00
Jaime van Kessel
e98a6d76ba Added close button
CURA-3856
2017-06-30 15:40:51 +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