Skip to content

Commit

Permalink
Merge branch 'FreeCAD:main' into fontweight
Browse files Browse the repository at this point in the history
  • Loading branch information
obelisk79 authored Feb 12, 2024
2 parents b612e5f + a1fcb66 commit 5b214d7
Show file tree
Hide file tree
Showing 806 changed files with 150,322 additions and 151,184 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sub_buildMacOSCondaApple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ jobs:

steps:
- name: Checking out source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: .conda/freecad
environment-file: conda/conda-env.yaml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sub_buildMacOSCondaIntel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ jobs:

steps:
- name: Checking out source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: .conda/freecad
environment-file: conda/conda-env.yaml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sub_buildUbuntu2004.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:

steps:
- name: Checking out source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Install FreeCAD dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sub_buildUbuntu2204Conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ jobs:

steps:
- name: Checking out source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: .conda/freecad
environment-file: conda/conda-env.yaml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sub_buildWindowsConda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ jobs:

steps:
- name: Checking out source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: .conda/freecad
environment-file: conda/conda-env.yaml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sub_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Make needed directories, files and initializations
Expand Down
4 changes: 1 addition & 3 deletions cMake/FreeCAD_Helpers/CompilerChecksAndSetups.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ macro(CompilerChecksAndSetups)
endif()
add_definitions(-DGL_SILENCE_DEPRECATION)
elseif (UNIX)
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.9)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-undefined-var-template")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-undefined-var-template")
endif()

# older boost.preprocessor turn off variadics for clang
Expand Down
22 changes: 13 additions & 9 deletions cMake/FreeCAD_Helpers/SetupQt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,29 @@ if (FREECAD_QT_MAJOR_VERSION EQUAL 5)
elseif (FREECAD_QT_MAJOR_VERSION EQUAL 6)
set (Qt6Core_MOC_EXECUTABLE Qt6::moc)
endif()

if(BUILD_GUI)
if (FREECAD_QT_MAJOR_VERSION EQUAL 6)
list (APPEND FREECAD_QT_COMPONENTS GuiTools)
list (APPEND FREECAD_QT_COMPONENTS SvgWidgets)
elseif (FREECAD_QT_MAJOR_VERSION EQUAL 5)
if (FREECAD_QT_MAJOR_VERSION EQUAL 5)
if (WIN32)
list (APPEND FREECAD_QT_COMPONENTS WinExtras)
endif()
endif()
list (APPEND FREECAD_QT_COMPONENTS OpenGL PrintSupport Svg UiTools Widgets LinguistTools)
if (FREECAD_QT_MAJOR_VERSION EQUAL 6)
elseif (FREECAD_QT_MAJOR_VERSION EQUAL 6)
list (APPEND FREECAD_QT_COMPONENTS GuiTools)
list (APPEND FREECAD_QT_COMPONENTS SvgWidgets)
list (APPEND FREECAD_QT_COMPONENTS Core5Compat)
endif()

list (APPEND FREECAD_QT_COMPONENTS OpenGL PrintSupport Svg UiTools Widgets LinguistTools)

if (BUILD_WEB)
list (APPEND FREECAD_QT_COMPONENTS WebEngineWidgets)
endif()

if(BUILD_DESIGNER_PLUGIN)
list (APPEND FREECAD_QT_COMPONENTS Designer)
endif()
endif()

if (ENABLE_DEVELOPER_TESTS)
list (APPEND FREECAD_QT_COMPONENTS Test)
endif ()
Expand All @@ -37,6 +40,7 @@ foreach(COMPONENT IN LISTS FREECAD_QT_COMPONENTS)
set(Qt${COMPONENT}_FOUND ${Qt${FREECAD_QT_MAJOR_VERSION}${COMPONENT}_FOUND})
set(Qt${COMPONENT}_VERSION ${Qt${FREECAD_QT_MAJOR_VERSION}${COMPONENT}_VERSION})
endforeach()

set(CMAKE_AUTOMOC TRUE)
set(CMAKE_AUTOUIC TRUE)
set(QtCore_MOC_EXECUTABLE ${Qt${FREECAD_QT_MAJOR_VERSION}Core_MOC_EXECUTABLE})
Expand Down Expand Up @@ -75,13 +79,13 @@ if (Qt${FREECAD_QT_MAJOR_VERSION}Core_VERSION VERSION_LESS 5.15.0)

# Since Qt 5.15 Q_DISABLE_COPY_MOVE is defined
set (HAVE_Q_DISABLE_COPY_MOVE 0)
configure_file(${CMAKE_SOURCE_DIR}/src/QtCore.h.cmake ${CMAKE_BINARY_DIR}/src/QtCore.h)
else()
# Since Qt 5.15 Q_DISABLE_COPY_MOVE is defined
set (HAVE_Q_DISABLE_COPY_MOVE 1)
configure_file(${CMAKE_SOURCE_DIR}/src/QtCore.h.cmake ${CMAKE_BINARY_DIR}/src/QtCore.h)
endif()

configure_file(${CMAKE_SOURCE_DIR}/src/QtCore.h.cmake ${CMAKE_BINARY_DIR}/src/QtCore.h)

function(qt_find_and_add_translation _qm_files _tr_dir _qm_dir)
file(GLOB _ts_files ${_tr_dir})
set_source_files_properties(${_ts_files} PROPERTIES OUTPUT_LOCATION ${_qm_dir})
Expand Down
4 changes: 3 additions & 1 deletion src/App/FeaturePythonPyImp.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
virtual ~_class_(); \
};

#if PY_VERSION_HEX >= 0x03090000
#if PY_VERSION_HEX >= 0x030c0000
#define PYTHON_TYPE_SLOTS 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
#elif PY_VERSION_HEX >= 0x03090000
#define PYTHON_TYPE_SLOTS 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
#elif PY_VERSION_HEX >= 0x03080000
#define PYTHON_TYPE_SLOTS 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Expand Down
3 changes: 3 additions & 0 deletions src/App/FeaturePythonPyImp.inl
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ PyTypeObject FeaturePythonPyT<FeaturePyT>::Type = {
nullptr /*tp_finalize */
#if PY_VERSION_HEX >= 0x03080000
,0 /*tp_vectorcall */
#if PY_VERSION_HEX >= 0x030c0000
,0 /*tp_watched */
#endif
#endif
};

Expand Down
6 changes: 6 additions & 0 deletions src/Base/PyObjectBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ static PyTypeObject PyBaseProxyType = {
nullptr /*tp_finalize */
#if PY_VERSION_HEX >= 0x03090000
,0 //NOLINT /*tp_vectorcall */
#if PY_VERSION_HEX >= 0x030c0000
,0 /*tp_watched */
#endif
#elif PY_VERSION_HEX >= 0x03080000
,0 /*tp_vectorcall */
/* bpo-37250: kept for backwards compatibility in CPython 3.8 only */
Expand Down Expand Up @@ -235,6 +238,9 @@ PyTypeObject PyObjectBase::Type = {
nullptr /*tp_finalize */
#if PY_VERSION_HEX >= 0x03090000
,0 //NOLINT /*tp_vectorcall */
#if PY_VERSION_HEX >= 0x030c0000
,0 /*tp_watched */
#endif
#elif PY_VERSION_HEX >= 0x03080000
,0 /*tp_vectorcall */
/* bpo-37250: kept for backwards compatibility in CPython 3.8 only */
Expand Down
3 changes: 3 additions & 0 deletions src/Base/Quantity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <array>
#endif

#include <Base/Tools.h>
#include "Quantity.h"
#include "Exception.h"
#include "UnitsApi.h"
Expand Down Expand Up @@ -255,6 +256,8 @@ QString Quantity::getSafeUserString() const
retString = QStringLiteral("%1 %2").arg(this->myValue).arg(this->getUnit().getString());
}
}
retString =
QString::fromStdString(Base::Tools::escapeQuotesFromString(retString.toStdString()));
return retString;
}

Expand Down
6 changes: 3 additions & 3 deletions src/Base/Resources/translations/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<name>UnitsApi</name>
<message>
<location filename="../../UnitsApi.cpp" line="69"/>
<source>Standard (mm, kg, s, degree)</source>
<source>Standard (mm, kg, s, °)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="71"/>
<source>MKS (m, kg, s, degree)</source>
<source>MKS (m, kg, s, °)</source>
<translation type="unfinished"></translation>
</message>
<message>
Expand Down Expand Up @@ -40,7 +40,7 @@
</message>
<message>
<location filename="../../UnitsApi.cpp" line="83"/>
<source>Imperial for Civil Eng (ft, ft/sec)</source>
<source>Imperial for Civil Eng (ft, ft/s)</source>
<translation type="unfinished"></translation>
</message>
<message>
Expand Down
12 changes: 6 additions & 6 deletions src/Base/Resources/translations/Base_be.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<name>UnitsApi</name>
<message>
<location filename="../../UnitsApi.cpp" line="69"/>
<source>Standard (mm, kg, s, degree)</source>
<translation>Стандартная (мм, кг, с, градус)</translation>
<source>Standard (mm, kg, s, °)</source>
<translation type="unfinished">Standard (mm, kg, s, °)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="71"/>
<source>MKS (m, kg, s, degree)</source>
<translation>Сістэма МКС (м, кг, с, градус)</translation>
<source>MKS (m, kg, s, °)</source>
<translation type="unfinished">MKS (m, kg, s, °)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="73"/>
Expand Down Expand Up @@ -40,8 +40,8 @@
</message>
<message>
<location filename="../../UnitsApi.cpp" line="83"/>
<source>Imperial for Civil Eng (ft, ft/sec)</source>
<translation>Брытанская для грамадскіх інжынераў (футы, футы/с)</translation>
<source>Imperial for Civil Eng (ft, ft/s)</source>
<translation type="unfinished">Imperial for Civil Eng (ft, ft/s)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="85"/>
Expand Down
12 changes: 6 additions & 6 deletions src/Base/Resources/translations/Base_ca.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<name>UnitsApi</name>
<message>
<location filename="../../UnitsApi.cpp" line="69"/>
<source>Standard (mm, kg, s, degree)</source>
<translation type="unfinished">Standard (mm, kg, s, degree)</translation>
<source>Standard (mm, kg, s, °)</source>
<translation type="unfinished">Standard (mm, kg, s, °)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="71"/>
<source>MKS (m, kg, s, degree)</source>
<translation type="unfinished">MKS (m, kg, s, degree)</translation>
<source>MKS (m, kg, s, °)</source>
<translation type="unfinished">MKS (m, kg, s, °)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="73"/>
Expand Down Expand Up @@ -40,8 +40,8 @@
</message>
<message>
<location filename="../../UnitsApi.cpp" line="83"/>
<source>Imperial for Civil Eng (ft, ft/sec)</source>
<translation type="unfinished">Imperial for Civil Eng (ft, ft/sec)</translation>
<source>Imperial for Civil Eng (ft, ft/s)</source>
<translation type="unfinished">Imperial for Civil Eng (ft, ft/s)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="85"/>
Expand Down
12 changes: 6 additions & 6 deletions src/Base/Resources/translations/Base_cs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<name>UnitsApi</name>
<message>
<location filename="../../UnitsApi.cpp" line="69"/>
<source>Standard (mm, kg, s, degree)</source>
<translation>Standardní (mm, kg, s, stupeň)</translation>
<source>Standard (mm, kg, s, °)</source>
<translation type="unfinished">Standard (mm, kg, s, °)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="71"/>
<source>MKS (m, kg, s, degree)</source>
<translation>MKS (m, kg, s, stupeň)</translation>
<source>MKS (m, kg, s, °)</source>
<translation type="unfinished">MKS (m, kg, s, °)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="73"/>
Expand Down Expand Up @@ -40,8 +40,8 @@
</message>
<message>
<location filename="../../UnitsApi.cpp" line="83"/>
<source>Imperial for Civil Eng (ft, ft/sec)</source>
<translation>Imperiální pro stavebnictví (ft, ft/sec)</translation>
<source>Imperial for Civil Eng (ft, ft/s)</source>
<translation type="unfinished">Imperial for Civil Eng (ft, ft/s)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="85"/>
Expand Down
12 changes: 6 additions & 6 deletions src/Base/Resources/translations/Base_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<name>UnitsApi</name>
<message>
<location filename="../../UnitsApi.cpp" line="69"/>
<source>Standard (mm, kg, s, degree)</source>
<translation>Standard (mm, kg, s, Grad)</translation>
<source>Standard (mm, kg, s, °)</source>
<translation type="unfinished">Standard (mm, kg, s, °)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="71"/>
<source>MKS (m, kg, s, degree)</source>
<translation>MKS (m, kg, s, Grad)</translation>
<source>MKS (m, kg, s, °)</source>
<translation type="unfinished">MKS (m, kg, s, °)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="73"/>
Expand Down Expand Up @@ -40,8 +40,8 @@
</message>
<message>
<location filename="../../UnitsApi.cpp" line="83"/>
<source>Imperial for Civil Eng (ft, ft/sec)</source>
<translation>Angloamerikanisch für Bauwesen (ft, ft/sec)</translation>
<source>Imperial for Civil Eng (ft, ft/s)</source>
<translation type="unfinished">Imperial for Civil Eng (ft, ft/s)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="85"/>
Expand Down
12 changes: 6 additions & 6 deletions src/Base/Resources/translations/Base_el.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<name>UnitsApi</name>
<message>
<location filename="../../UnitsApi.cpp" line="69"/>
<source>Standard (mm, kg, s, degree)</source>
<translation>Στάνταρ (mm, kg, s, μοίρες)</translation>
<source>Standard (mm, kg, s, °)</source>
<translation type="unfinished">Standard (mm, kg, s, °)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="71"/>
<source>MKS (m, kg, s, degree)</source>
<translation>MKS (m, kg, s, μοίρες)</translation>
<source>MKS (m, kg, s, °)</source>
<translation type="unfinished">MKS (m, kg, s, °)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="73"/>
Expand Down Expand Up @@ -40,8 +40,8 @@
</message>
<message>
<location filename="../../UnitsApi.cpp" line="83"/>
<source>Imperial for Civil Eng (ft, ft/sec)</source>
<translation>Αγγλοσαξονικό σύστημά (Πόδια ft, ft/sec)</translation>
<source>Imperial for Civil Eng (ft, ft/s)</source>
<translation type="unfinished">Imperial for Civil Eng (ft, ft/s)</translation>
</message>
<message>
<location filename="../../UnitsApi.cpp" line="85"/>
Expand Down
Loading

0 comments on commit 5b214d7

Please sign in to comment.