Commit Graph

5917 Commits

Author SHA1 Message Date
wmayer
438c6d730f Core: Fix pre-selection of coordinate system 2024-12-10 19:11:55 +01:00
PaddleStroke
8b6b66040c SoShapeScale: Fix SoShapeScale does not take DPI scaling into account 2024-12-10 17:15:13 +01:00
PaddleStroke
396963006b Core: SoShapeScale fix weird scaling on viewport resize. See https://github.com/FreeCAD/FreeCAD/issues/18382#issuecomment-2527623758 2024-12-10 17:15:13 +01:00
wmayer
ce55d6be75 Gui: Rename ViewProviderDatum::getRoot() to ViewProviderDatum::getDatumRoot()
Before the change the compiler raised the warning: 'Gui::ViewProviderDatum::getRoot' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
In the base class the method getRoot() is declared as const while in ViewProviderDatum it's not and that's why it's considered as an overloaded method.
However, this signature causes two problems:
1. In the client code it's not always clear which version of getRoot() should be called
2. It violates const-correctness

So, trying to declare the method ViewProviderDatum::getRoot() as const it now overrides the method of the base class (and fixes the warning) but
this doesn't lead to the expected result: See https://forum.freecad.org/viewtopic.php?p=796064#p796064

The other option is to rename the method. And this gives the expected result now.
2024-12-10 12:49:42 +01:00
mwganson
0d32639a11 [core] add copy table and paste table context menu items to App::PropertyVectorList property editor, addresses issue #17804 2024-12-09 18:14:11 +01:00
wmayer
57ad518aeb Gui: Add SoPickStyle node to make an object un-selectable if needed 2024-12-09 18:10:15 +01:00
wmayer
e51eef2195 Import: Fix of alpha channel misinterpretation 2024-12-09 12:00:15 -05:00
Florian Foinant-Willig
06ceeb12b6 Fix Arc length look for angle > pi
and factorize some code
2024-12-09 11:51:02 -05:00
Vincent
acd2cc9f79 Gui: allow LineEdit to grow with text - fixes #17747 (#18099) 2024-12-09 10:38:54 -06:00
Chris Hennes
b160f1afc0 Merge pull request #18244 from wwmayer/space_mouse_runtime
Gui: Add runtime check to choose between modern and legacy space mous…
2024-12-09 11:36:17 -05:00
Kacper Donat
651cefde4d Gui: Use getObject<T>() helpers in classes
This commit is generated using regex based find and replace:

```
s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*getObject\(\s*\)\)/getObject<$1>/
s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*([^)]*)\s*->\s*getObject\(\s*\)\)/$2->getObject<$1>()/
```

To regenerate if needed.
2024-12-06 18:29:39 +01:00
Kacper Donat
deb15a57e4 Gui: Add getObject<T>() helpers to various classes
Obtaining specific kind of document object is very common task. This
commit introduces handy helper which makes that a lot easier.
2024-12-06 18:19:53 +01:00
Furgo
ad50bb9bef Improve Notification Area settings (#15207)
* Initial UI mockup for notification area settings

* First iteration of adapting the code to the Notification area settings UI reorg

* Remove redundant code to enable/disable widgets

* Reorganize notification area settings UI, improve settings and tooltips text

* Auto-wrap tooltips, add tooltips for each group

* Remove trailing space

* Fix merge error

* Further fixes from merge error

---------

Co-authored-by: WandererFan <WandererFan@gmail.com>
2024-12-06 11:15:52 -06:00
Chris Hennes
b87bdc1f84 Merge pull request #18126 from Ondsel-Development/core_LCS2
Core datums : Card2 : Core implementation
2024-12-06 12:12:04 -05:00
Chris Hennes
bb3d51d848 Merge pull request #17799 from Roy-043/Gui-FreeCAD-Light-PreferencePack-should-not-change-PickRadius
Gui: Remove rogue preferences from PreferencePacks (Light theme should not change PickRadius)
2024-12-06 12:10:17 -05:00
Florian Foinant-Willig
1eb8496aae [Core] Fix for frozen status
A frozen object prevents the document to be saved
The frozen status propagates into object inheritance
A frozen sketch is no more editable
Transform and Placement can't be changed for a frozen object
The freeze icon is reduced
2024-12-06 11:56:48 -05:00
wmayer
a4abc092b6 App: Extend/change color API:
* Also set/get alpha value in setValue/asValue
* Add new static method fromValue
2024-12-06 11:37:45 -05:00
luzpaz
96c838f3b9 Fix various typos
Found with codespell
2024-12-04 23:18:00 -05:00
Vincent Belpois
a97677ed2f Fix incorrect displayed default compression level in preferences 2024-12-04 09:50:50 -05:00
wmayer
7dbef77f4a CMake: Handle build time checks to choose between modern and/or legacy space mouse devices 2024-12-03 20:32:06 +01:00
Aik-Siong Koh
3326c33d83 Assembly: Simulation implementation 2024-12-03 20:07:04 +01:00
wmayer
3884e2c34a Gui: Add runtime check to choose between modern and legacy space mouse devices 2024-12-03 18:54:21 +01:00
wmayer
7fdc3b807a Fix compiler warnings 2024-12-03 10:16:08 +01:00
Ladislav Michl
0ee3c9f8e6 Base: Drop QString-std::string conversion functions from Tools
Convenience helpers function Tools::toStdString and Tools::fromStdString
were implemented for Qt4 or older to perform utf8 aware conversion as
QString::toStdString/QString::fromStdString were using toAscii/fromAscii
internally (see https://dreamswork.github.io/qt4/classQString.html).

Since Qt5 QString uses toUtf8/fromUTf8, which makes the helper functions
obsolete (see https://doc.qt.io/qt-5/qstring.html#fromStdString).
2024-12-02 23:30:53 -05:00
Pieter Hijma
4c4fe8cc75 Gui: Fix VarSet dialog 2 digit problem 2024-12-02 12:17:56 -05:00
wmayer
63ad7d3fea Gui: Do not ignore alpha channel when converting QImage to SoSFImage
Fixes #18213: Sketcher constraints have black box backgrounds
2024-12-01 20:14:00 -05:00
Stephen Hurd
a8ecf5c517 Fix compile on FreeBSD with spnav
If spnav is installed on a FreeBSD system, it will be detected,
but the build will fail.  With this change, it both builds
successfully and works on FreeBSD.
2024-12-01 10:40:30 +01:00
mosfet80
9f0e9a2af4 Clean MainWindow.cpp
Removed unused code
2024-11-30 14:13:46 +01:00
Jiří Pinkava
800a5cffbb Gui: remove unused MDITabbar and MainWindowTabBar classes 2024-11-29 21:20:57 +01:00
Max Wilfinger
45a95599a0 remove .xpm icons 2024-11-29 12:09:42 -05:00
PaddleStroke
ef3445e9e1 Core / Assembly: Add a way for vp edit modes to be restored. 2024-11-29 12:04:25 -05:00
bdieterm
9410a5e982 Gui: use utf-8 encoding for saving recorded macros
FCMacros always have the header "# -*- coding: utf-8 -*".
But the QTextStream class in Qt5 does not always use utf-8 for saving the text file.
2024-11-29 11:55:17 -05:00
PaddleStroke
ac788df608 Sketcher: Rename External to Projection 2024-11-29 11:36:55 -05:00
wmayer
a372678e98 Gui: Support of converting 64-bit images 2024-11-28 19:41:18 +01:00
wmayer
b9cc17b2fd Gui: Add a new display mode for image without shading 2024-11-28 19:39:00 +01:00
wmayer
238390127b Gui: Allow to override onBeforeChange in view objects 2024-11-28 19:38:10 +01:00
wwmayer
c0b9191cf5 Add doc string to SoFCTransform
Co-authored-by: Benjamin Nauck <benjamin@nauck.se>
2024-11-28 19:31:44 +01:00
wmayer
f7da5f8505 Core: Implement SoFCTransform node
In its doAction() method it only sets the model matrix if it's not the identity matrix.
This improves the issue #7606
2024-11-28 19:31:44 +01:00
wmayer
5202748c0a Gui: Fix some linter warnings 2024-11-28 18:41:42 +01:00
wmayer
f741655bf6 Gui: Apply clang-format 2024-11-28 18:41:42 +01:00
wmayer
82b4dcd58a Gui: Fixes #16637: Can no longer set transparency of Link faces 2024-11-28 18:41:42 +01:00
wmayer
d798901515 Core: Fix crash in ActiveObjectList
Forum: https://forum.freecad.org/viewtopic.php?t=91823
2024-11-28 17:15:39 +01:00
wmayer
3595c301b7 Gui: Refactor PreferencePackManager & DlgPreferencePackManagementImp 2024-11-27 20:29:44 -05:00
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
PaddleStroke
b7f1a0c150 ViewProviderOrigin: Renamed to ViewProviderCoordinateSystem 2024-11-27 12:15:53 +01:00
PaddleStroke
19702dcb21 Core: Add App::LocalCoordinateSystem.
Most of App::Origin is moved into this sub class of App::Origin.
Add App::Point. Change graphics of the planes/axis.
Remove scale-by-content behavior and make it fixed size on screen.
2024-11-26 17:36:02 +01:00
wmayer
370c08213c Core: Fix unicode path names under Windows 2024-11-26 11:22:11 -05:00