Commit Graph

1084 Commits

Author SHA1 Message Date
Uwe
0533550f95 remove some unnecessary Boolean checks
- checks for true/false and nullptr
2022-12-12 21:17:49 -06:00
Uwe
6e5be52325 [Part] improve PreCompiled.h handling 2022-12-07 23:20:46 +01:00
luz paz
3148ea6651 L10N: Don't translate strings that dont contain any alphabetic character
Per 0penBrain's suggestion
2022-12-02 11:57:34 +01:00
luz paz
e7490c9ee1 L10N: Don't translate "..." string
Follow-up to db18325a39
2022-12-02 11:57:34 +01:00
luz paz
fa98553775 Fix various typos and grammatical issues 2022-11-30 12:45:29 +01:00
luz paz
5b63289c5b Part: Fix header uniformity + superfluous whitespace 2022-11-30 12:44:31 +01:00
luz paz
6e542b6fad Part: remove trailing whitespace 2022-11-15 14:19:30 -06:00
Chris Hennes
7d4bb806ad GUI: Remove references to MS Shell DLG2 font 2022-11-08 17:54:59 +01:00
Uwe
6a68da4871 [Gui][Mod]: uniform spin button step size to 5%
- as discussed here: https://github.com/FreeCAD/FreeCAD/pull/7103 we have different transparency spin button step sizes. This PR uniforms them all to 5%.
2022-11-06 14:27:55 +01:00
Uwe
04fc0deb06 [Part] SectionCutting: cut long lines
- following our latest Clang coding style
2022-11-05 20:40:18 +01:00
Adrián Insaurralde Avalos
860ce0a78e Move "Close" button to north in measure dialog
for consistency with other task dialogs
2022-11-03 20:29:15 -04:00
wmayer
af0a014cf2 Qt6 port:
* QApplication::setFallbackSessionManagementEnabled has been removed
* QString::medRef() has been removed. Use QString::mid() again.
* QTextStream::setCodec has been removed
* Use operator QVariant of the QFont class to make code Qt5 and Qt6 compatible
* Signature of QTreeWidget::mimeData() has changed in Qt6. Remove TreeWidget::mimeData() because it doesn't change the implementation
* QLayout::setMargin() is deprecated in Qt5 and has been removed in Qt6. Use QLayout::setContentsMargins()
* QDateTime::toTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::toSecsSinceEpoch()
* QDesktopWidget is deprecated in Qt5 and has been removed in Qt6. Use QScreen
2022-11-01 16:55:40 +01:00
Chris Hennes
2f7be9e782 cMake: Add support for compiling against Qt6 (#7647)
Removes the BUILD_QT5 flag and adds a new FREECAD_QT_VERSION option,
which can be set to either "Auto" (default), 5, or 6. Auto detects which
version of Qt is installed on the system and chooses it. If both version
are installed, Qt5 is used.

Note that this DOES NOT implement compiling against Qt6, it only adds
the necessary cMake infrastructure to begin work on the source code
changes that will be required.
2022-10-31 09:24:09 -05:00
wmayer
dc02c3f1dd Part: [skip ci] fix German translation 2022-10-21 13:31:36 +02:00
Yorik van Havre
d8d55a0e88 Merged crowdin translations 2022-10-17 15:12:16 +02:00
Yorik van Havre
fce72e46c8 Merged crowdin translations 2022-10-10 11:06:08 +02:00
Yorik van Havre
df52f32c87 Updated ts files 2022-10-10 10:19:30 +02:00
wmayer
82866db0ca Mod: replace QRegExp with QRegularExpression 2022-10-07 14:03:53 +02:00
Yorik van Havre
8b7c61277a Merged crowdin translations 2022-10-06 12:48:05 +02:00
Yorik van Havre
d87fd4d97e Updated ts files 2022-10-06 12:16:32 +02:00
Uwe
7a7cb8184e [Part] Step import: remove unused includes
- also sort includes
2022-10-06 02:58:23 +02:00
Uwe
920468a88e [Part] fix CMake for MSVC
- as reported here: https://forum.freecadweb.org/viewtopic.php?p=630921#p630921
2022-10-06 00:41:11 +02:00
wmayer
7bc369932e Gui: [skip ci] remove DlgImportExportStep.ui resource 2022-10-05 10:31:41 +02:00
wmayer
d9d8134313 Part: split DlgImportExportStep into sub-widgets in order to be used independently 2022-10-05 09:39:04 +02:00
wmayer
74b534f479 Part: [skip ci] use correct export macro 2022-10-05 08:25:24 +02:00
Uwe
7825dbdbce [skip CI] [Part] some minor whitespaces and sorting 2022-10-05 03:05:48 +02:00
wmayer
5ee0f0a8cf Part: add dialog for STEP export 2022-10-04 20:30:03 +02:00
wmayer
5dcaa8e5bf Part: use ImportExportSettings in client code 2022-10-04 12:32:47 +02:00
wmayer
8db7ee1051 Part: implement wrapper class around Interface_Static 2022-10-03 19:03:32 +02:00
wmayer
bc1baa6808 Part: set default STEP import settings
according to https://forum.freecadweb.org/viewtopic.php?p=629883#p629883
2022-10-03 14:43:40 +02:00
wmayer
d4e734282c Part: add getter/setter to ImportExportSettings and simplify DlgImportExportStep 2022-10-03 14:27:42 +02:00
Uwe
6f74903c3d [skip CI] [Part] TaskFaceColors.cpp: whitespace 2022-09-26 03:39:10 +02:00
Uwe
24e992e97d [Part] Task*: remove unused includes - part 2/2
- also some sorting
2022-09-26 03:37:33 +02:00
Uwe
998056364d [Part] Task*: remove unused includes - part 1
- also some sorting
2022-09-26 03:05:23 +02:00
Uwe
42a19ab883 [Part] So*: remove unused includes
- also some sorting
2022-09-26 00:33:53 +02:00
Uwe
412a5a982b [Part] Dlg*: remove unused includes - part 2/2
- also some sorting
2022-09-26 00:04:46 +02:00
Uwe
219ddd0ec5 [Part] Dlg*: remove unused includes - part 1
- also some sorting
2022-09-25 21:42:37 +02:00
Roy-043
faef448019 Part: Measure preferences: Improve UI texts 2022-09-23 14:41:54 +02:00
marioalexis
34f070cf9b Part: Replace C cast 2022-09-18 11:06:51 -05:00
Uwe
2d61e15112 [Part] fix bold italic measurement text
- bold and italic font did not work for measurement text, see https://github.com/FreeCAD/FreeCAD/pull/7148#issuecomment-1247989284
2022-09-16 03:09:24 +02:00
wmayer
c6a208bb18 Part: modernize C++: replace 'typedef' with 'using' 2022-08-29 19:31:50 +02:00
wmayer
c38d8479bc Clang: fix clang-diagnostic-error 2022-08-24 17:02:17 +02:00
berniev
6953310116 Mod: Single arg ctors must be explicit 2022-08-24 16:55:20 +02:00
Jonas Bähr
a1776d3e74 Fix build on MacOS-X 10.14: missing Xerces include dir
This undoes most of the Xerces related part of the commits listed below.
The issue resolved here is that the Xerces include dir *is* set in the
CMakeLists.txt of src/Base, but it got removed from various App and Gui
dirs in src/Mod. If those now include a header from src/Base, which
itself includes xercesc, the build fails using Apple clang version 11.0.0
(clang-1100.0.33.17) on Mojave, configured using cmake 3.22.1, with
errors like the following:

In file included from .../src/Mod/Part/App/FeaturePartBoolean.cpp:34:
In file included from .../src/App/Application.h:33:
.../src/Base/Parameter.h:54:10: fatal error: 'xercesc/util/XercesDefs.hpp' file not found
 #include <xercesc/util/XercesDefs.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Finally, a full list of the commits that introduced this spurious include
dir optimization for reference:
- Drawing: commit 96ad045b91
- Image: commit dde71a21d5
- Import: commit c9d28b542f
- Inspection: commit d41f55f382
- Mesh: commit 19072b0538
- Part: commit fe213a48f0
- PartDesign: commit b037d8e240
- Path: commit f23fa31f42
- Points: commit bec723ba17
- Raytracing: commit 08d4ac63a3
- ReverseEnginering: commit 5ca787cb0e
- Robot: commit bad4809a1c
- Sketcher: commit 3c96daf105
- Spreadsheet: commit 66e8a2bef3
- Start: commit c9dee5e70a
- Surface: commit 6b04215be6
- TechDraw: commit 5e6699e48d
- Test: commit ea5b45b92c
- Web: commit ee6d631531
2022-08-24 07:40:04 +02:00
wmayer
2062f9ce87 clang: fix warnings [-Winconsistent-missing-override] 2022-08-09 17:36:25 +02:00
berniev
ddafb98813 Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
berniev
da9ebc572f Mod: redundant void 2 2022-08-08 10:27:50 +02:00
berniev
b796a0d376 Mod: use empty 2022-08-06 19:30:13 +02:00
berniev
2d4c5a4cfb Mod: use emplace_back 2022-08-05 10:36:16 +02:00
Uwe
eabffee3a5 [Part] ViewProvider: 2 to M: remove unused includes 2022-07-31 15:36:20 +02:00