Commit graph

32 commits

Author SHA1 Message Date
Yorik van Havre
97796503df
Using forward slashes when storing file paths in preferences 2020-06-09 12:31:16 +02:00
Laurence Rochfort
45b338d9c6 Fix 'PySide.QtCore.QCoreApplication.translate' arguements
PySide.QtCore.QCoreApplication.translate has changed its function
signature because QtGui.QApplication.UnicodeUTF8 is deprecated.

See: https://srinikom.github.io/pyside-docs/PySide/QtCore/QCoreApplication.html#PySide.QtCore.PySide.QtCore.QCoreApplication.translate

Resulted in the following error when running the macro:

<class 'TypeError'>: 'PySide.QtCore.QCoreApplication.translate' called with wrong argument types:
  PySide.QtCore.QCoreApplication.translate(str, str, NoneType, int)
Supported signatures:
  PySide.QtCore.QCoreApplication.translate(unicode, unicode, unicode = None, PySide.QtCore.QCoreApplication.Encoding = CodecForTr)
  PySide.QtCore.QCoreApplication.translate(unicode, unicode, unicode, PySide.QtCore.QCoreApplication.Encoding, int)

Fix by setting the default translation codec to UTF-8, and letting
translate() pick that up itself by using the second supported method signature.

Also tidied up 4 cases where the helper function wasn't being used.

Reported in issue #251.

Signed-off-by: Laurence Rochfort <laurence.rochfort@gmail.com>
2019-09-26 12:11:59 +01:00
Yorik van Havre
ba105e1e18
Merge pull request #235 from joelgraff/master
fix for UTF8 encoding try / exception.
2019-05-13 11:57:55 -03:00
WladIMirG
6f071a4bab INICIO
En este commit me hago colaborador de este proyecto.
2019-03-12 19:08:56 -05:00
Graff
00d1abb90c fix for UTF8 encoding try / exception. 2019-01-10 10:50:59 -06:00
Yorik van Havre
8de252832b
Added missing import sys in macro 2018-12-03 11:21:45 -02:00
Yorik van Havre
ddb3536eb8 Ported macro to py3 2018-11-20 21:17:57 -02:00
Kurt Kremitzki
27fd7fc4f7 Add Python 3 compatibility to macro 2017-07-13 04:10:32 -05:00
Yorik van Havre
55e011cff7 Added FlachyJoe's fix - fixes #168 2016-09-27 12:55:52 -03:00
Yorik van Havre
5777ede360 Workaround for isVisible error in macro 2016-08-20 12:36:48 -03:00
Yorik van Havre
8eac2f7546 Added option to change Library path in Config dialog + cleaner UI layout 2016-05-05 12:36:57 -03:00
Yorik van Havre
25954c93a2 Bugfix in macro 2015-12-15 16:08:10 -02:00
Yorik van Havre
40d6827517 Allow the macro to work without git - fixes #137 2015-12-15 14:05:03 -02:00
Yorik van Havre
12b7b4894d Changed the name of the stored variable to match FreeCAD-addons 2015-12-02 13:56:43 -02:00
Yorik van Havre
d67f2271db Improvements to the macro
* Translatable texts
* Options are hidden by default
* Different icon for the 'Private' folder
2015-11-28 14:15:06 -02:00
Yorik van Havre
aa33cccd5f Removed the macro from pushes 2015-11-26 12:39:02 -02:00
Jonathan Wiedemann
d618e1af19 Merge pull request #130 from wood-galaxy/master
Small bug fix in Macro and Add PPA150
2015-11-26 15:22:31 +01:00
wood-galaxy
bbe92cbee1 Changed ['PartsLibrary.FCMacro'] 2015-11-26 15:20:59 +01:00
wood-galaxy
4e7fbf405c Changed ['PartsLibrary.FCMacro'] 2015-11-26 15:15:58 +01:00
wood-galaxy
88581c5240 Changed ['PartsLibrary.FCMacro'] 2015-11-26 15:04:11 +01:00
wood-galaxy
ac7cc814f1 Changed ['PartsLibrary.FCMacro'] 2015-11-26 14:59:32 +01:00
Yorik van Havre
95f3a0c15a Better fix in macro 2015-11-26 11:53:46 -02:00
wood-galaxy
9ec92a84c5 Changed ['PartsLibrary.FCMacro'] + IkeaChair 2015-11-26 14:38:29 +01:00
Yorik van Havre
e682c78886 Fixed small bug in macro 2015-11-26 11:21:14 -02:00
Yorik van Havre
1f024befc0 Upgraded macro with update button and git config dialog 2015-11-26 09:08:23 -02:00
Yorik van Havre
8f864e4961 Extended macro with rockn's work and allowed a Private folder that wont be pushed 2015-11-25 10:46:56 -02:00
microelly2
aed383b176 Update PartsLibrary.FCMacro 2015-06-08 07:24:58 +02:00
microelly2
3212cfa050 Update PartsLibrary.FCMacro 2015-06-08 00:13:44 +02:00
Yorik van Havre
505d69eebc Align thumbnail horizontally 2015-05-14 13:21:31 -03:00
Yorik van Havre
5452d21384 Added thumbnail preview to macro script 2015-05-14 11:03:48 -03:00
Yorik van Havre
f13416141f Enabled brep files in the library 2014-08-31 17:32:10 -03:00
Yorik van Havre
7083f74861 Added a library browser widget 2014-02-06 15:18:58 -02:00