Commit Graph

90 Commits

Author SHA1 Message Date
0penBrain
d418c034b5 [AddonManager] Fix issue in Execute 2020-04-01 13:27:27 +02:00
triplus
db0cf63df1 Addons manager - check if macro icon path exists [skip ci]
I noticed Macros tab suffers from the same issue: https://github.com/FreeCAD/FreeCAD/pull/3015

Hence the same fix.
2020-02-12 12:20:19 +01:00
triplus
3570e752ec Addons manager - check if icon file exists [skip ci]
Currently .isNull is used, to detect icon validity, but such method doesn't take the file path detection into an account. Result being a lot of messages outputted to the Report view and fallback icon not being used.

This PR fixes such icon path related issues.
2020-02-06 23:08:24 +01:00
triplus
0de3ae1034 Addons manager close button 2020-02-05 10:50:35 +01:00
Zackles
33206bb6fc Add Proxy to Addon Manager with UI
Correct crash when Macro description is not reachable

Python crashed when under proxy - Macro list is charged - Proxy is undone ( internet connection lost) - Try to load macro description (u=None)

Add Proxy setting in Addon Manager Option UI

Correction of SSL context

Replace ssl.Purpose.CLIENT_AUTH by ssl.Purpose.SERVER_AUTH as context for a client

Add configuration of proxy setting UI

Add proxy management by urllib
2020-01-10 10:01:56 +01:00
Yorik van Havre
f946cfaaa4 AddonManager: Fixed crash when quickly clicking through addons 2019-10-10 14:56:28 -03:00
Yorik van Havre
728eedc038 AddonManager: Fixed vanishing icon when uninstalling 2019-10-10 11:54:26 -03:00
Yorik van Havre
62a7eb4caa Addon manager: Fixed wrong marking of addons that begin with same letters 2019-10-09 12:01:10 -03:00
Yorik van Havre
0a6b2a86d6 AddonManager: Better icons 2019-09-04 18:26:56 -03:00
Yorik van Havre
349bfce263 Gui: Use freedesktop name for the group icon so it can be displayed using the system theme 2019-09-04 17:36:13 -03:00
Yorik van Havre
c6670c7431 AddonManager: Added function to check for updates for a specific addon 2019-08-22 16:44:00 -03:00
Yorik van Havre
febbb16bb1 AddonManager: Don't check addons for updates if they have already been checked for updates 2019-07-26 22:21:51 -03:00
Yorik van Havre
a6334a4bfd Cleanup in doxygen stuff 2019-07-15 23:20:52 -03:00
Yorik van Havre
09bfdb02bf AddonManager: Provisions to support different git hosting platforms than github 2019-07-10 18:29:02 -03:00
Mark Ganson TheMarkster
c47312c67b fix bug in uninstalling macro 2019-07-02 20:01:54 -03:00
Yorik van Havre
8e4be1a67a AddonManager: Fixes for translation 2019-06-17 20:06:32 -03:00
Yorik van Havre
3a2eb6e556 AddonManager: cosmetic fixes + prevision formacro icons 2019-06-17 17:17:46 -03:00
Yorik van Havre
16949b38cb AddonManager: Use workbenches icons 2019-06-15 23:50:41 -03:00
Yorik van Havre
8d7afb0b61 AddonManager: Misc fixes from forum testers 2019-06-15 17:53:36 -03:00
Yorik van Havre
ab68749909 AddonManager: New UI 2019-06-11 17:06:11 -03:00
luz.paz
a4d462e39c AddonManager: source comment typo and whitespace fixes 2019-05-25 13:11:35 +02:00
Yorik van Havre
e7ca12e03b AddonManager: Misc fixes from forum feedback 2019-05-22 15:03:14 -03:00
Yorik van Havre
05b8c2f4d4 AddonManager: Allow to restart FreeCAD directly from the addon manager after installing/updating addons 2019-05-21 16:18:13 -03:00
Yorik van Havre
fa888f0db0 AddonManager: allow to add custom repositories 2019-05-02 15:05:48 -03:00
Yorik van Havre
c69256c66d AddonManager: fixed iconless button 2019-03-11 17:29:40 -03:00
luz.paz
b5eedc34c8 Crowdin: AddonManager/AddonManager.py fix some strings 2019-01-30 11:08:03 -02:00
wmayer
85bea885cc fixes 0003669: AddonManager should inform of the need to restart FreeCAD for changes to take effect 2019-01-16 14:47:28 +01:00
Yorik van Havre
84ad0c2f6f AddonManager: Show warning for obsolete addons 2019-01-09 19:57:19 -02:00
Yorik van Havre
abdd60e061 AddonManager: Don't overwrite displayed text after a module install/removal 2019-01-06 22:26:03 -02:00
Gaël Écorchard
15c37ccf06 [AddonManager] Fix bug to install macros' other files 2018-11-13 13:28:53 +01:00
wmayer
54561c5b6e extend FreeCAD.getUserMacroDir to accept boolean to either return actual or default macro directory 2018-10-28 17:10:10 +01:00
Gaël Écorchard
d5e150841d [AddonManager] Add support for __Files__
Read the metadata __Files__ for macros from git and install or remove
files listed there.
__Files__ must be a comma-separated list of files to be copied alongside
the macro.  Their path must be relative to the macro (*.FCMacro file)
and not to othe root of the repository. Each file can be prefixed with a
subdirectory.
2018-10-25 11:04:43 -03:00
Gaël Écorchard
58b5749163 [AddonManager] separate the Macro class
Separate the Macro class of the AddonManager into addonmanager_macro.py
to prepare for future support for dependent files for macros from the
git repository.
2018-10-25 11:04:43 -03:00
Yorik van Havre
b97b9f78e7 AddonManager: Added Mario's macro execute button 2018-10-02 10:25:38 -03:00
Yorik van Havre
6f0beaad47 AddonManager: Fixed macro copying and centre manager dialog over FC window 2018-10-01 19:19:52 -03:00
Mark Ganson TheMarkster
ce8ee78993 addon manager py3 fixes
Only decode / encode if on py2 except for the b'\xc2\xa0', replace, which must be decoded to create the unicode string.
2018-09-15 19:28:44 +02:00
Mark Ganson TheMarkster
68fb70ff3c fix python3 issues
* fix attempts to remove readonly temp folder in windows, which was preventing addon manager window from closing
* cleanup (unescape) macros manually if HTMLParser().unescape() fails
* replace tabs in macros with 4 spaces
2018-09-15 19:28:36 +02:00
wmayer
f9aff34415 restore old behaviour of AddonManager.get_macro_dir 2018-09-13 23:50:36 +02:00
wmayer
6b93f4ea91 issue #0003588: The path to the Addons does not allow special characters 2018-09-13 16:03:38 +02:00
Daniel Furtlehner
71528b8660 AddonManager: Fixes download of metadata.txt with Py3
urllib2 in Py3 gives us a bytearray instead of a string. We have to decode it first to get the metadata.txt. When decoding fails we assume that we are in Py2 and process as before.
2018-08-29 11:00:42 -03:00
luz.paz
27c6ebc347 AddonManager: expand dialog window
Closes https://github.com/FreeCAD/FreeCAD-addons/issues/74
2018-08-03 10:31:44 -03:00
Yorik van Havre
7519daaa2d AddonManager: Support for Mario's template for externally hosted macros 2018-08-02 11:47:29 -03:00
wandererfan
ae2c717923 Fix typo in AddonManager 2018-05-29 09:57:10 +02:00
Gaël Écorchard
a09be6f0ee [AddonManager] Add github support
- Add support for installing macros from https://github.com/FreeCAD/FreeCAD-addons.git.
- Macros which have the same name on git and on the wiki are not
  repeated.
2018-05-08 15:47:16 -03:00
Gaël Écorchard
e4f01ed99a [AddonManager] Save macros without 'Macro_' prefix
- Save macros without 'Macro_' prefix.
- Installed macros are recognized with or without this prefix.
- Prepare the ground for integration of the code fetching macros from
  github.
2018-05-08 15:47:16 -03:00
looooo
d4a48c186c py3: addon-manager 2018-04-14 10:40:31 +02:00
Yorik van Havre
07953d3e80 AddonManager: Fixed addon descriptions 2018-03-19 12:53:20 -03:00
triplus
5f65371444 Remove read only files
+ Method to remove read only file (needed for shutil.rmtree() on Windows).
+ Revert .clear_cache().
2018-03-11 16:50:38 +01:00
triplus
b38ee26de5 GitPython permission issue on Windows 2018-03-11 16:50:38 +01:00
Yorik van Havre
afb719dfbd AddonMAnager: Don't hide error message if some addon failed to install 2018-03-02 11:25:28 -03:00