Commit graph

263 commits

Author SHA1 Message Date
Roman Telezhynskyi 63c4725e81 Fix regression in DXF-AAMA export.
Some paths were not properly mapped.

--HG--
branch : develop
2020-01-11 11:48:02 +02:00
Roman Telezhynskyi cf1e383d7b Don't use 'char' as a type of enum class.
QDataStream doesn't support serialization for this type.

--HG--
branch : develop
2020-01-07 12:54:01 +02:00
Roman Telezhynskyi 50dd76b256 Fix regression in method VDxfEngine::ExportAAMADrill().
Placelabel center no longer mapped. Mapping must be made manually.

--HG--
branch : develop
2019-08-07 10:15:53 +03:00
Roman Telezhynskyi 1f8b89bb60 Enable the drill layer in list of AAMA layers.
--HG--
branch : develop
2019-08-01 12:49:00 +03:00
Roman Telezhynskyi 5c84c80039 Refactoring. Reduce modules dependency.
--HG--
branch : develop
2019-07-22 17:06:30 +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 6294dc0748 New struct VLayoutPassmark to store data about a passmark.
--HG--
branch : develop
2019-05-27 14:57:36 +03:00
Roman Telezhynskyi 57d6d79a53 New placelabel shape Circle.
--HG--
branch : develop
2019-04-23 17:42:09 +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 a214a78006 Continue replacing custom *_FALLTHROUGH macroses with Q_FALLTHROUGH().
--HG--
branch : develop
2019-03-27 13:31:02 +02:00
Roman Telezhynskyi 7caf42cf48 Since Q5.4 available support C++14. Some libraries still missed use.
--HG--
branch : develop
2018-12-23 20:27:24 +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 219a15da23 Fix issue with export non-latin DXF file name on Windows.
--HG--
branch : develop
2018-07-16 20:00:42 +03:00
Roman Telezhynskyi 968996da86 It seems like mistake. ratio renamed to width.
--HG--
branch : develop
2018-07-16 19:55:37 +03:00
Roman Telezhynskyi 85e90504ef Minore fixes.
--HG--
branch : develop
2018-07-16 19:54:00 +03:00
Roman Telezhynskyi 5015dda5dd Fix DXF vport. AutoCAD complains about clipped view.
--HG--
branch : develop
2018-07-16 19:53:15 +03:00
Roman Telezhynskyi 63b1eb8068 Cppcheck warning 'missingOverride'.
--HG--
branch : develop
2018-06-26 15:53:48 +03:00
Roman Telezhynskyi 788f27889f Refactoring. Use temporary variable instead of copy.
--HG--
branch : develop
2018-04-14 16:47:55 +03:00
Roman Telezhynskyi 6fa7be60e4 Fix export to DXF-AAMA. Don't "draw" a main path if seam allowance is built-in.
--HG--
branch : develop
2018-04-14 16:47:11 +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 6b6a2632a9 Refactoring. Replacing all Q_FOREACH/foreach loops with the c++ range-based
loops.

--HG--
branch : develop
2018-04-03 11:15:58 +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 6a7405b4d4 Refactoring. Use QString default constructor instead of empty string.
--HG--
branch : develop
2018-03-14 16:01:24 +02:00
Roman Telezhynskyi ca79c7ff93 Added place label.
--HG--
branch : feature
2017-10-15 12:25:20 +03:00
Roman Telezhynskyi 61172d46c4 Fix typo in headers.
--HG--
branch : develop
2017-10-05 12:20:01 +03:00
Roman Telezhynskyi be83ff5a12 SonarQube warnings.
--HG--
branch : develop
2017-08-21 16:47:17 +03:00
Roman Telezhynskyi d91f32be02 Proposed to always use mm as the default DXF export unit. ref #745.
--HG--
branch : develop
2017-08-10 16:50:10 +03:00
Roman Telezhynskyi 4914d2c3e7 Fix grainline orientation in AAMA.
--HG--
branch : develop
2017-08-02 17:04:31 +03:00
Roman Telezhynskyi a9367f7ae6 Prevent memory leak.
--HG--
branch : develop
2017-07-27 21:04:13 +03:00
Roman Telezhynskyi a6976fd1ee Fix details position if export from Detail mode. red #391.
--HG--
branch : develop
2017-07-20 19:14:19 +03:00
Roman Telezhynskyi 83251364b0 Fix broken building on Windows.
--HG--
branch : develop
2017-07-20 14:21:14 +03:00
Roman Telezhynskyi 9ae393a462 For AAMA layer 1 must be default.
--HG--
branch : feature
2017-07-19 10:34:24 +03:00
Roman Telezhynskyi f20549d310 Optitex doesn't like layer 19.
--HG--
branch : feature
2017-07-19 10:33:21 +03:00
Roman Telezhynskyi 2b3434fe87 Only since R13 DXF supports space character in block name.
--HG--
branch : feature
2017-07-17 17:43:10 +03:00
Roman Telezhynskyi cc0d6d994b Read layer settings for block from block's settings.
--HG--
branch : feature
2017-07-17 17:25:38 +03:00
Roman Telezhynskyi c84f7ef828 Up to R12 DXF allows not to define default layer "0".
--HG--
branch : feature
2017-07-17 17:19:49 +03:00
Roman Telezhynskyi 2dd8519433 Code style fix.
Remove confusing commented code.

--HG--
branch : feature
2017-07-17 17:10:34 +03:00
Roman Telezhynskyi 74035ddeeb Fix opening files in version R10.
AutoCAD complains about missed groups.

--HG--
branch : feature
2017-07-17 13:35:20 +03:00
Roman Telezhynskyi 54eadfdb3c Export to DXF-AAMA.
--HG--
branch : feature
2017-07-16 21:10:48 +03:00
Roman Telezhynskyi b166ff83b2 Pieces should be positioned as on Detail mode. ref #660.
--HG--
branch : develop
2017-07-09 22:27:54 +03:00
Roman Telezhynskyi e56e59dec1 SonarQube warnings.
--HG--
branch : develop
2017-07-07 20:08:35 +03:00
Roman Telezhynskyi 2f98ec7c8a Fix memory leak.
--HG--
branch : develop
2017-07-07 18:11:48 +03:00
Roman Telezhynskyi 703c9f5f06 Clang warnings.
--HG--
branch : develop
2017-07-07 10:22:24 +03:00
Roman Telezhynskyi 42c2b45171 Fix error C2065: 'not': undeclared identifier.
--HG--
branch : develop
2017-07-06 22:12:46 +03:00
Roman Telezhynskyi 9ff99ab357 Clang warning.
--HG--
branch : develop
2017-07-06 19:07:53 +03:00
Roman Telezhynskyi 36d6e8e408 Fix error C2065: 'not': undeclared identifier.
--HG--
branch : develop
2017-07-06 19:04:58 +03:00
Roman Telezhynskyi 5968ed27cc error "QT_WARNING_PUSH was not declared in this scope".
--HG--
branch : develop
2017-07-06 16:10:46 +03:00
Roman Telezhynskyi 38afcf43f2 error "QT_WARNING_PUSH was not declared in this scope".
--HG--
branch : develop
2017-07-06 16:03:02 +03:00
Roman Telezhynskyi 9a074266b9 Completely disable warning Wstack-protector.
--HG--
branch : develop
2017-07-06 15:45:58 +03:00
Roman Telezhynskyi 21e9719954 Fix error "QT_WARNING_PUSH does not name a type".
--HG--
branch : develop
2017-07-06 15:08:34 +03:00
Roman Telezhynskyi f701cc95f9 Suppress GCC's warning Wstack-protector.
--HG--
branch : develop
2017-07-06 14:49:49 +03:00
Roman Telezhynskyi 365f971d5f Fix building tests.
--HG--
branch : develop
2017-07-06 14:26:42 +03:00
Roman Telezhynskyi 490ccbe60a Remove dwg support.
--HG--
branch : develop
2017-07-06 14:10:14 +03:00
Roman Telezhynskyi e6eb9c756b Cppcheck warnings.
--HG--
branch : develop
2017-07-06 12:58:26 +03:00
Roman Telezhynskyi 189f091bb4 VDXF library. Since Qt5.4 available support C++14.
--HG--
branch : develop
2017-07-05 19:36:17 +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 d25979f054 Merged with feature.
--HG--
branch : develop
2017-07-04 19:53:05 +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 c97af5a9f9 Restore saving real font family.
--HG--
branch : feature
2017-06-29 20:08:08 +03:00
Roman Telezhynskyi 22b448f98d Fixed text conversion.
--HG--
branch : feature
2017-06-29 20:03:35 +03:00
Roman Telezhynskyi 1226db1735 Text now correctly converted due to hack. Saved to continue cleaning.
--HG--
branch : feature
2017-06-29 18:56:52 +03:00
Roman Telezhynskyi 0bb4280a02 Improvment libdxfrw to support font style.
--HG--
branch : feature
2017-06-29 13:01:28 +03:00
Roman Telezhynskyi a1daf20d0f Init appId.
--HG--
branch : feature
2017-06-26 18:06:57 +03:00
Roman Telezhynskyi 9edc1a39db Allow user to select DXF version.
--HG--
branch : feature
2017-06-26 17:28:41 +03:00
Roman Telezhynskyi ff0e5919a7 Fix polygon linetype.
--HG--
branch : feature
2017-06-26 13:00:59 +03:00
Roman Telezhynskyi d9353df43a Correct line types.
--HG--
branch : feature
2017-06-23 22:11:25 +03:00
Roman Telezhynskyi 4c2c4ae7a2 Fix broken $TDCREATE.
--HG--
branch : feature
2017-06-23 17:49:15 +03:00
Roman Telezhynskyi beff9d1322 We don't need anymore library dxflib.
--HG--
branch : feature
2017-06-21 16:59:58 +03:00
Roman Telezhynskyi 88288f2fba AutoCAD doesn't like how we init dimstyles.
--HG--
branch : feature
2017-06-21 16:36:24 +03:00
Roman Telezhynskyi 3c48935b5c Handle value $TDCREATE.
--HG--
branch : feature
2017-06-21 16:32:50 +03:00
Roman Telezhynskyi 98dc6893a9 Looks like one file was lost.
--HG--
branch : feature
2017-06-21 16:32:19 +03:00
Roman Telezhynskyi af51cc0edf Removed dummy functions.
--HG--
branch : feature
2017-06-21 15:57:06 +03:00
Roman Telezhynskyi e9d93103c8 AutoCAD doesn't like dimstyles we provide.
--HG--
branch : feature
2017-06-21 15:55:50 +03:00
Roman Telezhynskyi 388bad3535 Merged changed from SolveSpace's independent fork of libdxfrw.
--HG--
branch : feature
2017-06-21 14:54:17 +03:00
Roman Telezhynskyi 3f570fc52e Clear path before creating a new path.
--HG--
branch : feature
2017-06-21 12:47:47 +03:00
Roman Telezhynskyi 407a9519aa Basic implamentation has been finished.
--HG--
branch : feature
2017-06-21 12:34:20 +03:00
Roman Telezhynskyi c0b0053859 GCC warning.
--HG--
branch : feature
2017-06-20 13:31:06 +03:00
Roman Telezhynskyi 279e1cda84 Temporary suppress all GCC wanings inside libdxfrw.
--HG--
branch : feature
2017-06-20 13:30:36 +03:00
Roman Telezhynskyi 47265a515b Added library libdxfrw.
--HG--
branch : feature
2017-06-20 11:40:39 +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 7e064f80c5 Thrown away code for support Qt < 5.2.
--HG--
branch : develop
2017-05-30 19:52:38 +03:00
Roman Telezhynskyi 965d908663 GCC warnings.
--HG--
branch : develop
2017-05-30 18:44:16 +03:00
Roman Telezhynskyi 1cf4e97b7d Clang warnings. 2017-05-10 14:58:17 +03:00
Roman Telezhynskyi a0262e260b Coverity scan warnings.
--HG--
branch : release
2017-04-19 12:48:13 +03:00
Roman Telezhynskyi d355b4dce8 Cppcheck warnings.
--HG--
branch : develop
2017-04-06 15:50:15 +03:00
Roman Telezhynskyi 778cbb2a70 Cppcheck warnings.
--HG--
branch : develop
2017-03-09 12:23:36 +02:00
Roman Telezhynskyi 2921276cad Sync libdxf code with last from QCAD project.
--HG--
branch : develop
2017-02-22 12:08:58 +02:00
Roman Telezhynskyi 38abf5c9a0 Removed redundant forward declaration.
--HG--
branch : develop
2017-02-18 11:22:59 +02:00
Roman Telezhynskyi b4e1a19b4f Clang warning.
--HG--
branch : develop
2017-02-12 22:04:09 +02:00
Roman Telezhynskyi 424f661112 Fix export to dxf.
--HG--
branch : develop
2017-02-12 21:13:03 +02:00
Roman Telezhynskyi a6a8ef29b0 Refactoring. Merge similar switch cases together.
--HG--
branch : develop
2016-12-21 21:35:07 +02:00
Roman Telezhynskyi 36c8e96bab Disable MSVC security warnings for library vdxf.
--HG--
branch : develop
2016-12-21 17:30:40 +02:00
Roman Telezhynskyi 049a72ff20 "C3861: 'snprintf': identifier not found" with VS2013 and prior.
--HG--
branch : develop
2016-12-20 22:55:40 +02:00
Roman Telezhynskyi 2d61b87256 Remove empty statement.
--HG--
branch : develop
2016-12-20 21:19:21 +02:00
Roman Telezhynskyi 86330282be Fix potential vulnerabilities.
--HG--
branch : develop
2016-12-20 20:18:36 +02:00
Roman Telezhynskyi af1061635a Qt 5.6 new constant for SVG.
--HG--
branch : develop
2016-11-19 10:07:02 +02:00
Roman Telezhynskyi c622d173dd Several useful constans.
--HG--
branch : develop
2016-09-06 17:48:28 +03:00
Roman Telezhynskyi cbd2e4a912 Fix issue #547. Compiler warning.
--HG--
branch : develop
2016-09-06 17:26:53 +03:00
Roman Telezhynskyi bfff8ccb96 Changes for returning support Qt 5.0 and GCC 4.6.
--HG--
branch : develop
2016-08-21 18:57:08 +03:00
Roman Telezhynskyi b0d248a7a0 Looks like <ext/alloc_traits.h> available since GCC 4.7.
--HG--
branch : develop
2016-08-21 12:09:05 +03:00
Roman Telezhynskyi e333c9bc08 QtDebug and QDebug lead to the same header. Leave only QtDebug.
--HG--
branch : develop
2016-08-16 20:35:21 +03:00
Roman Telezhynskyi d66280033b Fixed issue #546. Compile error under Windows in current develop revision.
--HG--
branch : develop
2016-08-16 19:57:32 +03:00
Roman Telezhynskyi db138cd6e7 Fixing building on Qt\5.3\msvc2013_64_opengl.
--HG--
branch : develop
2016-08-13 11:56:59 +03:00
Roman Telezhynskyi 3f75727b6a Resolved issue #540. The latest development version don't compile in MAC.
--HG--
branch : develop
2016-08-09 21:48:43 +03:00
Roman Telezhynskyi 7585db6a58 Fix build on Qt\5.3\msvc2013_64_opengl.
--HG--
branch : develop
2016-08-09 16:55:46 +03:00
Roman Telezhynskyi 1937baba99 Error cannot open include file: 'ext/alloc_traits.h': No such file or directory.
--HG--
branch : develop
2016-08-08 16:00:42 +03:00
Roman Telezhynskyi eec896edd0 Fix errors. error: QPrinter: No such file or directory.
error: QMetaTypeId: No such file or directory.

--HG--
branch : develop
2016-08-08 15:26:48 +03:00
Roman Telezhynskyi 80f00b361d Use "Include What You Use" tool for optimizing #includes.
--HG--
branch : develop
2016-08-08 14:44:49 +03:00
Roman Telezhynskyi c94afdf174 Cppcheck warning.
--HG--
branch : develop
2016-08-07 17:31:36 +03:00
Roman Telezhynskyi 34a960fcd6 MSVC warnings.
--HG--
branch : develop
2016-08-07 15:12:08 +03:00
Roman Telezhynskyi 3a4b78c42b Fixed build on Windows with MSVC 2013_64_opengl. Added include path to VMisc for
VDXF static library.

--HG--
branch : develop
2016-08-07 14:30:18 +03:00
Roman Telezhynskyi c9cdd2cd8d Using macros QT_WARNING_DISABLE_*.
--HG--
branch : develop
2016-08-06 21:42:40 +03:00
Roman Telezhynskyi 1c987b919b Use gcc’s Address Sanitizer only in Debug mode.
--HG--
branch : develop
2016-08-06 19:23:42 +03:00
Roman Telezhynskyi 69e0ff74e6 MSVC warnings.
--HG--
branch : develop
2016-08-06 15:59:30 +03:00
Roman Telezhynskyi 483e56866d Added MSVC warnings.
--HG--
branch : develop
2016-07-29 21:04:53 +03:00
Roman Telezhynskyi 75e9e9b2ee Fixed issues with include paths.
--HG--
branch : develop
2016-08-05 13:41:02 +03:00
Roman Telezhynskyi ffb6f1fbd5 cppcheck warnings.
--HG--
branch : develop
2016-08-02 15:12:13 +03:00
Roman Telezhynskyi 9375e0319d As part of testing make all compiler warnings treat as errors.
Added new CONFIG option "checkWarnings".

--HG--
branch : develop
2016-07-20 15:40:33 +03:00
Roman Telezhynskyi 6f56b46d26 Fixed Clang warnings.
--HG--
branch : develop
2016-05-03 19:50:37 +03:00
Roman Telezhynskyi a2aaf0ccff GCC warnings.
--HG--
branch : develop
2016-03-27 19:35:55 +03:00
Roman Telezhynskyi c4ca41aa83 Fixed issue #463. Wrong export to DXF format.
(grafted from a2df4c627d50fcd0225cc63d924c065063af326f)

--HG--
branch : develop
2016-03-27 19:00:08 +03:00
Roman Telezhynskyi 70fd0be830 Use Q_REQUIRED_RESULT where it make sense.
--HG--
branch : develop
2016-03-23 17:27:17 +02:00
Roman Telezhynskyi 38dac0ada5 Small refactoring. Use M_2PI(2*pi), M_PI_2 (pi/2) and M_PI_4(pi/4) where
possible.

--HG--
branch : develop
2016-03-23 13:52:55 +02:00
Roman Telezhynskyi aa67e04a3e Improved exporting to dxf. QPainterPath export as Polyline.
--HG--
branch : develop
2016-02-10 19:32:26 +02:00
Roman Telezhynskyi 863b62cd6e Resolved issue #443. Not valid dxf file.
- libdxf updated to version 3.12.2.0.
- Fixed wrong pen width.
- Fixed drawPath() method. Drawing subpaths.
(grafted from f587dae3fa6cd75f987f54aa282caf73225da8fe)

--HG--
branch : develop
2016-02-09 17:19:07 +02:00
Roman Telezhynskyi 5eed97c640 Enable #pragma message in Clang.
--HG--
branch : develop
2015-11-16 12:28:21 +02:00
Roman Telezhynskyi 7038c25c39 Turn on PCH on mac os x.
--HG--
branch : develop
2015-11-16 12:22:34 +02:00
Roman Telezhynskyi 88324a11f2 Static Code Analysis.
--HG--
branch : develop
2015-10-28 16:22:36 +02:00
Roman Telezhynskyi f1796eaf90 GCC warnings. Don't use PCH if use ccache.
--HG--
branch : develop
2015-10-26 12:04:20 +02:00
Roman Telezhynskyi d1f18dc9a0 Use quint32 instead unsigned int.
--HG--
branch : develop
2015-10-26 10:36:07 +02:00
Valentina Zhuravska dd9fecb89f Added Q_CC_MSVC
--HG--
branch : feature
2015-10-22 15:16:15 +03:00
Valentina Zhuravska b877c49f61 Fixed MSVC build (access the not operator)
--HG--
branch : feature
2015-10-21 16:17:05 +03:00
Roman Telezhynskyi 69f65cf4e7 ICC warnings.
--HG--
branch : develop
2015-10-21 10:25:27 +03:00
Roman Telezhynskyi 467ffbd132 ICC warnings.
--HG--
branch : develop
2015-10-20 17:32:01 +03:00
Roman Telezhynskyi a21e037de8 GCC/Clang warnings.
--HG--
branch : develop
2015-10-19 23:08:20 +03:00
Roman Telezhynskyi 047f53e2ec Clang Static Analyzer warnings.
--HG--
branch : develop
2015-10-19 22:33:20 +03:00
Roman Telezhynskyi 4d90589f01 Clang warnings.
--HG--
branch : develop
2015-10-19 16:21:06 +03:00
Roman Telezhynskyi 03b6ce08cc Coverity scan.
--HG--
branch : develop
2015-10-19 09:10:39 +03:00
Roman Telezhynskyi 65d2213ef9 Coverity scan missing includes.
--HG--
branch : develop
2015-10-18 22:30:51 +03:00
Roman Telezhynskyi be398bae93 cppcheck.
--HG--
branch : develop
2015-10-12 14:52:48 +03:00
Roman Telezhynskyi 2c042b82ae stable.cpp only need by MSVC.
--HG--
branch : develop
2015-10-11 13:15:08 +03:00
Valentina Zhuravska b46e384ca7 Fixed warnings in Windows
--HG--
branch : develop
2015-10-10 04:49:10 +03:00
Roman Telezhynskyi c1976401a0 Use CONFIG += silent in release mode.
--HG--
branch : develop
2015-10-09 20:22:49 +03:00
Roman Telezhynskyi 7676959bdb Fix for build on drone.io.
--HG--
branch : develop
2015-10-08 20:07:48 +03:00
Roman Telezhynskyi 4121dc7689 Fix for build on drone.io.
--HG--
branch : develop
2015-10-08 19:57:50 +03:00
Roman Telezhynskyi c65f554a8d Fixed GCC warnings.
--HG--
branch : develop
2015-10-02 08:37:31 +03:00