Commit Graph

2659 Commits

Author SHA1 Message Date
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
wmayer
0175008ceb [skip ci] Implement AcceptMode for FileChooser to also allow to define an output file 2019-12-13 22:43:47 +01:00
wmayer
13db5b0560 Add GUI command to insert a text document into the active document 2019-12-11 16:01:31 +01:00
wmayer
1a87354282 [skip ci] fix some warnings:
-Wunused-parameter
-Winconsistent-missing-override
2019-12-11 10:17:24 +01:00
wmayer
3490adf7da [skip ci] when converting from SoSFImage to QImage check that the internal buffer is not null 2019-12-09 17:53:52 +01:00
Zheng, Lei
8516c6fbe3 Gui: fix Gui.addCommand() in Python3 2019-12-09 00:37:34 +00:00
Zheng, Lei
50f4c012b4 Gui: change tree view select all behavior
Only select all objects of the current document
2019-12-08 15:07:36 +01:00
Zheng, Lei
719c11e714 Gui: track editing object placement change 2019-12-08 14:46:34 +01:00
Zheng, Lei
004d6061e0 Fix copy/paste objects through temp file 2019-12-06 14:43:02 -03:00
Zheng, Lei
63edea3ea4 Do not reserve memory when copy/paste objects through file 2019-12-06 14:43:02 -03:00
donovaly
653a5e4302 DlgUnitsCalculator: tweaks requested by vocx-fc and luzpaz 2019-12-06 14:42:02 -03:00
donovaly
58967193be DlgUnitsCalculatorImp.cpp: some cleanup 2019-12-06 14:42:02 -03:00
donovaly
fafbe533bb Fix the broken UnitsCalculator dialog
see https://forum.freecadweb.org/viewtopic.php?f=3&t=41331&p=351289#p351289 for details why and how
2019-12-06 14:42:02 -03:00
vocx-fc
a61a779a2e Gui: PartDesign: remove execute bit from icons, now 644 2019-12-06 14:34:25 -03:00