wmayer
eb05a902aa
return boolean to indicate whether workbench could be activated
2019-07-07 19:36:35 +02:00
wmayer
85fddfc54a
do some security checks to make sure Py::Module is valid
2019-06-03 17:57:52 +02:00
Joel Graff
c923c9efe5
deleted commented code
2019-05-02 13:37:59 -03:00
Joel Graff
b2ca187d4b
fix for edit tracker draw styles
2019-05-02 13:37:59 -03:00
Mateusz Skowroński
ac508516da
Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy!
2019-02-11 15:39:14 +01:00
wmayer
02c51ff2dd
if activating a workbench raises a general error then add the name to the message
2018-12-05 11:31:16 +01:00
wmayer
31963f16c1
Fix scan coverity issues:
...
CID 184294: Uncaught exception
CID 183597: Unchecked return value
CID 175809: Dereference before null check
CID 175810: Logically dead code
CID 133000: Uninitialized scalar variable
CID 133001: Uninitialized scalar variable
CID 183591: Explicit null dereferenced
2018-11-13 16:47:58 +01:00
ickby
835c75421f
Add python document observer for GUI documents
2018-10-08 11:04:56 +02:00
wmayer
ef42cfb5d6
add method to activate 3d view when setting active object list
2018-09-12 15:38:28 +02:00
wmayer
ddfa3c8843
remove kwd argument for functions only with flag METH_VARARGS
2018-08-08 17:39:32 +02:00
JimStar
6a5ad383ab
Extended global marker size to be used for other modes
2018-07-11 21:22:28 -03:00
JimStar
5a7a765ed6
Implemented a global setting for marker size and support of it for snapping in "Draft" workbench. In future this setting can be used for other markers too, to be able to set them all to comfortable size by just one global setting.
...
Before that (e.g. on MacBook Pro) it was very hard to see the microscopic selection-circle hidden behind much bigger cursor arrow when trying to snap e.g. a line to some vertex. Now this setting can be used for such displays to increase the marker size and make it clearly visible behind the cursor.
The already existing "sketcher marker size" property is intended to be used for sketcher only, so it's not suitable for global setup of all the markers' sizes uniformly...
2018-07-05 19:05:19 -03:00
wmayer
d7c5f389e2
explicit handling of English/en locale in setLocale and supportedLocales
2018-06-09 20:34:54 +02:00
wmayer
41f51b33ee
add methods to set/get locales
2018-06-09 17:31:19 +02:00
wmayer
2cd338ba03
improve whitespaces
2017-11-24 15:43:28 +01:00
wmayer
da4d35ac89
improvements of wait cursor
...
make filtering of modal dialogs working with Qt5
save/restore filter flags
don't filter events for File > Export
when using showPreferences don't show wait cursor
2017-10-22 19:49:56 +02:00
wmayer
9148412400
+ exception handling in FreeCADGui.addModule
2017-07-07 09:58:28 +02:00
Yorik van Havre
7e39fed862
py3: Gui: files A-P ported to python3
2017-05-06 17:23:27 +02:00
wmayer
577ed59fbc
switch to PySide2 for Qt5
2016-12-24 15:33:15 +01:00
wmayer
d28743f35e
extend creation of preferences pages from Python
2016-10-22 16:48:02 +02:00
wmayer
1e6dcabefc
fix -Wextra in FreeCADGui
2016-09-21 20:54:52 +02:00
wmayer
a5bcca3993
support to pass optional item parameter to Gui.runCommand
2016-09-08 09:40:03 +02:00
wmayer
1f77d98fab
+ add methods to get/set scene graph, add parameter to set window title of viewer
2016-05-01 17:50:40 +02:00
wmayer
88f472d411
+ improve whitespaces
...
+ fix sequence protocol and fix crash
2016-05-01 15:49:00 +02:00
wmayer
c5aebfa872
Squashed commit of the following:
...
commit 89eb699e69c05dda0ebecf4aa22acc85386ede8f
Author: looooo <sppedflyer@gmail.com >
Date: Wed Apr 27 21:43:16 2016 +0200
added close function
commit 2acc25adbc9df47194934ef4db18383919248c7d
Author: looooo <sppedflyer@gmail.com >
Date: Wed Apr 27 21:12:18 2016 +0200
some additions to the split-view-bindings
commit ec366d154a96a71c7716900f4de1c109a9160df8
Author: looooo <sppedflyer@gmail.com >
Date: Sun Apr 24 20:55:26 2016 +0200
SplitView: Antia-Aliasing, getViewer, handlinging of deletion
added anti-aliasing for the SplitView3DInventor class
added method getViewer to the AbstractSplitView
delete python-object when c++ object gets deleted
commit 7225cd836b0001d302c9e14328b5eb7dd489cdb1
Author: looooo <sppedflyer@gmail.com >
Date: Sun Apr 24 15:28:57 2016 +0200
added function Gui.createViewer([int])->Viewer/SplitViewer
2016-05-01 15:46:53 +02:00
Yorik van Havre
e70f6e8a10
added FreeCADGui.listCommands() method
2016-04-27 22:42:22 -03:00
jriegel
8cd51ade8b
Active object manager for the Viewer
2016-04-12 18:12:03 +02:00
Yorik van Havre
263f5951ce
Gui: added Gui.showPreferences() python function
...
This function accepts 2 optional arguments: a string (ex. "Draft")
and an integer (ex. 2). If given, the preferences dialog will open at
the third tab of the Draft group, if existing.
2016-02-02 15:01:42 -02:00
wmayer
9f472f5c41
+ improve getting proper group name from Python module path name
2015-12-17 18:56:40 +01:00
wmayer
0dad1fac15
+ improve getting proper group name from Python module name
2015-12-17 10:41:01 +01:00
wmayer
32377b7635
+ use Python's inspect module to get calling instance of addCommand
2015-12-16 23:07:24 +01:00
wmayer
c5f6687872
+ improve active document handling
2015-10-18 19:35:15 +02:00
wmayer
b59d21c3a6
+ proper Python exception handling in Gui.doCommand(Gui)
2015-09-15 18:36:15 +02:00
wmayer
200362779f
+ fix crash due to sloppy reference counting
2015-09-15 18:19:36 +02:00
wmayer
b1b76dea66
+ disable SVG and IDTF export for 3d view
2015-08-26 22:11:53 +02:00
wmayer
deafd1c0e3
+ fixes #0002221
2015-08-26 19:24:00 +02:00
wmayer
9fbe818ad0
+ remove method View3DInventor::dumpSelection
2015-08-26 18:58:59 +02:00
wmayer
b5987f0ff4
+ Support preference pages for Python widget class
2015-07-16 00:10:23 +02:00
wmayer
343bb91450
+ issue #0002053 : Support of themes
2015-07-12 22:54:56 +02:00
wmayer
45d793a1af
+ include missing header files
2015-06-30 17:48:03 +02:00
wmayer
448ded204a
+ implement class PythonGroupCommand
2015-06-27 17:21:02 +02:00
wmayer
7c83638b40
+ for VRML and OpenInventor export only selection, fix whitespaces
2015-05-17 13:53:22 +02:00
wmayer
2127ee46c3
+ whitespace fixes
2015-05-17 12:53:00 +02:00
wmayer
80956aef8d
+ fixes #0002029 : VRML inline ignored
2015-03-27 16:42:14 +01:00
Sebastian Hoogen
d2bb75566e
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
wmayer
3d249812b6
+ fixes #0001830 : Gui.export() cannot handle long filenames
2014-11-17 21:11:28 +01:00
wmayer
be949a054d
+ harmonize API
2014-10-19 14:25:51 +02:00
Sebastian Hoogen
01cf0f5872
issue #1027 use unicode filepaths
2014-10-11 13:32:06 +02:00
Sebastian Hoogen
d49528b27e
issue #1700 replace PyExc_Exception
2014-09-17 11:15:57 +02:00
Sebastian Hoogen
af50cbf964
fixes #0001422 : Subclass Exception
...
inherit Base.FreeCADError form RuntimeError
inherit Part.OCCError from Base.FreeCADError
inherit OCCDomainError from Part.OCCError
inherit OCCRangeError from Part.OCCError
inherit OCCConstructionError from OCCDomainError
inherit OCCDimensionError from OCCDomainError
Added PY_CATCH_OCC macro
replace PyExc_Exception
use FreeCADError in makeWireString
catch exception in BSplineCurve.increasedegree
2014-09-17 11:15:56 +02:00