From 66fc63c04bbc1a5a782a68a0bdc9e5b40628f4ae Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 13 Nov 2020 15:27:06 +0200 Subject: [PATCH 01/45] Fix crash when save notes for the line tool. --- src/libs/vtools/tools/drawTools/vdrawtool.h | 4 ++-- src/libs/vtools/tools/drawTools/vtoolline.cpp | 13 +++++++++++-- src/libs/vtools/tools/drawTools/vtoolline.h | 2 ++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/libs/vtools/tools/drawTools/vdrawtool.h b/src/libs/vtools/tools/drawTools/vdrawtool.h index 62ae7bb15..b64576135 100644 --- a/src/libs/vtools/tools/drawTools/vdrawtool.h +++ b/src/libs/vtools/tools/drawTools/vdrawtool.h @@ -79,8 +79,8 @@ public: virtual bool IsLabelVisible(quint32 id) const; - QString GetNotes() const; - void SetNotes(const QString ¬es); + QString GetNotes() const; + virtual void SetNotes(const QString ¬es); signals: void ChangedToolSelection(bool selected, quint32 object, quint32 tool); diff --git a/src/libs/vtools/tools/drawTools/vtoolline.cpp b/src/libs/vtools/tools/drawTools/vtoolline.cpp index 78aa29b2a..c562b3e5d 100644 --- a/src/libs/vtools/tools/drawTools/vtoolline.cpp +++ b/src/libs/vtools/tools/drawTools/vtoolline.cpp @@ -484,7 +484,7 @@ void VToolLine::SetLineType(const QString &value) { m_lineType = value; - QSharedPointer obj;//We don't have object for line in data container. Just will send empty object. + QSharedPointer obj;//We don't have object for line in data container. Just will send an empty object. SaveOption(obj); } @@ -499,7 +499,16 @@ void VToolLine::SetLineColor(const QString &value) { lineColor = value; - QSharedPointer obj;//We don't have object for line in data container. Just will send empty object. + QSharedPointer obj;//We don't have object for line in data container. Just will send an empty object. + SaveOption(obj); +} + +//--------------------------------------------------------------------------------------------------------------------- +void VToolLine::SetNotes(const QString ¬es) +{ + m_notes = notes; + + QSharedPointer obj;//We don't have object for line in data container. Just will send an empty object. SaveOption(obj); } diff --git a/src/libs/vtools/tools/drawTools/vtoolline.h b/src/libs/vtools/tools/drawTools/vtoolline.h index 92b1540f4..55f190018 100644 --- a/src/libs/vtools/tools/drawTools/vtoolline.h +++ b/src/libs/vtools/tools/drawTools/vtoolline.h @@ -85,6 +85,8 @@ public: QString GetLineColor() const; void SetLineColor(const QString &value); + virtual void SetNotes(const QString ¬es) override; + virtual void ShowVisualization(bool show) override; virtual void SetLineType(const QString &value) override; From 378096b667d67ef1a7aa0c34813d28ce40402463 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 09:57:23 +0200 Subject: [PATCH 02/45] Trying to return support for legacy Mac OS X version. [skip appveyor] --- .travis.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f127c76aa..f9e8ebd00 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,14 @@ jobs: compiler: clang env: - DEPLOY=true + - LEGACY=false osx_image: xcode11 + - os: osx + compiler: clang + env: + - DEPLOY=true + - LEGACY=true + osx_image: xcode7.3 before_install: - | if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then @@ -51,7 +58,12 @@ before_install: sudo dpkg -i ccache_3.3.4-1_amd64.deb; else brew update > /dev/null; - brew install qt5; + if [[ "$LEGACY" = false ]]; then + brew install qt5; + else + unset SSL_CERT_FILE; + brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/8e2743e6382fefaabfa37da00633ff801477b53c/qt5.rb; + fi chmod -R 755 /usr/local/opt/qt5/* fi before_script: @@ -102,7 +114,11 @@ before_deploy: - | if [[ "$DEPLOY" == "true" ]]; then ../scripts/macfixqtdylibrpath.py $TRAVIS_BUILD_DIR/build/src/app/valentina/bin/Valentina.app; - tar -C $TRAVIS_BUILD_DIR/build/src/app/valentina/bin --exclude "*.DS_Store" -cvzf valentina-osx-${TRAVIS_COMMIT}.tar.gz Valentina.app/; + if [[ "$LEGACY" = false ]]; then + tar -C $TRAVIS_BUILD_DIR/build/src/app/valentina/bin --exclude "*.DS_Store" -cvzf valentina-osx-${TRAVIS_COMMIT}.tar.gz Valentina.app/; + else + tar -C $TRAVIS_BUILD_DIR/build/src/app/valentina/bin --exclude "*.DS_Store" -cvzf valentina-osx-${TRAVIS_COMMIT}-legacy.tar.gz Valentina.app/; + fi fi deploy: provider: bintray From 33211b0e30d0cbae7271e3e4a3e118e529856636 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 10:41:03 +0200 Subject: [PATCH 03/45] Try to untap homebrew-versions. [skip appveyor] --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index f9e8ebd00..6b38f911a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,6 +62,7 @@ before_install: brew install qt5; else unset SSL_CERT_FILE; + brew untap homebrew/homebrew-versions; brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/8e2743e6382fefaabfa37da00633ff801477b53c/qt5.rb; fi chmod -R 755 /usr/local/opt/qt5/* From 9392b936b31ca16f6ccc80b952ed6557c1ac7653 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 11:07:21 +0200 Subject: [PATCH 04/45] Try to switch to homebrew-core. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6b38f911a..6da05e968 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,7 +62,7 @@ before_install: brew install qt5; else unset SSL_CERT_FILE; - brew untap homebrew/homebrew-versions; + brew tap homebrew/homebrew-core; brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/8e2743e6382fefaabfa37da00633ff801477b53c/qt5.rb; fi chmod -R 755 /usr/local/opt/qt5/* From 7a5713559d5ea34f9397c04f8297fc42507d95d0 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 11:33:25 +0200 Subject: [PATCH 05/45] Correct way to untap homebrew-versions. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6da05e968..ba09ae283 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,7 +62,7 @@ before_install: brew install qt5; else unset SSL_CERT_FILE; - brew tap homebrew/homebrew-core; + brew untap homebrew/versions; brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/8e2743e6382fefaabfa37da00633ff801477b53c/qt5.rb; fi chmod -R 755 /usr/local/opt/qt5/* From 0e35642aa6cdb41642b8d661e021461d5911894f Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 11:43:52 +0200 Subject: [PATCH 06/45] Try untap before brew update. [skip appveyor] --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ba09ae283..e8321e7ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,12 +57,13 @@ before_install: wget https://launchpad.net/ubuntu/+archive/primary/+files/ccache_3.3.4-1_amd64.deb; sudo dpkg -i ccache_3.3.4-1_amd64.deb; else - brew update > /dev/null; if [[ "$LEGACY" = false ]]; then + brew update > /dev/null; brew install qt5; else unset SSL_CERT_FILE; brew untap homebrew/versions; + brew update > /dev/null; brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/8e2743e6382fefaabfa37da00633ff801477b53c/qt5.rb; fi chmod -R 755 /usr/local/opt/qt5/* From 16ca3577f22edd24ad6d92f5a65f67ab6557a724 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 11:57:22 +0200 Subject: [PATCH 07/45] Add links to Qt's documentation. --- common.pri | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common.pri b/common.pri index 858645b51..9cf33735d 100644 --- a/common.pri +++ b/common.pri @@ -41,6 +41,9 @@ win32{ macx{ # Check which minimal OSX version supports current Qt version # See page https://doc.qt.io/qt-5/supported-platforms-and-configurations.html + # For qt 5.14 https://doc.qt.io/qt-5.14/supported-platforms.html + # For Qt 5.13 https://doc.qt.io/archives/qt-5.13/supported-platforms.html + # For Qt 5.12 https://doc-snapshots.qt.io/qt5-5.12/supported-platforms.html # For older versions https://doc.qt.io/qt-5.11/supported-platforms-and-configurations.html equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 13) {# Qt 5.14 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13 From ccac6658e5eec4eb0c5f25d3168d802503f74179 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 12:00:09 +0200 Subject: [PATCH 08/45] Switch to xcode 8. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e8321e7ed..ca8b8592d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,7 @@ jobs: env: - DEPLOY=true - LEGACY=true - osx_image: xcode7.3 + osx_image: xcode8 before_install: - | if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then From 81be5f0caa26ac23deaabb0eaadae014b237b2cd Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 12:13:40 +0200 Subject: [PATCH 09/45] Do not suppress brew update. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ca8b8592d..a79868377 100644 --- a/.travis.yml +++ b/.travis.yml @@ -63,7 +63,7 @@ before_install: else unset SSL_CERT_FILE; brew untap homebrew/versions; - brew update > /dev/null; + brew update; brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/8e2743e6382fefaabfa37da00633ff801477b53c/qt5.rb; fi chmod -R 755 /usr/local/opt/qt5/* From f4aab814ae6f94f910abac86e5de37ed41e22a4e Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 12:43:48 +0200 Subject: [PATCH 10/45] Update to xcode 8.2. [skip appveyor] --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a79868377..78350fa9f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,7 @@ jobs: env: - DEPLOY=true - LEGACY=true - osx_image: xcode8 + osx_image: xcode8.2 before_install: - | if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then @@ -63,7 +63,7 @@ before_install: else unset SSL_CERT_FILE; brew untap homebrew/versions; - brew update; + brew update > /dev/null; brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/8e2743e6382fefaabfa37da00633ff801477b53c/qt5.rb; fi chmod -R 755 /usr/local/opt/qt5/* From d993574b407fe064b9fd53e4bd282e6f6ffdabf3 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 13:18:24 +0200 Subject: [PATCH 11/45] Rollback to xcode 8. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 78350fa9f..ca8b8592d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,7 @@ jobs: env: - DEPLOY=true - LEGACY=true - osx_image: xcode8.2 + osx_image: xcode8 before_install: - | if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then From a46e17ae36999c98848bd6e3313d0bc24939f3f5 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 13:43:06 +0200 Subject: [PATCH 12/45] Call brew upgrade before installing qt 5. [skip appveyor] --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index ca8b8592d..12879eb61 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,6 +64,7 @@ before_install: unset SSL_CERT_FILE; brew untap homebrew/versions; brew update > /dev/null; + brew upgrade > /dev/null; brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/8e2743e6382fefaabfa37da00633ff801477b53c/qt5.rb; fi chmod -R 755 /usr/local/opt/qt5/* From 53ec532cc835b18eee8de832b249ff468455b5b4 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 14:12:58 +0200 Subject: [PATCH 13/45] Switch to xcode 8.3 [skip appveyor] --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 12879eb61..7bf331998 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,7 @@ jobs: env: - DEPLOY=true - LEGACY=true - osx_image: xcode8 + osx_image: xcode8.3 before_install: - | if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then @@ -64,7 +64,6 @@ before_install: unset SSL_CERT_FILE; brew untap homebrew/versions; brew update > /dev/null; - brew upgrade > /dev/null; brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/8e2743e6382fefaabfa37da00633ff801477b53c/qt5.rb; fi chmod -R 755 /usr/local/opt/qt5/* From 5ab0a904d17341946d2e3ef38b16475c36a492b5 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 14:47:40 +0200 Subject: [PATCH 14/45] Try another way to install Qt 5.9. [skip appveyor] --- .travis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7bf331998..82f4346c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,7 @@ jobs: env: - DEPLOY=true - LEGACY=true - osx_image: xcode8.3 + osx_image: xcode8 before_install: - | if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then @@ -62,9 +62,10 @@ before_install: brew install qt5; else unset SSL_CERT_FILE; - brew untap homebrew/versions; brew update > /dev/null; - brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/8e2743e6382fefaabfa37da00633ff801477b53c/qt5.rb; + brew tap-new valentina/team; + brew extract --version 5.9 qt valentina/team; + brew install valentina/team/qt@5.9; fi chmod -R 755 /usr/local/opt/qt5/* fi From 0625d286a177a5d5f9600bdddb734f1bbfdd72ea Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 14:51:09 +0200 Subject: [PATCH 15/45] Forgot to return untap. --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 82f4346c5..9a1382712 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,6 +62,7 @@ before_install: brew install qt5; else unset SSL_CERT_FILE; + brew untap homebrew/versions; brew update > /dev/null; brew tap-new valentina/team; brew extract --version 5.9 qt valentina/team; From 11bfeac4f7d0260932e43733746f5bc7a2933f83 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 15:13:29 +0200 Subject: [PATCH 16/45] Try to install directly from homebrew core. [skip appveyor] --- .travis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9a1382712..70d3344c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,9 +64,7 @@ before_install: unset SSL_CERT_FILE; brew untap homebrew/versions; brew update > /dev/null; - brew tap-new valentina/team; - brew extract --version 5.9 qt valentina/team; - brew install valentina/team/qt@5.9; + brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/13d52537d1e0e5f913de46390123436d220035f6/Formula/qt.rb; fi chmod -R 755 /usr/local/opt/qt5/* fi From 7a7c34f3ed1fc5b39a4348952584df0268cc4fb0 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 17:54:02 +0200 Subject: [PATCH 17/45] Install Qt 5.8. [skip appveyor] --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 70d3344c1..90569637f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,7 +64,9 @@ before_install: unset SSL_CERT_FILE; brew untap homebrew/versions; brew update > /dev/null; - brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/13d52537d1e0e5f913de46390123436d220035f6/Formula/qt.rb; + brew tap-new $USER/local-qt; + brew extract --version 5.8 qt5 $USER/local-qt; + brew install $USER/local-qt/qt5@5.8; fi chmod -R 755 /usr/local/opt/qt5/* fi From 608926abad77c738253ff9c9f0f222be55fd28c4 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 18:22:48 +0200 Subject: [PATCH 18/45] Try to trick homebrew tap. [skip appveyor] --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 90569637f..8a4abb297 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,9 +64,9 @@ before_install: unset SSL_CERT_FILE; brew untap homebrew/versions; brew update > /dev/null; - brew tap-new $USER/local-qt; - brew extract --version 5.8 qt5 $USER/local-qt; - brew install $USER/local-qt/qt5@5.8; + brew tap-new $USER/local-qt; + curl -o /usr/local/Homebrew/Library/Taps/$USER/local-qt/Formula/qt5@5.9.rb https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb + brew install $USER/local-qt/qt5@5.9; fi chmod -R 755 /usr/local/opt/qt5/* fi From f18853390a585172552dfeac705fefa6a0d2a7d2 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 18:33:11 +0200 Subject: [PATCH 19/45] Fix typo. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8a4abb297..8950eece0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -65,7 +65,7 @@ before_install: brew untap homebrew/versions; brew update > /dev/null; brew tap-new $USER/local-qt; - curl -o /usr/local/Homebrew/Library/Taps/$USER/local-qt/Formula/qt5@5.9.rb https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb + curl -o /usr/local/Homebrew/Library/Taps/$USER/local-qt/Formula/qt5@5.9.rb https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; brew install $USER/local-qt/qt5@5.9; fi chmod -R 755 /usr/local/opt/qt5/* From 16616af43d716ecac2810568af5ecdd81f7cf456 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 18:46:11 +0200 Subject: [PATCH 20/45] Another way to call an environment variable. [skip appveyor] --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8950eece0..47fb4d0d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,9 +64,9 @@ before_install: unset SSL_CERT_FILE; brew untap homebrew/versions; brew update > /dev/null; - brew tap-new $USER/local-qt; - curl -o /usr/local/Homebrew/Library/Taps/$USER/local-qt/Formula/qt5@5.9.rb https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; - brew install $USER/local-qt/qt5@5.9; + brew tap-new ${USER}/local-qt; + curl -o /usr/local/Homebrew/Library/Taps/${USER}/local-qt/Formula/qt5@5.9.rb https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; + brew install ${USER}/local-qt/qt5@5.9; fi chmod -R 755 /usr/local/opt/qt5/* fi From 22e78d1efb130c32dfd52f99bdd38d84adad5576 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 19:01:09 +0200 Subject: [PATCH 21/45] Try to pretend it is Qt 5.8. [skip appveyor] --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 47fb4d0d3..a5f71e984 100644 --- a/.travis.yml +++ b/.travis.yml @@ -65,8 +65,9 @@ before_install: brew untap homebrew/versions; brew update > /dev/null; brew tap-new ${USER}/local-qt; - curl -o /usr/local/Homebrew/Library/Taps/${USER}/local-qt/Formula/qt5@5.9.rb https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; - brew install ${USER}/local-qt/qt5@5.9; + brew extract --version 5.8 qt5 ${USER}/local-qt; + curl -o /usr/local/Homebrew/Library/Taps/${USER}/local-qt/Formula/qt5@5.8.rb https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; + brew install ${USER}/local-qt/qt5@5.8; fi chmod -R 755 /usr/local/opt/qt5/* fi From 650db904cf745a2f6a0158de62293d7b3912a1a6 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 19:19:11 +0200 Subject: [PATCH 22/45] Remove original formula before download. [skip appveyor] --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index a5f71e984..b8f015321 100644 --- a/.travis.yml +++ b/.travis.yml @@ -66,6 +66,7 @@ before_install: brew update > /dev/null; brew tap-new ${USER}/local-qt; brew extract --version 5.8 qt5 ${USER}/local-qt; + rm /usr/local/Homebrew/Library/Taps/${USER}/local-qt/Formula/qt5@5.8.rb; curl -o /usr/local/Homebrew/Library/Taps/${USER}/local-qt/Formula/qt5@5.8.rb https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; brew install ${USER}/local-qt/qt5@5.8; fi From 35da350cb3f4d47e5ec83783d6c635d2301fbefa Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 19:31:21 +0200 Subject: [PATCH 23/45] Fix path to formula. [skip appveyor] --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b8f015321..df47c2f04 100644 --- a/.travis.yml +++ b/.travis.yml @@ -66,8 +66,8 @@ before_install: brew update > /dev/null; brew tap-new ${USER}/local-qt; brew extract --version 5.8 qt5 ${USER}/local-qt; - rm /usr/local/Homebrew/Library/Taps/${USER}/local-qt/Formula/qt5@5.8.rb; - curl -o /usr/local/Homebrew/Library/Taps/${USER}/local-qt/Formula/qt5@5.8.rb https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; + rm /usr/local/Homebrew/Library/Taps/${USER}/homebrew-local-qt/Formula/qt5@5.8.rb; + curl -o /usr/local/Homebrew/Library/Taps/${USER}/homebrew-local-qt/Formula/qt5@5.8.rb https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; brew install ${USER}/local-qt/qt5@5.8; fi chmod -R 755 /usr/local/opt/qt5/* From 36d466fce301c8b7179deae60de4b17ca9f3205d Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 19:45:48 +0200 Subject: [PATCH 24/45] Fix path to formula. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index df47c2f04..fd6fd816b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,7 +68,7 @@ before_install: brew extract --version 5.8 qt5 ${USER}/local-qt; rm /usr/local/Homebrew/Library/Taps/${USER}/homebrew-local-qt/Formula/qt5@5.8.rb; curl -o /usr/local/Homebrew/Library/Taps/${USER}/homebrew-local-qt/Formula/qt5@5.8.rb https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; - brew install ${USER}/local-qt/qt5@5.8; + brew install ${USER}/homebrew-local-qt/qt5@5.8; fi chmod -R 755 /usr/local/opt/qt5/* fi From a432f99a053d4b69f16024073f35d8381208b1d0 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 19:58:49 +0200 Subject: [PATCH 25/45] Formula name. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fd6fd816b..f4f45bfe2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,7 +68,7 @@ before_install: brew extract --version 5.8 qt5 ${USER}/local-qt; rm /usr/local/Homebrew/Library/Taps/${USER}/homebrew-local-qt/Formula/qt5@5.8.rb; curl -o /usr/local/Homebrew/Library/Taps/${USER}/homebrew-local-qt/Formula/qt5@5.8.rb https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; - brew install ${USER}/homebrew-local-qt/qt5@5.8; + brew install qt5@5.8; fi chmod -R 755 /usr/local/opt/qt5/* fi From c3ec7705a2935311a47fcdef65b21a093602dc19 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2020 20:10:49 +0200 Subject: [PATCH 26/45] Follow a suggestion. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f4f45bfe2..df47c2f04 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,7 +68,7 @@ before_install: brew extract --version 5.8 qt5 ${USER}/local-qt; rm /usr/local/Homebrew/Library/Taps/${USER}/homebrew-local-qt/Formula/qt5@5.8.rb; curl -o /usr/local/Homebrew/Library/Taps/${USER}/homebrew-local-qt/Formula/qt5@5.8.rb https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; - brew install qt5@5.8; + brew install ${USER}/local-qt/qt5@5.8; fi chmod -R 755 /usr/local/opt/qt5/* fi From c9fd5305aaacd1062939d5285477c0976260f8e5 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2020 09:06:59 +0200 Subject: [PATCH 27/45] Install Qt 5.11. [skip appveyor] --- .travis.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index df47c2f04..476f5af40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -65,10 +65,8 @@ before_install: brew untap homebrew/versions; brew update > /dev/null; brew tap-new ${USER}/local-qt; - brew extract --version 5.8 qt5 ${USER}/local-qt; - rm /usr/local/Homebrew/Library/Taps/${USER}/homebrew-local-qt/Formula/qt5@5.8.rb; - curl -o /usr/local/Homebrew/Library/Taps/${USER}/homebrew-local-qt/Formula/qt5@5.8.rb https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; - brew install ${USER}/local-qt/qt5@5.8; + brew extract --version 5.11 qt ${USER}/local-qt; + brew install ${USER}/local-qt/qt@5.11; fi chmod -R 755 /usr/local/opt/qt5/* fi From f66618969e49fe8232fb44c998061ffa4839c514 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2020 09:28:56 +0200 Subject: [PATCH 28/45] Try xcode 8.3. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 476f5af40..f64bdb241 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,7 @@ jobs: env: - DEPLOY=true - LEGACY=true - osx_image: xcode8 + osx_image: xcode8.3 before_install: - | if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then From 58d4f51fc5c9e09435253044039160e4b43b4cb5 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2020 09:34:57 +0200 Subject: [PATCH 29/45] Error: No available tap homebrew/versions. [skip appveyor] --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f64bdb241..138cd40f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,7 +62,6 @@ before_install: brew install qt5; else unset SSL_CERT_FILE; - brew untap homebrew/versions; brew update > /dev/null; brew tap-new ${USER}/local-qt; brew extract --version 5.11 qt ${USER}/local-qt; From 0823a1ebd3e2129cd362a9c6263622755a487d2f Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2020 10:02:19 +0200 Subject: [PATCH 30/45] Try xcode 9.2. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 138cd40f9..1b91dbadc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,7 @@ jobs: env: - DEPLOY=true - LEGACY=true - osx_image: xcode8.3 + osx_image: xcode9.2 before_install: - | if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then From 6645ac228c25b588faafbfca2c89dcdd29cdf10c Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2020 10:17:07 +0200 Subject: [PATCH 31/45] Try without brew update. [skip appveyor] --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1b91dbadc..e91a80ce8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,7 +62,6 @@ before_install: brew install qt5; else unset SSL_CERT_FILE; - brew update > /dev/null; brew tap-new ${USER}/local-qt; brew extract --version 5.11 qt ${USER}/local-qt; brew install ${USER}/local-qt/qt@5.11; From e658e76bfc612887516b6ca2afeeb6f0a7cce029 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2020 10:46:14 +0200 Subject: [PATCH 32/45] Cache for Homebrew. [skip appveyor] --- .travis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.travis.yml b/.travis.yml index e91a80ce8..b4f2eb0eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,12 +30,25 @@ jobs: - DEPLOY=true - LEGACY=false osx_image: xcode11 + cache: + directories: + - $HOME/Library/Caches/Homebrew + - /usr/local/Homebrew - os: osx compiler: clang env: - DEPLOY=true - LEGACY=true osx_image: xcode9.2 + cache: + directories: + - $HOME/Library/Caches/Homebrew + - /usr/local/Homebrew +before_cache: + - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew cleanup; fi +# Credit https://discourse.brew.sh/t/best-practice-for-homebrew-on-travis-brew-update-is-5min-to-build-time/5215/9 +# Cache only .git files under "/usr/local/Homebrew" so "brew update" does not take 5min every build + - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then find /usr/local/Homebrew \! -regex ".+\.git.+" -delete; fi before_install: - | if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then @@ -63,6 +76,7 @@ before_install: else unset SSL_CERT_FILE; brew tap-new ${USER}/local-qt; + brew update > /dev/null; brew extract --version 5.11 qt ${USER}/local-qt; brew install ${USER}/local-qt/qt@5.11; fi From 08f1ec6bb01558693ba5439cc820fcb83438c3d1 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2020 11:45:10 +0200 Subject: [PATCH 33/45] Let's see what brew update does. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b4f2eb0eb..290bbd0e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -76,7 +76,7 @@ before_install: else unset SSL_CERT_FILE; brew tap-new ${USER}/local-qt; - brew update > /dev/null; + brew update --verbose; brew extract --version 5.11 qt ${USER}/local-qt; brew install ${USER}/local-qt/qt@5.11; fi From 1e4c4865addf51b66c646b18b06079e19f486df1 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2020 12:17:58 +0200 Subject: [PATCH 34/45] Do not update bre. Try direct install. [skip appveyor] --- .travis.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 290bbd0e9..5bc4a6f32 100644 --- a/.travis.yml +++ b/.travis.yml @@ -75,10 +75,7 @@ before_install: brew install qt5; else unset SSL_CERT_FILE; - brew tap-new ${USER}/local-qt; - brew update --verbose; - brew extract --version 5.11 qt ${USER}/local-qt; - brew install ${USER}/local-qt/qt@5.11; + brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; fi chmod -R 755 /usr/local/opt/qt5/* fi From 1cb281832963b305752e0818feaf798e9056c92a Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2020 12:39:32 +0200 Subject: [PATCH 35/45] Prevent brew autoupdate. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5bc4a6f32..4db5378c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -75,7 +75,7 @@ before_install: brew install qt5; else unset SSL_CERT_FILE; - brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; + HOMEBREW_NO_AUTO_UPDATE=1 brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; fi chmod -R 755 /usr/local/opt/qt5/* fi From 19bc36886820d64481421b99607f9397bc79acae Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2020 12:46:00 +0200 Subject: [PATCH 36/45] Rename custom qt formula name. [skip appveyor] --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4db5378c8..190dba2dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -73,11 +73,12 @@ before_install: if [[ "$LEGACY" = false ]]; then brew update > /dev/null; brew install qt5; + chmod -R 755 /usr/local/opt/qt5/* else unset SSL_CERT_FILE; - HOMEBREW_NO_AUTO_UPDATE=1 brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3d6d7b3e67138ca19ada7152df2155de6690c089/qt5.rb; + HOMEBREW_NO_AUTO_UPDATE=1 brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3a81dee54b03b43cdbb19e173b4ec1402c388bfb/qt.rb; + chmod -R 755 /usr/local/opt/qt/* fi - chmod -R 755 /usr/local/opt/qt5/* fi before_script: - | From c5c761864647c98f1715077e8f33658431bd90fe Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2020 12:52:51 +0200 Subject: [PATCH 37/45] link qmake. [skip appveyor] --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 190dba2dc..5bea644b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -73,11 +73,12 @@ before_install: if [[ "$LEGACY" = false ]]; then brew update > /dev/null; brew install qt5; - chmod -R 755 /usr/local/opt/qt5/* + chmod -R 755 '/usr/local/opt/qt5/*'; else unset SSL_CERT_FILE; HOMEBREW_NO_AUTO_UPDATE=1 brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3a81dee54b03b43cdbb19e173b4ec1402c388bfb/qt.rb; - chmod -R 755 /usr/local/opt/qt/* + brew link qt --force; + chmod -R 755 '/usr/local/opt/qt/*'; fi fi before_script: From 1da24f52a53e4abf90962f2613cffe9f5bf58f20 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2020 12:56:17 +0200 Subject: [PATCH 38/45] New try. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5bea644b5..668afae3a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -78,7 +78,7 @@ before_install: unset SSL_CERT_FILE; HOMEBREW_NO_AUTO_UPDATE=1 brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3a81dee54b03b43cdbb19e173b4ec1402c388bfb/qt.rb; brew link qt --force; - chmod -R 755 '/usr/local/opt/qt/*'; + chmod -R 755 /usr/local/opt/qt/* fi fi before_script: From 897d7d46337b2d6f6801d2c16a604e979cbcd053 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2020 13:10:05 +0200 Subject: [PATCH 39/45] Try xcode 8. [skip appveyor] --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 668afae3a..57d40256e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,7 +39,7 @@ jobs: env: - DEPLOY=true - LEGACY=true - osx_image: xcode9.2 + osx_image: xcode8 cache: directories: - $HOME/Library/Caches/Homebrew @@ -73,7 +73,7 @@ before_install: if [[ "$LEGACY" = false ]]; then brew update > /dev/null; brew install qt5; - chmod -R 755 '/usr/local/opt/qt5/*'; + chmod -R 755 /usr/local/opt/qt5/* else unset SSL_CERT_FILE; HOMEBREW_NO_AUTO_UPDATE=1 brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3a81dee54b03b43cdbb19e173b4ec1402c388bfb/qt.rb; From 29cc036e9df9ba8f93f83f4cf116915bd28aa28d Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2020 13:22:51 +0200 Subject: [PATCH 40/45] Try Qt 5.8. [skip appveyor] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 57d40256e..002229d15 100644 --- a/.travis.yml +++ b/.travis.yml @@ -76,7 +76,7 @@ before_install: chmod -R 755 /usr/local/opt/qt5/* else unset SSL_CERT_FILE; - HOMEBREW_NO_AUTO_UPDATE=1 brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/3a81dee54b03b43cdbb19e173b4ec1402c388bfb/qt.rb; + HOMEBREW_NO_AUTO_UPDATE=1 brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/f553c39bbc5f3a2b231a767924e846bdd2a56d8d/qt.rb; brew link qt --force; chmod -R 755 /usr/local/opt/qt/* fi From 402783d26af282ba5b17ef062b27a07113841842 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 17 Nov 2020 14:05:58 +0200 Subject: [PATCH 41/45] Lupdate. --- share/translations/valentina_es_ES.ts | 2 +- share/translations/valentina_ru_RU.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/share/translations/valentina_es_ES.ts b/share/translations/valentina_es_ES.ts index 76c114342..2ebe775ec 100644 --- a/share/translations/valentina_es_ES.ts +++ b/share/translations/valentina_es_ES.ts @@ -8929,7 +8929,7 @@ el patrón. Variables Table - Mesa de variables + Tabla de variables Contains information about increments and internal variables diff --git a/share/translations/valentina_ru_RU.ts b/share/translations/valentina_ru_RU.ts index d09397c29..b86b3428a 100644 --- a/share/translations/valentina_ru_RU.ts +++ b/share/translations/valentina_ru_RU.ts @@ -2842,11 +2842,11 @@ Invalid first line point - + Неправильная первая точка линии Invalid second line point - + Неправильная вторая точка линии Invalid label From 4def3929459b017633ba04e4ca1a0274b4d29b4e Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 17 Nov 2020 14:12:51 +0200 Subject: [PATCH 42/45] Bump version. --- ChangeLog.txt | 5 +++++ appveyor.yml | 2 +- dist/OBS_debian/debian.changelog | 4 ++-- dist/debian/changelog | 4 ++-- dist/macx/tape/Info.plist | 4 ++-- dist/macx/valentina/Info.plist | 4 ++-- dist/rpm/_service | 2 +- dist/rpm/valentina.spec | 2 +- dist/valentina.dsc | 8 ++++---- share/bintray.json | 6 +++--- src/libs/vmisc/projectversion.cpp | 2 +- src/libs/vmisc/projectversion.h | 4 ++-- 12 files changed, 26 insertions(+), 21 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 928d35d93..59e374d1d 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,8 @@ +# Version 0.7.39 Nov 17, 2020 +- Fix crash for Line tool notes. +- Restored support for Mac OS 10.11+. +- Updated translations. + # Version 0.7.38 Nov 12, 2020 - Bug fixes. diff --git a/appveyor.yml b/appveyor.yml index 967bc88e6..4fb19e9fb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -258,7 +258,7 @@ deploy: package: valentina-win_auto-upload publish: true override: true - version: 0.7.38 + version: 0.7.39 on: DEPLOY: true artifact: valentina-win-$(QT_VERSION)-$(APPVEYOR_REPO_BRANCH)-$(APPVEYOR_REPO_COMMIT) diff --git a/dist/OBS_debian/debian.changelog b/dist/OBS_debian/debian.changelog index f1462eed1..6d4012767 100644 --- a/dist/OBS_debian/debian.changelog +++ b/dist/OBS_debian/debian.changelog @@ -1,5 +1,5 @@ -valentina (0.7.38) trusty; urgency=low +valentina (0.7.39) trusty; urgency=low * Auto build. - -- dismine Thu, 12 Nov 2020 16:30:00 +0300 + -- dismine Thu, 17 Nov 2020 16:30:00 +0300 diff --git a/dist/debian/changelog b/dist/debian/changelog index f1462eed1..6d4012767 100644 --- a/dist/debian/changelog +++ b/dist/debian/changelog @@ -1,5 +1,5 @@ -valentina (0.7.38) trusty; urgency=low +valentina (0.7.39) trusty; urgency=low * Auto build. - -- dismine Thu, 12 Nov 2020 16:30:00 +0300 + -- dismine Thu, 17 Nov 2020 16:30:00 +0300 diff --git a/dist/macx/tape/Info.plist b/dist/macx/tape/Info.plist index 4b6bbcff9..c9f820da0 100755 --- a/dist/macx/tape/Info.plist +++ b/dist/macx/tape/Info.plist @@ -19,9 +19,9 @@ CFBundleIdentifier io.bitbucket.valentinaproject.@EXECUTABLE@ CFBundleShortVersionString - 0.7.38 + 0.7.39 CFBundleVersion - 0.7.38.0 + 0.7.39.0 CFBundleInfoDictionaryVersion 6.0 CFBundleDocumentTypes diff --git a/dist/macx/valentina/Info.plist b/dist/macx/valentina/Info.plist index 2b28a3b12..0278316c8 100755 --- a/dist/macx/valentina/Info.plist +++ b/dist/macx/valentina/Info.plist @@ -19,9 +19,9 @@ CFBundleIdentifier io.bitbucket.valentinaproject.@EXECUTABLE@ CFBundleShortVersionString - 0.7.38 + 0.7.39 CFBundleVersion - 0.7.38.0 + 0.7.39.0 CFBundleInfoDictionaryVersion 6.0 CFBundleDocumentTypes diff --git a/dist/rpm/_service b/dist/rpm/_service index a7a5e5d46..93aee5dd8 100644 --- a/dist/rpm/_service +++ b/dist/rpm/_service @@ -1,7 +1,7 @@ git://github.com/dismine/Valentina_git.git - 0.7.38 + 0.7.39 valentina git .git diff --git a/dist/rpm/valentina.spec b/dist/rpm/valentina.spec index cd6e3f0b0..be5462663 100644 --- a/dist/rpm/valentina.spec +++ b/dist/rpm/valentina.spec @@ -91,7 +91,7 @@ Requires: poppler-tools Requires: poppler-utils %endif -Version: 0.7.38 +Version: 0.7.39 Release: 0 URL: https://gitlab.com/smart-pattern/valentina License: GPL-3.0+ diff --git a/dist/valentina.dsc b/dist/valentina.dsc index f62afb612..fd71edb9b 100644 --- a/dist/valentina.dsc +++ b/dist/valentina.dsc @@ -2,7 +2,7 @@ Format: 3.0 (native) Source: valentina Binary: valentina Architecture: i386 amd64 -Version: 0.7.38 +Version: 0.7.39 Maintainer: Roman Telezhynskyi Homepage: https://valentinaproject.bitbucket.io Standards-Version: 3.9.5 @@ -18,8 +18,8 @@ Build-Depends: debhelper (>= 8.0.0), Package-List: valentina deb graphics optional Checksums-Sha1: - 581eb1bf36b4ab7126b5983d809130f15396859e 24838101 valentina_0.7.38.tar + 581eb1bf36b4ab7126b5983d809130f15396859e 24838101 valentina_0.7.39.tar Checksums-Sha256: - 9b156c7120a69b90373efb8ca9998c3e0563a60ad337210166cfd41b00b0f13c 24838101 valentina_0.7.38.tar + 9b156c7120a69b90373efb8ca9998c3e0563a60ad337210166cfd41b00b0f13c 24838101 valentina_0.7.39.tar Files: - 95677e29d3a59cf5b064f7be236a4b78 24838101 valentina_0.7.38.tar + 95677e29d3a59cf5b064f7be236a4b78 24838101 valentina_0.7.39.tar diff --git a/share/bintray.json b/share/bintray.json index 58ac90717..89f47e01f 100644 --- a/share/bintray.json +++ b/share/bintray.json @@ -15,10 +15,10 @@ }, "version": { - "name": "0.7.38", + "name": "0.7.39", "desc": "Test branch release", - "released": "2020-11-12", - "vcs_tag": "v0.7.38", + "released": "2020-11-17", + "vcs_tag": "v0.7.39", "gpgSign": false }, diff --git a/src/libs/vmisc/projectversion.cpp b/src/libs/vmisc/projectversion.cpp index 86dbfe5c7..867a956b1 100644 --- a/src/libs/vmisc/projectversion.cpp +++ b/src/libs/vmisc/projectversion.cpp @@ -42,7 +42,7 @@ extern const int MAJOR_VERSION = 0; extern const int MINOR_VERSION = 7; -extern const int DEBUG_VERSION = 38; +extern const int DEBUG_VERSION = 39; extern const QString APP_VERSION_STR(QStringLiteral("%1.%2.%3.%4").arg(MAJOR_VERSION).arg(MINOR_VERSION) .arg(DEBUG_VERSION).arg(LATEST_TAG_DISTANCE)); diff --git a/src/libs/vmisc/projectversion.h b/src/libs/vmisc/projectversion.h index 66334edde..890a5766f 100644 --- a/src/libs/vmisc/projectversion.h +++ b/src/libs/vmisc/projectversion.h @@ -49,8 +49,8 @@ extern const QString APP_VERSION_STR; // Change version number in projectversion.cpp too. // Synchronize valentina.nsi -#define VER_FILEVERSION 0,7,38 -#define VER_FILEVERSION_STR "0.7.38\0" +#define VER_FILEVERSION 0,7,39 +#define VER_FILEVERSION_STR "0.7.39\0" #define V_PRERELEASE // Mark prerelease builds From b3ea7d69f495f67492160467738af4b9caf8a122 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 18 Nov 2020 10:19:15 +0200 Subject: [PATCH 43/45] Improve Windows installer. [skip ci] Make removing settings on uninstall optional. (cherry picked from commit 274de54746362209e1c9f278fa8a50dbfc018d41) --- dist/win/inno/valentina.iss | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/dist/win/inno/valentina.iss b/dist/win/inno/valentina.iss index 6269da7c1..053625e54 100644 --- a/dist/win/inno/valentina.iss +++ b/dist/win/inno/valentina.iss @@ -233,10 +233,6 @@ Source: ".\valentina\*.ini"; DestDir: "{app}"; Flags: ignoreversion Type: filesandordirs; Name: "{app}\translations" Type: files; Name: "{userappdata}\ValentinaTeam\*.ini"; Tasks: deletesettings -[UninstallDelete] -Type: files; Name: "{userappdata}\ValentinaTeam\*.ini" -Type: filesandordirs; Name: "{userappdata}\ValentinaTeam" - [Icons] Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" @@ -356,6 +352,12 @@ russian.ManageSettings = Управление настройками ukrainian.ManageSettings = Керування налаштуваннями german.ManageSettings = Einstellungen verwalten +QuestionRemoveAnyExistingSettings = Do you want to remove any existing settings? +english.QuestionRemoveAnyExistingSettings = Do you want to remove any existing settings? +russian.QuestionRemoveAnyExistingSettings = Вы хотите удалить существующие настройки? +ukrainian.QuestionRemoveAnyExistingSettings = Видалити будь-які існуючі налаштування? +german.QuestionRemoveAnyExistingSettings = Möchten Sie vorhandene Einstellungen entfernen? + [Code] const @@ -563,3 +565,15 @@ var end; end; end; + +procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); +begin + if CurUninstallStep = usPostUninstall then + begin + if MsgBox(ExpandConstant('{cm:QuestionRemoveAnyExistingSettings}'), mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES then + //this is the msg that will display after uninstall + begin + DelTree(ExpandConstant('{userappdata}\ValentinaTeam'), True, True, True); + end; + end; +end; From 80d9fbc10758ec65adfc2a8363254f0ce7ee6a08 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 20 Nov 2020 13:18:38 +0200 Subject: [PATCH 44/45] New function Warning. --- ChangeLog.txt | 3 + src/app/tape/mapplication.cpp | 24 ++++++-- src/app/tape/tape.pro | 18 +++--- src/app/valentina/core/vapplication.cpp | 15 +++-- src/app/valentina/dialogs/vwidgetdetails.cpp | 2 +- src/app/valentina/mainwindow.cpp | 6 +- src/app/valentina/mainwindowsnogui.cpp | 2 +- src/libs/ifc/xml/vabstractpattern.cpp | 6 ++ src/libs/qmuparser/qmuparser.cpp | 6 +- src/libs/qmuparser/qmuparserbase.cpp | 1 - src/libs/qmuparser/qmuparsererror.cpp | 41 +++++++++++++ src/libs/qmuparser/qmuparsererror.h | 25 ++++++++ src/libs/qmuparser/qmutokenparser.cpp | 10 +++ src/libs/qmuparser/qmutokenparser.h | 3 + .../vdxf/libdxfrw/intern/drw_textcodec.cpp | 2 +- src/libs/vformat/vpatternrecipe.cpp | 2 +- src/libs/vgeometry/vabstractcurve.cpp | 2 +- src/libs/vlayout/vabstractpiece.cpp | 2 +- src/libs/vlayout/vbank.cpp | 8 +-- src/libs/vlayout/vlayoutpiece.cpp | 14 ++--- src/libs/vlayout/vposter.cpp | 4 +- src/libs/vmisc/customevents.h | 18 +++--- src/libs/vmisc/def.cpp | 61 ++++++++----------- src/libs/vmisc/def.h | 1 + src/libs/vmisc/vabstractapplication.cpp | 25 ++++++++ src/libs/vmisc/vabstractapplication.h | 5 ++ src/libs/vmisc/vabstractvalapplication.cpp | 29 +-------- src/libs/vmisc/vabstractvalapplication.h | 7 +-- src/libs/vpatterndb/calculator.cpp | 13 ++++ src/libs/vpatterndb/calculator.h | 1 + src/libs/vpatterndb/vpassmark.cpp | 20 +++--- src/libs/vpatterndb/vpiece.cpp | 8 +-- src/libs/vpatterndb/vpiecenode.cpp | 10 +-- src/libs/vpatterndb/vpiecepath.cpp | 4 +- src/libs/vpatterndb/vtranslatevars.cpp | 3 + .../toollinepoint/vtoolcurveintersectaxis.cpp | 2 +- .../toollinepoint/vtoollineintersectaxis.cpp | 2 +- .../toolsinglepoint/vtoollineintersect.cpp | 2 +- .../vtoolpointfromarcandtangent.cpp | 2 +- .../vtoolpointfromcircleandtangent.cpp | 2 +- .../toolsinglepoint/vtoolpointofcontact.cpp | 2 +- .../vtoolpointofintersectionarcs.cpp | 2 +- .../vtoolpointofintersectioncircles.cpp | 2 +- .../vtoolpointofintersectioncurves.cpp | 2 +- .../toolsinglepoint/vtooltriangle.cpp | 2 +- src/libs/vtools/tools/vtoolseamallowance.cpp | 2 +- .../TranslationsTest/TranslationsTest.pro | 18 +++--- src/test/ValentinaTest/ValentinaTest.pro | 18 +++--- 48 files changed, 283 insertions(+), 176 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 59e374d1d..af5c298fe 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,6 @@ +# Version 0.7.40 (unreleased) +- New function Warning. + # Version 0.7.39 Nov 17, 2020 - Fix crash for Line tool notes. - Restored support for Mac OS 10.11+. diff --git a/src/app/tape/mapplication.cpp b/src/app/tape/mapplication.cpp index 444b31152..82e901109 100644 --- a/src/app/tape/mapplication.cpp +++ b/src/app/tape/mapplication.cpp @@ -150,23 +150,30 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con type = QtDebugMsg; } + QString logMsg = msg; + const bool isWarningMessage = qApp->IsWarningMessage(msg); + if (isWarningMessage) + { + logMsg = logMsg.remove(VAbstractApplication::warningMessageSignature); + } + switch (type) { case QtDebugMsg: - vStdOut() << QApplication::translate("mNoisyHandler", "DEBUG:") << msg << "\n"; + vStdOut() << QApplication::translate("mNoisyHandler", "DEBUG:") << logMsg << "\n"; return; case QtWarningMsg: - vStdErr() << QApplication::translate("mNoisyHandler", "WARNING:") << msg << "\n"; + vStdErr() << QApplication::translate("mNoisyHandler", "WARNING:") << logMsg << "\n"; break; case QtCriticalMsg: - vStdErr() << QApplication::translate("mNoisyHandler", "CRITICAL:") << msg << "\n"; + vStdErr() << QApplication::translate("mNoisyHandler", "CRITICAL:") << logMsg << "\n"; break; case QtFatalMsg: - vStdErr() << QApplication::translate("mNoisyHandler", "FATAL:") << msg << "\n"; + vStdErr() << QApplication::translate("mNoisyHandler", "FATAL:") << logMsg << "\n"; break; #if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0) case QtInfoMsg: - vStdOut() << QApplication::translate("mNoisyHandler", "INFO:") << msg << "\n"; + vStdOut() << QApplication::translate("mNoisyHandler", "INFO:") << logMsg << "\n"; break; #endif default: @@ -216,7 +223,7 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con { if (topWinAllowsPop) { - messageBox.setText(msg); + messageBox.setText(VAbstractApplication::ClearMessage(logMsg)); messageBox.setStandardButtons(QMessageBox::Ok); messageBox.setWindowModality(Qt::ApplicationModal); messageBox.setModal(true); @@ -335,6 +342,11 @@ bool MApplication::notify(QObject *receiver, QEvent *event) qUtf8Printable(e.ErrorMessage()), qUtf8Printable(e.DetailedInformation())); return true; } + catch (const qmu::QmuParserWarning &e) + { + qCCritical(mApp, "%s", qUtf8Printable(tr("Formula warning: %1. Program will be terminated.").arg(e.GetMsg()))); + exit(V_EX_DATAERR); + } // These last two cases special. I found that we can't show here modal dialog with error message. // Somehow program doesn't waite untile an error dialog will be closed. But if ignore this program will hang. catch (const qmu::QmuParserError &e) diff --git a/src/app/tape/tape.pro b/src/app/tape/tape.pro index 24daaece2..a1bfd651e 100644 --- a/src/app/tape/tape.pro +++ b/src/app/tape/tape.pro @@ -388,15 +388,6 @@ DEPENDPATH += $$PWD/../../libs/ifc win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/ifc/$${DESTDIR}/ifc.lib else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/ifc/$${DESTDIR}/libifc.a -#VMisc static library -unix|win32: LIBS += -L$$OUT_PWD/../../libs/vmisc/$${DESTDIR}/ -lvmisc - -INCLUDEPATH += $$PWD/../../libs/vmisc -DEPENDPATH += $$PWD/../../libs/vmisc - -win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vmisc/$${DESTDIR}/vmisc.lib -else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vmisc/$${DESTDIR}/libvmisc.a - # VGeometry static library (depend on ifc) unix|win32: LIBS += -L$$OUT_PWD/../../libs/vgeometry/$${DESTDIR}/ -lvgeometry @@ -406,6 +397,15 @@ DEPENDPATH += $$PWD/../../libs/vgeometry win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vgeometry/$${DESTDIR}/vgeometry.lib else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vgeometry/$${DESTDIR}/libvgeometry.a +#VMisc static library +unix|win32: LIBS += -L$$OUT_PWD/../../libs/vmisc/$${DESTDIR}/ -lvmisc + +INCLUDEPATH += $$PWD/../../libs/vmisc +DEPENDPATH += $$PWD/../../libs/vmisc + +win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vmisc/$${DESTDIR}/vmisc.lib +else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vmisc/$${DESTDIR}/libvmisc.a + # QMuParser library win32:CONFIG(release, debug|release): LIBS += -L$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -lqmuparser2 else:win32:CONFIG(debug, debug|release): LIBS += -L$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -lqmuparser2 diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index e76c3d7ab..2f62b18c1 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -147,10 +147,10 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con } QString logMsg = msg; - const bool isPatternMessage = qApp->IsPatternMessage(msg); + const bool isPatternMessage = qApp->IsWarningMessage(msg); if (isPatternMessage) { - logMsg = logMsg.remove(VAbstractValApplication::patternMessageSignature); + logMsg = logMsg.remove(VAbstractValApplication::warningMessageSignature); } { @@ -166,7 +166,7 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con case QtWarningMsg: if (isPatternMessage) { - qApp->PostPatternMessage(logMsg, type); + qApp->PostWarningMessage(logMsg, type); } debugdate += QStringLiteral(":WARNING:%1(%2)] %3: %4: %5").arg(context.file).arg(context.line) .arg(context.function, context.category, logMsg); @@ -175,7 +175,7 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con case QtCriticalMsg: if (isPatternMessage) { - qApp->PostPatternMessage(logMsg, type); + qApp->PostWarningMessage(logMsg, type); } debugdate += QStringLiteral(":CRITICAL:%1(%2)] %3: %4: %5").arg(context.file).arg(context.line) .arg(context.function, context.category, logMsg); @@ -190,7 +190,7 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con case QtInfoMsg: if (isPatternMessage) { - qApp->PostPatternMessage(logMsg, type); + qApp->PostWarningMessage(logMsg, type); } debugdate += QStringLiteral(":INFO:%1(%2)] %3: %4: %5").arg(context.file).arg(context.line) .arg(context.function, context.category, logMsg); @@ -412,6 +412,11 @@ bool VApplication::notify(QObject *receiver, QEvent *event) qUtf8Printable(e.ErrorMessage()), qUtf8Printable(e.DetailedInformation())); return true; } + catch (const qmu::QmuParserWarning &e) + { + qCCritical(vApp, "%s", qUtf8Printable(tr("Formula warning: %1. Program will be terminated.").arg(e.GetMsg()))); + exit(V_EX_DATAERR); + } // These last two cases are special. I found that we can't show here a modal dialog with an error message. // Somehow program doesn't wait until an error dialog will be closed. But if ignore the exception the program will // hang. diff --git a/src/app/valentina/dialogs/vwidgetdetails.cpp b/src/app/valentina/dialogs/vwidgetdetails.cpp index 609d533a9..73ab8b76c 100644 --- a/src/app/valentina/dialogs/vwidgetdetails.cpp +++ b/src/app/valentina/dialogs/vwidgetdetails.cpp @@ -297,7 +297,7 @@ void VWidgetDetails::ShowContextMenu(const QPoint &pos) catch (const VExceptionBadId &) { const QString errorMsg = tr("Cannot find piece by id '%1'").arg(id); - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } } diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 50208c723..e8ebf7c29 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -174,7 +174,7 @@ void WarningNotUniquePieceName(const QHash *allDetails) { const QString errorMsg = QObject::tr("Piece name '%1' is not unique.").arg(pieceName); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } ++i; @@ -1629,7 +1629,7 @@ void MainWindow::customEvent(QEvent *event) { ZoomFitBestCurrent(); } - else if (event->type() == PATTERN_MESSAGE_EVENT) + else if (event->type() == WARNING_MESSAGE_EVENT) { PrintPatternMessage(event); } @@ -6523,7 +6523,7 @@ void MainWindow::ToolSelectDetail() void MainWindow::PrintPatternMessage(QEvent *event) { SCASSERT(event != nullptr) - auto *patternMessage = static_cast(event); + auto *patternMessage = static_cast(event); QString severity; diff --git a/src/app/valentina/mainwindowsnogui.cpp b/src/app/valentina/mainwindowsnogui.cpp index dc3ab1c3d..5333b149c 100644 --- a/src/app/valentina/mainwindowsnogui.cpp +++ b/src/app/valentina/mainwindowsnogui.cpp @@ -930,7 +930,7 @@ void MainWindowsNoGUI::PrintPages(QPrinter *printer) { const QString errorMsg = tr("File error.\n\n%1\n\n%2").arg(e.ErrorMessage(), e.DetailedInformation()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } } diff --git a/src/libs/ifc/xml/vabstractpattern.cpp b/src/libs/ifc/xml/vabstractpattern.cpp index c12bf9233..4037bb40f 100644 --- a/src/libs/ifc/xml/vabstractpattern.cpp +++ b/src/libs/ifc/xml/vabstractpattern.cpp @@ -193,6 +193,12 @@ QList GetTokens(const VFormulaField &formula) .arg(formula.expression, e.GetMsg()); return QList(); } + catch (const qmu::QmuParserWarning &e) + { + qWarning() << QObject::tr("Cannot get tokens from formula '%1'. Formula error: %2.") + .arg(formula.expression, e.GetMsg()); + return QList(); + } } //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/libs/qmuparser/qmuparser.cpp b/src/libs/qmuparser/qmuparser.cpp index 06e76cb19..3ddf10a87 100644 --- a/src/libs/qmuparser/qmuparser.cpp +++ b/src/libs/qmuparser/qmuparser.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include "qmuparserdef.h" #include "qmuparsererror.h" @@ -414,10 +415,7 @@ QmuParser::QmuParser():QmuParserBase() { AddValIdent(IsVal); - InitCharSets(); - InitFun(); - InitConst(); - InitOprt(); + Init(); } //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/libs/qmuparser/qmuparserbase.cpp b/src/libs/qmuparser/qmuparserbase.cpp index e94a28a92..bc1d4c849 100644 --- a/src/libs/qmuparser/qmuparserbase.cpp +++ b/src/libs/qmuparser/qmuparserbase.cpp @@ -1383,7 +1383,6 @@ void QmuParserBase::CreateRPN() const stVal.push(opt); const QString &str = opt.GetAsString(); m_vStringBuf.push_back(str); // Store string in internal buffer - m_Tokens.insert(m_pTokenReader->GetPos()-str.length(), str); break; } case cmVAR: diff --git a/src/libs/qmuparser/qmuparsererror.cpp b/src/libs/qmuparser/qmuparsererror.cpp index 7e75c402a..987a09c4b 100644 --- a/src/libs/qmuparser/qmuparsererror.cpp +++ b/src/libs/qmuparser/qmuparsererror.cpp @@ -301,4 +301,45 @@ QmuParserError *QmuParserError::clone() const return new QmuParserError(*this); } +//--------------------------------------------------------------------------------------------------------------------- +QmuParserWarning::QmuParserWarning(const QString &sMsg) + : QException(), m_sMsg ( sMsg ) +{} + +//--------------------------------------------------------------------------------------------------------------------- +QmuParserWarning::QmuParserWarning(const QmuParserWarning &a_Obj) + : QException(), m_sMsg(a_Obj.m_sMsg) +{} + +//--------------------------------------------------------------------------------------------------------------------- +QmuParserWarning &QmuParserWarning::operator=(const QmuParserWarning &a_Obj) +{ + if ( this == &a_Obj ) + { + return *this; + } + + m_sMsg = a_Obj.m_sMsg; + return *this; +} + +//--------------------------------------------------------------------------------------------------------------------- +/** + * @brief raise method raise for exception + */ +Q_NORETURN void QmuParserWarning::raise() const +{ + throw *this; +} + +//--------------------------------------------------------------------------------------------------------------------- +/** + * @brief clone clone exception + * @return new exception + */ +QmuParserWarning *QmuParserWarning::clone() const +{ + return new QmuParserWarning(*this); +} + } // namespace qmu diff --git a/src/libs/qmuparser/qmuparsererror.h b/src/libs/qmuparser/qmuparsererror.h index 41dad2400..4fc6d35e9 100644 --- a/src/libs/qmuparser/qmuparsererror.h +++ b/src/libs/qmuparser/qmuparsererror.h @@ -129,6 +129,31 @@ inline QString QmuParserErrorMsg::operator[] ( int a_iIdx ) const return m_vErrMsg.value(a_iIdx).translate(QString()); } +class QMUPARSERSHARED_EXPORT QmuParserWarning : public QException +{ +public: + explicit QmuParserWarning ( const QString &sMsg ); + QmuParserWarning ( const QmuParserWarning &a_Obj ); + QmuParserWarning& operator= ( const QmuParserWarning &a_Obj ); + virtual ~QmuParserWarning() QMUP_NOEXCEPT_EXPR (true) override {} + + const QString& GetMsg() const; + + Q_NORETURN virtual void raise() const override; + Q_REQUIRED_RESULT virtual QmuParserWarning *clone() const override; +private: + QString m_sMsg; ///< The message string +}; + +//--------------------------------------------------------------------------------------------------------------------- +/** + * @brief Returns the message string for this error. + */ +inline const QString& QmuParserWarning::GetMsg() const +{ + return m_sMsg; +} + //--------------------------------------------------------------------------- /** @brief Error class of the parser. @author Ingo Berg diff --git a/src/libs/qmuparser/qmutokenparser.cpp b/src/libs/qmuparser/qmutokenparser.cpp index 45a6520dd..a8840561d 100644 --- a/src/libs/qmuparser/qmutokenparser.cpp +++ b/src/libs/qmuparser/qmutokenparser.cpp @@ -63,6 +63,8 @@ QmuTokenParser::QmuTokenParser(const QString &formula, bool osSeparator, SetVarFactory(AddVariable, this); SetSepForTr(osSeparator, fromUser); + DefineFun(QStringLiteral("warning"), Warning); + // Fix for issue #776. Valentina cannot recognize translated functions. QMap::const_iterator i = translatedFunctions.constBegin(); while (i != translatedFunctions.constEnd()) @@ -100,4 +102,12 @@ bool QmuTokenParser::IsSingle(const QString &formula) return ok; } +//--------------------------------------------------------------------------------------------------------------------- +qreal QmuTokenParser::Warning(const QString &warningMsg, qreal value) +{ + Q_UNUSED(warningMsg); + + return value; +} + }// namespace qmu diff --git a/src/libs/qmuparser/qmutokenparser.h b/src/libs/qmuparser/qmutokenparser.h index 9f0f08b5e..407138d91 100644 --- a/src/libs/qmuparser/qmutokenparser.h +++ b/src/libs/qmuparser/qmutokenparser.h @@ -42,6 +42,9 @@ public: static bool IsSingle(const QString &formula); +protected: + static qreal Warning(const QString &warningMsg, qreal value); + private: Q_DISABLE_COPY(QmuTokenParser) QmuTokenParser(); diff --git a/src/libs/vdxf/libdxfrw/intern/drw_textcodec.cpp b/src/libs/vdxf/libdxfrw/intern/drw_textcodec.cpp index 3cfd120c0..307e4e81e 100644 --- a/src/libs/vdxf/libdxfrw/intern/drw_textcodec.cpp +++ b/src/libs/vdxf/libdxfrw/intern/drw_textcodec.cpp @@ -113,7 +113,7 @@ void DRW_TextCodec::setCodePage(const std::string *c, bool dxfFormat){ const QString errorMsg = QCoreApplication::translate("DRW_TextCodec", "No available codec for code page '%1'.") .arg(cp.c_str()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; if (version < DRW::AC1021 && cp == "UTF-8") { diff --git a/src/libs/vformat/vpatternrecipe.cpp b/src/libs/vformat/vpatternrecipe.cpp index 61a66245b..c8f9304b9 100644 --- a/src/libs/vformat/vpatternrecipe.cpp +++ b/src/libs/vformat/vpatternrecipe.cpp @@ -437,7 +437,7 @@ QDomElement VPatternRecipe::FinalMeasurement(const VFinalMeasurement &fm) tr("Value for final measurtement '%1' is infinite or NaN. " "Please, check your calculations.").arg(fm.name)); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } SetAttribute(recipeFinalMeasurement, QStringLiteral("value"), result); diff --git a/src/libs/vgeometry/vabstractcurve.cpp b/src/libs/vgeometry/vabstractcurve.cpp index fac6f5c3b..e8bde1cd6 100644 --- a/src/libs/vgeometry/vabstractcurve.cpp +++ b/src/libs/vgeometry/vabstractcurve.cpp @@ -146,7 +146,7 @@ QVector VAbstractCurve::GetSegmentPoints(const QPointF &begin, const QP .arg(piece, name(), error); } qApp->IsPedantic() ? throw VExceptionObjectError(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } return segment; diff --git a/src/libs/vlayout/vabstractpiece.cpp b/src/libs/vlayout/vabstractpiece.cpp index 85f9d0d16..5415a4682 100644 --- a/src/libs/vlayout/vabstractpiece.cpp +++ b/src/libs/vlayout/vabstractpiece.cpp @@ -1072,7 +1072,7 @@ QVector VAbstractPiece::Equidistant(QVector points, qreal wid { const QString errorMsg = tr("Piece '%1'. Not enough points to build seam allowance.").arg(name); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return QVector(); } diff --git a/src/libs/vlayout/vbank.cpp b/src/libs/vlayout/vbank.cpp index 12861e401..8931bec50 100644 --- a/src/libs/vlayout/vbank.cpp +++ b/src/libs/vlayout/vbank.cpp @@ -335,7 +335,7 @@ bool VBank::PrepareUnsorted() const qint64 square = details.at(i).Square(); if (square <= 0) { - qCCritical(lBank) << VAbstractValApplication::patternMessageSignature + + qCCritical(lBank) << VAbstractValApplication::warningMessageSignature + tr("Preparing data for layout error: Detail '%1' square <= 0") .arg(details.at(i).GetName()); prepare = false; @@ -360,7 +360,7 @@ bool VBank::PrepareDetails() { if (layoutWidth <= 0) { - qCCritical(lBank) << VAbstractValApplication::patternMessageSignature + + qCCritical(lBank) << VAbstractValApplication::warningMessageSignature + tr("Preparing data for layout error: Layout paper sheet <= 0"); prepare = false; return prepare; @@ -368,7 +368,7 @@ bool VBank::PrepareDetails() if (details.isEmpty()) { - qCCritical(lBank) << VAbstractValApplication::patternMessageSignature + + qCCritical(lBank) << VAbstractValApplication::warningMessageSignature + tr("Preparing data for layout error: List of details is empty"); prepare = false; return prepare; @@ -391,7 +391,7 @@ bool VBank::PrepareDetails() const QString errorMsg = QObject::tr("Piece '%1' has invalid layout allowance. Please, check seam allowance" " to check how seam allowance behave.").arg(details.at(i).GetName()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } const qreal d = details.at(i).Diagonal(); diff --git a/src/libs/vlayout/vlayoutpiece.cpp b/src/libs/vlayout/vlayoutpiece.cpp index 917bfad9a..f92062db1 100644 --- a/src/libs/vlayout/vlayoutpiece.cpp +++ b/src/libs/vlayout/vlayoutpiece.cpp @@ -269,7 +269,7 @@ QVector ConvertPassmarks(const VPiece &piece, const VContainer QObject::tr("Cannot prepare builtin passmark '%1' for piece '%2'. Passmark is empty.") .arg(pData.nodeName, piece.GetName()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return; } @@ -283,7 +283,7 @@ QVector ConvertPassmarks(const VPiece &piece, const VContainer "empty.") .arg(pData.nodeName, piece.GetName()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return; } layoutPassmark.baseLine = ConstFirst (baseLines); @@ -300,7 +300,7 @@ QVector ConvertPassmarks(const VPiece &piece, const VContainer QObject::tr("Passmark '%1' is not part of piece '%2'.") .arg(pData.nodeName, piece.GetName()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } }; @@ -326,7 +326,7 @@ QVector ConvertPassmarks(const VPiece &piece, const VContainer QObject::tr("Cannot prepare passmark '%1' for piece '%2'. Passmark base line is empty.") .arg(pData.nodeName, piece.GetName()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return; } @@ -346,7 +346,7 @@ QVector ConvertPassmarks(const VPiece &piece, const VContainer QObject::tr("Cannot prepare passmark '%1' for piece '%2'. Passmark is empty.") .arg(pData.nodeName, piece.GetName()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return; } @@ -362,7 +362,7 @@ QVector ConvertPassmarks(const VPiece &piece, const VContainer QObject::tr("Passmark '%1' is not part of piece '%2'.") .arg(pData.nodeName, piece.GetName()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } }; @@ -508,7 +508,7 @@ VLayoutPiece VLayoutPiece::Create(const VPiece &piece, vidtype id, const VContai const QString errorMsg = QObject::tr("Piece '%1'. Seam allowance is not valid.") .arg(piece.GetName()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } det.SetCountourPoints(futureMainPath.result(), diff --git a/src/libs/vlayout/vposter.cpp b/src/libs/vlayout/vposter.cpp index f7d73c80e..13d8fdd51 100644 --- a/src/libs/vlayout/vposter.cpp +++ b/src/libs/vlayout/vposter.cpp @@ -310,7 +310,7 @@ QVector VPoster::ImageWatermark(QGraphicsItem *parent, const Po { const QString errorMsg = tr("Cannot open the watermark image.") + QChar(' ') + error; qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return data; } @@ -320,7 +320,7 @@ QVector VPoster::ImageWatermark(QGraphicsItem *parent, const Po { const QString errorMsg = tr("Not supported file suffix '%1'").arg(f.suffix()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return data; } diff --git a/src/libs/vmisc/customevents.h b/src/libs/vmisc/customevents.h index 72638e16c..d99ca8b1a 100644 --- a/src/libs/vmisc/customevents.h +++ b/src/libs/vmisc/customevents.h @@ -39,7 +39,7 @@ enum CustomEventType { UndoEventType = 1, LiteParseEventType = 2, FitBestCurrentEventType = 3, - PatternMessageEventType = 4, + WarningMessageEventType = 4, }; //--------------------------------------------------------------------------------------------------------------------- @@ -84,19 +84,19 @@ public: }; //--------------------------------------------------------------------------------------------------------------------- -const QEvent::Type PATTERN_MESSAGE_EVENT = static_cast(QEvent::User + - CustomEventType::PatternMessageEventType); +const QEvent::Type WARNING_MESSAGE_EVENT = static_cast(QEvent::User + + CustomEventType::WarningMessageEventType); -class PatternMessageEvent : public QEvent +class WarningMessageEvent : public QEvent { public: - PatternMessageEvent(const QString &message, QtMsgType severity) - : QEvent(PATTERN_MESSAGE_EVENT), + WarningMessageEvent(const QString &message, QtMsgType severity) + : QEvent(WARNING_MESSAGE_EVENT), m_message(message), m_severity(severity) {} - virtual ~PatternMessageEvent() =default; + virtual ~WarningMessageEvent() =default; QString Message() const; @@ -107,12 +107,12 @@ private: QtMsgType m_severity; }; -inline QString PatternMessageEvent::Message() const +inline QString WarningMessageEvent::Message() const { return m_message; } -inline QtMsgType PatternMessageEvent::Severity() const +inline QtMsgType WarningMessageEvent::Severity() const { return m_severity; } diff --git a/src/libs/vmisc/def.cpp b/src/libs/vmisc/def.cpp index e7289a6d7..9da9d89e4 100644 --- a/src/libs/vmisc/def.cpp +++ b/src/libs/vmisc/def.cpp @@ -108,44 +108,31 @@ const QString max_F = QStringLiteral("max"); const QString sum_F = QStringLiteral("sum"); const QString avg_F = QStringLiteral("avg"); const QString fmod_F = QStringLiteral("fmod"); +const QString warning_F = QStringLiteral("warning"); -const QStringList builInFunctions = QStringList() << degTorad_F - << radTodeg_F - << sin_F - << cos_F - << tan_F - << asin_F - << acos_F - << atan_F - << sinh_F - << cosh_F - << tanh_F - << asinh_F - << acosh_F - << atanh_F - << sinD_F - << cosD_F - << tanD_F - << asinD_F - << acosD_F - << atanD_F - << log2_F - << log10_F - << log_F - << ln_F - << exp_F - << sqrt_F - << sign_F - << rint_F - << r2cm_F - << csrCm_F - << csrInch_F - << abs_F - << min_F - << max_F - << sum_F - << avg_F - << fmod_F; +const QStringList builInFunctions +{ + degTorad_F, radTodeg_F, + sin_F, cos_F, tan_F, + asin_F, acos_F, atan_F, + sinh_F, cosh_F, tanh_F, + asinh_F, acosh_F, atanh_F, + sinD_F, cosD_F, tanD_F, + asinD_F, acosD_F, atanD_F, + log2_F, log10_F, log_F, + ln_F, + exp_F, + sqrt_F, + sign_F, + rint_F, r2cm_F, + csrCm_F, csrInch_F, + abs_F, + min_F, max_F, + sum_F, + avg_F, + fmod_F, + warning_F +}; const QString pl_size = QStringLiteral("size"); const QString pl_height = QStringLiteral("height"); diff --git a/src/libs/vmisc/def.h b/src/libs/vmisc/def.h index 9b4e76ae5..73f8f96ff 100644 --- a/src/libs/vmisc/def.h +++ b/src/libs/vmisc/def.h @@ -397,6 +397,7 @@ extern const QString max_F; extern const QString sum_F; extern const QString avg_F; extern const QString fmod_F; +extern const QString warning_F; extern const QStringList builInFunctions; diff --git a/src/libs/vmisc/vabstractapplication.cpp b/src/libs/vmisc/vabstractapplication.cpp index 78d06a864..9c185d0e6 100644 --- a/src/libs/vmisc/vabstractapplication.cpp +++ b/src/libs/vmisc/vabstractapplication.cpp @@ -50,6 +50,8 @@ # include "appimage.h" #endif // defined(APPIMAGE) && defined(Q_OS_LINUX) +const QString VAbstractApplication::warningMessageSignature = QStringLiteral("[PATTERN MESSAGE]"); + //--------------------------------------------------------------------------------------------------------------------- VAbstractApplication::VAbstractApplication(int &argc, char **argv) :QApplication(argc, argv), @@ -288,3 +290,26 @@ void VAbstractApplication::ClearTranslation() delete pmsTranslator; } } + +//--------------------------------------------------------------------------------------------------------------------- +/** + * @brief ClearMessage helps to clear a message string from standard Qt function. + * @param msg the message that contains '"' at the start and at the end + * @return cleared string + */ +QString VAbstractApplication::ClearMessage(QString msg) +{ + if (msg.startsWith('"') && msg.endsWith('"')) + { + msg.remove(0, 1); + msg.chop(1); + } + + return msg; +} + +//--------------------------------------------------------------------------------------------------------------------- +bool VAbstractApplication::IsWarningMessage(const QString &message) const +{ + return VAbstractApplication::ClearMessage(message).startsWith(warningMessageSignature); +} diff --git a/src/libs/vmisc/vabstractapplication.h b/src/libs/vmisc/vabstractapplication.h index b7f9e5231..6afaf899d 100644 --- a/src/libs/vmisc/vabstractapplication.h +++ b/src/libs/vmisc/vabstractapplication.h @@ -77,6 +77,11 @@ public: virtual bool IsAppInGUIMode()const =0; virtual bool IsPedantic() const; + static QString ClearMessage(QString msg); + + static const QString warningMessageSignature; + bool IsWarningMessage(const QString &message) const; + #if defined(Q_OS_WIN) static void WinAttachConsole(); #endif diff --git a/src/libs/vmisc/vabstractvalapplication.cpp b/src/libs/vmisc/vabstractvalapplication.cpp index f9bec265a..0e36f0891 100644 --- a/src/libs/vmisc/vabstractvalapplication.cpp +++ b/src/libs/vmisc/vabstractvalapplication.cpp @@ -30,8 +30,6 @@ #include -const QString VAbstractValApplication::patternMessageSignature = QStringLiteral("[PATTERN MESSAGE]"); - //--------------------------------------------------------------------------------------------------------------------- VAbstractValApplication::VAbstractValApplication(int &argc, char **argv) : VAbstractApplication(argc, argv) @@ -50,31 +48,8 @@ double VAbstractValApplication::fromPixel(double pix) const } //--------------------------------------------------------------------------------------------------------------------- -void VAbstractValApplication::PostPatternMessage(const QString &message, QtMsgType severity) const +void VAbstractValApplication::PostWarningMessage(const QString &message, QtMsgType severity) const { QApplication::postEvent(mainWindow, - new PatternMessageEvent(VAbstractValApplication::ClearMessage(message), severity)); -} - -//--------------------------------------------------------------------------------------------------------------------- -/** - * @brief ClearMessage helps to clear a message string from standard Qt function. - * @param msg the message that contains '"' at the start and at the end - * @return cleared string - */ -QString VAbstractValApplication::ClearMessage(QString msg) -{ - if (msg.startsWith('"') && msg.endsWith('"')) - { - msg.remove(0, 1); - msg.chop(1); - } - - return msg; -} - -//--------------------------------------------------------------------------------------------------------------------- -bool VAbstractValApplication::IsPatternMessage(const QString &message) const -{ - return VAbstractValApplication::ClearMessage(message).startsWith(patternMessageSignature); + new WarningMessageEvent(VAbstractValApplication::ClearMessage(message), severity)); } diff --git a/src/libs/vmisc/vabstractvalapplication.h b/src/libs/vmisc/vabstractvalapplication.h index 105040311..a188388c8 100644 --- a/src/libs/vmisc/vabstractvalapplication.h +++ b/src/libs/vmisc/vabstractvalapplication.h @@ -98,12 +98,7 @@ public: bool getOpeningPattern() const; void setOpeningPattern(); - void PostPatternMessage(const QString &message, QtMsgType severity) const; - - static QString ClearMessage(QString msg); - - static const QString patternMessageSignature; - bool IsPatternMessage(const QString &message) const; + void PostWarningMessage(const QString &message, QtMsgType severity) const; qreal GetDimensionHeight() const; void SetDimensionHeight(qreal dimensionHeight); diff --git a/src/libs/vpatterndb/calculator.cpp b/src/libs/vpatterndb/calculator.cpp index 3139b2d8d..105877a47 100644 --- a/src/libs/vpatterndb/calculator.cpp +++ b/src/libs/vpatterndb/calculator.cpp @@ -33,10 +33,12 @@ #include #include #include +#include #include "../vmisc/def.h" #include "../qmuparser/qmuparsererror.h" #include "variables/vinternalvariable.h" +#include "../vmisc/vabstractapplication.h" //--------------------------------------------------------------------------------------------------------------------- /** @@ -63,6 +65,8 @@ Calculator::Calculator() // set value to 0. SetVarFactory(VarFactory, this); SetSepForEval(); + + DefineFun(QStringLiteral("warning"), Warning); } //--------------------------------------------------------------------------------------------------------------------- @@ -116,3 +120,12 @@ qreal *Calculator::VarFactory(const QString &a_szName, void *a_pUserData) throw qmu::QmuParserError (qmu::ecUNASSIGNABLE_TOKEN); } + +//--------------------------------------------------------------------------------------------------------------------- +qreal Calculator::Warning(const QString &warningMsg, qreal value) +{ + qApp->IsPedantic() ? throw qmu::QmuParserWarning(warningMsg) + : qWarning() << VAbstractApplication::warningMessageSignature + warningMsg; + + return value; +} diff --git a/src/libs/vpatterndb/calculator.h b/src/libs/vpatterndb/calculator.h index 08fd4dcfb..9848e6d19 100644 --- a/src/libs/vpatterndb/calculator.h +++ b/src/libs/vpatterndb/calculator.h @@ -66,6 +66,7 @@ public: qreal EvalFormula(const QHash > *vars, const QString &formula); protected: static qreal* VarFactory(const QString &a_szName, void *a_pUserData); + static qreal Warning(const QString &warningMsg, qreal value); private: Q_DISABLE_COPY(Calculator) QVector> m_varsValues; diff --git a/src/libs/vpatterndb/vpassmark.cpp b/src/libs/vpatterndb/vpassmark.cpp index f9ccf0085..d6eda48aa 100644 --- a/src/libs/vpatterndb/vpassmark.cpp +++ b/src/libs/vpatterndb/vpassmark.cpp @@ -579,7 +579,7 @@ QVector PassmarkBisectorBaseLine(PassmarkStatus seamPassmarkType, const "than minimal allowed.") .arg(passmarkData.nodeName, passmarkData.pieceName); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return QVector(); } @@ -788,7 +788,7 @@ QVector VPassmark::BuiltInSAPassmarkBaseLine(const VPiece &piece) const "than minimal allowed.") .arg(m_data.nodeName, m_data.pieceName); qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return QVector(); } } @@ -804,7 +804,7 @@ QVector VPassmark::BuiltInSAPassmarkBaseLine(const VPiece &piece) const "seam allowance. User must manually provide length.") .arg(m_data.nodeName, m_data.pieceName); qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return QVector(); } } @@ -848,7 +848,7 @@ QVector VPassmark::SAPassmarkBaseLine(const QVector &seamAllowa const QString errorMsg = QObject::tr("Cannot calculate a notch for point '%1' in piece '%2'. Seam allowance is " "empty.").arg(m_data.nodeName, m_data.pieceName); qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return QVector(); // Something wrong } @@ -860,7 +860,7 @@ QVector VPassmark::SAPassmarkBaseLine(const QVector &seamAllowa "position for a notch.") .arg(m_data.nodeName, m_data.pieceName); qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return QVector(); // Something wrong } @@ -870,7 +870,7 @@ QVector VPassmark::SAPassmarkBaseLine(const QVector &seamAllowa "notch position.") .arg(m_data.nodeName, m_data.pieceName); qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } auto PassmarkIntersection = [this, seamAllowance] (QLineF line, qreal width) @@ -897,7 +897,7 @@ QVector VPassmark::SAPassmarkBaseLine(const QVector &seamAllowa "less than minimal allowed.") .arg(m_data.nodeName, m_data.pieceName); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return QLineF(); } line.setLength(length); @@ -914,7 +914,7 @@ QVector VPassmark::SAPassmarkBaseLine(const QVector &seamAllowa "collapse.") .arg(m_data.nodeName, m_data.pieceName); qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } } else @@ -923,7 +923,7 @@ QVector VPassmark::SAPassmarkBaseLine(const QVector &seamAllowa "intersection.") .arg(m_data.nodeName, m_data.pieceName); qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } return QLineF(); @@ -938,7 +938,7 @@ QVector VPassmark::SAPassmarkBaseLine(const QVector &seamAllowa "than minimal allowed.") .arg(m_data.nodeName, m_data.pieceName); qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } else { diff --git a/src/libs/vpatterndb/vpiece.cpp b/src/libs/vpatterndb/vpiece.cpp index b5c7ff486..8f22261e9 100644 --- a/src/libs/vpatterndb/vpiece.cpp +++ b/src/libs/vpatterndb/vpiece.cpp @@ -937,7 +937,7 @@ bool VPiece::GetPassmarkPreviousSAPoints(const QVector &path, int in const QString errorMsg = tr("Cannot calculate a notch for point '%1' in piece '%2'.") .arg(VPiecePath::NodeName(path, passmarkIndex, data), GetName()); qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return false; // Something wrong } @@ -976,7 +976,7 @@ bool VPiece::GetPassmarkNextSAPoints(const QVector &path, int index, const QString errorMsg = tr("Cannot calculate a notch for point '%1' in piece '%2'.") .arg(VPiecePath::NodeName(path, passmarkIndex, data), GetName()); qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return false; // Something wrong } @@ -1060,7 +1060,7 @@ VPassmark VPiece::CreatePassmark(const QVector &path, int previousIn const QString errorMsg = tr("Cannot calculate a notch for point '%1' in piece '%2'.") .arg(VPiecePath::NodeName(path, passmarkIndex, data), GetName()); qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return VPassmark(); } @@ -1089,7 +1089,7 @@ VPassmark VPiece::CreatePassmark(const QVector &path, int previousIn const QString infoMsg = tr("Notch for point '%1' in piece '%2' will be disabled. Manual length is less than " "allowed value.") .arg(VPiecePath::NodeName(path, passmarkIndex, data), GetName()); - qInfo() << VAbstractValApplication::patternMessageSignature + infoMsg; + qInfo() << VAbstractValApplication::warningMessageSignature + infoMsg; return VPassmark(); } diff --git a/src/libs/vpatterndb/vpiecenode.cpp b/src/libs/vpatterndb/vpiecenode.cpp index 1798f2a02..719d8f089 100644 --- a/src/libs/vpatterndb/vpiecenode.cpp +++ b/src/libs/vpatterndb/vpiecenode.cpp @@ -162,7 +162,7 @@ qreal VPieceNode::GetSABefore(const VContainer *data) const const QString errorMsg = QObject::tr("Cannot calculate seam allowance before for point '%1'. Reason: %2.") .arg(nodeName, formula.Reason()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return -1; } return formula.getDoubleValue(); @@ -193,7 +193,7 @@ qreal VPieceNode::GetSABefore(const VContainer *data, Unit unit) const const QString errorMsg = QObject::tr("Cannot calculate seam allowance before for point '%1'. Reason: %2.") .arg(nodeName, formula.Reason()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return -1; } @@ -245,7 +245,7 @@ qreal VPieceNode::GetSAAfter(const VContainer *data) const const QString errorMsg = QObject::tr("Cannot calculate seam allowance after for point '%1'. Reason: %2.") .arg(nodeName, formula.Reason()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return -1; } @@ -277,7 +277,7 @@ qreal VPieceNode::GetSAAfter(const VContainer *data, Unit unit) const const QString errorMsg = QObject::tr("Cannot calculate seam allowance after for point '%1'. Reason: ") .arg(nodeName, formula.Reason()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return -1; } @@ -343,7 +343,7 @@ qreal VPieceNode::GetPassmarkLength(const VContainer *data, Unit unit) const const QString errorMsg = QObject::tr("Cannot calculate passmark length for point '%1'. Reason: %2.") .arg(nodeName, formula.Reason()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; return VSAPoint::maxPassmarkLength; } diff --git a/src/libs/vpatterndb/vpiecepath.cpp b/src/libs/vpatterndb/vpiecepath.cpp index 59c2ebb73..0cd36482c 100644 --- a/src/libs/vpatterndb/vpiecepath.cpp +++ b/src/libs/vpatterndb/vpiecepath.cpp @@ -385,7 +385,7 @@ QVector VPiecePath::PathPoints(const VContainer *data, const QVectorIsPedantic() ? throw VExceptionObjectError(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } } @@ -402,7 +402,7 @@ QVector VPiecePath::PathPoints(const VContainer *data, const QVectorIsPedantic() ? throw VExceptionObjectError(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } } diff --git a/src/libs/vpatterndb/vtranslatevars.cpp b/src/libs/vpatterndb/vtranslatevars.cpp index 0931a12b2..d75078b84 100644 --- a/src/libs/vpatterndb/vtranslatevars.cpp +++ b/src/libs/vpatterndb/vtranslatevars.cpp @@ -533,6 +533,9 @@ void VTranslateVars::InitFunctions() functionsDescriptions.insert(fmod_F, translate("VTranslateVars", "Returns the floating-point remainder of " "numer/denom (rounded towards zero)", "function fmod")); + functions.insert(warning_F, translate("VTranslateVars", "warning", "Calculation warning")); + functionsDescriptions.insert(warning_F, translate("VTranslateVars", "Show a warning in calculations", + "function warning")); } #undef translate diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolcurveintersectaxis.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolcurveintersectaxis.cpp index cd59ab249..662185787 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolcurveintersectaxis.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolcurveintersectaxis.cpp @@ -145,7 +145,7 @@ VToolCurveIntersectAxis *VToolCurveIntersectAxis::Create(VToolCurveIntersectAxis " through point '%3' with angle %4°") .arg(initData.name, curve->ObjectName(), basePoint->name()).arg(angle); qApp->IsPedantic() ? throw VExceptionObjectError(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } const qreal segLength = curve->GetLengthByPoint(fPoint); diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.cpp index 84d8b3830..5415067c1 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoollineintersectaxis.cpp @@ -137,7 +137,7 @@ VToolLineIntersectAxis *VToolLineIntersectAxis::Create(VToolLineIntersectAxisIni "through point '%4' and angle %5°") .arg(initData.name, firstPoint->name(), secondPoint->name(), basePoint->name()).arg(axis.angle()); qApp->IsPedantic() ? throw VExceptionObjectError(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } VPointF *p = new VPointF(fPoint, initData.name, initData.mx, initData.my); diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoollineintersect.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoollineintersect.cpp index 995acdaa5..fe63d38dd 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoollineintersect.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoollineintersect.cpp @@ -152,7 +152,7 @@ VToolLineIntersect* VToolLineIntersect::Create(VToolLineIntersectInitData initDa "intersection") .arg(initData.name, p1Line1->name(), p2Line1->name(), p1Line2->name(), p2Line2->name()); qApp->IsPedantic() ? throw VExceptionObjectError(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } VPointF *p = new VPointF(fPoint, initData.name, initData.mx, initData.my); diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromarcandtangent.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromarcandtangent.cpp index ff1b81a74..a7536d80b 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromarcandtangent.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromarcandtangent.cpp @@ -124,7 +124,7 @@ VToolPointFromArcAndTangent *VToolPointFromArcAndTangent::Create(VToolPointFromA const QString errorMsg = tr("Error calculating point '%1'. Tangent to arc '%2' from point '%3' cannot be found") .arg(initData.name, arc.ObjectName(), tPoint.name()); qApp->IsPedantic() ? throw VExceptionObjectError(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } VPointF *p = new VPointF(point, initData.name, initData.mx, initData.my); diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromcircleandtangent.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromcircleandtangent.cpp index 19fb58a80..0890794a2 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromcircleandtangent.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointfromcircleandtangent.cpp @@ -133,7 +133,7 @@ VToolPointFromCircleAndTangent *VToolPointFromCircleAndTangent::Create(VToolPoin .arg(initData.name, cPoint.name()).arg(radius).arg(tPoint.name()); qApp->IsPedantic() ? throw VExceptionObjectError(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } VPointF *p = new VPointF(point, initData.name, initData.mx, initData.my); diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofcontact.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofcontact.cpp index 56d0f0aa5..30bbda66c 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofcontact.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofcontact.cpp @@ -219,7 +219,7 @@ VToolPointOfContact* VToolPointOfContact::Create(VToolPointOfContactInitData &in "intersection with line (%4;%5)") .arg(initData.name, centerP->name()).arg(result).arg(firstP->name(), secondP->name()); qApp->IsPedantic() ? throw VExceptionObjectError(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } VPointF *p = new VPointF(fPoint, initData.name, initData.mx, initData.my); diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectionarcs.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectionarcs.cpp index 23dc7842e..33069a0b1 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectionarcs.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectionarcs.cpp @@ -123,7 +123,7 @@ VToolPointOfIntersectionArcs *VToolPointOfIntersectionArcs::Create(VToolPointOfI const QString errorMsg = tr("Error calculating point '%1'. Arcs '%2' and '%3' have no point of intersection") .arg(initData.name, firstArc->ObjectName(), secondArc->ObjectName()); qApp->IsPedantic() ? throw VExceptionObjectError(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } VPointF *p = new VPointF(point, initData.name, initData.mx, initData.my); diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncircles.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncircles.cpp index 164031486..dabd037bf 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncircles.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncircles.cpp @@ -137,7 +137,7 @@ VToolPointOfIntersectionCircles::Create(VToolPointOfIntersectionCirclesInitData const QString errorMsg = tr("Error calculating point '%1'. Circles with centers in points '%2' and '%3' have " "no point of intersection").arg(initData.name, c1Point.name(), c2Point.name()); qApp->IsPedantic() ? throw VExceptionObjectError(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } VPointF *p = new VPointF(point, initData.name, initData.mx, initData.my); diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncurves.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncurves.cpp index c9178c162..0a8e0cc5d 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncurves.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncurves.cpp @@ -128,7 +128,7 @@ VToolPointOfIntersectionCurves *VToolPointOfIntersectionCurves::Create(VToolPoin const QString errorMsg = tr("Error calculating point '%1'. Curves '%2' and '%3' have no point of intersection") .arg(initData.name, curve1->name(), curve2->name()); qApp->IsPedantic() ? throw VExceptionObjectError(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } VPointF *p = new VPointF(point, initData.name, initData.mx, initData.my); diff --git a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtooltriangle.cpp b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtooltriangle.cpp index 12d8073fc..79833306d 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtooltriangle.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/toolsinglepoint/vtooltriangle.cpp @@ -150,7 +150,7 @@ VToolTriangle* VToolTriangle::Create(VToolTriangleInitData initData) const QString errorMsg = tr("Error calculating point '%1'. Point of intersection cannot be found") .arg(initData.name); qApp->IsPedantic() ? throw VExceptionObjectError(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } VPointF *p = new VPointF(point, initData.name, initData.mx, initData.my); diff --git a/src/libs/vtools/tools/vtoolseamallowance.cpp b/src/libs/vtools/tools/vtoolseamallowance.cpp index e69c12bab..11eb6dd34 100644 --- a/src/libs/vtools/tools/vtoolseamallowance.cpp +++ b/src/libs/vtools/tools/vtoolseamallowance.cpp @@ -1321,7 +1321,7 @@ void VToolSeamAllowance::RefreshGeometry(bool updateChildren) const QString errorMsg = QObject::tr("Piece '%1'. Seam allowance is not valid.") .arg(detail.GetName()); qApp->IsPedantic() ? throw VException(errorMsg) : - qWarning() << VAbstractValApplication::patternMessageSignature + errorMsg; + qWarning() << VAbstractValApplication::warningMessageSignature + errorMsg; } path.addPath(detail.SeamAllowancePath(futureSeamAllowance.result())); path.setFillRule(Qt::OddEvenFill); diff --git a/src/test/TranslationsTest/TranslationsTest.pro b/src/test/TranslationsTest/TranslationsTest.pro index 5267100dd..5ef2c3862 100644 --- a/src/test/TranslationsTest/TranslationsTest.pro +++ b/src/test/TranslationsTest/TranslationsTest.pro @@ -129,15 +129,6 @@ DEPENDPATH += $$PWD/../../libs/vpatterndb win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vpatterndb/$${DESTDIR}/vpatterndb.lib else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vpatterndb/$${DESTDIR}/libvpatterndb.a -#VMisc static library -unix|win32: LIBS += -L$$OUT_PWD/../../libs/vmisc/$${DESTDIR} -lvmisc - -INCLUDEPATH += $$PWD/../../libs/vmisc -DEPENDPATH += $$PWD/../../libs/vmisc - -win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vmisc/$${DESTDIR}/vmisc.lib -else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vmisc/$${DESTDIR}/libvmisc.a - ## VGeometry static library (depend on ifc) unix|win32: LIBS += -L$$OUT_PWD/../../libs/vgeometry/$${DESTDIR} -lvgeometry @@ -156,6 +147,15 @@ DEPENDPATH += $$PWD/../../libs/ifc win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/ifc/$${DESTDIR}/ifc.lib else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/ifc/$${DESTDIR}/libifc.a +#VMisc static library +unix|win32: LIBS += -L$$OUT_PWD/../../libs/vmisc/$${DESTDIR} -lvmisc + +INCLUDEPATH += $$PWD/../../libs/vmisc +DEPENDPATH += $$PWD/../../libs/vmisc + +win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vmisc/$${DESTDIR}/vmisc.lib +else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vmisc/$${DESTDIR}/libvmisc.a + # QMuParser library win32:CONFIG(release, debug|release): LIBS += -L$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -lqmuparser2 else:win32:CONFIG(debug, debug|release): LIBS += -L$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -lqmuparser2 diff --git a/src/test/ValentinaTest/ValentinaTest.pro b/src/test/ValentinaTest/ValentinaTest.pro index 6dd422899..7cff6b9be 100644 --- a/src/test/ValentinaTest/ValentinaTest.pro +++ b/src/test/ValentinaTest/ValentinaTest.pro @@ -186,6 +186,15 @@ DEPENDPATH += $$PWD/../../libs/vpatterndb win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vpatterndb/$${DESTDIR}/vpatterndb.lib else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vpatterndb/$${DESTDIR}/libvpatterndb.a +# VGeometry static library (depend on ifc, VMisc) +unix|win32: LIBS += -L$$OUT_PWD/../../libs/vgeometry/$${DESTDIR} -lvgeometry + +INCLUDEPATH += $$PWD/../../libs/vgeometry +DEPENDPATH += $$PWD/../../libs/vgeometry + +win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vgeometry/$${DESTDIR}/vgeometry.lib +else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vgeometry/$${DESTDIR}/libvgeometry.a + # IFC static library (depend on QMuParser, VMisc) unix|win32: LIBS += -L$$OUT_PWD/../../libs/ifc/$${DESTDIR}/ -lifc @@ -204,15 +213,6 @@ DEPENDPATH += $$PWD/../../libs/vmisc win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vmisc/$${DESTDIR}/vmisc.lib else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vmisc/$${DESTDIR}/libvmisc.a -# VGeometry static library (depend on ifc) -unix|win32: LIBS += -L$$OUT_PWD/../../libs/vgeometry/$${DESTDIR} -lvgeometry - -INCLUDEPATH += $$PWD/../../libs/vgeometry -DEPENDPATH += $$PWD/../../libs/vgeometry - -win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vgeometry/$${DESTDIR}/vgeometry.lib -else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vgeometry/$${DESTDIR}/libvgeometry.a - # VDxf static library unix|win32: LIBS += -L$$OUT_PWD/../../libs/vdxf/$${DESTDIR}/ -lvdxf From 330378e5b9a6d2760318b6191b24b665aa1dcf05 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 20 Nov 2020 13:24:34 +0200 Subject: [PATCH 45/45] Lupdate. --- share/translations/valentina.ts | 22 ++++++++++++++++++++++ share/translations/valentina_cs_CZ.ts | 22 ++++++++++++++++++++++ share/translations/valentina_de_DE.ts | 22 ++++++++++++++++++++++ share/translations/valentina_el_GR.ts | 22 ++++++++++++++++++++++ share/translations/valentina_en_CA.ts | 22 ++++++++++++++++++++++ share/translations/valentina_en_IN.ts | 22 ++++++++++++++++++++++ share/translations/valentina_en_US.ts | 22 ++++++++++++++++++++++ share/translations/valentina_es_ES.ts | 22 ++++++++++++++++++++++ share/translations/valentina_fi_FI.ts | 22 ++++++++++++++++++++++ share/translations/valentina_fr_FR.ts | 22 ++++++++++++++++++++++ share/translations/valentina_he_IL.ts | 22 ++++++++++++++++++++++ share/translations/valentina_id_ID.ts | 22 ++++++++++++++++++++++ share/translations/valentina_it_IT.ts | 22 ++++++++++++++++++++++ share/translations/valentina_nl_NL.ts | 22 ++++++++++++++++++++++ share/translations/valentina_pl_PL.ts | 22 ++++++++++++++++++++++ share/translations/valentina_pt_BR.ts | 22 ++++++++++++++++++++++ share/translations/valentina_ro_RO.ts | 22 ++++++++++++++++++++++ share/translations/valentina_ru_RU.ts | 22 ++++++++++++++++++++++ share/translations/valentina_uk_UA.ts | 22 ++++++++++++++++++++++ share/translations/valentina_zh_CN.ts | 22 ++++++++++++++++++++++ 20 files changed, 440 insertions(+) diff --git a/share/translations/valentina.ts b/share/translations/valentina.ts index b818b8d47..b927156dc 100644 --- a/share/translations/valentina.ts +++ b/share/translations/valentina.ts @@ -8043,6 +8043,10 @@ Apply settings anyway? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -10702,6 +10706,10 @@ This option will take an affect after restart. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QSaveFile @@ -13240,6 +13248,10 @@ Do you want to save your changes? Invalid notch. + + Formula warning: %1. Program will be terminated. + + VBank @@ -17222,6 +17234,16 @@ Do you want to save your changes? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_cs_CZ.ts b/share/translations/valentina_cs_CZ.ts index 95a61aabf..b484a30cd 100644 --- a/share/translations/valentina_cs_CZ.ts +++ b/share/translations/valentina_cs_CZ.ts @@ -7839,6 +7839,10 @@ Přesto použít nastavení? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -10459,6 +10463,10 @@ Tato volba se projeví po opětovném spuštění. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QSaveFile @@ -12816,6 +12824,10 @@ Chcete uložit změny? Invalid notch. Neplatný zářez. + + Formula warning: %1. Program will be terminated. + + VBank @@ -16750,6 +16762,16 @@ Chcete uložit změny? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_de_DE.ts b/share/translations/valentina_de_DE.ts index 994b8e853..00d86baa2 100644 --- a/share/translations/valentina_de_DE.ts +++ b/share/translations/valentina_de_DE.ts @@ -7836,6 +7836,10 @@ Einstellungen trotzdem anwenden? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -10456,6 +10460,10 @@ Diese Option wird nach einem Neustart aktiv. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QSaveFile @@ -12811,6 +12819,10 @@ Do you want to save your changes? Invalid notch. Fehlerhafter Einschnitt. + + Formula warning: %1. Program will be terminated. + + VBank @@ -16708,6 +16720,16 @@ Do you want to save your changes? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_el_GR.ts b/share/translations/valentina_el_GR.ts index 1cbdcded6..f47d4af09 100644 --- a/share/translations/valentina_el_GR.ts +++ b/share/translations/valentina_el_GR.ts @@ -7720,6 +7720,10 @@ Apply settings anyway? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -10244,6 +10248,10 @@ This option will take an affect after restart. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QmuParser @@ -12522,6 +12530,10 @@ Do you want to save your changes? Invalid notch. + + Formula warning: %1. Program will be terminated. + + VBank @@ -16195,6 +16207,16 @@ Do you want to save your changes? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_en_CA.ts b/share/translations/valentina_en_CA.ts index 9681c8e9f..35e22d28d 100644 --- a/share/translations/valentina_en_CA.ts +++ b/share/translations/valentina_en_CA.ts @@ -7835,6 +7835,10 @@ Apply settings anyway? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -10450,6 +10454,10 @@ This option will take an affect after restart. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QSaveFile @@ -12807,6 +12815,10 @@ Do you want to save your changes? Invalid notch. + + Formula warning: %1. Program will be terminated. + + VBank @@ -16741,6 +16753,16 @@ Do you want to save your changes? function fmod Returns the floating-point remainder of numer/denom (rounded towards zero) + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_en_IN.ts b/share/translations/valentina_en_IN.ts index c2480636f..45eb63d21 100644 --- a/share/translations/valentina_en_IN.ts +++ b/share/translations/valentina_en_IN.ts @@ -7835,6 +7835,10 @@ Apply settings anyway? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -10450,6 +10454,10 @@ This option will take an affect after restart. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QSaveFile @@ -12807,6 +12815,10 @@ Do you want to save your changes? Invalid notch. + + Formula warning: %1. Program will be terminated. + + VBank @@ -16741,6 +16753,16 @@ Do you want to save your changes? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_en_US.ts b/share/translations/valentina_en_US.ts index 2735dfa37..6a4b4e877 100644 --- a/share/translations/valentina_en_US.ts +++ b/share/translations/valentina_en_US.ts @@ -7835,6 +7835,10 @@ Apply settings anyway? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -10450,6 +10454,10 @@ This option will take an affect after restart. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QSaveFile @@ -12807,6 +12815,10 @@ Do you want to save your changes? Invalid notch. + + Formula warning: %1. Program will be terminated. + + VBank @@ -16741,6 +16753,16 @@ Do you want to save your changes? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_es_ES.ts b/share/translations/valentina_es_ES.ts index 2ebe775ec..71a7f8fde 100644 --- a/share/translations/valentina_es_ES.ts +++ b/share/translations/valentina_es_ES.ts @@ -7836,6 +7836,10 @@ Aplicar características de todos modos? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -10457,6 +10461,10 @@ Esta opción surtirá efecto después de reiniciar. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QSaveFile @@ -12814,6 +12822,10 @@ Quieres guardar los cambios? Invalid notch. Pique invalido. + + Formula warning: %1. Program will be terminated. + + VBank @@ -16748,6 +16760,16 @@ Quieres guardar los cambios? function fmod Devuelve el resto de punto flotante de numerador/denominador (redondeado hacia cero) + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_fi_FI.ts b/share/translations/valentina_fi_FI.ts index 4fb8dd3a3..e7b0410f6 100644 --- a/share/translations/valentina_fi_FI.ts +++ b/share/translations/valentina_fi_FI.ts @@ -7036,6 +7036,10 @@ Apply settings anyway? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -9340,6 +9344,10 @@ This option will take an affect after restart. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QmuParser @@ -11464,6 +11472,10 @@ Do you want to save your changes? Invalid notch. + + Formula warning: %1. Program will be terminated. + + VBank @@ -15082,6 +15094,16 @@ Do you want to save your changes? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_fr_FR.ts b/share/translations/valentina_fr_FR.ts index 6b5692722..069adcb43 100644 --- a/share/translations/valentina_fr_FR.ts +++ b/share/translations/valentina_fr_FR.ts @@ -7832,6 +7832,10 @@ Apply settings anyway? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -10431,6 +10435,10 @@ This option will take an affect after restart. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QSaveFile @@ -12779,6 +12787,10 @@ Voulez-vous enregistrer les changements? Invalid notch. + + Formula warning: %1. Program will be terminated. + + VBank @@ -16700,6 +16712,16 @@ Voulez-vous enregistrer les changements? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_he_IL.ts b/share/translations/valentina_he_IL.ts index 43f6119fb..5bc2210dc 100644 --- a/share/translations/valentina_he_IL.ts +++ b/share/translations/valentina_he_IL.ts @@ -6166,6 +6166,10 @@ Apply settings anyway? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -8287,6 +8291,10 @@ This option will take an affect after restart. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QmuParser @@ -10252,6 +10260,10 @@ Do you want to save your changes? Invalid notch. + + Formula warning: %1. Program will be terminated. + + VBank @@ -13682,6 +13694,16 @@ Do you want to save your changes? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VWidgetDetails diff --git a/share/translations/valentina_id_ID.ts b/share/translations/valentina_id_ID.ts index 0cd4baecc..ffada498a 100644 --- a/share/translations/valentina_id_ID.ts +++ b/share/translations/valentina_id_ID.ts @@ -6503,6 +6503,10 @@ Apply settings anyway? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -8625,6 +8629,10 @@ This option will take an affect after restart. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QmuParser @@ -10632,6 +10640,10 @@ Do you want to save your changes? Invalid notch. + + Formula warning: %1. Program will be terminated. + + VBank @@ -14083,6 +14095,16 @@ Do you want to save your changes? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VWidgetDetails diff --git a/share/translations/valentina_it_IT.ts b/share/translations/valentina_it_IT.ts index ec852ced6..7d8a2cdc1 100644 --- a/share/translations/valentina_it_IT.ts +++ b/share/translations/valentina_it_IT.ts @@ -7829,6 +7829,10 @@ Applicare la configurazione comunque? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -10441,6 +10445,10 @@ Questa opzione sarà effettiva dopo il riavvio del programma. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QSaveFile @@ -12793,6 +12801,10 @@ Vuoi salvare le tue modifiche? Invalid notch. Tacca non valida. + + Formula warning: %1. Program will be terminated. + + VBank @@ -16595,6 +16607,16 @@ Vuoi salvare le tue modifiche? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_nl_NL.ts b/share/translations/valentina_nl_NL.ts index 77669fafd..415062300 100644 --- a/share/translations/valentina_nl_NL.ts +++ b/share/translations/valentina_nl_NL.ts @@ -7837,6 +7837,10 @@ Toch de instellingen aanpassen? Invalid dimension C base value. Ongeldige waarde voor dimensie C basis. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -10456,6 +10460,10 @@ Deze optie wordt actief na een herstart.. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 Fout in pad '%1'. Berekening van segment voor boog '%2' is mislukt. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QSaveFile @@ -12813,6 +12821,10 @@ Wil je deze veranderingen opslaan? Invalid notch. Ongeldige inkeping. + + Formula warning: %1. Program will be terminated. + + VBank @@ -16747,6 +16759,16 @@ Wil je deze veranderingen opslaan? function fmod Brengt het drijvende-punt restant van numerator/denominator terug ( afgerond naar nul) + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_pl_PL.ts b/share/translations/valentina_pl_PL.ts index 034efbb6e..414811858 100644 --- a/share/translations/valentina_pl_PL.ts +++ b/share/translations/valentina_pl_PL.ts @@ -7122,6 +7122,10 @@ Apply settings anyway? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -9443,6 +9447,10 @@ This option will take an affect after restart. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QmuParser @@ -11676,6 +11684,10 @@ Do you want to save your changes? Invalid notch. + + Formula warning: %1. Program will be terminated. + + VBank @@ -15211,6 +15223,16 @@ Do you want to save your changes? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_pt_BR.ts b/share/translations/valentina_pt_BR.ts index d23f5fd19..56d86514b 100644 --- a/share/translations/valentina_pt_BR.ts +++ b/share/translations/valentina_pt_BR.ts @@ -7829,6 +7829,10 @@ Aplicar configurações de qualquer forma? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -10433,6 +10437,10 @@ Esta opção terá um efeito após o reinício. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QSaveFile @@ -12786,6 +12794,10 @@ Deseja salvar suas mudanças? Invalid notch. + + Formula warning: %1. Program will be terminated. + + VBank @@ -16622,6 +16634,16 @@ Deseja salvar suas mudanças? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_ro_RO.ts b/share/translations/valentina_ro_RO.ts index bd4741422..8232f541c 100644 --- a/share/translations/valentina_ro_RO.ts +++ b/share/translations/valentina_ro_RO.ts @@ -7091,6 +7091,10 @@ Apply settings anyway? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -9307,6 +9311,10 @@ This option will take an affect after restart. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QmuParser @@ -11397,6 +11405,10 @@ Do you want to save your changes? Invalid notch. + + Formula warning: %1. Program will be terminated. + + VBank @@ -14894,6 +14906,16 @@ Do you want to save your changes? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VWidgetDetails diff --git a/share/translations/valentina_ru_RU.ts b/share/translations/valentina_ru_RU.ts index b86b3428a..1b1ebd893 100644 --- a/share/translations/valentina_ru_RU.ts +++ b/share/translations/valentina_ru_RU.ts @@ -7839,6 +7839,10 @@ Apply settings anyway? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -10458,6 +10462,10 @@ This option will take an affect after restart. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QSaveFile @@ -12815,6 +12823,10 @@ Do you want to save your changes? Invalid notch. Неправильная надсечка. + + Formula warning: %1. Program will be terminated. + + VBank @@ -16754,6 +16766,16 @@ Do you want to save your changes? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_uk_UA.ts b/share/translations/valentina_uk_UA.ts index 5250534d4..82340c88f 100644 --- a/share/translations/valentina_uk_UA.ts +++ b/share/translations/valentina_uk_UA.ts @@ -7837,6 +7837,10 @@ Apply settings anyway? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -10451,6 +10455,10 @@ This option will take an affect after restart. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QSaveFile @@ -12807,6 +12815,10 @@ Do you want to save your changes? Invalid notch. + + Formula warning: %1. Program will be terminated. + + VBank @@ -16740,6 +16752,16 @@ Do you want to save your changes? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VVITConverter diff --git a/share/translations/valentina_zh_CN.ts b/share/translations/valentina_zh_CN.ts index 6816278d1..9af1bdc25 100644 --- a/share/translations/valentina_zh_CN.ts +++ b/share/translations/valentina_zh_CN.ts @@ -6284,6 +6284,10 @@ Apply settings anyway? Invalid dimension C base value. + + Formula warning: %1. Program will be terminated. + + MainWindow @@ -8427,6 +8431,10 @@ This option will take an affect after restart. Error in path '%1'. Calculating segment for curve '%2' has failed. %3 + + Cannot get tokens from formula '%1'. Formula error: %2. + + QmuParser @@ -10465,6 +10473,10 @@ Do you want to save your changes? Invalid notch. + + Formula warning: %1. Program will be terminated. + + VBank @@ -13886,6 +13898,16 @@ Do you want to save your changes? function fmod + + warning + Calculation warning + + + + Show a warning in calculations + function warning + + VWidgetDetails