Commit graph

330 commits

Author SHA1 Message Date
Roman Telezhynskyi 26693777cc Define versions for dynamic libraries. 2023-01-10 13:27:56 +02:00
Roman Telezhynskyi 2788e0a136 Successful build of test binaries. 2023-01-04 21:00:11 +02:00
Roman Telezhynskyi eb38a1c26f Successful build of main binaries. 2023-01-04 18:31:50 +02:00
Roman Telezhynskyi d6e417b197 Export area of piece in Final measurements. 2022-11-10 11:46:05 +02:00
Roman Telezhynskyi 99fad389b0 Refactoring. 2022-11-08 16:58:20 +02:00
Roman Telezhynskyi 4a89a0892f Introduce new macro Q_DISABLE_ASSIGN_MOVE. 2022-10-08 15:22:17 +03:00
Roman Telezhynskyi a13f13e3fc Refactoring.
Optimize includes.
2022-08-22 11:34:02 +03:00
Roman Telezhynskyi 003c9bf33f Fix build. 2022-08-17 15:51:35 +03:00
Roman Telezhynskyi a0224bd6a2 Fix build on Windows. 2022-08-17 10:01:51 +03:00
Roman Telezhynskyi 0ab0edc654 Refactoring. 2022-08-12 18:50:22 +03:00
Roman Telezhynskyi 4e07172a6f Cppcheck warnings. 2022-08-08 15:25:14 +03:00
Roman Telezhynskyi f04c570442 Fix build on Windows. 2021-09-26 19:53:50 +03:00
Roman Telezhynskyi b861d6a28e GCC warnings. 2021-09-25 17:18:33 +03:00
Roman Telezhynskyi 2ffda9a073 Introduce *_MARK_NONFINAL_CLASS and *_MARK_NONFINAL_METHOD macroses to suppress GCC warning Wsuggest-final-types. 2021-09-25 11:43:05 +03:00
Roman Telezhynskyi 5672e616af Fix parsing formulas with not canonical math symbols. 2021-06-11 15:30:06 +03:00
Roman Telezhynskyi 2a9adb5d88 Fix deprecation warning.
Some headers from C library were deprecated in C++ and are no longer welcome in C++ codebases.
2021-04-09 17:51:45 +03:00
Roman Telezhynskyi 3c0c624682 Don't check warnings for a legacy mac os x build. 2020-12-26 19:44:55 +02:00
Roman Telezhynskyi abe92c667d Temporary enable full output for macosx. 2020-12-25 09:40:18 +02:00
Roman Telezhynskyi 8aea612202 Fix build on Windows. 2020-11-20 19:53:36 +02:00
Roman Telezhynskyi 80d9fbc107 New function Warning. 2020-11-20 13:18:38 +02:00
Roman Telezhynskyi 43db94f4b0 Fix conditions. 2020-07-06 15:37:41 +03:00
Roman Telezhynskyi 8bf4c85e6e Fix deprecation warnings. 2020-07-06 09:41:08 +03:00
Roman Telezhynskyi bdceb76316 Fix matching new line character at the end of label. Closes smart-pattern/valentina#46.
Because Perl returns a string with a newline at the end when reading a line from a file, Perl’s regex engine matches $ at the position before the line break at the end of the string even when multi-line mode is turned off. Perl also matches $ at the very end of the string, regardless of whether that character is a line break. So ^\d+$ matches 123 whether the subject string is 123 or 123\n.

Most modern regex flavors have copied this behavior. That includes .NET, Java, PCRE, Delphi, PHP, and Python. This behavior is independent of any settings such as “multi-line mode”.

In all these flavors except Python, \Z also matches before the final line break. If you only want a match at the absolute very end of the string, use \z (lowercase z instead of uppercase Z). \A\d+\z does not match 123\n. \z matches after the line break, which is not matched by the shorthand character class.
2020-06-01 17:42:20 +03:00
Roman Telezhynskyi bfe9bd808d Fix cast warning.
(grafted from f7b7f00f0f117582449259e974fc53182df958cb)

--HG--
branch : develop
2020-01-06 20:11:23 +02:00
Roman Telezhynskyi d74225e63e QLineF::IntersectType QLineF::intersect(const QLineF&, QPointF*) const' is
deprecated: Use intersects() instead.
(grafted from b8646bf40865848ad48eae89cae8419483d56f6b)

--HG--
branch : develop
2020-01-06 18:34:35 +02:00
Roman Telezhynskyi 84001dac61 Refactoring. Added move constructor.
--HG--
branch : develop
2019-12-30 17:13:18 +02:00
Roman Telezhynskyi 74bb3e4369 Fix move sematic.
(grafted from fb8691f522f3515d7c3014a0ea90b60b352a444e)

--HG--
branch : develop
2019-12-30 13:00:57 +02:00
Roman Telezhynskyi 41c3ddf5db ${TARGET} variable works differently for shared libraries.
--HG--
branch : develop
2019-12-22 12:44:43 +02:00
Roman Telezhynskyi 888a968056 Refactoring. Remove unneeded conditions.
--HG--
branch : develop
2019-12-22 11:48:42 +02:00
Roman Telezhynskyi 3c69b425ec Fix noDebugSymbols.
--HG--
branch : develop
2019-11-29 19:55:27 +02:00
Roman Telezhynskyi 0bd69403d7 Fixed translation numbers in scientific notation.
(grafted from ad76bd9f92578e8f4a6f9ae21ad569eec1abec8f)

--HG--
branch : develop
2019-10-30 11:34:01 +02:00
Roman Telezhynskyi 4263874d30 Fixed issue #979. Pattern is not designed correctly on last beta version.
Backed out changeset: cfc33c4b93b0

--HG--
branch : develop
2019-09-09 18:47:16 +03:00
Roman Telezhynskyi 0a28339963 Fix inverse trigonometric functions. Wrong work with degrees.
(grafted from 91c06257daf0d9172d41348dac216027d9f0a855)

--HG--
branch : develop
2019-08-26 09:15:46 +03:00
Roman Telezhynskyi 0658d92688 New marcos Q_DISABLE_ASSIGN.
--HG--
branch : develop
2019-07-01 11:33:29 +03:00
Roman Telezhynskyi 5c55778d66 Since Q5.12 available support for C++17.
--HG--
branch : develop
2019-05-28 17:41:15 +03:00
Roman Telezhynskyi 65a9be6b9d Fixed issue #967. Variable must not include new line character.
(grafted from f263dbaec52fb6950e1db27c62313f57748f4838)

--HG--
branch : develop
2019-04-20 20:19:30 +03:00
Roman Telezhynskyi 0966f536b8 Fixed issue #964. Assign operator crashes math parser.
(grafted from 9fd845b77249b4edc1bdc0a42dc4b32fb5f036f6)

--HG--
branch : develop
2019-04-13 18:18:48 +03:00
Roman Telezhynskyi 0987428a93 Increase required Qt version up to 5.4.
--HG--
branch : develop
2019-04-05 15:42:22 +03:00
Roman Telezhynskyi 35245cd161 Supress Wcast-function-type.
--HG--
branch : develop
2019-04-03 15:42:12 +03:00
Roman Telezhynskyi a214a78006 Continue replacing custom *_FALLTHROUGH macroses with Q_FALLTHROUGH().
--HG--
branch : develop
2019-03-27 13:31:02 +02:00
Roman Telezhynskyi 1cc5fac34a Fixing error: undefined reference to FindFirstNotOf.
(grafted from 9da0b82a1e0e8f794868fa31b4a1b492f1b64c4a)

--HG--
branch : develop
2019-01-18 09:05:51 +02:00
Roman Telezhynskyi 1a44f7968a Fixed issue #931. Variable translation for Greek and Chinese are broken.
(grafted from d24d4570fc861a487cb6a1e76d2d828f1e1d7386)

--HG--
branch : develop
2019-01-17 16:08:55 +02:00
Roman Telezhynskyi 5f5b7e41fa Enable alternative operator representations for support old or nonconforming
compilers by default.

--HG--
branch : develop
2018-12-11 22:27:55 +02:00
Roman Telezhynskyi 515df843d3 New function VFuzzyComparePoints to compare two points.
--HG--
branch : release
2018-09-27 14:52:21 +03:00
Roman Telezhynskyi e7d0208c47 Fix typo.
--HG--
branch : develop
2018-06-26 21:23:22 +03:00
Roman Telezhynskyi 279fe7bff7 Cppcheck warning 'qrandCalled'.
--HG--
branch : develop
2018-06-26 16:24:07 +03:00
Roman Telezhynskyi 63b1eb8068 Cppcheck warning 'missingOverride'.
--HG--
branch : develop
2018-06-26 15:53:48 +03:00
Roman Telezhynskyi 2c6c537d66 String optimization.
--HG--
branch : develop
2018-04-22 19:06:34 +03:00
Roman Telezhynskyi 862860f016 QString optimizations.
--HG--
branch : develop
2018-04-22 18:32:55 +03:00
Roman Telezhynskyi e845453f95 Optimization. Use FindFirstNotOf() that supports QString natively.
--HG--
branch : develop
2018-04-22 18:32:38 +03:00
Roman Telezhynskyi 29db30548d Refactoring. Use shared data pointer for class QmuParserCallback.
Should speed up copying.

--HG--
branch : develop
2018-04-20 12:47:48 +03:00
Roman Telezhynskyi 2d5f84b4bf Refactoring. Don't use old slot style in QTimer::singleShot.
--HG--
branch : develop
2018-04-18 11:15:53 +03:00
Roman Telezhynskyi 3970bbdbc0 Refactoring. Use QChar instead of QString where possible.
--HG--
branch : develop
2018-04-12 13:13:19 +03:00
Roman Telezhynskyi 0e3a9533af Refactoring. Use C++11 range-based loop.
--HG--
branch : develop
2018-04-03 14:36:38 +03:00
Roman Telezhynskyi 3252130f36 Refactoring. Use C++11 range-based loop.
--HG--
branch : develop
2018-04-02 20:38:56 +03:00
Roman Telezhynskyi 2cb7c4c603 Utilize macro QT_DEPRECATED_WARNINGS.
--HG--
branch : develop
2018-03-22 19:57:56 +02:00
Roman Telezhynskyi b547adf344 Refactor QmuTranslation to not allocate memory.
--HG--
branch : develop
2018-03-15 08:51:47 +02:00
Roman Telezhynskyi 6a7405b4d4 Refactoring. Use QString default constructor instead of empty string.
--HG--
branch : develop
2018-03-14 16:01:24 +02:00
Roman Telezhynskyi c1cea4c441 Clazy warnings.
--HG--
branch : develop
2018-03-14 15:39:15 +02:00
Roman Telezhynskyi 3f77b979aa Fixed issue #814. Make "\" valid character.
--HG--
branch : develop
2018-02-27 10:22:08 +02:00
Roman Telezhynskyi c7256dbe0c Token parser should allow subexpressions.
--HG--
branch : develop
2018-01-31 14:30:24 +02:00
Roman Telezhynskyi 54d3ae7561 Improve parsing formulas.
Enable subexpressions. Allow user to define local variables.

--HG--
branch : develop
2018-01-24 22:08:53 +02:00
Roman Telezhynskyi e784534d8e Fix compatibility with MSVC.
--HG--
branch : develop
2018-01-22 10:03:04 +02:00
Roman Telezhynskyi 7bdc10419c Speed optimization translating internal variables.
--HG--
branch : develop
2018-01-21 16:00:53 +02:00
Roman Telezhynskyi e68510cc49 Speed optimization for method QmuTokenParser::IsSingle().
--HG--
branch : develop
2018-01-20 15:36:50 +02:00
Roman Telezhynskyi 49c091be38 Refactoring.
--HG--
branch : develop
2018-01-20 13:12:28 +02:00
Roman Telezhynskyi ef3c60b459 Clang warning.
--HG--
branch : develop
2017-12-04 17:12:51 +02:00
Roman Telezhynskyi a4df5612d9 Fixed issue #776. Valentina cannot recognize translated functions.
(grafted from 5b89c34d11eea52b32e9fb60b87820ecc5187c31)

--HG--
branch : develop
2017-12-04 11:44:29 +02:00
Roman Telezhynskyi 191e4e7d08 Fix Valentina hang in formula CSR.
--HG--
branch : develop
2017-11-21 11:03:37 +02:00
Roman Telezhynskyi f71b0fd328 Fix build on Windows.
--HG--
branch : develop
2017-11-13 12:59:25 +02:00
Roman Telezhynskyi d5cd6095e5 Clang warning.
--HG--
branch : develop
2017-11-13 11:50:09 +02:00
Roman Telezhynskyi 132b7c9fc6 CSR - special modeling case.
--HG--
branch : develop
2017-11-13 10:53:27 +02:00
Roman Telezhynskyi 0adfbb8fb1 New math parser function "r2cm". Round to up to 1 decimal.
--HG--
branch : develop
2017-09-29 17:47:11 +03:00
Roman Telezhynskyi d9f93a28e4 Regular expression should support french names.
--HG--
branch : develop
2017-07-26 20:58:37 +03:00
Roman Telezhynskyi 08945f71f2 Fix build on Windows.
--HG--
branch : develop
2017-07-26 20:13:15 +03:00
Roman Telezhynskyi f9f241ac25 Fix variable name regular expression.
Forbid characters "." and ",".

--HG--
branch : develop
2017-07-26 19:28:26 +03:00
Roman Telezhynskyi 1726b55339 GCC warnings.
--HG--
branch : develop
2017-07-05 19:35:34 +03:00
Roman Telezhynskyi b6e0d97df0 Qmake. Fix masks to support 64 bit versions of compilers.
--HG--
branch : develop
2017-07-05 11:35:32 +03:00
Roman Telezhynskyi 72ea1997fb Fixed issue #715. Build fails with Qt 5.9.1 / clang / macOS.
(grafted from d78ca13c4891ccf3542b0704a7d66af0f9b02938)

--HG--
branch : develop
2017-07-01 21:38:26 +03:00
Roman Telezhynskyi 3a4871fcd0 SonarQube warnings.
--HG--
branch : develop
2017-06-05 19:47:25 +03:00
Roman Telezhynskyi cc5641a15c Added gcc’s 4.9.0 Undefined Behavior Sanitizer (ubsan).
--HG--
branch : develop
2017-06-01 10:14:17 +03:00
Roman Telezhynskyi bd72aa29cc Try to fix tests.
--HG--
branch : develop
2017-05-30 20:56:59 +03:00
Roman Telezhynskyi 2dcfe1c84b Since Q5.4 available support C++14.
--HG--
branch : develop
2017-05-30 18:54:54 +03:00
Roman Telezhynskyi 965d908663 GCC warnings.
--HG--
branch : develop
2017-05-30 18:44:16 +03:00
Roman Telezhynskyi c0d79afb85 Merge with release. 2017-05-09 18:18:31 +03:00
Roman Telezhynskyi 1a2def2bca SonarQube warnings.
--HG--
branch : release
2017-04-27 16:45:29 +03:00
Roman Telezhynskyi 73c035ecc9 Fix bug with trigonometric functions.
Functions sin(), cos() and tan() take radians. And their counterparts asin(),
acos() and atan() return radians. Removed hyperbolic functions because they do
not work with radians.

--HG--
branch : release
2017-04-14 18:42:49 +03:00
Roman Telezhynskyi d355b4dce8 Cppcheck warnings.
--HG--
branch : develop
2017-04-06 15:50:15 +03:00
Roman Telezhynskyi d696af9a33 "static" members should be accessed statically.
--HG--
branch : develop
2017-03-23 10:25:46 +02:00
Roman Telezhynskyi 360c5ef604 Use Qt built in functions qRadiansToDegrees and qDegreesToRadians.
--HG--
branch : develop
2017-02-27 23:03:07 +02:00
Georg von Zengen 159432927a qmuparser: added triangular functions that work with degree
new functions are: degTorad, radTodeg, , sinD, cosD, tanD, asinD, acosD , atanD, sinhD, coshD , tanhD, asinhD, acoshD, atanhD

--HG--
branch : feature
2017-02-27 20:42:35 +01:00
Roman Telezhynskyi 01612c4c7c GCC warning.
--HG--
branch : develop
2017-02-26 12:17:58 +02:00
Roman Telezhynskyi 38abf5c9a0 Removed redundant forward declaration.
--HG--
branch : develop
2017-02-18 11:22:59 +02:00
Roman Telezhynskyi 252e6a1368 Clang warning.
--HG--
branch : develop
2017-01-27 11:37:55 +02:00
Roman Telezhynskyi 40fce2dafa Clang warning.
--HG--
branch : develop
2017-01-25 19:48:38 +02:00
Roman Telezhynskyi b41ea624da Fix linker error on Windows.
--HG--
branch : develop
2017-01-03 14:37:27 +02:00
Roman Telezhynskyi 73f201303f Silent warning [-Werror=unused-but-set-variable].
--HG--
branch : develop
2017-01-03 11:40:40 +02:00
Roman Telezhynskyi be17f7f30a Cppcheck warning.
--HG--
branch : develop
2017-01-03 11:32:19 +02:00
Roman Telezhynskyi da6cd92b22 Resolved issue #606. Mac OS X. Can’t type in measurements due to digit count
limitation.

--HG--
branch : develop
2017-01-03 11:14:32 +02:00
Roman Telezhynskyi dd3ec71c34 Original muparser doesn't support thousand separator for C locale because by
default used ',' as group separator.

In contrary we use ';' as gorup separator and should support C locale thousand
separator ','.

--HG--
branch : develop
2017-01-03 11:08:29 +02:00