Commit Graph

2540 Commits

Author SHA1 Message Date
Zheng, Lei
eb4dbd56a7 Gui: fix tree view lingering sub element selection 2019-10-08 10:21:46 +02:00
Zheng, Lei
ae067d7a58 Gui: improve PropertyXLink display in property view 2019-10-08 10:21:31 +02:00
Zheng, Lei
0d966e6777 Gui: improve SelectionSingleton::setVisible()
Change argument to enum type. Make setVisible() robust against
unexpected selection change.
2019-10-08 10:21:06 +02:00
Zheng, Lei
0b42b0b596 Link: change sub-element linking mechanism
Previous multi-sub-element linking (e.g. Face, Edge) is supported
through SubElements of type PropertyStringList, which does not support
geometry element update tracking. This patch changes it to use
PropertyXLink's new multi-subname capability.
2019-10-08 10:20:50 +02:00
Zheng, Lei
75c8c6289a Gui: minor fix of tree view drag move 2019-10-08 10:20:01 +02:00
Zheng, Lei
3f63064301 Gui: expose link selection and navigation command 2019-10-08 10:19:20 +02:00
Zheng, Lei
1f18474c28 Gui: improve Std_LinkSelect command
Recognize external object brought in by a link to a group. The
Std_LinkSelect will jump into the the owner document of the external
object.
2019-10-08 10:16:44 +02:00
Zheng, Lei
9a1723179f Gui: assign default guesture to Std_SelBack/Forward 2019-10-08 10:16:20 +02:00
Zheng, Lei
3b1aa19f05 Gui: add class GroupCommand help with grouped command
As an example usage, changed StdCmdTreeViewActions to be derived from
GroupCommand
2019-10-08 10:16:00 +02:00
Zheng, Lei
2fe15c87cf Gui: output Cmt type macro line as comment in python console 2019-10-08 10:15:18 +02:00
Zheng, Lei
b583c2c9ac Gui: add document to Command and Selection 2019-10-08 10:14:41 +02:00
Zheng, Lei
8b65a94f28 Gui: add toolbar button for toggling selection bounding box 2019-10-08 09:56:09 +02:00
Zheng, Lei
bb3baefdb5 Gui: refactor bounding box selection style
Previously, box style selection is rendered using customized
SoBoxSelectionRenderAction, which does not support selection context,
i.e. it does not work with Link.

This patch implements context aware bound box rendering inside
SoFCSelectionRoot, SoFCSelection and SoFCPathAnnotation (for always on
top rendering). The box rendering in SoBoxSelectionRenderAction is
disabled on construction. Box style selection can be enabled for
individual object through property SelectionStyle (moved from
ViewProviderGeometryObject to ViewProviderDocumentObject), or globally
through Parameter BaseApp/Preferences/View/ShowSelectionBoundingBox.

In addition, the parameter BaseApp/Preferences/View/UseNewSelection is
used to override selection model reported from
ViewProvider::useNewSelectionModel(). The reason being that, the same
parameter is already used to toggle selection model inside
SoFCSelection. This avoids inconsistency of selection model choice
between view provider and the SoFCSelection node inside. Note that if
the parameter 'UseNewSelection' is set to false, those view providers
that choose old selection model will not work with Link.
2019-10-08 09:56:09 +02:00
Tomas Pavlicek
d54633183c TechDraw - Fix Annotation and Symbol international characters mangling 2019-10-07 16:56:09 -04:00
Bernd Hahnebach
c8df73d756 Gui: fix ui file, introduced with 88d7870 2019-10-07 19:51:43 +02:00
luz.paz
14847c934f Docs: Update Prefs > General > 'General' tooltips
Update the tooltips for the 'General' tab.
2019-10-07 13:49:33 -03:00
Zheng, Lei
d68de72578 Gui: sync expression change in property editor
This patch fixes two problems,

When one property item is assigned an expression, auto remove any parent
and child item expressions to avoid expression conflicts.

Disable value update when an property item or any of its parents are
bound by an expression.
2019-10-07 17:24:31 +02:00
Zheng, Lei
1ff5c2f720 Gui: fix missing expression highlight in property editor 2019-10-07 17:24:31 +02:00
Zheng, Lei
0e6ad2056b Gui: fix missing auto update when edit property expression
It only happens when editing expression through property editor context
menu action.
2019-10-07 17:24:31 +02:00
Zheng, Lei
d004278209 Gui: fix ExpLineEdit::apply()
ExpLineEdit was originally created for editing PropertyString with
optional expression. It has since been extended to be used by any type
of property.
2019-10-07 17:24:31 +02:00
Zheng, Lei
db89713160 Gui: fix ExpressionBinding::apply()
Remove extra '.' because of newly introduced local property referencing
syntax.
2019-10-07 17:24:31 +02:00
Zheng, Lei
c146fbbdba Replace use of Matrix.inverse() with inverseGauss()
Because of possible scaling involved.
2019-10-07 17:24:30 +02:00
triplus
e11d795153 AppImage - support for embedded documentation 2019-10-06 18:18:29 +02:00
Zheng, Lei
2df3052ecf Gui: add new API ViewProviderDocumentObject::allowOverride()
This API is used to delcare if a view provider can be used as an
override for a give object.

Conflicts:
	src/App/DocumentObject.h
2019-10-06 17:22:57 +02:00
vocx-fc
ab22418878 Gui: fix DlgSettings3DView.ui, remove bold tags <b> 2019-10-05 20:26:38 +02:00
luz.paz
044213d6ad Source typo fix (includes file rename) 2019-10-05 13:19:32 -04:00
luz.paz
d4e381d846 Crowdin: Fix creative common license name
Source: https://crowdin.com/translate/freecad/549/en-sv#6498160
2019-10-05 17:27:48 +02:00
luz.paz
8b1be2c590 Revised VBO tooltip per @realthunder's feedback 2019-10-05 16:35:25 +02:00
luz.paz
3a2cdc24ba Fix typo in previous commit 2019-10-05 16:35:16 +02:00
luz.paz
d98d3d8b24 ...Add Render Caching tooltip
Forum thread:  
https://forum.freecadweb.org/viewtopic.php?f=17&t=39815&p=338357#p338357
2019-10-05 16:35:07 +02:00
luz.paz
bf31e7ff3c Docs: Update Prefs > Display > '3D View' tooltips
Update the tooltips for the '3D View' tab.
2019-10-05 16:34:59 +02:00
luz.paz
fb32601746 Fix various (doxy) typos and whitespace issues
Found via `codespell -q 3 -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-10-03 07:57:13 +02:00
wmayer
37287cf9d9 fix further file names vulnerabilities in core system and Image module 2019-10-02 15:07:13 +02:00
wmayer
9e5ab2d6fa when cloning a 3d view then also set the new view into edit mode in case the original view is 2019-10-01 19:35:51 +02:00
wmayer
736417989b make sure resetting a document while closing it works independently of the activw view 2019-10-01 16:37:07 +02:00
wmayer
11af8c8543 when closing a 3d view check if itÄs in edit mode to avoid to leave a view provider in a broken state 2019-10-01 16:34:51 +02:00
wmayer
ea1f96916d change order of beforeDelete() and clearing selection inside Application::slotDeleteDocument to prevent crashes in case resetting a view provider touches the selection 2019-10-01 16:33:37 +02:00
wmayer
8c97f81877 add escape sequence when executing as Python string 2019-09-28 23:35:08 +02:00
Zheng, Lei
38c47d6e95 Expression: split Expression.h to ExpressionParser.h
Split Expression details into a separate header to reduce recompilation
time on changes.
2019-09-28 15:30:41 +02:00
Zheng, Lei
d3dea0178d 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
Zheng, Lei
959ec5dad3 Gui: remove FC_TREEPARAM, add document for class TreeParams 2019-09-27 15:49:42 +02:00
Zheng, Lei
475baf5481 Gui: fix tree view auto expand 2019-09-27 15:49:31 +02:00
Markus Lampert
9b8ad9525b Fixed updateCommand definition for python 2019-09-27 11:11:47 +02:00
wandererfan
375fe1bd48 [App][Gui]Add Filter for PropertyFile in PropertyEditor 2019-09-20 07:56:52 -04:00
wmayer
9337114714 fix possible segfault in SoQTQuarterAdaptor::convertOrtho2Perspective 2019-09-19 17:54:42 +02:00
wandererfan
b9374d5e71 [Gui]Fix Py SyntaxError on " in PropertyStringList 2019-09-19 06:59:05 -04:00
wmayer
5746c37b7e fix -Wcatch-value=, fix -Wpedantic 2019-09-18 14:36:23 +02:00
wmayer
9fa56345cf 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
wmayer
690df49618 fixes #0004103: Black screen when using rubberband selection 2019-09-17 15:55:05 +02:00
wmayer
5390266ac7 fixes #0004125: MDIViews not accessible correctly 2019-09-15 18:15:44 +02:00