Commit graph

5162 commits

Author SHA1 Message Date
Roman Telezhynskyi 3c69b425ec Fix noDebugSymbols.
--HG--
branch : develop
2019-11-29 19:55:27 +02:00
Roman Telezhynskyi 037ca99280 Refactoring. Move the code that gets path to exe file to separate module. DRY.
--HG--
branch : develop
2019-11-29 14:40:00 +02:00
Roman Telezhynskyi 18284289a0 Forgot to add a correction.
--HG--
branch : develop
2019-11-29 12:24:00 +02:00
Roman Telezhynskyi 7624b27409 BinReloc to get path to exe directory.
--HG--
branch : develop
2019-11-29 11:40:00 +02:00
Roman Telezhynskyi df79ea7395 Test idea that Qt classes internally use ICU.
--HG--
branch : develop
2019-11-29 08:49:32 +02:00
Roman Telezhynskyi 1d28dd5be9 u_setDataDirectory expects const * char.
--HG--
branch : develop
2019-11-29 08:15:29 +02:00
Roman Telezhynskyi 002f86b1a8 Move SetICUData on top.
--HG--
branch : develop
2019-11-28 19:00:23 +02:00
Roman Telezhynskyi 5ca33d5b3f Lupdate.
--HG--
branch : develop
2019-11-28 18:09:37 +02:00
Roman Telezhynskyi 50b929ea48 u_setDataDirectory to define path to ICU data.
--HG--
branch : develop
2019-11-28 16:42:06 +02:00
Roman Telezhynskyi 866a801f38 Auto refresh the list with each parse.
--HG--
branch : develop
2019-11-28 15:17:27 +02:00
Roman Telezhynskyi 0c78511cfc Set environment variable ICU_DATA on runtime.
This time before QApplication and manually getting the application dir path.

--HG--
branch : develop
2019-11-26 19:56:40 +02:00
Roman Telezhynskyi f81d814bb2 QCoreApplication::applicationDirPath returns empty string until we do not init
QApplication instance.

--HG--
branch : develop
2019-11-26 16:44:52 +02:00
Roman Telezhynskyi b724210bf9 Debug ICU_DATA environment variable.
--HG--
branch : develop
2019-11-26 15:35:43 +02:00
Roman Telezhynskyi 3b56659226 Set environment variable ICU_DATA on runtime.
When deploying with AppImage based on OpenSuse, the ICU library has a
hardcoded path to the icudt*.dat file. This prevents the library from using
shared in memory data. There are few ways to resolve this issue. According to
documentation we can either use ICU_DATA environment variable or the function
u_setDataDirectory().

--HG--
branch : develop
2019-11-26 12:57:06 +02:00
Roman Telezhynskyi a59f4d7923 Fix crash when QTextCodec::codecForMib returns null.
--HG--
branch : develop
2019-11-25 11:34:17 +02:00
Roman Telezhynskyi 9cc97ef602 Clazy warnings.
--HG--
branch : develop
2019-11-24 13:09:30 +02:00
Roman Telezhynskyi 1217616813 Refactoring.
Pass VContainer::AddVariable only a variable, the variable already knows its
name.

--HG--
branch : develop
2019-11-24 13:09:16 +02:00
Roman Telezhynskyi 2d63440549 Fix a crash. ref #984.
Cover cases with VCubicBezier and VCubicBezierPath.

--HG--
branch : develop
2019-11-24 12:49:40 +02:00
Roman Telezhynskyi 9e25e6de24 Introducing vRound function.
Shortcut to round double to X points decimal.

--HG--
branch : develop
2019-11-19 15:46:11 +02:00
Roman Telezhynskyi 0c0207aa6f Fix dialog for tool Point along perpendicular. No memory of line color settings.
(grafted from d65f796893e4f8c04b535f711bd8d93275e2ddff)

--HG--
branch : develop
2019-11-19 10:52:53 +02:00
Roman Telezhynskyi 816db0a7bb Make increments separator more visually separated from regular increments.
--HG--
branch : develop
2019-11-18 14:42:27 +02:00
Roman Telezhynskyi ec346117f1 Fix initial state for Pattern messages dock widget.
It should not float, better initially show it docked.

--HG--
branch : develop
2019-11-15 17:42:12 +02:00
Roman Telezhynskyi 2a2ebe32b8 Always use Q_OS_WIN macros.
We don't have specific 32 bit implementations.

--HG--
branch : develop
2019-11-15 09:48:05 +02:00
Roman Telezhynskyi 75786483c7 Remove unused header.
--HG--
branch : develop
2019-11-15 09:44:33 +02:00
Roman Telezhynskyi 36e839ed5d Move to top and include qt_windows.h.
--HG--
branch : develop
2019-11-15 09:51:31 +02:00
Roman Telezhynskyi 477040c0b2 Fix crash.
When a user calls full parse and a pattern contains a lot of pieces while they
update a second call may cause a crash.

--HG--
branch : develop
2019-11-14 10:52:07 +02:00
Roman Telezhynskyi f8ca985ad7 Fix a crash. ref #984.
--HG--
branch : develop
2019-11-07 18:07:07 +02:00
Roman Telezhynskyi 22c3bbcd46 Fix tests.
--HG--
branch : develop
2019-11-04 12:20:07 +02:00
Roman Telezhynskyi db14bca099 Lupdate.
--HG--
branch : develop
2019-11-03 18:38:21 +02:00
Roman Telezhynskyi 0cb7965379 Minimal seam allowance must be little bit bigger.
--HG--
branch : develop
2019-11-03 17:50:39 +02:00
Roman Telezhynskyi f460a324b3 We must not rely on current directory when start tests.
--HG--
branch : develop
2019-11-03 16:00:23 +02:00
Roman Telezhynskyi bb70989165 Fixing error: invalid return type 'void' of constexpr function.
--HG--
branch : develop
2019-11-03 10:45:04 +02:00
Roman Telezhynskyi b8f2d1782b Cppcheck warning.
--HG--
branch : develop
2019-11-03 10:20:00 +02:00
Roman Telezhynskyi 2887350c16 Fix bugs with a seam allowance.
--HG--
branch : develop
2019-11-03 10:13:02 +02:00
Roman Telezhynskyi c924a6f700 New class VRawSAPoint.
Post processing a seam allowance.

--HG--
branch : develop
2019-11-03 10:01:32 +02:00
Roman Telezhynskyi 7f5ec1c9a1 It is better to not allow user to set seam allowance width to 0. 0 seam
allowance creates intersections with a main path.

--HG--
branch : develop
2019-11-03 09:30:36 +02:00
Roman Telezhynskyi 57ae6e82a0 Fix progress bar.
When user opens a pattern after menu Window -> Close pattern the progress bar
is missing.

--HG--
branch : develop
2019-11-02 12:15:19 +02:00
Roman Telezhynskyi 82792dba6c Speed up bulk removing pieces.
Optimizations for 'do' and 'undo' operations.

--HG--
branch : develop
2019-10-30 15:25:25 +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 e04f5c70f5 Resolved issue #984. Special variable "CurrentLength" for tools Cut Arc, Cut
Spline and Cut Spline Path.

--HG--
branch : develop
2019-10-29 15:43:25 +02:00
Roman Telezhynskyi 45421b4d21 Fix error C2065: 'not': undeclared identifier.
--HG--
branch : develop
2019-10-29 08:26:05 +02:00
Roman Telezhynskyi 8f6ae65224 New feature Pattern Messages.
Added special field to show pattern warnings instead of warning dialogs.
Fixed issue with tabified dockwidgets.

--HG--
branch : develop
2019-10-28 17:44:31 +02:00
Roman Telezhynskyi b7c1b4c4a6 Clazy warnings.
--HG--
branch : develop
2019-10-28 14:52:49 +02:00
Roman Telezhynskyi 7f9906bbcc Fix for seam aloowance angle type By first edge symmetry.
--HG--
branch : develop
2019-10-23 11:24:59 +03:00
Roman Telezhynskyi 36d5f245b9 Fix closing a pattern file.
Window title was still not cleaned properly.

--HG--
branch : develop
2019-10-18 14:01:18 +03:00
Roman Telezhynskyi 95d6bceb9b Layout stops after timeout too slow.
--HG--
branch : develop
2019-10-18 11:47:02 +03:00
Andrey Ushakov ea75af2f46 New command line option --cropWidth. Helps to crop unused width of paper.
--HG--
branch : develop
2019-10-16 11:16:16 +03:00
Roman Telezhynskyi b3cc614789 Fix incorrect angle value in tool tooltip.
(grafted from 3d1fe3de2bb0d8675ed89934456792906bf1d0eb)

--HG--
branch : develop
2019-10-17 14:54:54 +03:00
Roman Telezhynskyi 43b6125edd Fixed issue #978. Don't show errors in History dialog.
Showing error messages instead of tool record can confuse a user. Additionally
it may create issues with a caret (feature insert after).
(grafted from 33a0a02a8ff5904b0226cbc1e94f36619db45212)

--HG--
branch : develop
2019-09-16 11:54:55 +03:00
Roman Telezhynskyi 2b7af8e999 Fix testing Qt version for OpenSSL.
--HG--
branch : develop
2019-09-21 11:19:10 +03:00