1409 Commits

Author SHA1 Message Date
Arjan Molenaar
5d0ccf5c76 Set the view matrix in the view
Use "canvas" coordinates for item drawing.
Bounding box painter still returns a bounding box in cairo device (view)
coordinates.
2020-10-28 22:20:45 +01:00
Arjan Molenaar
28f7d603d7 Move bounding box painting to GtkView 2020-10-28 21:38:12 +01:00
Arjan Molenaar
93b810b63e Convert tool.py to a package 2020-10-28 20:13:20 +01:00
Arjan Molenaar
03e1b72fbf Merge branch 'painter-package' 2020-10-27 21:56:17 +01:00
Arjan Molenaar
3bc554f5a3 Merge branch 'items-without-canvas' 2020-10-27 21:23:12 +01:00
Dan Yeaw
42dda37b42
Merge pull request from gaphor/dependabot/pip/docs/pygments-2.7.2
Bump pygments from 2.7.1 to 2.7.2 in /docs
2020-10-26 10:18:31 -04:00
Dan Yeaw
cba2db5bd0
Merge pull request from gaphor/dependabot/pip/pygments-2.7.2
Bump pygments from 2.7.1 to 2.7.2
2020-10-26 10:18:17 -04:00
Arjan Molenaar
ac68bde4f2 More tests for GtkView.get_item_at_point() 2020-10-26 08:47:21 +01:00
Arjan Molenaar
f4734282c3 Fix error in tool on calculating matrices 2020-10-26 08:35:05 +01:00
dependabot[bot]
9082593867
Bump pygments from 2.7.1 to 2.7.2 in /docs
Bumps [pygments](https://github.com/pygments/pygments) from 2.7.1 to 2.7.2.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.7.1...2.7.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-26 07:22:06 +00:00
dependabot[bot]
17ca04e053
Bump pygments from 2.7.1 to 2.7.2
Bumps [pygments](https://github.com/pygments/pygments) from 2.7.1 to 2.7.2.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.7.1...2.7.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-26 07:00:48 +00:00
Arjan Molenaar
52dd793578 Move freehand painter to painter package
Add some more type info.
2020-10-25 20:09:01 +01:00
Arjan Molenaar
9d703479f7 Update Painter.paint protocol 2020-10-25 14:49:37 +01:00
Arjan Molenaar
ef9ba7f152 Turn Painter into a protocol 2020-10-25 14:26:00 +01:00
Arjan Molenaar
79eb85982a Set view at construction time for Painters
Can no longer set view afterwards.
2020-10-25 14:25:12 +01:00
Arjan Molenaar
e6e391ad06 Split painter module in smaller ones 2020-10-25 14:25:12 +01:00
Arjan Molenaar
6e15942f18 Remove debug statement from Matrix 2020-10-25 14:24:55 +01:00
Arjan Molenaar
df0e4efeac Improve code for update_qtree 2020-10-25 12:16:45 +01:00
Arjan Molenaar
4ad3084809 Refactor update process 2020-10-25 12:16:45 +01:00
Arjan Molenaar
4c277d7422 Remove unknown settings from pytest.ini 2020-10-25 12:00:36 +01:00
Arjan Molenaar
bb70c57579 Trigger canvas update from view update handler
Just one idle handler for all updates.
2020-10-25 11:57:45 +01:00
Arjan Molenaar
71e6333b0a Canvas.update_now() now takes the items to update. 2020-10-25 10:19:33 +01:00
Arjan Molenaar
e983e982c6 Simplified Canvas update cycle 2020-10-24 22:45:11 +02:00
Arjan Molenaar
f93af3835b Add more typing to GtkView 2020-10-24 21:59:22 +02:00
Arjan Molenaar
7594c1da87 Partially move matrix recalculation to GtkView 2020-10-24 21:45:03 +02:00
Dan Yeaw
b926a264c1
Merge pull request from gaphor/rename-solvable-to-variable
Rename solvable to variable
2020-10-24 15:28:21 -04:00
Arjan Molenaar
1a1435a4ef Remove normalize() code
One less method to worry about.
2020-10-24 18:20:39 +02:00
Arjan Molenaar
8ca36bdefd Move qtree update in separate method 2020-10-24 17:18:41 +02:00
Arjan Molenaar
f372dd918b Use one solver reference in Canvas 2020-10-23 23:50:01 +02:00
Arjan Molenaar
bcb68519c5 Connections requires a solver 2020-10-23 23:47:36 +02:00
Arjan Molenaar
884ff0b412 Clean up GtkView: remove selection signals 2020-10-23 23:06:31 +02:00
Arjan Molenaar
23037aef6f Rename solvable to variable 2020-10-23 22:10:17 +02:00
Arjan Molenaar
8032fe4a5a Fix position equality check 2020-10-23 21:59:56 +02:00
Arjan Molenaar
4e5d83ab96 Remove Item.canvas as public field
Canvas field is still set, though.
2020-10-23 21:59:13 +02:00
Arjan Molenaar
6e4f0d44e4 Replace almost all uses of Item.canvas 2020-10-23 19:17:42 +02:00
Arjan Molenaar
1709cebee5 Remove canvas from port.constraint() 2020-10-23 18:22:30 +02:00
Arjan Molenaar
88ce9f5f6c Remove singledispatch wrapper 2020-10-23 18:14:35 +02:00
Arjan Molenaar
9a0f23360d Remove Item.request_update()
Updates should be requested on the Canvas now.
2020-10-23 18:11:45 +02:00
Arjan Molenaar
b281b1fcdd Merge branch 'separate-view-selection' 2020-10-23 18:01:11 +02:00
Arjan Molenaar
ffd90bfc39
Merge pull request from gaphor/update-projections
Update projections
2020-10-23 17:49:33 +02:00
Arjan Molenaar
5493495d42 Remove View._bounds, call View.bounding_box instead 2020-10-22 08:02:59 +02:00
Arjan Molenaar
174fe6115d Remove View.zoom, now there's only GtkView.zoom 2020-10-22 08:02:38 +02:00
Arjan Molenaar
f4cd49ed88 Tell Sourcery not to refactor the variable tests 2020-10-21 22:42:49 +02:00
Arjan Molenaar
dfc17d9399 Rename Tree.reparent to Tree.move
That seems like a more understandable name.
2020-10-21 21:52:45 +02:00
Arjan Molenaar
34b860d5db Reduce request_* redraw methods to one 2020-10-21 21:50:51 +02:00
Arjan Molenaar
7d48c194fd Only use focused_item and selected_items from selection 2020-10-21 21:50:51 +02:00
Arjan Molenaar
6febe7ec52 Remove dropzone_item and hovered_item from GtkView 2020-10-21 21:50:51 +02:00
Arjan Molenaar
347a34486d Move select and unselect all to selection 2020-10-21 21:50:51 +02:00
Arjan Molenaar
64250fe077 Move Connection management to a separate module 2020-10-21 21:50:48 +02:00
Arjan Molenaar
18825976c4 Run program from __main__ 2020-10-21 21:43:02 +02:00