Commit Graph

26121 Commits

Author SHA1 Message Date
Chris Hennes
d7dfe5cd7d Merge pull request #5112 from Roy-043/Draft-improve-hatch-matrix-algo
Draft: improved hatch matrix algo
2021-10-13 13:03:42 -05:00
Chris Hennes
facac9fc12 Merge pull request #5110 from 0penBrain/UserEditMode
[Gui] UserEditMode : new icons + naming + used mode memorization
2021-10-13 12:48:02 -05:00
Chris Hennes
a15ca9d189 Merge pull request #5111 from chennes/spreadsheetCherryPickRealThunder
[Spreadsheet] Cherry-pick realthunder Round 1
2021-10-13 10:54:04 -05:00
Roy-043
844597c08e Draft: improve hatch matrix algo 2021-10-13 17:38:08 +02:00
wmayer
c0445e5094 Mesh: [skip ci] add unit test for self-intersection 2021-10-13 17:29:18 +02:00
Abdullah Tahiri
925e115c93 Sketcher: Code improvements for Constraint Widget
=================================================

This PR does not have added functionality. It contains only code improvements requiring at least c++17.

- It uses for the filters scoped enums (enum classes) instead of unscoped enums to avoid implicit conversion (c++11).
- It includes tools to deal with the necessary explicit conversions including type_t traits (c++14).
- It uses a couple of generic lambdas (c++17)
- It uses folding expressions to expand parameter packs (c++17)
- Refactoring of code
2021-10-13 15:28:30 +02:00
0penBrain
ecc8505636 [Gui] UserEditMode : last used mode is remembered between sessions 2021-10-13 14:58:05 +02:00
wmayer
90c97a3166 Import: [skip ci] consistent use of curly braces 2021-10-13 14:28:06 +02:00
0penBrain
6c0a2dd4e6 [Gui] UserEditMode : new (better) icons for modes + SVG file naming improvement
Icons are provided by @bitacovir
2021-10-13 14:23:29 +02:00
Yorik van Havre
9fd4cac803 Merge pull request #5108 from Roy-043/Draft-fix-context-menu
Draft: fix context menu
2021-10-13 11:43:12 +02:00
abdullahtahiriyo
8977220904 Merge pull request #5091 from chennes/sketcherMoveColorsToPrefs
[Sketcher] Make constraint label smaller and styleable
2021-10-13 11:34:11 +02:00
abdullahtahiriyo
08531bfec5 Merge branch 'master' into sketcherMoveColorsToPrefs 2021-10-13 10:01:30 +02:00
Zheng, Lei
9933d4fbce App: add signalChanged to Property
For more efficient tracking of single property changes
2021-10-12 15:47:50 -05:00
Zheng, Lei
64053912b1 Spreadsheet: support displaying of integer 2021-10-12 15:14:31 -05:00
Zheng, Lei
8e51d7a86d Spreadsheet: preserve component reference in cell 2021-10-12 14:58:36 -05:00
Zheng, Lei
2a62233641 Gui: handle exception in property item display 2021-10-12 14:49:15 -05:00
Zheng, Lei
49074f5af1 Spreadsheet: add a few context menu options 2021-10-12 14:34:58 -05:00
Zheng, Lei
864f6d96a6 App: add expression built-in function str()
...for stringify
2021-10-12 13:42:10 -05:00
Chris Hennes
82e3bc5844 [Spreadsheet] Clean up compilation warnings 2021-10-12 11:53:48 -05:00
Chris Hennes
cca8ed5a7b Merge pull request #4277 from chennes/selection2021SelectionViewAutoShow
[GUI] Add option to auto-show selection view
2021-10-12 11:39:14 -05:00
Chris Hennes
9e791ba22a [Stylesheets] Add StatefulLabel and UrlLabel styles 2021-10-12 11:23:53 -05:00
Chris Hennes
1a7b8cd379 [Gui] Refactor StatefulLabel coloring 2021-10-12 11:23:13 -05:00
Chris Hennes
f7f7d8d95b Merge pull request #5099 from chennes/spreadsheetAutoReturn
[Spreadsheet] Refactor keyboard handling
2021-10-12 11:01:10 -05:00
Roy-043
70983bf907 Draft: fix context menu
Remove call to get_draft_line_commands.
Update the ContextMenu function. The items are based on the utilities menu now. And the context menu is the same for the Tree view and the 3D view.
2021-10-12 14:35:36 +02:00
Roy-043
b0dcc39e38 Draft: fix context menu
Remove the get_draft_line_commands function.
Update the def get_draft_context_commands function.
2021-10-12 14:32:36 +02:00
Roy-043
6cc9173fed Draft: fix context menu
Remove the 3 gui_lineops items.
2021-10-12 14:30:04 +02:00
Roy-043
ec0066b1dc Draft: fix context menu
Remove gui_lineops.py
2021-10-12 14:28:08 +02:00
Roy-043
c34524668f Delete gui_lineops.py 2021-10-12 14:23:59 +02:00
Yorik van Havre
c714712a45 Merge pull request #5106 from chennes/transparentFaces
[Part] Allow setting alpha for face colors
2021-10-12 10:57:11 +02:00
Yorik van Havre
9cb90ea7f2 Merge pull request #5102 from Roy-043/Draft-Update-draft_test_objects.py
Draft: Update draft_test_objects.py
2021-10-12 10:56:06 +02:00
wmayer
ef7692d413 OCCT: port flatmesh to version 7.6 2021-10-12 10:03:11 +02:00
Abdullah Tahiri
8242c68509 Sketcher: Copy and Array tool Snap at 5 degrees using CTRL 2021-10-12 09:41:58 +02:00
Chris Hennes
2a7df72d27 [Arch] Separate out return of None for clarity 2021-10-11 22:40:20 -05:00
Chris Hennes
d7e0210aae [Part] Remove redundant 'global' statement 2021-10-11 22:37:05 -05:00
Chris Hennes
3d3fd72c7b [Arch] Remove unnecessary pass 2021-10-11 22:22:59 -05:00
Chris Hennes
13beed81ae [Arch] Remove redundant else: from while loop 2021-10-11 22:01:44 -05:00
Chris Hennes
34a7fc95d8 [Draft] Eliminate default value modification 2021-10-11 21:28:55 -05:00
Chris Hennes
8c2fc25cd9 [Tools] Eliminate default value modification
LGTM catches a potential error with the mutation of default values:
implement their suggested workaround of using a None placeholder to
ensure the default itself is never modified.
2021-10-11 21:13:22 -05:00
Chris Hennes
3e8d84ce9b Merge branch 'master' into sketcherMoveColorsToPrefs 2021-10-11 12:31:08 -05:00
wmayer
efae4bdf32 TD: [skip ci] fix warning about trunction from double to float 2021-10-11 16:47:27 +02:00
Abdullah Tahiri
156bd82f08 Sketcher: Constraint widget associated constraints filter
=========================================================

A new special filter, that filters the constraint list so as to show the constraints associated with the
currently selected geometries.
2021-10-11 16:40:48 +02:00
Abdullah Tahiri
f85a04a84f Sketcher: Redesign of Constraint settings
=========================================

=> The old controltab is substituted by: direct controls (buttons on the constraint widget) and a settings dialog that is independently fired via a button with a settings icon

This makes more space for the list of constraints and generates a lower amount of confussion regarding the old tab names and functions.

Direct control ensures that the most used operations are at hand, while other less changed settings are moved to the settings dialog.

=> Direct controls

One time visibility to match the list selection can be triggered from a new button "Visibility"

This button has drop selections for visibility selections, which are checkable items (currently only one option, but more are envisaged).
The one option currently is the "visibility tracking" functionality. This is a "shortcut" to the option in the settings panel to save unnecessary clicks
in typical operations.

=> Settings dialog

This dialog is live, in that changes to settings are immediatedly propagated to the list control and visibility.
2021-10-11 16:40:48 +02:00
Abdullah Tahiri
d428cd7938 Sketcher: Add preferences icon resource 2021-10-11 16:40:48 +02:00
wmayer
c701c2f3d2 Test: [skip ci] handle std. and unknown exceptions in unit test dialog 2021-10-11 16:09:23 +02:00
Yorik van Havre
171ea709f9 Merge pull request #5090 from mwganson/dragger
[Dragger] add dragger (Std_TransformManip) to right click context men…
2021-10-11 12:17:42 +02:00
wmayer
c1cf48c88e Web: [skip ci] fix warning: unused parameter 'ok' [-Wunused-parameter] 2021-10-11 10:31:48 +02:00
Chris Hennes
b36258c870 [Gui] Always hide progress bar on finished load
The loadFinished signal from QtWebEngine includes a boolean indicating
whether the load was "ssuccessful" or not, but no apparent way to
determine what error, if any, occurred. Given that we are never
displaying any error information to the user, hide the progress bar
regardless of the success or failure of the operation.
2021-10-11 10:20:30 +02:00
wmayer
45632cc32e Start: if a corrupted file is part of the Recent File List then ignore it 2021-10-11 10:13:49 +02:00
Chris Hennes
b2a629c494 [Part] Allow setting alpha for face colors 2021-10-10 20:23:57 -05:00
Chris Hennes
94d6a6e0f0 Gui: Add option to show alpha in QColorDialog 2021-10-10 20:17:44 -05:00