Commit Graph

30872 Commits

Author SHA1 Message Date
Chris Hennes
cd57046c7a App/Toponaming: MappedName clang-tidy cleanup 2023-03-17 02:21:29 +01:00
Pesc0
2ec169f2a9 MappedName unit tests almost complete 2023-03-17 01:43:34 +01:00
Pesc0
c39f603744 Added initial tests to MappedName 2023-03-17 01:43:34 +01:00
Pesc0
9200160502 Added MappedName class 2023-03-17 01:42:53 +01:00
Uwe
929713af03 [FEM] improve deletion warning
- don't popup a warning if all children of an object are selected too when deleting the object
2023-03-16 21:54:09 +01:00
wmayer
a62d01ea2a Gui: set-up a logging category filter to suppress the most annoying Qt warnings 2023-03-16 20:40:00 +01:00
mosfet80
489c36fe8d Delete src/Tools/ImageTools/ImageConv directory
ImageConv Tools  are not used in the Freecad project.
2023-03-16 20:17:22 +01:00
sliptonic
07df9a4e84 Path Update license to CC 4.0 2023-03-16 19:49:40 +01:00
marioalexis
3d3c20e72a Fem: Remove unused member node 2023-03-16 17:50:21 +01:00
Russell Johnson
383902e495 Path: Update license
Addresses user-specific need in #8894
2023-03-16 17:46:27 +01:00
LarryWoestman
db3fcf9ac4 Path: Updated the licensing to Creative Commons 4.0 2023-03-16 16:33:47 +01:00
wandererfan
966c577ec4 [TD]add wait for threads to Dimension test script 2023-03-16 10:37:14 -04:00
wandererfan
d76efcd0cf [TD]prevent bleed through on Detail mat 2023-03-16 10:37:14 -04:00
wandererfan
aa93708439 [TD]skip center marks for view frame 2023-03-16 10:37:14 -04:00
wmayer
16e27eecc7 TD: port to Qt6
* in QtConcurrent::run the order of 1st and 2nd argument are swapped
* QtConcurrent::run asserts that the argument of the passed function pointer is not non-const
* Used methods of QFontDatabase are static in Qt5 and Qt6
* QTextStream::setCodec() has been removed in Qt6
* Argument of enterEvent() has changed from QEvent to QEnterEvent
* QTextCharFormat::setFamily() is deprecated
2023-03-16 09:17:39 -04:00
wandererfan
04db253b8a [TD]trap bad format spec
- bad format spec can break QString::asprintf
2023-03-16 08:32:57 -04:00
Uwe
31677a3e25 [FEM] use unique result mesh name
- it is a long-standing bug that the name of the result mesh object is not unique. For example for a frequency analysis you get for every result the same object "ResultMesh". When now a "ResultMesh" object is deleted because one result mode object should be deleted, all result modes loose their mesh.
To fix this, use a unique name for the mesh object.
2023-03-16 06:19:10 +01:00
Uwe
e85e327b8b [FEM] better pipeline connection for CalculiX
- make the connection also working for frequency and buckling analysis by directly creating/updating the pipeline where the CalculiX results are loaded
2023-03-16 06:12:14 +01:00
Gaël Écorchard
695c258fa3 Merge branch 'master' into empty_identifier_not_allowed 2023-03-15 14:14:15 +01:00
Yorik van Havre
7e7674ae4a Merge pull request #8795 from yorikvanhavre/draft-layermanager
Draft: Added LayerManager command from BIM
2023-03-15 11:59:59 +01:00
Yorik van Havre
0eb1c9ad56 Merge pull request #8818 from yorikvanhavre/draft-grid-fix
Draft: Fixes grid on/off behaviour - fixes #5878
2023-03-15 11:59:30 +01:00
Chris Hennes
902914aaff Merge pull request #8776 from chennes/toponamingIndexedName
App: Toponaming indexed name
2023-03-14 19:21:19 -05:00
wmayer
6345ae3d7a MSYS2: fix creation of ProgressIndicatorPy 2023-03-14 22:24:33 +01:00
wmayer
38a100962c Import/Part: [skip ci] restore some comments 2023-03-14 21:47:41 +01:00
Chris Hennes
ad1b5c7ff6 Addon Manager: Pylint cleanup 2023-03-14 13:59:51 -05:00
Chris Hennes
5f3b86e87c Addon Manager: Fix #8833 2023-03-14 13:59:51 -05:00
Chris Hennes
45c0b634fa App: Clean up IndexedName and add tests
Fixes the matching algorithm when provided a vector of existing names:
The original algorithm was equivalent to a 'startswith' algorithm, when it should
have been testing for exact and complete string equality. This also does some
refactoring to rename and clarify variables and functions, simplifies some
functions by using standard library calls when possible, and addresses various
linter complaints. It also applies our current clang-format to the files.

Co-authored-by: Ajinkya Dahale <AjinkyaDahale@users.noreply.github.com>
2023-03-14 13:08:23 -05:00
Paddle
71a94da497 Sketcher: Stylesheet, fix manualUpdate button style. 2023-03-14 16:28:14 +01:00
Paddle
00ffa67cbd Sketcher: Solver Message simplification 2023-03-14 16:28:14 +01:00
Andrew
6e9817025e Clean mod/import folder
Clean mod/import folder

fix code not removed.
2023-03-14 16:02:01 +01:00
luzpaz
42a91608c4 Refine previous fix for #8866 2023-03-14 15:59:33 +01:00
Adrian Insaurralde Avalos
38901f194b fix #8847 sketcher dialog tool buttons bad styling 2023-03-14 13:32:21 +01:00
wandererfan
65a3637891 [TD]add autocorrect preference 2023-03-13 19:03:32 -04:00
wmayer
6ee8ee3c73 Gui: [skip ci] fix whitespaces 2023-03-13 22:38:54 +01:00
Syres916
223f0b4b35 [Gui] Add TODO reference hack 2023-03-13 22:34:58 +01:00
Syres916
7e57d539ff [Gui] Improve comments regarding move of widget 2023-03-13 22:34:58 +01:00
Syres916
5e6cd8d51f [Gui] Fix regressions from PR7771...
specifically c24a50f486 fixes #7965 #8440
2023-03-13 22:34:58 +01:00
Jonas Bähr
503c878810 PD: Harmonize ExternalInvoluteGear and InternalInvoluteGear
There has been lots of duplicated code between those two, and the recent
changed introduced even more copy/paste code. This commit consolidates
both implementations. The two "public" entry points, `CreateExternalGear`
and `CreateInternalGear` have been kept and now call a shared helper.
2023-03-13 22:10:41 +01:00
Jonas Bähr
24578466bc PD: some cleanup of InvoluteGear
This commit removes obsolete files, gets rid of py2 habits like `xrange`
and fixes some comments and blank lines.
2023-03-13 22:10:41 +01:00
marioalexis
44914ab85f Fem: Remove property name comparison 2023-03-13 22:08:41 +01:00
Ronny Standtke
9878ecf3a2 use standard Close button for consistency with other task dialogs 2023-03-13 11:56:27 -05:00
Ronny Standtke
e89cba0769 move "Close" button of angular variant also to north 2023-03-13 11:56:27 -05:00
Abdullah Tahiri
7920f51c76 Sketcher: Constraint - notification and internal geometry command clean up
==========================================================================

- Migration of all constraints to the new non-intrusive notification framework.

- Removal of internal geometry command

- Command to create manually internal geometries is removed (deprecated).
2023-03-13 16:21:01 +01:00
luzpaz
f2e77a903b Fix misc. grammar and whitespace 2023-03-13 15:01:05 +01:00
wmayer
adf1651938 App: fixes #7833: Python2/3 FIXME code in App/FreeCADInit.py to be reviewed
The workaround was needed for Py2 on Windows. Since with Py3 it works as expected the workaround can be removed
2023-03-13 14:07:59 +01:00
wandererfan
a0f98a35df [TD]allow loading SVG item from file 2023-03-12 22:05:16 -04:00
wandererfan
53290618dd [TD]fix centering of shape
- centering of shape was not affecting the OCC TShape, so
  we now make a deep copy of the original
2023-03-12 19:21:22 -04:00
xtemp09
a1ac89f422 [TechDraw] Minor improvement of TaskLineDecor.cpp 2023-03-12 13:57:45 -04:00
Abdullah Tahiri
48ef9c794b Gui: Notifications - Convenience functions to send intrusive/non-intrusive notifications
========================================================================================

Functions to transparently send errors, warnings, notifications and translatednotifications, either
as intrusive messages (modal pop-up QMessageBox style) or as non-intrusive messages (notificationarea),
depending on the preferences of the user.

It is intended to substitute calls to QMessageBox with these functions in WBs, including the Sketcher WB.

Example:

QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
                      QObject::tr("Cannot add a constraint between two external geometries."));

Can be rewritten as:

 Gui::TranslatedNotification(obj,
               QObject::tr("Wrong selection"),
               QObject::tr("Cannot add a constraint between two external geometries."));

or

 Gui::TranslatedNotification("Sketcher",
               QObject::tr("Wrong selection"),
               QObject::tr("Cannot add a constraint between two external geometries."));

where the first parameter (obj or "Sketcher") is the notifier string. If obj is an App::DocumentObject
(or a derived class of it), internally the function transparently calls getFullLabel() to get the notifier
string.
2023-03-12 18:44:55 +01:00
marioalexis
21aee496ef Fem: Remove property name comparison 2023-03-12 18:27:39 +01:00