Commit Graph

34024 Commits

Author SHA1 Message Date
wmayer
efe323395e TD: fix possible crash in QGIWeldSymbol::customBoundingRect()
Forum thread: https://forum.freecad.org/viewtopic.php?t=80203
2023-08-09 10:48:11 -04:00
wmayer
c15be7d714 fixes #10105: Tabstop assignment compilation warning 2023-08-09 16:29:31 +02:00
wmayer
30ae3e6b5c fixes #10127: Usage of std::filesystem in test bumps minimum GCC version to GCC 8 2023-08-09 13:52:42 +02:00
Syres916
2d4f379d9d Improve Sliders with some colour 2023-08-09 10:53:29 +02:00
Syres916
d5feaae615 Improve grammar and remove whitespace 2023-08-09 10:53:29 +02:00
Syres916
d34ceeae26 Improve Visibility for Urls and Expressions 2023-08-09 10:53:29 +02:00
Paddle
7e833518b3 Preference Page Theme : remove jun from .ui file. 2023-08-09 10:19:29 +02:00
Roy-043
9e178dbcb8 Drawing: Avoid dictionary.keys() where possible 2023-08-09 10:15:01 +02:00
Roy-043
e23c56e6c8 Import: Avoid dictionary.keys() where possible 2023-08-09 10:10:35 +02:00
Roy-043
df95050687 Merge branch 'master' into Path-Avoid-dictionary.keys()-if-possible 2023-08-09 08:22:46 +02:00
Chris Hennes
3bad74fe7d Update translations 2023-08-08 17:52:59 -06:00
wmayer
948cbfccd9 modernize C++: avoid bind
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
Chris Mayo
bbb87fcf0d Fix hicolor theme application icon names
Fixed-size icons were not available as org.freecad.FreeCAD and
XDGData/org.freecad.FreeCAD.svg was a duplicate of Gui/Icons/freecad.svg.
2023-08-08 19:25:14 +01:00
Chris Mayo
708eb477de Finish renaming desktop filename to org.freecad.FreeCAD
The QGuiApplication::setDesktopFileName() call was changed in [1] but
the desktop file and other files that reference it were not.

As shown by Looking Glass [2] on X11 updating these files is still
not enough for GNOME to associate the process with the desktop file,
a StartupWMClass entry is added to the desktop file to fix this.

[1]
87b0935dff ("Migrate domain name from freecadweb to freecad (#9352)", 2023-04-24)

[2]
https://blogs.gnome.org/mclasen/2016/11/15/help-my-app-icon-is-missing/
2023-08-08 19:25:14 +01:00
Pieter Hijma
c765d64891 Gui: Expose the upDirection vector to Python 2023-08-08 13:53:50 -04:00
wmayer
52e1c7c33b modernize C++: move from boost::bind to std::bind 2023-08-08 17:36:13 +02:00
Roy-043
2bb3dd1c7e Mesh: Avoid dictionary.keys() where possible 2023-08-08 17:29:05 +02:00
wmayer
40a9f47489 Path: make export macro accessible in header file
It's not recommended any more to keep the export macro in the PreCompiled.h because many IDEs fail to fetch the export macro and raise a parsing error instead.
2023-08-08 17:27:28 +02:00
Roy-043
393661077d Path: Avoid dictionary.keys() if possible 2023-08-08 15:56:22 +02:00
luzpaz
a6202bc3ce Fix various typos 2023-08-08 14:25:00 +02:00
Paddle
4f4919a3c8 Move DlgSettingsTheme 2023-08-08 11:12:48 +02:00
Paddle
34eb609415 Move all the preference pages to PreferencePages subfolder. 2023-08-08 11:12:48 +02:00
Paddle
6487627b12 Change DlgEditor file name 2023-08-08 11:12:48 +02:00
Paddle
b9d65bd0fa Change DlgEditor to DlgSettingsEditor 2023-08-08 11:12:48 +02:00
Paddle
bc7c159dd1 Change DlgReportView file names. 2023-08-08 11:12:48 +02:00
Paddle
dc738f0dee Replace DlgReportView by DlgSettingsReportView in the files. 2023-08-08 11:12:48 +02:00
Paddle
760f014274 Change the 'DlgGeneral' file names. 2023-08-08 11:12:48 +02:00
Paddle
7ae3f6be8b Replace DlgGeneralImp by DlgSettingsGeneral. 2023-08-08 11:12:48 +02:00
wmayer
ec73caa40e modernize C++: make unique 2023-08-07 19:51:30 -06:00
wmayer
c2e17824fa modernize C++: raw string literal 2023-08-07 19:51:15 -06:00
Paddle
8f8a799726 Add 'type' to MetadataPy, MetadataPyImp and addonmanager_metadata.py 2023-08-07 10:52:08 -06:00
Paddle
236bd2c189 Add highlight color and focus color to theme customization. 2023-08-07 10:52:08 -06:00
Paddle
d200dca4b0 Prevent the pref pack widget from showing themes 2023-08-07 10:52:08 -06:00
Paddle
d73434639d - Create a 'Theme' pref page in which 'StyleSheet' is moved, and a secondary color pref is created.
- 'StyleSheet' combobox is removed from general and replaced by a 'Theme' combobox.
- Theme combobox triggers the pref packs of type 'Theme'.
2023-08-07 10:52:08 -06:00
Paddle
607f61a5d5 Add 'type' metadata to build-in themes preference packs. 2023-08-07 10:52:08 -06:00
Paddle
5cd2fa71da Add 'type' to MetaData 2023-08-07 10:52:08 -06:00
bdieterm
ed7427330e Part: allow reduction of Part ViewProvider tesselation resolution
Problem description
To display a shape, the ViewProvider creates a mesh of the shape data. The
resolution depends also on the two parameters "Angular Deflection" and
"Deviation" in the View properties. (The values of these parameters are also
updated for all objects when changing these settings in the Preferences
dialog).
Changing the parameters from a high value to a lower value has an immediate
effect on the displayed shape -- for example a circle will be displayed finer
with more line segments. But changing the parameter back to the higher value
(with less resolution) will keep the finer view-mesh instead of calculating a
coarser one. To get back to the coarse view, the object has to be manually
recomputed or the file re-opened.

Solution
I just set the meshing parameter AllowQualityDecrease to True. I guess that
this was not implemented before because this parameter is quite new (introduced
in OCC v7.5 in the year 2020).
2023-08-07 10:19:58 -06:00
MisterMaker
3f32672f29 [Stylesheets] Sliders and some cleanup. (#9910)
Improve sliders and checkboxes

* Delete CMakePresets.json
* Delete VSInheritEnvironments.txt
* Fix for calltips transparant issue https://github.com/FreeCAD/FreeCAD/pull/9715#issuecomment-1633146515
* removed inkscape from a bunch of svg files
* Small bug grid color for draft workbench was to dark.
* The sketcher colors are added.
* The transparant calltips: https://github.com/FreeCAD/FreeCAD/pull/9715#issuecomment-1633146515
* There were some corner dots that I removed.
* I fixed the splitter not working with hovering.
* I also removed the extra dark splitter background, so now you won't see the splitters unless you hover over them.
* Also fixed the url label color.
* These fixes can be tested true the theme's beta addon.
* added preference packs
* Fix for transparant in Qwidget disabled. https://github.com/FreeCAD/FreeCAD/issues/10077
2023-08-07 10:05:00 -06:00
Yorik van Havre
81b9f2fcec Merge pull request #9909 from Rexbas/rotationcenter
Gui: Add rotation center indicator
2023-08-07 17:57:13 +02:00
Benjamin Bræstrup Sayoc
da2ae719f2 [Everywhere] FileInfo::hasExtension for multiple values (#9774)
* [Base] Add hasExtension for multiple values

* [Gui] Use hasExtension for multiple values

* [Drawing] Use hasExtension for multiple values

* [Fem] Use hasExtension for multiple values

* [Import] Use hasExtension for multiple values

* [Mesh] Use hasExtension for multiple values

* [Part] Use hasExtension for multiple values

* [TechDraw] Use hasExtension for multiple values
2023-08-07 09:55:19 -06:00
tomate44
8b2c2dab51 Surface: fix BlendCurve relative size
values independent of the number of control points are more intuitive
2023-08-07 09:53:00 -06:00
Petter Reinholdtsen
278224777b Avoid Debian specific binary name and path and only include argument change. 2023-08-07 09:38:42 -06:00
Petter Reinholdtsen
06c4d72ed6 Change XDG desktop entry to only run single instance of FreeCAD.
This ensure invoking it to open different files only start the
program once, and load new files into the already running instance.

Patch by Håvard Flaget Aasen <haavard_aasen@yahoo.no> and
Tobias Frost <tobi@debian.org>.

Related to https://bugs.debian.org/1029846 and
bb3bda1349 .

Been part of the Debian edition of FreeCAD since 2021.
2023-08-07 09:38:42 -06:00
wmayer
b6f331f4fa modernize C++: use transparent functors 2023-08-07 16:08:35 +02:00
wmayer
31ed14db83 modernize C++: use noexcept 2023-08-07 16:06:58 +02:00
wmayer
df93b14ec0 modernize C++: use emplace 2023-08-06 20:29:56 -06:00
wmayer
dbad96d43e modernize C++: use using 2023-08-06 23:17:10 +02:00
Benjamin Bræstrup Sayoc
630554f251 [Repo] Always break parameters and arguments
If the line is too long, parameters and arguments will now wrap on the next lines with one block indent, one arguments or parameter per line.
2023-08-06 14:39:54 -06:00
wmayer
7a3106d31b modernize C++: use bool literals 2023-08-06 01:35:39 +02:00
0penBrain
5be3ad33aa Gui: convert TreeView prefs in General/Selection to PrefCheckBox 2023-08-05 16:29:39 -06:00