Merge branch 'master' into CURA-8378_improve_checkbox_visibility

This commit is contained in:
j.delarago 2022-01-24 13:17:37 +01:00
commit 17339ba77e
6 changed files with 33 additions and 19 deletions

3
.gitignore vendored
View File

@ -10,6 +10,8 @@ resources/i18n/en_7S
resources/i18n/x-test resources/i18n/x-test
resources/firmware resources/firmware
resources/materials resources/materials
resources/images/whats_new
resources/texts/whats_new
CuraEngine.exe CuraEngine.exe
LC_MESSAGES LC_MESSAGES
.cache .cache
@ -37,6 +39,7 @@ cura.desktop
#Externally located plug-ins commonly installed by our devs. #Externally located plug-ins commonly installed by our devs.
plugins/cura-big-flame-graph plugins/cura-big-flame-graph
plugins/cura-camera-position
plugins/cura-god-mode-plugin plugins/cura-god-mode-plugin
plugins/cura-siemensnx-plugin plugins/cura-siemensnx-plugin
plugins/CuraBlenderPlugin plugins/CuraBlenderPlugin

View File

@ -7,9 +7,9 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
PROJECT_DIR="$( cd "${SCRIPT_DIR}/.." && pwd )" PROJECT_DIR="$( cd "${SCRIPT_DIR}/.." && pwd )"
# Make sure that environment variables are set properly # Make sure that environment variables are set properly
source /opt/rh/devtoolset-8/enable
export PATH="${CURA_BUILD_ENV_PATH}/bin:${PATH}" export PATH="${CURA_BUILD_ENV_PATH}/bin:${PATH}"
export PKG_CONFIG_PATH="${CURA_BUILD_ENV_PATH}/lib/pkgconfig:${PKG_CONFIG_PATH}" export PKG_CONFIG_PATH="${CURA_BUILD_ENV_PATH}/lib/pkgconfig:${PKG_CONFIG_PATH}"
export LD_LIBRARY_PATH="${CURA_BUILD_ENV_PATH}/lib:${LD_LIBRARY_PATH}"
cd "${PROJECT_DIR}" cd "${PROJECT_DIR}"
@ -60,7 +60,7 @@ export PYTHONPATH="${PROJECT_DIR}/Uranium:.:${PYTHONPATH}"
mkdir build mkdir build
cd build cd build
cmake3 \ cmake \
-DCMAKE_BUILD_TYPE=Debug \ -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_PREFIX_PATH="${CURA_BUILD_ENV_PATH}" \ -DCMAKE_PREFIX_PATH="${CURA_BUILD_ENV_PATH}" \
-DURANIUM_DIR="${PROJECT_DIR}/Uranium" \ -DURANIUM_DIR="${PROJECT_DIR}/Uranium" \

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd build cd build
ctest3 -j4 --output-on-failure -T Test ctest -j4 --output-on-failure -T Test

View File

@ -3,35 +3,33 @@ certifi==2019.11.28
cffi==1.14.1 cffi==1.14.1
chardet==3.0.4 chardet==3.0.4
colorlog colorlog
comtypes==1.1.7
cryptography==3.4.8 cryptography==3.4.8
decorator==4.4.0 decorator==4.4.0
idna==2.8 idna==2.8
importlib-metadata==3.7.2 importlib-metadata==4.10.0
keyring==23.0.1 keyring==23.0.1
lxml==4.6.3 lxml==4.7.1
mypy==0.740 mypy==0.740
netifaces==0.10.9 netifaces==0.10.9
networkx==2.6.2 networkx==2.6.2
numpy==1.20.2 numpy==1.21.5
numpy-stl==2.10.1 numpy-stl==2.10.1
packaging==18.0 packaging==18.0
pyclipper==1.3.0.post2
pycollada==0.6 pycollada==0.6
pycparser==2.20 pycparser==2.20
pyparsing==2.4.2 pyparsing==2.4.2
PyQt5==5.15.2 PyQt5==5.15.6
PyQt5-sip==12.8.1 PyQt5-sip==12.9.0
pyserial==3.4 pyserial==3.4
pytest pytest
python-dateutil==2.8.0 python-dateutil==2.8.0
python-utils==2.3.0 python-utils==2.3.0
pywin32==301 pywin32==303
requests==2.22.0 scipy==1.8.0rc2
scipy==1.6.2
sentry-sdk==0.13.5 sentry-sdk==0.13.5
shapely[vectorized]==1.8.0
six==1.12.0 six==1.12.0
trimesh==3.2.33 trimesh==3.9.36
twisted==21.2.0 twisted==21.2.0
typing typing
urllib3==1.25.9 urllib3==1.25.9

Binary file not shown.

Before

Width:  |  Height:  |  Size: 872 KiB

View File

@ -167,13 +167,11 @@ UM.PreferencesPage
append({ text: "Čeština", code: "cs_CZ" }) append({ text: "Čeština", code: "cs_CZ" })
append({ text: "Deutsch", code: "de_DE" }) append({ text: "Deutsch", code: "de_DE" })
append({ text: "Español", code: "es_ES" }) append({ text: "Español", code: "es_ES" })
//Finnish is disabled for being incomplete: append({ text: "Suomi", code: "fi_FI" })
append({ text: "Français", code: "fr_FR" }) append({ text: "Français", code: "fr_FR" })
append({ text: "Italiano", code: "it_IT" }) append({ text: "Italiano", code: "it_IT" })
append({ text: "日本語", code: "ja_JP" }) append({ text: "日本語", code: "ja_JP" })
append({ text: "한국어", code: "ko_KR" }) append({ text: "한국어", code: "ko_KR" })
append({ text: "Nederlands", code: "nl_NL" }) append({ text: "Nederlands", code: "nl_NL" })
//Polish is disabled for being incomplete: append({ text: "Polski", code: "pl_PL" })
append({ text: "Português do Brasil", code: "pt_BR" }) append({ text: "Português do Brasil", code: "pt_BR" })
append({ text: "Português", code: "pt_PT" }) append({ text: "Português", code: "pt_PT" })
append({ text: "Русский", code: "ru_RU" }) append({ text: "Русский", code: "ru_RU" })
@ -186,6 +184,12 @@ UM.PreferencesPage
{ {
append({ text: "Pirate", code: "en_7S" }) append({ text: "Pirate", code: "en_7S" })
} }
// incomplete and/or abandoned
append({ text: catalog.i18nc("@heading", "-- incomplete --"), code: "" })
append({ text: "Magyar", code: "hu_HU" })
append({ text: "Suomi", code: "fi_FI" })
append({ text: "Polski", code: "pl_PL" })
} }
} }
@ -197,8 +201,7 @@ UM.PreferencesPage
model: languageList model: languageList
Layout.fillWidth: true Layout.fillWidth: true
currentIndex: function setCurrentIndex() {
{
var code = UM.Preferences.getValue("general/language"); var code = UM.Preferences.getValue("general/language");
for(var i = 0; i < languageList.count; ++i) for(var i = 0; i < languageList.count; ++i)
{ {
@ -208,7 +211,17 @@ UM.PreferencesPage
} }
} }
} }
onActivated: UM.Preferences.setValue("general/language", model.get(index).code)
currentIndex: setCurrentIndex()
onActivated: if (model.get(index).code != "")
{
UM.Preferences.setValue("general/language", model.get(index).code);
}
else
{
currentIndex = setCurrentIndex();
}
} }
Label Label