Commit Graph

39333 Commits

Author SHA1 Message Date
Ladislav Michl
6860aab7ee Gui: propertyeditor: use std::string setPropertyValue
Avoid std::string->QString->std::string where possible.
2024-11-27 17:28:16 +01:00
Ladislav Michl
a80c87c3a7 Gui: propertyeditor: add setPropertyValue with std::string argument 2024-11-27 17:28:16 +01:00
Ladislav Michl
7c2acdbf09 Gui: propertyeditor: Reformat, fix line endings
Instead of fixing whitespaces do a full reformat according to
current rules. No other changes.
2024-11-27 17:28:16 +01:00
Yury Shvedov
8e04c0a3dd Gui: take in account module-path argument
Use paths passed with `--module-path` argument to search for preference
packs

Change-Id: If168dbd99a826757290ee6b918f5b712305fe2bb
2024-11-27 15:43:28 +01:00
Jacob Oursland
fb7ce6405b CMake: Add missing target_link_directories() for OCCT. 2024-11-26 16:03:08 -05:00
Chris Hennes
33a83f0ee4 Update versions in SECURITY.md 2024-11-26 19:55:10 +01:00
wmayer
370c08213c Core: Fix unicode path names under Windows 2024-11-26 11:22:11 -05:00
wmayer
55d5123b9a Start: Implement Thumbnail Managing Standard
as specified here: https://specifications.freedesktop.org/thumbnail-spec/0.8.0/

The changes are:
* use MD5 as hashing algorithm
* write thumbnails to ~/.cache/thumbnails/normal
2024-11-26 11:14:52 -05:00
Jacob Oursland
e8e82c4ff6 App: Reduce BOOST_VERSION workaround to fix boost symbol linker error on Win-Qt5. 2024-11-26 11:13:21 -05:00
Jacob Oursland
d7e8cc8a54 Mesh: Add template type to WM4 TRational variables. 2024-11-26 11:10:13 -05:00
Jacob Oursland
ae89309329 Mesh: move counter declaration to loop-local. 2024-11-26 11:10:13 -05:00
PaddleStroke
5eb09c8e45 Core: GetGlobalPlacement: empty subname should not return. 2024-11-26 10:59:48 -05:00
wmayer
3070832e54 Start: Show thumbnail if filename contains a dot
Fixes #18109
2024-11-26 09:42:05 -05:00
wmayer
7912dc2a62 Gui: Fix issues in About dialog 2024-11-26 09:41:24 -05:00
BMaxV
d365d66413 Change button text to confirm copy. (#17696)
* Change button text to confirm copy.
* translation and timer->reset
* timer->single shot + text variable

---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-11-25 13:59:49 -06:00
Max Wilfinger
3ef47da598 Merge pull request #18125 from Ondsel-Development/core_LCS1
Core Datum : Card 1 : icons
2024-11-25 20:58:42 +01:00
Kacper Donat
710542d121 Assembly: Refactor get/setDraggerPlacement
It seems that Base has very handy helpers for converting between various
types. This simplifies code of ViewProviderAssembly::get/setDraggerPlacement a
lot.
2024-11-25 12:27:35 -05:00
Florian Foinant-Willig
5969df37f4 Sketcher infinite axes 2024-11-25 18:27:10 +01:00
PaddleStroke
fbd7f7090c Sketcher: ViewProviderSketch remove unecessary updateColor and applyCursor. 2024-11-25 12:25:58 -05:00
wmayer
eb3ce44b58 Core: Do not detach object from document before the call of breakDependency
This fixes #17900
2024-11-25 18:25:17 +01:00
Roy-043
9ec977f89d Draft: Allow selection of subelements for Draft_Fillet
Fixes #17505.
2024-11-25 18:21:50 +01:00
PaddleStroke
99b2f23214 Assembly: Fix joints not being deleted when subassembly is deleted. 2024-11-25 18:20:46 +01:00
Benjamin Nauck
8945260a7e Add two options to disable addons
Addons can be disabled in two ways:
 * by adding a command line argument `--disable-addon <addon>`
 * and by creating a `ALL_ADDONS_DISABLED` file in the mod root of the addons to disable
2024-11-25 12:16:43 -05:00
bgbsww
7c1a5ebd69 Tweak VSCode debug port to work with current versions 2024-11-25 12:09:28 -05:00
PaddleStroke
a9bc28daa0 Add Std_Point.svg icon for datum points 2024-11-25 18:06:28 +01:00
PaddleStroke
93c807b6a6 Update Std_Axis.svg as it had poor visibility in dark themes: planes and axis looked both like planes. 2024-11-25 18:06:27 +01:00
wmayer
c32628ec0d Part: Fix alpha <> transparency conversion 2024-11-25 12:05:25 -05:00
Chris Hennes
e3f6fc5708 Merge pull request #14362 from je-cook/fix_deprecated_import_style
Fem: Fix deprecated import style
2024-11-25 12:02:11 -05:00
marioalexis
96cc00b74e Fem: Check empty remaining femelements array - fixes #17570 2024-11-25 12:01:44 -05:00
Chris Mayo
7f0d69a3bd BIM: Replace use of ArchWorkbench in ArchSelectionObserver 2024-11-25 18:00:52 +01:00
David Carter
89049add9e Materials: Physical property attributes
Add dynamic attributes to report the physical attributes of a part that
are automatically recalculaated when the shape or material changes.
These values are accessible from the part data display and as attributes
within Python
2024-11-25 18:00:29 +01:00
PaddleStroke
89fcfe95ee Sketcher: Offset & tranforms: enable external geos input. (#17615)
* Sketcher: Offset & tranforms: enable external geos input.
* Sketcher: enable delGeometries to handle external geos.
2024-11-25 10:57:16 -06:00
hasecilu
fe1cfca339 Gui: Add suffix to programatically generated preference page's spinboxes
Units contain a leading space.

Command to generate the C++ code on `src` dir:
$ python3 -m cogapp -r Gui/PreferencePages/DlgSettingsAdvanced.{h,cpp}
2024-11-25 17:52:51 +01:00
hasecilu
eebe20806d Gui: Add "px" suffix on preference page as width unit 2024-11-25 17:52:51 +01:00
Syres916
c016e81a7f [Part] [Post 1.0] Preferences > Shape view > Maximum angle deflection warn user... (#16007)
* [Part] Preferences max angle deflection alert

* [Part] Comment added as requested
2024-11-25 10:50:58 -06:00
wandererfan
1de4dc600d [TD]fix area calculation 2024-11-25 17:49:21 +01:00
paul
6c85c37b38 [Draft Gui_Stretch] Improve Stretch Rectangle Behaviour (#18063)
* [Draft gui_stretch] Improve Stretch Rectangle Behaviour

Feature Improvement discussed at FreeCAD Forum :
- https://forum.freecad.org/viewtopic.php?t=92124#p792118  (Draft_Stretching the whole rectangle creates a new wire)

Currently, 3 cases in general, proposed PR improve Case 3 below :

1. The original object is a Rectangle, if after stretching it is no longer a rectangle, it makes a copy turning it into a Wire which reflect the result of stretching.
   - Current behanviour is good for user, no change.
2. If after stretching it is still a rectangle, the code just resize the original.
   - Current behanviour is good for user, no change.
3. Now, if the user 'stretch' the whole rectangle, the code creates a copy as DWire in the 'stretched location'.
** - Users find this not intuitive, better just move the whole rectangle.
2024-11-25 14:47:06 +01:00
Roy-043
0656f19bde BIM+Draft: Bring back human figure
* For the human figure attached to the Draft grid a hard-coded point list is used (instead deriving the points from human figure.brep). This is more efficient and avoids a dependency on the BIM WB.
* The default for the human figure preference of the grid was changed to false. And the tooltip adjusted.
2024-11-25 13:34:53 +01:00
Roy-043
ed209dab68 Draft: minor improvements for gui_edit.py (#17970)
* Draft: minor improvements for gui_edit.py

* Fix error...
2024-11-25 13:34:23 +01:00
Roy-043
df97a3ad21 BIM: Fix calculation of fence sections (#18042)
* BIM: Fix calculation of fence sections

The length  and placement of fence sections was only correct if they were cut to size.

* Fix required another change.
2024-11-25 12:24:39 +01:00
Roy-043
638e677bd3 Increase the delay to be on the safe side. 2024-11-25 11:40:55 +01:00
Roy-043
51666cafc0 Draft: avoid listing status bar widgets in toolbar area context menu
Fixes #16832.

In V1.0 the two Draft status bar widgets appear as checkboxes without label in the toolbar area context menu. They should not be listed in that menu, as was the case in V0.21. Their visibility is controlled via preferences.

Additionally, in case the Draft WB is only preloaded, the widgets would display in another workbench. This is prevented by using a delay.
2024-11-25 11:40:55 +01:00
marioalexis
45134cef16 App: Set PropertyColor to opaque by default 2024-11-23 19:48:44 +01:00
mosfet80
b5a43eb220 [App] clean AppJtReader.cpp (#15626)
Clean code
2024-11-22 11:25:42 -06:00
marioalexis
98a15bcc9d Fem: Avoid legacy Netgen meshing if there is no referenced shape - fixes #17814 2024-11-22 12:24:46 -05:00
marioalexis
be8dfbfc7e Fem: Add preference entry to set Gmsh log verbosity - fixes #17673 2024-11-22 12:24:11 -05:00
mwganson
a9554c2fe0 [Part CheckGeometry] add results entry for valid shapes without any errors, show skipped objects, add report view generator link in results panel label, addresses issue #17545 2024-11-22 12:22:01 -05:00
Chris Hennes
64f63ae97e Merge pull request #15528 from ppphp/move_some_inventor
refactor: move some nodes to Inventor folder
2024-11-22 12:20:50 -05:00
bdieterm
b63ba9b4f4 Gui: improve performance of macro execution and fix time measurement
This commit improves the performance of Python code from FreeCAD macros by:
* using the chrono C++ stdlib header instead of QTime
* checking for the elapsed time ONLY every 1000th Python opcode execution

And this commit fixes time measurement by using a monotonic time source
instead of a normal one.
The previous implementation using QTime would give a negative time duration
if the start time is 23:59:59 and the end time is 00:00:01.

related commit: e78f74b01a
2024-11-22 12:20:14 -05:00
Kim Kirwan
a0e0713fef Repair XML Files - fixes #10730
In ../src/Mod/Part/App/Geom2d/ sixteen out of seventeen XML
files needed repair as per the GitHub issue. Tabbing in those
sixteen files set to 4-spaces no-tab-chars. Other minor
changes as needed.
2024-11-22 12:18:11 -05:00