Commit Graph

51 Commits

Author SHA1 Message Date
Roman Telezhynskyi
d45a04feb0 Correct label size according to parent's bounding rect.
--HG--
branch : feature
2016-12-15 09:33:01 +02:00
Roman Telezhynskyi
b16ee3a4d1 Minore changes for VTextGraphicsItem.
Clearing code. Changed size for control objects.

--HG--
branch : feature
2016-12-15 08:54:52 +02:00
Roman Telezhynskyi
a3f7b9f60f Fix drawing artifacts.
--HG--
branch : feature
2016-12-15 08:52:23 +02:00
Roman Telezhynskyi
97d76957e3 Use font's height.
--HG--
branch : feature
2016-12-15 08:46:45 +02:00
Roman Telezhynskyi
4eb9b2da83 Cleaning code.
--HG--
branch : feature
2016-12-14 11:59:21 +02:00
BojanKverh
f6122ea8be Fixed font size calculation, so that the app does not get stuck
--HG--
branch : feature
2016-12-14 00:56:30 +01:00
BojanKverh
21445db240 Fixed the hangup bug because of very long label words
--HG--
branch : feature
2016-12-02 00:44:28 +01:00
Roman Telezhynskyi
d134e8b367 Clang warnings.
--HG--
branch : develop
2016-11-01 10:42:32 +02:00
BojanKverh
083b2035af Hopefully this commit solves the #551 issue
--HG--
branch : feature
2016-09-29 01:39:50 +02:00
BojanKverh
8e0dc15e25 Moving the grainline works now, but still has a few issues
--HG--
branch : feature
2016-09-11 12:18:09 +02:00
BojanKverh
f341f51125 Grainline is visible on the detail now, rotation and length can be edited, but it cannot be moved yet
--HG--
branch : feature
2016-09-10 18:30:03 +02:00
Bojan Kverh
10f2d83edd Merged develop into feature
--HG--
branch : feature
2016-08-17 18:00:56 +02: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
BojanKverh
92ec78e6b3 Made sure that labels stay inside the detail after changing size or height
--HG--
branch : feature
2016-08-15 17:19:21 +02:00
BojanKverh
fb326d4f39 Added %size% and %height% placeholders to display pattern size and height in the Pattern size line edit
--HG--
branch : feature
2016-08-15 13:03:59 +02: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
80f00b361d Use "Include What You Use" tool for optimizing #includes.
--HG--
branch : develop
2016-08-08 14:44:49 +03:00
BojanKverh
f56614966b Deleted unnecessary class member
--HG--
branch : feature
2016-08-03 00:44:22 +02:00
BojanKverh
192bd7e7d5 Deleted unnecessary include
--HG--
branch : feature
2016-08-03 00:39:02 +02:00
BojanKverh
a2ee1e24e6 Fixed cursor handling over the label
--HG--
branch : feature
2016-08-03 00:32:37 +02:00
BojanKverh
f2d5b00fd9 Detail bounding box is drawn when one of its items is in move, resize or rotate mode
--HG--
branch : feature
2016-08-02 22:51:40 +02:00
Roman Telezhynskyi
a2d18c15a4 Fix broken VTextGraphicsItem::paint.
--HG--
branch : develop
2016-08-02 21:16:15 +03:00
Roman Telezhynskyi
ffb6f1fbd5 cppcheck warnings.
--HG--
branch : develop
2016-08-02 15:12:13 +03:00
BojanKverh
a1c905381b Fixed label update on clicking OK in pattern properties dialog and the label is hidden when there is no text on it
--HG--
branch : feature
2016-07-30 13:21:03 +02:00
BojanKverh
a625c35616 Added comments to most important new classes
--HG--
branch : feature
2016-07-23 15:26:15 +02:00
BojanKverh
0e7b369c2e Corrected all the issues reported by Roman till 10:11 AM
--HG--
branch : feature
2016-07-22 11:56:45 +02:00
BojanKverh
312b8e458b Centered the label texts and did some refactoring, so that the label content is generated in one place
--HG--
branch : feature
2016-07-21 21:46:49 +02:00
BojanKverh
c9ee648cb8 Refactored the text managing in labels
--HG--
branch : feature
2016-07-18 22:30:14 +02:00
BojanKverh
25a58421cc Added pattern size field and creation date visibility flag to pattern properties
--HG--
branch : feature
2016-07-16 01:12:51 +02:00
BojanKverh
ea9cdd46b2 Fixed some code style errors and checking label position at resizing
--HG--
branch : feature
2016-07-14 02:59:42 +02:00
BojanKverh
634d8773de Labels now cannot go outside the detail bounding box with any operation (move, resize or rotate)
--HG--
branch : feature
2016-07-14 02:10:27 +02:00
BojanKverh
7c2f4e54ba Fixed cursor handling on vtextgraphicsitem
--HG--
branch : feature
2016-07-12 23:11:17 +02:00
BojanKverh
e5f7c47828 Removed some compiler warnings and set the resize cursor when label is being resized
--HG--
branch : feature
2016-07-10 12:39:50 +02:00
BojanKverh
6e1dce0cd7 Fixed moving labels and added warning icon to detail dialog when detail name is empty
--HG--
branch : feature
2016-07-08 00:46:33 +02:00
BojanKverh
3a40927764 Fixed layout in detail dialog and painting of text item in rotate mode
--HG--
branch : feature
2016-07-06 22:15:32 +02:00
BojanKverh
aa1d1f8ce1 Label cannot be moved outside of parent bounding box. Moving cursor is on when moving label. Name of detail moved to Pattern Piece Data tab. Hopefully all warnings removed
--HG--
branch : feature
2016-07-06 20:49:36 +02:00
BojanKverh
5e3daf416c Fixed initial positioning of the labels
--HG--
branch : feature
2016-07-03 10:17:59 +02:00
BojanKverh
74a49662f6 Fixed rotation
--HG--
branch : feature
2016-07-02 11:15:41 +02:00
BojanKverh
f52f97740d Moved pattern info geometry into VDetail class
--HG--
branch : feature
2016-07-02 01:49:38 +02:00
BojanKverh
6effc2b5cd Rotation bugs fixed
--HG--
branch : feature
2016-07-01 01:45:16 +02:00
BojanKverh
23a31b1fa9 Rotation of the labels. There are a couple of bugs still to fix
--HG--
branch : feature
2016-06-30 18:04:25 +02:00
BojanKverh
0f90b61235 Fixed the vtextgraphicsitem mouse events bug
--HG--
branch : feature
2016-06-29 23:52:48 +02:00
BojanKverh
caa13f06ac Corrected some warnings
--HG--
branch : feature
2016-06-29 23:39:52 +02:00
BojanKverh
6577d82771 Added new schema to accomodate for new parameters and did some other minor changes. There is a bug with Undo on details label, will check that later
--HG--
branch : feature
2016-06-27 17:18:43 +02:00
BojanKverh
80fcf30776 Moving, resizing and editing both labels now works
--HG--
branch : feature
2016-06-27 11:06:51 +02:00
BojanKverh
fa105537d2 Moving and resizing pattern info label (has few bugs still, probably just XML parsing)
--HG--
branch : feature
2016-06-27 01:17:27 +02:00
BojanKverh
e68fa3a0f3 Fixed few bugs: label position is preserved after editing detail, buttons for add/update/remove MCP are handled correcty. Added style to VTextGraphicsItem lines
--HG--
branch : feature
2016-06-26 14:21:06 +02:00
BojanKverh
21debaf249 Reimplemented QTextGraphicsItem class
--HG--
branch : feature
2016-06-25 17:19:44 +02:00
BojanKverh
caa6b425b9 Tried QGraphicsTextItem::boundingBox approach
--HG--
branch : feature
2016-06-24 17:57:08 +02:00
BojanKverh
6fbffd2834 Position, size and font size of the text label are now saved into VDetail DOM tree. Undo/Redo for moving and resizing the label works.
--HG--
branch : feature
2016-06-23 22:35:32 +02:00