Commit Graph

43 Commits

Author SHA1 Message Date
Arjan Molenaar
e49cae8649
Order undo events
So create happens before properties, before unlink events.
2021-02-05 19:58:56 +01:00
Arjan Molenaar
c59f49b910
Add tests for undoing connected relationships 2021-01-09 21:22:23 +01:00
Arjan Molenaar
d8de125158
Bypass sanitizer service when undoing a transaction 2021-01-09 21:22:20 +01:00
Arjan Molenaar
628496b983
Made connection in a diagram reversible 2021-01-09 21:22:16 +01:00
Arjan Molenaar
d3d75a5184
Can undo matrix changes 2021-01-09 21:22:11 +01:00
Arjan Molenaar
4488139927
Add test to check for excessive output when performing an undo 2021-01-01 11:49:30 +01:00
Arjan Molenaar
9627c0431f
Add transactions to tests that use undo manager 2020-12-30 17:48:45 +01:00
Arjan Molenaar
fefb1c249c
Remove all occurrences of canvas from the tests 2020-12-24 09:41:20 +01:00
Arjan Molenaar
22afb61267 Update code now aspects live in their own package 2020-11-16 21:58:29 +01:00
Arjan Molenaar
eff93402e5
Sync Gaphor with latest Gaphas 3 changes
https://github.com/gaphor/gaphas/pull/145
2020-11-12 22:09:42 -05:00
Arjan Molenaar
2e293adbce
Update Gaphor with latest Gaphas code
* no more Item.normalize()
* canvas.update() has been removed -> updates via GtkView
* Painter code has been reorganized
2020-11-12 22:09:29 -05:00
Dan Yeaw
4776b53c40
Reformat docstrings
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-09-07 15:28:20 -04:00
Arjan Molenaar
836284c409 Fix #408 where undo on diagram items breaks the model
diagram items end up in the ElementFactory, because they emited
ElementCreated and ElementDeleted events.
2020-08-18 17:00:09 +02:00
Arjan Molenaar
e440e5315d Fix tests to handle omni-presence of Style sheets 2020-07-13 22:23:17 +02:00
Dan Yeaw
485c93bbc7
Remove unused imports
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-07-04 16:09:39 -04:00
Arjan Molenaar
15d0ed6965 Bump Gaphas dependency to 2.1 2020-06-22 08:21:40 +02:00
Sourcery AI
75fbd1bf46 Refactored by Sourcery 2020-06-02 13:53:01 +00:00
Arjan Molenaar
5ea8cac035 Move gaphor.diagram.* items to UML package
Hotfix gaphor.core.modeling.elementdispatcher, since it has an explicit
dependency on the UML model. Should be moved out into a ModelProvider
service of some sort.
2020-04-12 23:11:31 +02:00
Arjan Molenaar
f84d7b8e31 Move EventManager to gaphor.core 2020-04-08 21:48:49 +02:00
Arjan Molenaar
f4591d7de9 Move ElementFactory to gaphor.core.modeling 2020-04-08 21:23:45 +02:00
Arjan Molenaar
7417ed1d72 Let old TestCase use sessions only
Convert test_undo to pytest and remove test_issue_132.
2020-01-30 10:01:51 +01:00
Dan Yeaw
05481db043
Sort imports 2019-11-09 20:27:01 -05:00
Dan Yeaw
913cdf334e
Change assert statements to pytest format
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-05-25 22:41:46 -04:00
Arjan Molenaar
363600f463 Make imports more specific
Do not import from gaphor.diagram.items, but from their specific modules/packages.
2019-05-20 22:39:01 +02:00
Arjan Molenaar
553cc84a62 Remove comment, no longer applicable 2019-03-23 20:43:01 +01:00
Arjan Molenaar
815e1c5454 Restructure transaction test
This way there are no "left overs" that cause other tests to fail.
2019-03-11 20:32:44 +01:00
Dan Yeaw
f55e582299
Remove futurize dependency, drop support for Python 2
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-02-23 22:06:02 -05:00
Dan Yeaw
1c72d3010b
Replace zope.component.adapts with decorator, remove vim setting comment
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-02-17 13:21:50 -05:00
Dan Yeaw
0b854fc522
Run black on all files to fix formatting
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-11-24 21:31:18 -05:00
Arjan Molenaar
286156bb3a More gaphor.misc fixes 2018-11-23 22:44:52 +01:00
Arjan Molenaar
fb04d4632d Fix assert warnings, whitespace 2018-11-22 23:14:07 +01:00
Dan Yeaw
66a8480f0c
Futurize: import future builtins
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-09-21 21:17:00 -04:00
Dan Yeaw
146ed7818b
Revert "Migrated codebase to be compatible with Python3 using python-modernize. Changed import statements to fix recursive imports, renamed uses of "UML" to uml2 and modelfactory which are the actual module names, and removed some of the unused import statements."
This reverts commit d7c8653

Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-09-21 13:46:40 -04:00
Dan Yeaw
385d249b7a Correct wrong short license on each source file
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-01-13 18:33:50 -05:00
danyeaw
68cb1d3229 Added license preamble and copyright, closes #10. 2017-05-12 22:03:34 -04:00
danyeaw
ffabc82351 Ran python-modernize on files outside of gaphor. Updated formatting. 2017-04-30 21:23:46 -04:00
danyeaw
b705df38d6 Revert "Reformatted all code to match PEP8, optimized imports."
This reverts commit 244be6b647.
2017-04-29 21:58:43 -04:00
danyeaw
244be6b647 Reformatted all code to match PEP8, optimized imports. 2017-04-29 21:24:12 -04:00
danyeaw
4a31654690 More import updates to change UML to uml2 2017-04-26 22:13:28 -04:00
danyeaw
d7c86533c3 Migrated codebase to be compatible with Python3 using python-modernize. Changed import statements to fix recursive imports, renamed uses of "UML" to uml2 and modelfactory which are the actual module names, and removed some of the unused import statements. 2017-04-24 20:59:16 -04:00
Arjan Molenaar
e4e1c7ef9b Fix unit tests, cleanup. 2010-02-18 08:17:12 +01:00
Arjan Molenaar
d83baff040 Let TestCase.connect use the DiagramItemConnector aspect.
Added testcase that exhibits errorous undo of connected items.
2010-02-11 06:42:27 +01:00
Arjan Molenaar
78e38aa3d8 Added event_dispatcher to default set of services. Changed file format to unix. 2010-02-10 08:25:22 +01:00