wmayer
81267fc284
App/Gui: fix possible crash when destroying Python feature or its view provider
2021-02-17 12:00:38 +01:00
luz paz
298c677873
Gui: Fix header uniformity, whitespace, and doxygen fixes
2020-11-26 10:14:56 +01:00
Zheng, Lei
49a5f554fa
Gui: fix ViewProviderPythonFeature::getLinkedViewProvider
2020-08-07 17:20:55 +02:00
wmayer
f3b460e42e
boost: fix for boost < 1.60
2020-06-15 19:38:39 +02:00
wmayer
4ec45b545e
boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
2020-06-12 17:51:33 +02:00
Zheng, Lei
0f29155502
App/Gui: unify NotImplementedError handling in python features
...
Recognize NotImplementedError as an indication to call the C++
implementation.
2019-09-27 18:01:54 +02:00
wmayer
b50b21576e
core system
...
force strict ISO C++ (-Wpedantic)
TODO: still a lot of variadic macros are not valid ISO C++
2019-09-18 01:01:14 +02:00
Zheng, Lei
f8e1d455e0
Gui: improve Gui.addIcon(), add Gui.isIconCached()
...
The motivation of this patch is to make it easy for Python workbench
cache its own icons (possibly generated at runtime), saving the trouble
of pre-compiling the icons as binary resources.
* Gui.addIcon() now support a third argument as format. Default format
is 'XPM' as before. The intention is to allow user to cache other
format of icon image, like 'PNG'.
* ViewProviderPythonFeature::getIcon() now checks if the given string
argument is a key to a cached icon.
2019-09-07 16:01:19 +02:00
wmayer
28f74290b2
fix -Wreturn-std-move
2019-09-07 15:19:28 +02:00
Zheng, Lei
08f0511b1f
Python feature/observer related changes
...
* Add new API and signal handler in document observer
* Pre initialize python handler function to improve performance. In
case Python code use dynamic patching, i.e. add class method at
runtime (which is rare and should be discouraged), the python feature
can be re-initialized by simply assign proeprty Proxy again.
* Add property tracking in DocumentObjectT
* WidgetFactory adds support for accepting python QIcon, which is used
by ViewProviderPythonFeature
2019-08-17 15:08:34 +02:00
wmayer
2631df09c0
correctly handle again NotImplementedError in Python view providers
2019-02-22 13:26:33 +01:00
wmayer
645b397dda
fixes 0003804: FC becomes unusable after double-cicking on FEM elements while clip view is active
2019-02-15 23:30:18 +01:00
wmayer
f898eafd64
move from deprecated boost.signals to boost.signals2 library
2018-10-30 19:09:03 +01:00
wmayer
e2ddabf235
returning a boolean from setEdit/unsetEdit of a Python view provider indicates a handled edit mode, None indicates to forward it to the C++ view provider
2018-10-03 17:39:22 +02:00
markus
868baa6dd2
Return NotImplemented on PythonFeature::setEdit if the setEdit is implemented and returns True for one of the standard, not Default, edit modes
2018-10-03 16:49:10 +02:00
wmayer
5eaf2e6387
fixes #0003564 : Python objects: updateData calls to proxy instance that should have been deleted
2018-08-25 16:33:22 +02:00
wmayer
aa0f6b54d4
fixes #0003424 : 'basic_string::_M_construct null not valid' when opening a v0.16 project with v0.17
2018-04-10 10:51:34 +02:00
wmayer
38388cf650
remove undesired virtual keyword from ViewProviderPythonFeatureImp
2017-04-28 21:15:53 +02:00
Yorik van Havre
765e164b0b
Gui: implemented isShow() for python viewproviders
2017-04-28 15:03:47 -03:00
wmayer
f55635900f
fix setEdit, unsetEdit and doubleClicked methods of Python view provider
2017-02-20 22:16:56 +01:00
wmayer
0c3f52303d
switch to PySide2 for Qt5
2016-12-24 15:33:15 +01:00
wmayer
07a2182674
remove obsolete class ViewProviderPythonFeaturePy
2016-11-09 12:15:15 +01:00
wmayer
f19d424d8b
fix -Wextra in FreeCADGui
2016-09-21 20:54:52 +02:00
wmayer
919d47015a
+ support of drag'n'drop for custom view provider
2015-11-03 16:21:51 +01:00
wmayer
6b3d7b17a7
+ implement onDelete for Python proxy of view provider
2015-07-16 16:13:39 +02:00
wmayer
27863408c9
+ remove references to SoFCSelection where not needed
2015-05-20 19:24:12 +02:00
wmayer
862e65df6c
+ build failure
2015-03-31 13:00:42 +02:00
wmayer
1d4de73415
+ support context-menu in Python view providers
2015-03-31 11:32:43 +02:00
Sebastian Hoogen
faac8c36ba
add encoding parameter to .as_std_string()
...
to handle PyUnicode Objects. Usually ASCII for object names and Utf-8
for file names and console output.
issue #995
2015-02-08 15:37:00 +01:00
jriegel
c1f0f70b88
Merge remote-tracking branch 'refs/remotes/origin/jriegel/NewWinBuild' into jriegel/review-NewLibPack
...
Conflicts:
src/3rdParty/salomesmesh/CMakeLists.txt
2014-08-27 15:39:00 +02:00
wmayer
cc775f9254
+ fix -Wnull-conversion, -Woverloaded-virtual, -Wlogical-not-parentheses, -Wsometimes-uninitialized
2014-08-26 19:14:13 +02:00
jriegel
d65a4e4ed7
some type clearification
2014-08-21 17:59:33 +02:00
wmayer
c3b1c9ec56
+ fixes #0001522 : SIGSEGV, crashes on long script (500 Lines)
2014-05-03 17:58:57 +02:00
wmayer
fd9fb9481e
+ Selection handling of Python view providers
2013-10-26 22:15:20 +02:00
wmayer
6d8f51f92a
+ Selection handling of Python view providers
2013-10-26 19:52:22 +02:00
wmayer
2d62de2932
+ Interface for selection of Python view providers
2013-10-25 15:07:39 +02:00
wmayer
4686118f2a
+ Make Python API more pythonic
2013-10-11 13:57:05 +02:00
jriegel
1b7acb839b
add double click handling to the PythonViewProvider template
2013-08-04 19:20:54 +02:00
wmayer
946bd02df4
Improve reporting of Python exceptions
2013-05-04 14:23:53 +02:00
wmayer
b7658c04f6
0001059: Cannot add object to DocumentObjectGroupPython
2013-03-23 16:45:37 +01:00
wmayer
94b0102dc7
Fix problem with undo/redo with python-based features
2012-11-19 13:06:16 +01:00
wmayer
53697d3bd2
Convert unicode into string for de-serialized strings from JSON
2012-08-13 12:50:07 +02:00
wmayer
327f9be16c
0000415: Wrong tree structure of restored python objects
2012-04-12 14:52:24 +02:00
wmayer
e95de7090d
+ add method to get SoDetail from element name
...
+ fix broken selection mechanism
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5260 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-10 21:11:20 +00:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00