Commit Graph

24667 Commits

Author SHA1 Message Date
bitacovir
24ce12d8f3 [UI] Replace SVG icon of TechDraw RedrawPage 2021-04-03 17:58:05 +02:00
wmayer
21d3749d7a Spreadsheet: [skip ci] fix gcc warnings about unused variables 2021-04-03 12:21:42 +02:00
wmayer
5d49bf78de Gui: QuantitySpinBox inherits from ExpressionSpinBox to reduce code duplication 2021-04-02 22:22:16 +02:00
wmayer
e151f19d41 Gui: add class ExpressionSpinBox to reduce code duplication 2021-04-02 21:36:29 +02:00
Benjamin Nauck
51596b5acc Spreadsheet: Fix UI issues when trying to insert rows/cols
* Add support for better translations (using pluralizations)
* Add support for inserting rows/columns after the selection
* Informs the user that it will insert rows/cols above/under/left/right of the selection
* Informs the user how many rows/cols that will be inserted
2021-04-02 19:33:06 +02:00
wmayer
75bf85eb5b Gui: Change label type to ExpressionLabel in ExpressionBinding
* Add function ExpressionBinding::makeLabel() and use it in subclasses to reduce code duplication
2021-04-02 17:46:42 +02:00
Chris Hennes
64fb634ed1 Add tooltip to f(x) when there is no expression
As suggested by @luzpaz, this adds a tooltip to the f(x) icon of all
of the widgets that use it: QuantitySpinBox, UIntSpinBox, IntSpinBox,
DoubleSpinBox, and ExpLineEdit. These five classes are divided across
three files, and all five classes duplicate the same basic code. In the
existing code, no tooltip is shown if there is no expression. If there
is an expression, it (alone) is used as the tooltip.

This commit modifies that behavior to have explanatory text as the
tooltip when there is no expression, and when there is, to prepend a
short string to the beginning.

To reduce further code duplication, this is implemented by adding a new
function to ExpressionLabel allowing the text of the expression to be set.
It checks that text and if it's empty, uses a preset default string as the
tooltip. If there is expression text, it instead prepends another
bit of text to the front and sets the entire expression+prefix as the
tooltip.

TODO: In the future a lot of the preexisting code duplication could be
removed by making the ExpressionLabel class do more internal management
of the expression.

Thanks to @kisolre for the assistance tracking these down, and
suggesting the default text used.
2021-04-02 16:17:04 +02:00
wmayer
efba06737f Web: remove obsolete function setTextSizeMultiplier because QtWebEngine already supports HiDPI monitors 2021-04-02 14:10:02 +02:00
Chris Hennes
51b57f9844 [Web] Remove deprecated Qt < 5.9 code 2021-04-02 13:46:43 +02:00
wmayer
033b5397f3 TD: [skip ci] fix DrawingView::print/MDIViewPage::print 2021-04-02 12:06:24 +02:00
Chris Hennes
cbdc2ac48e [TD] Remove deprecated Qt < 5.9 code 2021-04-02 12:02:54 +02:00
wmayer
72eceb91c6 Gui: remove WinNativeGestureRecognizers because this was a workaround for Qt4 under Windows 2021-04-02 11:47:12 +02:00
wmayer
e7c91d68af Gui: [skip ci] remove MainWindow::showMainWindow() & timer 2021-04-02 11:15:04 +02:00
Chris Hennes
50c7ee36bf [GUI] Remove code for Qt < 5.9 2021-04-02 10:10:37 +02:00
Benjamin Nauck
67d26939dc Tux: Add "_light" suffix to light navigation icons 2021-04-01 19:48:18 +02:00
Benjamin Nauck
a56e5c2928 Tux: Add "_dark" suffix to dark navigation icons 2021-04-01 19:48:18 +02:00
Chris Hennes
6227a711c3 [Sketcher] Remove deprecated Qt < 5.9 code 2021-04-01 19:38:23 +02:00
Chris Hennes
00d9dd965f [Part] Remove deprecated Qt < 5.9 code 2021-04-01 19:36:40 +02:00
Chris Hennes
08ba85888e [Spreadsheet] Remove deprecated Qt < 5.9 code 2021-04-01 19:31:22 +02:00
Chris Hennes
f200cea636 [Test] Remove deprecated Qt < 5.9 code 2021-04-01 19:30:30 +02:00
Chris Hennes
6b4b245f08 [Main] Remove deprecated Qt < 5.9 code 2021-04-01 19:29:44 +02:00
Chris Hennes
71c9c24374 [Base] Remove deprecated Qt < 5.9 code 2021-04-01 19:28:43 +02:00
wmayer
377b01b4b4 Py3: fixes #0004081: Abillity to show console output when running under Python 2021-04-01 17:51:10 +02:00
wmayer
b64c4da51b CMake: fix possible linker error when using external SMESH 2021-04-01 13:41:14 +02:00
wmayer
90ed40d605 Import: if in a dxf file control points and fit points are given then use the former to create the B-Spline 2021-04-01 13:27:03 +02:00
wmayer
5169a7e852 smesh: [skip ci] build FEM & MeshPart with C++14 when using external smesh because it doesn't support C++17 yet 2021-03-31 15:35:28 +02:00
Chris Hennes
663ac994a7 [OpenSCAD] Fix projection for OCCT7.3
OCCT 7.3 did not work well when using a very large projection plane, so
this commit reduces the plane size to the minimum required for the cut
operation. It also performs some minor refactoring in anticipation of
the implementation of the true projection feature, and it removes the
last attempted fix, which proved unnecessary.
2021-03-30 22:55:16 +02:00
Yorik van Havre
afa40aa049 Merge pull request #4299 from three-ddd/archstairs_connections_flight_landing
[0.20] [Arch] connections between stair flight and landing
2021-03-30 13:17:24 +02:00
Yorik van Havre
37ef8ee24f Merge pull request #4410 from marioalexis84/draft-snap
Draft: Fixes #0004278: Working Plane Proxy origin hijack nearby object
2021-03-30 13:16:14 +02:00
Yorik van Havre
111184a770 Merge pull request #4517 from Roy-043/Arch_Roof_fix_for_adjust_list_len
[ARCH] Arch_Roof fix for adjust_list_len function
2021-03-30 13:05:10 +02:00
Yorik van Havre
7573e54d16 Merge pull request #4546 from chennes/lgtmDraftUnusedLoopVariables
[DRAFT] Remove unused loop variable
2021-03-30 13:04:08 +02:00
Yorik van Havre
a346a10c88 Merge pull request #4547 from chennes/lgtmArchUnusedIterationVariable1
[Arch] Refactor to eliminate unused variable
2021-03-30 13:01:06 +02:00
Yorik van Havre
aba520180e Merge pull request #4548 from chennes/lgtmDraftColorArrayCreation
[Draft] Eliminate unused loop iteration variables
2021-03-30 13:00:45 +02:00
Yorik van Havre
d8fc51dcf5 Merge pull request #4625 from marioalexis84/draft-edit
Draft: Make Edit closed wires consistent with open wires and tracker
2021-03-30 12:50:06 +02:00
Matthijs Kooijman
cc88c21fae Arch: Fix displayed rotation values when adding or editing window components
This ensures the rotation edge and mode GUI elements are cleared when starting
to add or edit a component. Previously, when adding a new component or
editing one without rotation, the GUI elements would retain the value
from the previously edited component, which made it hard to check that
components did not have any rotation, and would make it easy to
accidentally add rotation to components that did not need it (just by
clicking edit and confirming).
2021-03-30 12:40:06 +02:00
Yorik van Havre
788e8aea69 Start: Fixed translated quote issue 2021-03-30 12:38:31 +02:00
Yorik van Havre
4bf315a070 Merge pull request #4690 from chennes/openscadFixMinorIssuesB
[OpenSCAD] Minor bug fixes in importing CSG
2021-03-30 12:28:03 +02:00
Yorik van Havre
38e6f40ba0 Merge pull request #4691 from chennes/cmakeFixStartTestInstallationLocation
[Start] Correct TestStart installation location
2021-03-30 12:27:32 +02:00
donovaly
8fb567291d [Gui] fix a NaviCube Corner
fixes a copy/paste issue of commit f525904c1b
2021-03-30 12:10:15 +02:00
Chris Hennes
dfbfa67250 [Start] Correct TestStart installation location 2021-03-29 14:11:32 -05:00
Chris Hennes
fbd6b0441f [OpenSCAD] Add piecewise helix for OCCT < 7.5
Address a hang when using older versions of OCC to create a rotated
extrusion. This approximates the auxilliary spine as set of line
segments formed from the helix, rather than using the helix directly.
2021-03-29 13:59:03 -05:00
Chris Hennes
b18cabae05 [OpenSCAD] Add additional recompute() logic 2021-03-29 13:58:52 -05:00
wmayer
f525904c1b Gui: concatenate rotations and apply the result once at the end 2021-03-29 18:29:44 +02:00
donovaly
23747f9d11 fix animation issue
SO's auto rotation has its own rotation logic that ends at fixed positions. This collides with the "to nearest" option whose aim is to rotate to the next sensible state taking into account from what position the rotation was started.

Thus the solution is to disable SO's auto rotation while the cube is rotated.
2021-03-29 17:11:50 +02:00
donovaly
e58ee299d4 [Gui] improving NaviCube
fixes bug 4495

- add missing edge faces
- implement a proper rotation recipe -> rotate towards the nearest possible state
- add preferences settings to turn off this new rotation behavior
- get rid of transparent cube faces to avoid wrong clicks, this way also remove the backfaces
- to make the edge faces fit, use triangles for the corners
- expose cube size setting to preferences dialog
- add new button to view backside
- get rid of bitmaps because as reported in https://forum.freecadweb.org/viewtopic.php?f=3&t=52118&start=20#p481781
the x y z labels are not scaled on HiDPI screens
moreover they are often "in they way" when you want to click on a corner and in principle they don't provide more info since we already have the CS with the axis labels

- also fix an arithmetic overflow compiler warning
- also rename 2 variables
2021-03-29 17:11:34 +02:00
wmayer
033bf619fa Gui: [skip ci] expose Control::showModelView() to Python 2021-03-29 17:05:54 +02:00
Abdullah Tahiri
ebfaa6ac95 Sketcher: No vertex color update (selection/preselection) after box selection
=============================================================================

The issue:
https://forum.freecadweb.org/viewtopic.php?f=10&t=56550#p486554

The fix:
Setting the render type to Image causes the issue, but neither do I know why it is
necessary to set it to Image, nor do I understand why this is causing the issue. I
only know it solves the issue.
2021-03-29 16:23:18 +02:00
Abdullah Tahiri
5c4f9df447 Sketcher: add subnodes to the right separator 2021-03-29 16:23:18 +02:00
donovaly
bedd22a662 [Part] save more icons with uniform resolution
- also save them as plain SVG to get rid of sometimes deprecated Inkscape-only stuff
2021-03-29 16:21:59 +02:00
wmayer
4bec60cc78 App: use std::wstring_convert instead of QString to encode/decode unicode/utf-8 2021-03-29 16:19:13 +02:00