Commit graph

108 commits

Author SHA1 Message Date
Rebecca Breu
a9d360dcb4 Action for toggling scrollbars 2021-04-17 23:59:59 +02:00
Rebecca Breu
a358d86620 Add unit test for help dialog 2021-04-17 20:16:14 +02:00
Rebecca Breu
976c671180 Add Help dialog 2021-04-17 19:49:23 +02:00
Rebecca Breu
9a1abe755a PEP8 2021-04-17 14:03:07 +02:00
Rebecca Breu
7ab442f6b5 Add Select All/Deselect All 2021-04-17 13:01:15 +02:00
Rebecca Breu
6f77c43d76 Add actions for undoing transformations 2021-04-16 22:28:13 +02:00
Rebecca Breu
3b919e4b7b Run actions also on pull requests 2021-04-16 18:53:17 +02:00
Rebecca Breu
eb41300172 Fix fit item when multi selection active 2021-04-15 20:51:43 +02:00
Rebecca Breu
c591c18168 Add apt-get update to pytest action 2021-04-15 19:26:20 +02:00
Rebecca Breu
4d64a7422f Re-implemend itemsBoundingRect to not include selection handles 2021-04-15 18:21:21 +02:00
Rebecca Breu
ea833d830a Fix fit view issues; enable zoom anchor 2021-04-14 21:04:40 +02:00
Rebecca Breu
079c0a1829 Fit view after loading a file 2021-04-14 13:31:47 +02:00
Rebecca Breu
90067f96ab Add Fit Scene, Fit Selection and Fit Image (via doubleclick) 2021-04-14 13:26:35 +02:00
Rebecca Breu
96ab9d2ef2 Logo: tiny enhancement 2021-04-13 21:43:31 +02:00
Rebecca Breu
e88bdb5910 Add basic unittests for __main__ 2021-04-13 17:39:38 +02:00
Rebecca Breu
d2c26d98d6 Move file IO to dedicated thread 2021-04-13 17:08:23 +02:00
Rebecca Breu
a907343d04 Reset view when no items; ignore pan and zoom when no items 2021-04-11 20:26:32 +02:00
Rebecca Breu
8ee5e1db68 Add 'New Scene' action 2021-04-11 20:04:08 +02:00
Rebecca Breu
27813f5bd8 Add Flip action to menu 2021-04-11 17:25:56 +02:00
Rebecca Breu
0d4b5da84b Refactor creation of menu and actions 2021-04-11 11:36:49 +02:00
Rebecca Breu
4e31ec8bac Add flip 2021-04-10 19:35:47 +02:00
Rebecca Breu
fe9de9bcdf Fix typo in README 2021-04-06 18:31:45 +02:00
Rebecca Breu
cc54698baa Prevent infinite event loop for multi selection 2021-04-06 18:15:33 +02:00
Rebecca Breu
b98e455272 More unittests for the view 2021-04-06 17:34:55 +02:00
Rebecca Breu
55819bf4c4 Add snapping for rotating 2021-04-06 16:19:02 +02:00
Rebecca Breu
be9adfdf4c Fix unittests 2021-04-06 15:27:55 +02:00
Rebecca Breu
b7a9ab01ba Normalize actions scale around image centers 2021-04-06 15:16:16 +02:00
Rebecca Breu
5fd18253e1 Unit tests 2021-04-06 14:37:48 +02:00
Rebecca Breu
46768dce24 Minor refactoring of BeePixmapItem.set_pos_center 2021-04-06 11:27:59 +02:00
Rebecca Breu
829d0d19fc Fix scale handle cursor shapes for rotated items 2021-04-06 11:23:42 +02:00
Rebecca Breu
a34231cd7d Fix scaling for rotated items 2021-04-06 10:13:25 +02:00
Rebecca Breu
2d3e6613bf Small enhancements around rotating 2021-04-05 19:34:26 +02:00
Rebecca Breu
d58b46b08f Add rotation 2021-04-05 19:07:31 +02:00
Rebecca Breu
8204d3141f Add rotate cursor 2021-04-05 14:45:18 +02:00
Rebecca Breu
1ff957bca4 Add hover areas for rotating items 2021-04-04 22:10:07 +02:00
Rebecca Breu
476c061071 Minor fixes for rubberband selection
Changed item shape so that it doesn't include handles during multi selection. This gives a more accurate behaviour for getting items out of the rubberband selection (except for the last remaining item, oh well).
2021-04-04 16:23:56 +02:00
Rebecca Breu
37a01f80a2 Add rubberband selection.
There's a slight inaccuracy when getting an already selected item outside of the rubberband: the additional margin of the selection handles needs to be outside of the rubberband too (since it's part of the item's bounding box), making it slightly harder to get an item out of the selection than it should be.

Let's see if it's very noticeable/annoying in practice.
2021-04-04 12:15:23 +02:00
Rebecca Breu
0a8f59ec36 Format logo in README 2021-04-03 22:30:34 +02:00
Rebecca Breu
c3e824449d Fix path to logo in README 2021-04-03 22:19:54 +02:00
Rebecca Breu
79f1cf8f72 Logo improvements: shading everywhere 2021-04-03 22:18:42 +02:00
Rebecca Breu
01bb0cacdd Move badges up in README 2021-04-03 20:20:22 +02:00
Rebecca Breu
50cc77c7e7 Add Python versions badge 2021-04-03 18:57:27 +02:00
Rebecca Breu
2ccc78bb82 Pytest workflow: run multiple python versions 2021-04-03 18:41:32 +02:00
Rebecca Breu
56318cf762 Add Codecov badge 2021-04-03 18:18:55 +02:00
Rebecca Breu
a709767340 Pytest workflow: fix yaml 2021-04-03 18:13:42 +02:00
Rebecca Breu
258380a4b4 Pytest workflow: Upload coverage report to codecov 2021-04-03 18:10:02 +02:00
Rebecca Breu
7f63000d01 Run pytest with more output 2021-04-03 17:58:03 +02:00
Rebecca Breu
5c4b23518e Minor refactoring (use QPointF everywhere instead of tuples) 2021-04-03 17:08:52 +02:00
Rebecca Breu
165283d56c Unittests for multi selections 2021-04-03 16:53:19 +02:00
Rebecca Breu
511848146e Add scaling for multiple items at once 2021-04-02 21:43:43 +02:00