Commit Graph

2477 Commits

Author SHA1 Message Date
wmayer
99c123db6e fix possible crash on workbench change 2019-09-09 14:56:19 +02:00
wmayer
d36a4b817d correctly handle custom property names (e.g. sketcher constraints) 2019-09-08 17:32:43 +02:00
wmayer
a0811878c2 re-activate DAG view 2019-09-08 16:00:08 +02:00
wmayer
bf995622cd support Coin 3.1.3 with vec_traits<SbRotation> 2019-09-08 14:00:54 +02:00
luz.paz
5807e0b531 Fix typos, grammar, and some whitespace issues
Found via `codespell -q 2 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml`
2019-09-07 11:58:38 -04:00
Zheng, Lei
05ca5b82e1 Gui: minor change to tree view document restore handling 2019-09-07 17:00:13 +02:00
Zheng, Lei
b2893691cf 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
c510345ff6 move Save history action to the correct position in the context-menu, do some minor optimizations 2019-09-07 15:48:16 +02:00
Yorik van Havre
33ad1759ef Python Console - only save max 100 history items 2019-09-07 15:27:04 +02:00
Yorik van Havre
b264e34083 Add Python console option to save history across sessions 2019-09-07 15:26:45 +02:00
wmayer
d05ae18340 fix -Wreturn-std-move 2019-09-07 15:19:28 +02:00
wmayer
93321dc208 make PySideUicModule working independent of linking PySide or loading it at runtime 2019-09-07 13:40:04 +02:00
wmayer
830c8f866e Improve branding by avoiding explicit use of 'FreeCAD' in tool tips 2019-09-07 13:18:59 +02:00
wmayer
1eb197f4a8 fix incorrect use of PyObject_TypeCheck in LinkViewPy 2019-09-06 22:53:17 +02:00
wmayer
b14cf8a00d extend convertTo function to also support SbRotation/Base::Rotation 2019-09-06 21:29:51 +02:00
wmayer
7ee903f27c avoid explicit cast to ZipInputStream in Gui::Dcoument class 2019-09-06 12:37:09 +02: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
wmayer
f88dad0905 use shared_ptr to avoid possible memory leaks and improve exception-safety 2019-09-03 17:21:13 +02:00
Jean-Marie Verdun
a2e21f79f2 Add initial version of the Cloud workbench 2019-09-03 17:21:05 +02:00
Zheng, Lei
d799a1c4c7 Gui: fix SelectionSingleton::checkSelection() 2019-09-03 12:25:09 +02:00
Zheng, Lei
95108607c6 Gui: fix crash when copy object under Qt5 2019-09-03 14:44:09 +08:00
Zheng, Lei
087349c07a Gui: add warning to DlgExpressionInput
Warn when binding expression with unit to unit-less properties.
2019-08-30 15:52:03 +02:00
Zheng, Lei
e8e1a67e50 Gui: restore static property order in PropertyView 2019-08-30 15:51:47 +02:00
Zheng, Lei
18dffcba47 Gui: auto close transaction on Document resetEdit 2019-08-30 15:49:59 +02:00
Zheng, Lei
b4c500776d Gui: fix PythonWrapper::fromQIcon() 2019-08-30 15:47:39 +02:00
Zheng, Lei
656303fe9f Gui: fix ViewProviderLink dropObjectEx() 2019-08-30 15:46:10 +02:00
Zheng, Lei
ed3a759018 Gui: fix GeoFeatureGroupExtension
The change in ViewProviderGeoFeatureGroupExtension.claimChildren() is
so that GeoFeatureGroupExtension.getSubObjects() can exclude non direct
children.
2019-08-30 15:45:21 +02:00
Zheng, Lei
432c9ae15b Gui/PartDesign: fix setActiveObject() for Part and Body 2019-08-30 15:02:48 +02:00
Zheng, Lei
778ccc2692 Gui: more exception handling in tree view 2019-08-30 15:01:25 +02:00
Zheng, Lei
0bc6722943 Gui: add View3DPy.hasClippingPlane() 2019-08-30 15:00:42 +02:00
Zheng, Lei
5bc298cf18 Gui: handle exception in tree view double click 2019-08-30 14:52:09 +02:00
Zheng, Lei
d6967438f1 Gui: fix ExpressionCompleter for property 2019-08-30 14:51:33 +02:00
Zheng, Lei
4b74659308 Gui: fix tree view document double click activating 2019-08-30 14:50:52 +02:00
Zheng, Lei
8a99ef34ec Gui: use ExpressionLineEdit for tree view object search
Tree view is already using expression for object search. This patch
adds the expression completer feature for search result suggestion.
2019-08-30 14:50:15 +02:00
Zheng, Lei
782913407a Gui: improve expression completer
Proper support of completing an edit in the middel of an expression.

Also support 'noProperty' mode in the completer, where no completion is
offered for property names. This will be used by tree view object
search.
2019-08-30 14:49:14 +02:00
Zheng, Lei
d270d60950 Gui: expose link command to global toolbar 2019-08-30 14:43:32 +02:00
Zheng, Lei
71530bb1a6 Gui: allow SelectionSingleton::hasSubSelection() check for sub-element
This is used by relative link command activation for sub-element
selection
2019-08-30 14:43:04 +02:00
Zheng, Lei
0e115be0ec App: make recompute aborting optional 2019-08-30 14:41:46 +02:00
Zheng, Lei
a6da78b4e5 Gui: expose MainWindow:showStatus()
Tree view now uses this to show error on hovering over object in error.
2019-08-30 14:33:31 +02:00
Zheng, Lei
27a2ebed71 Gui: fix property editor crash on recompute
The actual cause of crash in previous commit 80f70ff6 is
Document::recompute() allows aborting using Base::Sequence, which
uses QApplication::processEvent() to catch 'ESC' key press. This local
event loop causes premature deletion of the editor widget.

This patch moves handling of closeEditor before calling recompute().
2019-08-30 14:25:41 +02:00
Zheng, Lei
6aec9ffed7 Gui: try to fix property editor crash
Crash stack trace
https://forum.freecadweb.org/viewtopic.php?f=8&t=37757&e=1&view=unread#p327901

It appears to by caused by handling QAbstractItemDelegate::closeEditor
signal twice. Once inside PropertyItemDelegate::editorClosed via slot
connection where the editor is closed/destroyed, the other in
PropertyEditor::closeEditor() which tries to access the destroyed
editor.

This patch removes handling of closeEditor signal in
PropertyItemDelegate.
2019-08-30 13:55:24 +02:00
wandererfan
f68e58e389 [TD]Prevent crash in SelectionSingleton
- in SelectionSingleton::setVisible, if the selection changes during
  loop, a crash may occur.
- in QGraphicsScene, hiding an item changes its selected status.
2019-08-28 12:20:42 -04:00
wandererfan
fca04f592e [Gui] clean up sloppy merge 2019-08-28 08:38:27 -04:00
wandererfan
ab180c761e [TD]Make TD View from ActiveView 2019-08-28 08:38:27 -04:00
wandererfan
76be82dc2e [Gui]Add options for page size, lineWidth and background 2019-08-26 09:07:30 -04:00
wmayer
5af586b92e Add parameter to suppress touching a document when a view provider has been modified 2019-08-24 15:54:41 +02:00
wmayer
fd90936b5d issue #0004088: Visibility of origin feature of Part container changes when undocking the 3d view 2019-08-24 13:33:21 +02:00
wmayer
b0fac402ad Fix bug in MainWindow::setActiveWindow
The method MainWindow::setActiveWindow() must not automatically add a view to the mdi area if it's not part of it because this causes a crash when trying to make a fullscreen window or undock a view.
Instead the calling instance must explicitly call MainWindow::addWindow where needed.
2019-08-23 23:44:19 +02:00
wmayer
aa3803a624 improve error search when parameter group or name of a PrefWidget is not set 2019-08-23 12:53:03 +02:00