Commit Graph

32423 Commits

Author SHA1 Message Date
qewer33
1ece491dfd StartPage remove hide scrollbars option 2023-09-03 19:30:57 +03:00
qewer33
068e77c974 StartPage fixes 2023-09-03 19:23:13 +03:00
qewer33
87d9fb576f Fix StartPage preference widget names 2023-09-03 16:40:58 +03:00
qewer33
5be49a56f9 StartPage implement custom CSS preference 2023-09-03 16:21:49 +03:00
qewer33
a1d20ec97d Turn StartPage "Import" quickstart button into "Open" 2023-08-31 22:04:50 +03:00
qewer33
0c7459d7d7 StartPage CSS fixes 2023-08-31 17:39:34 +03:00
Chris Hennes
f0152cbcce Merge pull request #10410 from qewer33/startpage-viual-fixes-2
StartPage: Visual fixes follow-up
2023-08-28 12:18:13 -05:00
sliptonic
e0ddc0f5e6 Merge pull request #8443 from LarryWoestman/staging
Path:  Now can set parameter_functions from a postprocessor file.
2023-08-28 11:21:16 -05:00
Chris Hennes
ebcbfb6203 App: Warn on OpenGL too old (#9272)
* App: Warn on OpenGL too old

Based on original code from PR #9164

* GUI: Switch to DlgCheckableMessageBox for openGL warning
2023-08-28 12:08:23 -04:00
Edoardo Morandi
512770f27c fix: downcasting of SoNode that can cause UB (#9285)
A SoNode* is not necessarily a SoFCSelectionRoot*, and when this
assumption breaks the code causes UB (the comment related to one of the
chunks explicitly says that it is safe, but unfortunately it is not).

Instead of storing `SoFCSelectionRoot*` and blindly cast a generic
`SoNode*` to that, we can do the opposite. In this way it is obviously
necessary to use a dynamic cast when trying to reach for
`SoFCSelectionRoot` specific features, but in this way the abstraction
should be sound.

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2023-08-28 11:06:06 -05:00
Florian Foinant-Willig
9681ad595b Sketcher: Point to Circle Distance Constraints (#9559) 2023-08-28 10:58:09 -05:00
Chris Hennes
d0ee2702ec Merge pull request #9810 from Ondsel-Development/v2_constrain_contextually
Sketcher: Constrain Contextual implementation V2
2023-08-28 10:52:05 -05:00
andrea
8cc8962cfc Update libkdtree from 0.7.0 to 0.7.1.1 2023-08-28 10:48:39 -05:00
Florian Foinant-Willig
3311d6d6e3 Sketcher: Fix Visual toolbox visibility 2023-08-28 10:46:48 -05:00
sliptonic
9742f8492b Merge pull request #10318 from davidgilkaufman/rampCircleBug
[Path] Fix bug where ramp dressup makes big circles
2023-08-28 10:45:17 -05:00
liukaiwen
7d9ac16e6c fix: windows build need /utf-8 2023-08-28 11:43:39 -04:00
mosfet80
cb607ffe1e [BASE] Removed dead code (#10330) 2023-08-28 10:41:20 -05:00
Yorik van Havre
4adbc90c99 Merge pull request #10332 from Roy-043/Arch-Implement-placement_from_face-in-ArchWindow.py
Arch: Implement placement_from_face in ArchWindow.py
2023-08-28 17:39:58 +02:00
PaddleStroke
41aefb1331 Pref: wb: Add contextual menu to sort alphabetically. (#10363)
Co-authored-by: Paddle <PaddleStroke@users.noreply.github.com>
2023-08-28 10:39:44 -05:00
Syres916
658452de6d [Gui] Change View toolbar order
as per discussion https://forum.freecad.org/viewtopic.php?p=702171#p702171
2023-08-28 10:36:10 -05:00
sliptonic
559fea0640 Merge pull request #10405 from wwmayer/fix_activeobject_of_activeview
Gui: improve accessing active object of an MDI view
2023-08-28 10:34:57 -05:00
qewer33
584e766d5c Add StartPage CSS warning comment 2023-08-28 18:15:15 +03:00
qewer33
230501d3d5 Add file thumbnail icons hide and size options to StartPage 2023-08-28 18:07:33 +03:00
qewer33
53ca19458e Make StartPage tips use BackgroundTextColor 2023-08-28 16:52:34 +03:00
qewer33
23ad8ffcd2 Change default StartPage BackgroundTextColor value 2023-08-28 16:50:19 +03:00
Chris Hennes
51ebda84ae Merge pull request #10403 from wwmayer/fix_format_date
Gui: use '%Y-%m-%d %H:%M:%S' as format string for date
2023-08-28 07:41:38 -05:00
wmayer
b35e83609a Gui: improve accessing active object of an MDI view
* if 2nd argument of getActiveObject() is False and the requested object doesn't exist then return (None, None, "")
* remove the exact same implementations from View3DInventorPy
2023-08-28 13:34:48 +02:00
Roy-043
c2a843a5dd Draft: Reduce occurrences of App.DraftWorkingPlane 2 (#10390) 2023-08-28 10:17:58 +02:00
Roy-043
af87661093 Draft: Reduce occurrences of App.DraftWorkingPlane (#10388) 2023-08-28 10:16:36 +02:00
wmayer
f6c1c86cbd Gui: use '%Y-%m-%d %H:%M:%S' as format string for date
For more details see: https://forum.freecad.org/viewtopic.php?p=702475#p702475
2023-08-28 08:25:52 +02:00
wmayer
cab2b120c8 Main: The fix for https://forum.freecad.org/viewtopic.php?t=79192
may have caused a regression with Py3.10 on Windows as reported here https://forum.freecad.org/viewtopic.php?t=80659

This PR activates the previous fix for Linux & UNIX systems only
2023-08-27 22:51:22 +02:00
Chris Hennes
6a490e01c1 Merge pull request #10377 from kadet1090/lp-offset
PartDesign: Add offset modes for patterns
2023-08-27 15:31:15 -05:00
geolta
5a34c5fb80 Improve Pad/Pocket Task Dialog (#10392)
* Improve Pad/Pocket Task Dialog
- Reordering elements
- hide select face if not necessary
- improve tab stop order
2023-08-27 15:01:55 -05:00
MisterMaker
1941abd999 [Stylesheets] Replaced more static colors with the accent colors. (#10387)
* [Stylesheets] Fixed and added more accent colors.

Added accent colors to Behave dark ProDark and Dark contrast.
Used accent color 3 to the button gradients.
Added Gradient to the Modern styles, because you can disable the gradient by giving 2 accent colors the same color.

* changed to so accent color 3 is text.
2023-08-27 13:48:36 -05:00
qewer
d141e7167f StartPage: Visual overhaul and CSS fixes (#10391)
* StartPage visual overhaul and CSS fixes
* Add qewer33 to CONTRIBUTORS
2023-08-27 13:27:53 -05:00
wmayer
672090ca47 Drawing: fix build failure 2023-08-27 19:16:58 +02:00
wmayer
0ae4ef2d2f Mesh: add unit tests 2023-08-27 18:55:02 +02:00
Paddle
e21b6cf860 Implement GeomSelectionSizes to further refactor Dimension::makeAppropriateConstraint 2023-08-27 18:48:33 +02:00
Paddle
d5bdebfe10 Dimension: Fix 2 circles concentric and length mode. 2023-08-27 18:48:00 +02:00
Chris Hennes
3d8ec230f8 Merge pull request #10365 from chennes/wrapPyArgParseWithKeywords
Wrap PyArg_ParseTupleWithKeywords
2023-08-27 10:23:31 -05:00
kaktus Jacek
b6db25c2d2 Cleaning code from unnecessary strings generated to Crowdin. (#10385)
Cleaning Crowdin of "garbage". Second approach.
https://github.com/FreeCAD/FreeCAD-translations/issues/270
2023-08-27 10:08:11 -05:00
Kacper Donat
2d22c8f4af PD: Keep Length and Offset in sync for LinearPattern
As Length and Offset represents the same concept in different way it is
useful to keep them in sync when it is possible. Update to one of them
will update the other with approperiate value. This behaviour behaviour
works only if both properties are not coming from expression engine -
those will stay not touched.
2023-08-27 12:45:53 +02:00
Kacper Donat
148c497eba PD: Add offset / overall angle modes for PolarPatterns
This commit adds two separate modes for defining angular spacing between
elements in the PD's Polar Pattern:

1. Overall Angle - which behaves exactly like it behaved before,
2. Offset Angle - which allows user to specify separation angle between
   consecutive elements.

This change is analogue to that introduced for LinearPattern in previous
commits.
2023-08-27 12:45:53 +02:00
al
b7da44f57b PD: Add offset / overall length modes for LinearPattern
This commit adds support for two separate modes of defining distance
between elements in PD's Linear Pattern.

1. Overall Length - which works exactly like it works before,
2. Spacing - which allows user to explicitly define distance (offset) between
   features.
2023-08-27 12:45:53 +02:00
Roy-043
32c47e64a3 Draft: Make gui_tool_utils.get_support nesting aware (#10373)
The get_support function did not work for objects nested in, for example, Std_Parts.

Additionally improved and cleaned up the code, and reduced the docstrings.
2023-08-27 12:41:25 +02:00
Roy-043
15e5f60d00 Draft: remove superfluous code from gui_points.py (#10379) 2023-08-27 12:41:01 +02:00
Roy-043
29eb25e8aa Draft: Add wp attribute to DraftTool class (#10386)
It makes sense to have this attribute. It will also facilitate the coming work related to the Plane class.

Additionally: Removed the `not self.doc` check from `Activated` as `IsActive` already handles this.
2023-08-27 12:40:30 +02:00
Paddle
a683f3aca4 Fix crash when user click 'Close' button while Dimension is active.
TaskDlgEditSketch didn't purge the handler first as is doing CmdSketcherLeaveSketch.
2023-08-27 09:26:44 +02:00
Paddle
f1f31fd3df Refactor makeAppropriateConstraint 2023-08-27 08:25:20 +02:00
Paddle
1fcfdedb05 Replace multiple occurence of selVec.size() by s_vec to clean the makeAppropriateConstraint function 2023-08-27 07:26:53 +02:00