Commit Graph

2672 Commits

Author SHA1 Message Date
wmayer
36026f0eec Gui: [skip ci] DlgDisplayPropertiesImp doesn't inherit from its UI class any more 2020-01-09 11:00:16 +01:00
wmayer
8cd289c370 Gui: [skip ci] restore bottom margin of group box in placement dialog 2020-01-09 09:51:04 +01:00
wmayer
004fda205e Gui: [skip ci] fix Qt4 build failure 2020-01-09 02:40:10 +01:00
wmayer
2fcfa48274 Gui: [skip ci] reduce height of Placement dialog 2020-01-09 02:26:17 +01:00
wmayer
c0aedf29da Gui: [skip ci] adjust content to size after hiding bottom button row 2020-01-08 23:38:20 +01:00
wmayer
2e31417aa4 Gui: [skip ci] fix regression of placement dialog 2020-01-08 21:42:57 +01:00
wmayer
b1189aef6e Gui: override QOpenGLWidget::paintGL() in sub-class [skip ci] 2020-01-08 13:28:50 +01:00
wmayer
8e5151002b Gui: set image creation method in settings dialog 2020-01-08 12:49:56 +01:00
donovaly
65acf2371e QuantitySpinBox: add function to set/change tooltip at runtime 2020-01-07 07:39:28 -03:00
donovaly
8af503e330 Placement.ui: avoid unnecessary vertical white space 2020-01-07 07:38:46 -03:00
donovaly
3d1f5ffec9 Placement improvements:
- sort the angles x-y-z
- add tooltips to make clear for non-native speakers what axis e.g. the yaw rotates around
- add existing icon to menu entry
2020-01-07 07:38:46 -03:00
Zheng, Lei
35ba5aa2af Gui: improve ViewProviderLink transform editing 2020-01-07 07:37:28 -03:00
donovaly
66354b3c58 add units Gauss, Weber and Oersted 2020-01-07 07:36:22 -03:00
0penBrain
7498ba1574 Add event catching so Status Bar action button (View menu) keeps sync with real status bar visibility 2020-01-07 07:33:49 -03:00
donovaly
05dadb4c75 add the units Ohm and Siemens 2020-01-05 15:00:46 +01:00
wmayer
3c3e946f75 [skip ci] issue #0004164, issue #0004237: macOS crash when opening project from 'Recent files' 2020-01-03 16:14:55 +01:00
Zheng, Lei
6562946e36 Gui: fix ViewProviderDocumentObject display mode restore
C++ view provider will get the call of attach() before restoring
properties. However, python view object will delay the call until Proxy
is restored.

The reason why this problem did not show up eariler is because
ViewProviderPythonFeature::getDefaultDisplayMode() did not fallback to
its parent implementation if there is no Python override. This can be
considered as a bug, which is fixed during the merge. And the display
mode restore problem is the side effect of the fix.
2019-12-31 15:04:19 +01:00
Rajendra Pardeshi
28d67eba2e Issue ID 0004230 : Fixing a crash in chamfer command. Putting a null check for the function return value
[skip ci]
2019-12-30 15:49:51 +01:00
wmayer
a9f820470b fix some const correctness 2019-12-29 17:13:18 +01:00
wmayer
eb4e2d2c56 Gui: add virtual method containsViewProvider to MDIView and re-implement it in some sub-classes
Improve Document::setActiveView to not always switch to the first 3D view but check the currently active view before
2019-12-29 15:00:35 +01:00
wmayer
e900384250 declare getMDIView and getMDIViewPage as const 2019-12-29 13:55:39 +01:00
wmayer
4318375a51 Gui: allow user to set an expression for property editor of vectors 2019-12-28 17:36:41 +01:00
wmayer
bd36bcb22b [skip ci] scale grabbed image to defined width 2019-12-27 21:00:34 +01:00
wmayer
9e4710d679 Gui: [skip ci] allow to pass multi-sampling in Python wrapper 2019-12-27 15:19:19 +01:00
wmayer
a7a11341fc Gui: [skip ci] show navi cube also when rendering as framebuffer or GL image 2019-12-27 13:57:21 +01:00
wmayer
e7796c0497 Gui: [skip ci] add option to grab 3D view as is 2019-12-27 13:52:34 +01:00
wmayer
bfdd6d8a2f Units: [skip ci] restore translations of unit schema names 2019-12-25 13:02:14 +01:00
luz.paz
f11783a498 src/Gui: [skip ci] fix header uniformity
This PR fixes header uniformity across all `src/Gui` files
2019-12-25 11:39:17 +01:00
donovaly
ce56205ed0 more fixes for the UnitsCalculator
- we must read out the unit system description UTF8 to get the characters ² and ³
- update unit system description according to today's unit "cft" addition
- don't hardcode the unit system descriptions in the .ui file
- add acceleration to imperial schema
2019-12-24 13:31:13 +01:00
donovaly
82c84c4d90 changes according to vocx-fc's annotations 2019-12-23 16:50:07 +01:00
donovaly
f07e97b813 DlgUnitsCalculator: some tweaks
- we call it "unit system" in the preferences, thus call it here so too
- add tooltips
- we have unit categories
2019-12-23 16:50:07 +01:00
wmayer
2eb208cab5 reduce size of units calculator 2019-12-22 11:53:36 +01:00
wmayer
a056d85f7d Gui: implement size hint for quantity spin box 2019-12-22 11:52:59 +01:00
Zheng, Lei
15944dde60 Gui: change DAG view selection behavior
If there is selection, then DAG view will show the owner document of
the resolved selected object instead of the active document.
2019-12-21 15:55:00 +01:00
Zheng, Lei
5a32181b64 Gui: fix DAG view property link update 2019-12-21 15:26:20 +01:00
Zheng, Lei
af4fb7d37f Gui: fix DAG view icon sync problem 2019-12-21 15:26:09 +01:00
Zheng, Lei
df548bf82e Gui: fix Document::signalInEdit
Make it sure it is signaled with the correct document
2019-12-21 15:26:02 +01:00
Zheng, Lei
1cbec1a60d Gui: fix Std_Transform tool
The problem is caused by tracking of editing object placement
introduced in 719c11e714.

After this commit, any editing object can disable placement tracking by
calling Gui::Document::setEditingTransform() inside either
ViewProvider::startEditing() or setEditingViewProvider().
2019-12-21 15:17:48 +01:00
wmayer
b795162660 allow to choose a custom units schema in calculator 2019-12-21 13:36:25 +01:00
wmayer
98dfe7c387 add posibility to use a unit schema other then the system schema to represent a quantity 2019-12-21 13:35:14 +01:00
wmayer
4bcb43ebd2 Base: [skip ci] make UnitSystem an enum class 2019-12-21 10:10:19 +01:00
wmayer
702ae025c7 Gui: [skip ci] reduce confusion m vs. mm in units calculator 2019-12-20 16:54:56 +01:00
wmayer
492af81db1 extend units calculator 2019-12-20 14:45:05 +01:00
wmayer
b6ae122351 Gui: set/get number of decimals of a quantity spin box 2019-12-20 14:44:40 +01:00
donovaly
07549653cd UnitsCalculator fixes
- missing initial value
- missing check for invalid units starting with 'e'
2019-12-20 13:49:01 +01:00
wmayer
af011dabd9 Gui: [skip ci] use defined font when creating text editor 2019-12-20 12:41:24 +01:00
wmayer
d969581ff8 Gui: allow to set font family and size and syntax highlighting 2019-12-19 23:17:46 +01:00
donovaly
f5f0728a9f take care of the UnitsCalculator
- also fix uF and uH
- add conversion routine for C and T
2019-12-19 13:31:12 +01:00
luz.paz
06cf1d5b70 Fix various typos [skip ci]
Fixed 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-12-17 15:13:48 -03:00
vocx-fc
92fa38152e Gui: better icon for the Origin object
During the LinkMerge, a new icon
`Std_CoordinateSystem.svg` was used
for the `App::Origin` object that appears in
`PartDesign::Body`. However, this icon
doesn't look as good as the original `CoordinateSystem.svg`.

This commit renames the old icon to the new name. The newer icon
is kept as an alternate version `Std_CoordinateSystem_alt.svg`.

In addition, a new icon `Std_Placement.svg`
is provided for the `App::Placement` object, which previously
was also using `CoordinateSystem.svg`.
In this way, `App::Placement` and `App::Origin`
use different icons and there is no confusion
in the tree view.
2019-12-17 15:08:30 -03:00