Commit graph

351 commits

Author SHA1 Message Date
Roman Telezhynskyi 5c9b71dee4 Warnings piece out of bound and superposition of pieces. 2021-08-27 18:27:52 +03:00
Roman Telezhynskyi 877fe380e3 Follow grainline. 2021-08-26 19:04:24 +03:00
Roman Telezhynskyi acfbc5478e Cleaning.
Remove unused slots.
2021-08-26 08:53:53 +03:00
Roman Telezhynskyi 54710608d6 Better piece flipping. 2021-08-26 08:50:11 +03:00
Roman Telezhynskyi d32bbfcfd4 Layout properties. 2021-08-25 16:58:50 +03:00
Roman Telezhynskyi 4646b6c1fb Default layout settings. 2021-08-21 16:14:03 +03:00
Roman Telezhynskyi 087d0855dd Undo/Redo remove sheet. 2021-08-19 16:24:43 +03:00
Roman Telezhynskyi 3f73bd9d75 Undo/Redo add sheet. 2021-08-19 16:09:44 +03:00
Roman Telezhynskyi 6da151c604 Undo/Redo move piece on sheet. 2021-08-19 15:13:54 +03:00
Roman Telezhynskyi 18d9417c96 Undo/Redo transformation origin move. 2021-08-19 12:36:39 +03:00
Roman Telezhynskyi 9a7e4e5ea6 Refresh rotation handles after rotation finish. 2021-08-18 20:51:40 +03:00
Roman Telezhynskyi cfb8c1b1f4 Fix calculating a piece bounding rect.
If the piece will have incorrect shape user will see drawing artifacts.
2021-08-18 20:47:49 +03:00
Roman Telezhynskyi a35e46f845 Undo/Redo piece rotate. 2021-08-18 20:33:47 +03:00
Roman Telezhynskyi 0908b5a1f7 Undo/Redo piece move. 2021-08-17 18:49:28 +03:00
Roman Telezhynskyi b638be5b2e Use QSaveFile class for saving a layout. 2021-08-14 17:21:58 +03:00
Roman Telezhynskyi 742c1c3eb3 Handle read only state. 2021-08-14 17:16:58 +03:00
Roman Telezhynskyi 2d68d40b59 Restore the maybe save warning. 2021-08-14 16:00:42 +03:00
Roman Telezhynskyi edee237fb8 Fix crash when we open the same file at the same windows twice. 2021-08-14 15:24:22 +03:00
Roman Telezhynskyi 807183b2ce Read/Write layout file. 2021-08-14 15:19:28 +03:00
Roman Telezhynskyi 718ff2056a Refactor names to avoid confusion. 2021-08-14 15:18:15 +03:00
Roman Telezhynskyi d6fe9508a6 Move piece with keyboard. 2021-08-09 15:24:36 +03:00
Roman Telezhynskyi 3fbe96c2a7 Piece rotation. 2021-08-09 15:09:10 +03:00
Roman Telezhynskyi c7db3de6d8 Restored a piece context menu. 2021-07-31 16:00:32 +03:00
Roman Telezhynskyi 2eecf95af9 Cleaning. 2021-07-31 12:32:23 +03:00
Roman Telezhynskyi bc0b271f16 Add Add/Remove sheets. 2021-07-31 12:21:07 +03:00
Roman Telezhynskyi 52c9257bd0 Highlight active sheet. 2021-07-31 09:24:38 +03:00
Roman Telezhynskyi bc3b144fc3 GCC warning. 2021-07-30 18:03:29 +03:00
Roman Telezhynskyi 78382b5c97 Fix issue with drag pixmap.
It disappears if move cursor far enough. Instead draw a cursor which will include a piece pixmap.
2021-07-30 18:03:20 +03:00
Roman Telezhynskyi 5242b4ed54 Restore adding pieces on sheet. 2021-07-30 14:49:38 +03:00
Roman Telezhynskyi ec6c1cad23 Cleaning carousel. 2021-07-29 18:05:25 +03:00
Roman Telezhynskyi 91a69b83b6 Cleaning and refactoring. 2021-07-29 17:11:18 +03:00
Roman Telezhynskyi 9d9f953fae Fix layout comment. 2021-07-27 10:16:38 +03:00
Roman Telezhynskyi 41e9f0c71a Fix build. 2021-06-04 11:45:21 +03:00
Roman Telezhynskyi 598f29a0a9 Fix build. 2021-06-04 10:00:14 +03:00
Roman Telezhynskyi 18c0d7454f Hide warnings related to QMacCGContext. 2021-06-04 08:50:37 +03:00
Roman Telezhynskyi 7ee158c11c New menu option Add sheet. 2021-05-27 21:11:32 +03:00
Roman Telezhynskyi f3c0af7294 Improve creating a piece icon.
Add more information about contour: seam line, seam allowance, notches, grainline, internal paths.
2021-05-27 19:52:37 +03:00
Roman Telezhynskyi 82935a1f03 Improvements for VPCarrousel. 2021-05-27 15:55:25 +03:00
Roman Telezhynskyi f233e7dcba Improve code style. 2021-05-27 11:35:47 +03:00
Roman Telezhynskyi 45256ebdd9 Use SetAttributeOrRemoveIf for margins. 2021-05-26 10:17:02 +03:00
Roman Telezhynskyi 320ac40056 Add method SetAttributeOrRemoveIf for VPLayoutFileWriter class. 2021-05-26 10:01:50 +03:00
Roman Telezhynskyi 5467e213a2 Read/write empty layout file. 2021-05-22 20:29:33 +03:00
Ronan 302a1fbc2b Move ExportFormatSuffix and Description to VLayoutExporter 2021-05-22 11:52:24 +02:00
Ronan 1c6aebec4f VPExporter inherits from VLayoutExporter 2021-05-22 11:00:42 +02:00
Ronan fb2a7f8714 refactoring for Settings 2021-05-22 09:25:39 +02:00
Ronan b49087295e Merge remote-tracking branch 'upstream/feature/manual-layout' into feature/manual-layout 2021-05-22 09:13:20 +02:00
Ronan c9a25613f5 Merge remote-tracking branch 'refs/remotes/upstream/feature/manual-layout'
Conflicts:
	src/app/puzzle/vpmainwindow.cpp
	src/app/puzzle/vpmainwindow.h
2021-05-22 09:11:48 +02:00
Roman Telezhynskyi 173703245f Fix build on macx. 2021-05-22 10:05:18 +03:00
Roman Telezhynskyi a05a66b2ae Fix build on Qt less than 5.6. 2021-05-22 09:21:01 +03:00
Roman Telezhynskyi a9711316ec Refactoring. 2021-05-21 21:33:17 +03:00
Roman Telezhynskyi 06d19ace25 Dialog File > Preferences. 2021-05-21 20:51:46 +03:00
Roman Telezhynskyi 05645ca7df Recently Opened Files. 2021-05-21 18:26:00 +03:00
Roman Telezhynskyi 6efa26ffe3 File > Open Layout. 2021-05-21 18:08:37 +03:00
Roman Telezhynskyi d10355b400 File > Save functions. 2021-05-21 17:17:22 +03:00
Roman Telezhynskyi 67fc4b7539 Label for tooltip. 2021-05-21 12:03:26 +03:00
Roman Telezhynskyi 9c05894dac Move a "scale" spinner to separate tool bar. 2021-05-21 11:52:29 +03:00
Roman Telezhynskyi e1b9fbaccd One application, many windows. 2021-05-21 11:25:43 +03:00
Roman Telezhynskyi 5f607008ac Return to initial concept. 2021-05-21 10:54:58 +03:00
Roman Telezhynskyi dc50d24439 Review class VPMainWindow.
Setup initial state for a window. User must click New or Open before starting to use the window.
2021-05-20 18:33:53 +03:00
Roman Telezhynskyi a0dba0ea25 Review class VPApplication. 2021-05-20 17:10:43 +03:00
Roman Telezhynskyi e15b370ed4 Setup toolbar, set icons for actions. 2021-05-20 16:52:14 +03:00
Roman Telezhynskyi c8a7c1a898 Deploy for Puzzle. 2021-05-20 10:35:40 +03:00
Ronan Le Tiec e399c6bf1e max value of placement grid 2021-05-15 15:37:21 +02:00
Ronan Le Tiec 588232a442 new class VPExporter 2021-05-15 15:28:17 +02:00
Ronan Le Tiec ee9bce8632 take orientation into account for export 2021-05-15 13:02:21 +02:00
Roman Telezhynskyi 662ffd255b Fix incorrect us of QScopedPointer. 2021-05-04 09:33:19 +03:00
Roman Telezhynskyi c61087ed5d Fix potential memory leak. 2021-05-04 09:21:34 +03:00
Roman Telezhynskyi ca20519fa7 Fix deprecation warning. 2021-05-04 09:19:04 +03:00
Roman Telezhynskyi a01f06b439 Fix incorrect define the precompiled header file.
Expected name is stable.h/cpp.
2021-05-04 08:45:27 +03:00
Roman Telezhynskyi 90eeec1d70 Fix warning parameter 'filename' not found in the function declaration. 2021-04-28 16:44:05 +03:00
Roman Telezhynskyi 9daeae12fe Filling more gaps in the documentation. 2021-04-28 13:22:24 +03:00
Roman Telezhynskyi 4525662fae Complete code documentation to satisfy Clang. 2021-04-26 09:14:48 +03:00
Ronan Le Tiec 84479771f7 Merge remote-tracking branch 'upstream/feature/manual-layout' into feature/manual-layout 2021-04-24 13:04:44 +02:00
Roman Telezhynskyi b372668c52 Cppcheck warning. 2021-04-24 13:34:44 +03:00
Ronan Le Tiec 4ec454a9ef export title with sheet name 2021-03-14 16:57:20 +01:00
Ronan Le Tiec 0e420963cf use the sheet name as file name for export 2021-03-14 16:49:02 +01:00
Ronan Le Tiec dc183eaa51 initialise placement values 2021-03-14 14:40:56 +01:00
Ronan Le Tiec c4473b0d27 Add rotation shortcuts and grid placement 2021-03-14 14:27:45 +01:00
Roman Telezhynskyi a58a783aba Merge branch 'develop' into feature/manual-layout 2020-12-23 18:40:33 +02:00
Ronan Le Tiec bbe27ec671 Nicer rotate cursor 2020-11-22 12:45:38 +01:00
Ronan Le Tiec cdff123231 Refactor triangle position marks for tiled pdf 2020-11-21 16:47:05 +01:00
Ronan Le Tiec dd5970f8ba Improve Piece carrousel icon and drag icon 2020-11-21 15:38:33 +01:00
Ronan Le Tiec 728b2c83c3 Fix piece carrousel context menu crash 2020-11-21 14:28:28 +01:00
Ronan Le Tiec b9e26f0b3f Add a trash list and delete context menu function 2020-11-21 14:24:07 +01:00
Ronan Le Tiec b606497c48 Persistence of sheet name 2020-11-21 13:45:26 +01:00
Ronan Le Tiec 898a5a92c3 Ppi after format name added 2020-11-21 13:26:38 +01:00
Ronan Le Tiec 4366cbdec9 Display passmarks and place labels 2020-11-20 17:05:56 +01:00
Ronan Le Tiec efac90c9bb Icons for templates 2020-11-20 16:24:53 +01:00
Ronan Le Tiec 9140fdcb78 Templates for sheet and tiles 2020-11-20 15:51:24 +01:00
Ronan Le Tiec 073bd93df7 remove the grainline filling 2020-11-19 17:24:48 +01:00
Ronan Le Tiec 7e16c12623 Change the selection sequence with tabs 2020-11-19 16:45:02 +01:00
Ronan Le Tiec b90a99a0aa Showing internal paths 2020-11-19 16:32:47 +01:00
Ronan Le Tiec a0cd4e9a31 Selected piece on top 2020-11-19 15:08:45 +01:00
Ronan Le Tiec 9f8f0e8341 refactoring vpgraphicstilegrid and vptilefactory 2020-11-19 14:33:27 +01:00
Ronan Le Tiec 97351b58dd Add text infos to the tiles 2020-11-16 20:22:38 +01:00
Ronan Le Tiec db4bd0d616 Improve tiles decoration 2020-11-15 22:34:24 +01:00
Ronan Le Tiec cbf0651486 All tiles exported 2020-11-15 13:06:57 +01:00
Ronan Le Tiec f90f8ca01b First tiles export 2020-11-15 12:30:29 +01:00
Ronan Le Tiec e7cd13b703 Preview grid of the tiles on the sheet 2020-11-14 17:31:34 +01:00
Ronan Le Tiec dddf1fe654 Tiles functions and persistence 2020-11-14 15:58:42 +01:00
Ronan Le Tiec 40c9e8161b Tiles Tab content 2020-11-14 13:23:32 +01:00
Ronan Le Tiec ffaca85f49 Test SVG export improved 2020-11-14 12:46:18 +01:00
Ronan Le Tiec f6e5f67159 Button export with test svg export 2020-11-14 12:37:43 +01:00
Ronan Le Tiec 491d5848b4 Add mouse position functionality 2020-11-14 10:55:57 +01:00
Ronan Le Tiec d55dbbb61e Add scale spinbox functionality 2020-11-14 10:20:02 +01:00
Ronan Le Tiec c497e325d8 Zoom functions 2020-11-13 23:31:22 +01:00
Ronan Le Tiec 4ec3e29bb1 add zoom icons to toolbar 2020-11-11 22:04:07 +01:00
Ronan Le Tiec e1c79b0db5 Icon for the layout tab 2020-11-11 21:09:01 +01:00
Ronan Le Tiec 9fb4a2cc39 init tab refactoring 2020-11-11 19:31:39 +01:00
Ronan Le Tiec c0c85bb2d5 Layout name und description persistence 2020-11-11 19:14:06 +01:00
Ronan Le Tiec 23c4f81904 Hide some ui elements for MVP 2020-11-10 21:46:23 +01:00
Ronan Le Tiec f448514c71 take into account Show Seamline 2020-11-10 21:29:23 +01:00
Ronan Le Tiec 6d2b05ccc4 Add uuid to current piece infos 2020-11-10 20:55:39 +01:00
Roman Telezhynskyi 83225958de Cppcheck warnings. 2020-11-10 16:14:51 +02:00
Roman Telezhynskyi 453d120150 Cppcheck warnings. 2020-11-10 16:10:38 +02:00
Roman Telezhynskyi 0371905c0d Merge remote-tracking branch 'origin/develop' into feature/manual-layout 2020-11-10 16:00:01 +02:00
Ronan Le Tiec 2cc3c93dea Sheet orientation and piece transform 2020-06-25 16:59:48 +02:00
Ronan Le Tiec 4ad2c854b2 VPPiece now inherits form VLayoutPiece 2020-06-25 14:17:31 +02:00
Roman Telezhynskyi 20b797b2c5 Merge branch 'develop' into feature/manual-layout. 2020-06-04 13:45:32 +03:00
Ronan Le Tiec af40b52988 Refactoring Piece carrousel part 2 2020-05-24 19:53:51 +02:00
Ronan Le Tiec f00168e59b Refactoring Piece carrousel 2020-05-24 14:55:03 +02:00
Ronan Le Tiec b4b77c4cdf Introducing VPSheet and refactoring part 3 2020-05-23 17:51:00 +02:00
Ronan Le Tiec 61a2e17a78 Introducing VPSheet and refactoring part 2 2020-05-23 17:47:04 +02:00
Ronan Le Tiec 803a7b6caa Introducing VPSheet and refactoring 2020-05-23 17:46:46 +02:00
Ronan Le Tiec 22a5e2094c Refactoring VPuzzleSettings 2020-05-23 15:44:44 +02:00
Ronan Le Tiec 83666c090f Refactoring VPuzzlePiece 2020-05-23 15:42:51 +02:00
Ronan Le Tiec 6079d69c93 Refactoring VPuzzleMimeDataPiece 2020-05-23 15:38:59 +02:00
Ronan Le Tiec 2accd83d6b Refactoring VPuzzleMainGraphicsView 2020-05-23 15:36:46 +02:00
Ronan Le Tiec 5e785bfa79 Refactoring VPuzzleLayout 2020-05-23 15:34:11 +02:00
Ronan Le Tiec 34b67cc6e3 Refactoring VPuzzleLayer 2020-05-23 15:29:57 +02:00
Ronan Le Tiec 45be7271bb Refactoring VPuzzleGraphicsPiece 2020-05-23 14:50:22 +02:00
Ronan Le Tiec e43f970ea8 Refactoring VPuzzleGraphicsLayout 2020-05-23 14:48:31 +02:00
Ronan Le Tiec 9e532edc1a Refactoring VPuzzleCommandLine 2020-05-23 14:43:57 +02:00
Ronan Le Tiec fb78189d29 Refactoring VPieceCarrouselPiecePreview 2020-05-23 14:39:31 +02:00
Ronan Le Tiec 510d1bd931 Refactoring VPieceCarrouselPiece 2020-05-23 14:36:35 +02:00
Ronan Le Tiec 8ca77baef0 Refactoring VPieceCarrouselLayer 2020-05-23 14:33:02 +02:00
Ronan Le Tiec 690606b4e5 Refactoring VPieceCarrousel 2020-05-23 14:29:18 +02:00
Ronan Le Tiec 74112a43ac Refactoring stable 2020-05-23 14:19:12 +02:00
Ronan Le Tiec 1079ef2add Refactoring PuzzleMainWindow 2020-05-23 14:17:20 +02:00
Ronan Le Tiec e816e4d5a1 Refactoring puzzlecommands 2020-05-23 14:12:07 +02:00
Ronan Le Tiec 5bd695b646 Refactoring PuzzleApplication 2020-05-23 14:10:05 +02:00
Ronan Le Tiec 04e97b6e74 Refactoring class comments 2020-05-23 14:04:39 +02:00
Ronan Le Tiec 13c060f2fc Refactoring VPuzzleLayoutFileWriter 2020-05-23 14:02:39 +02:00
Ronan Le Tiec d9e3a08eac Refactoring VPuzzleLayoutFileReader 2020-05-23 14:01:03 +02:00
Ronan Le Tiec 63d5ac0158 refactoring layoutliterals 2020-05-23 13:51:57 +02:00
Ronan Le Tiec 213863ae98 refactoring dialog about 2020-05-23 13:49:38 +02:00
Ronan Le Tiec e2cfe7d0cc Merge remote-tracking branch 'upstream/feature/manual-layout' into feature/manual-layout 2020-05-23 13:11:06 +02:00
Ronan Le Tiec ed3022ae51 isEmpty test of graphic piece 2020-05-23 13:10:25 +02:00
Roman Telezhynskyi f1057de239 Redesign. Move initialization in ui file. Use QListWidget instead of a custom solution. Basic functions do not work yet. 2020-05-11 17:48:08 +03:00
Roman Telezhynskyi 5fc927b32a Since we store a dockwidget size no need to handle size manually. 2020-05-11 17:46:25 +03:00