178 Commits

Author SHA1 Message Date
Arjan Molenaar
df54f384ce
Fix error with invalid handling of multiple comment lines 2021-01-19 22:26:37 +01:00
Arjan Molenaar
c59f49b910
Add tests for undoing connected relationships 2021-01-09 21:22:23 +01:00
Arjan Molenaar
649806d493
Refactor AssociationItem, so ends do not need to be Presentation elements 2021-01-09 21:22:21 +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
9174682e5a
Undo manager records ids for attribute undo commands 2021-01-09 21:19:38 +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
268d0563f0
Use Presentation.parent instead of Diagram.get_parent() 2020-12-24 17:41:43 +01:00
Arjan Molenaar
fefb1c249c
Remove all occurrences of canvas from the tests 2020-12-24 09:41:20 +01:00
Arjan Molenaar
bb510bf751
"uncanvas" more tests 2020-12-24 09:41:19 +01:00
Arjan Molenaar
2e046f551a
Merge pull request #501 from gaphor/gaphas-3
Gaphas 3 support
2020-12-19 14:04:05 +01:00
Dan Yeaw
c61c8d2ef7
Remove commented out code 2020-12-18 21:47:44 -05:00
Arjan Molenaar
2fdc86b0af
Merge branch 'master' into gaphas-3 2020-12-01 20:07:02 +01:00
Dan Yeaw
ee7b980419
Fix tests should have the right numbers of partitions
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-11-28 22:30:35 -05:00
Dan Yeaw
a5fa1568ce
Update action-issue tests with new partitions
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-11-22 21:26:47 -05:00
Arjan Molenaar
22afb61267 Update code now aspects live in their own package 2020-11-16 21:58:29 +01:00
Arjan Molenaar
cc51bdfeb5 Update code since gaphas.Item is a protocol now
Item.point takes an x and y now (not a pos).
2020-11-15 17:27:00 +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
Arjan Molenaar
4fd1085ee4 Format some more docs 2020-09-11 22:14:01 +02:00
Arjan Molenaar
f3e283775f Comment does not require an owner
For now at least.
2020-09-11 22:08:23 +02:00
Arjan Molenaar
e84db9606a Ensure derived unions only traverse properties owned by the object 2020-09-11 22:08:23 +02:00
Arjan Molenaar
3912416390 Add test to check if elements have at least one owner 2020-09-11 22:06:07 +02:00
Dan Yeaw
4776b53c40
Reformat docstrings
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-09-07 15:28:20 -04:00
Arjan Molenaar
c1671d6acf
Merge pull request #411 from gaphor/fix-issue-with-copied-associations
Fix issue where copy/paste + delete of original association causes association ends to be removed
2020-08-25 21:03:15 +02:00
Arjan Molenaar
400f876dee Move association connector tests to a separate file 2020-08-21 22:37:16 +02:00
Arjan Molenaar
c185786a18 Add a test that exposes the association copy/paste issue 2020-08-19 23:41:13 +02: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
c3583d1652 Fix test names 2020-07-21 09:54:01 +02:00
Arjan Molenaar
e440e5315d Fix tests to handle omni-presence of Style sheets 2020-07-13 22:23:17 +02:00
Arjan Molenaar
96c7a2a1c6 Move gaphorconvert to diagramexport package 2020-07-10 11:29:19 +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
70b44e98de Allow types in ElementFactory.[l]select() 2020-05-29 13:51:55 +02:00
Arjan Molenaar
5c6dea490b Rename ModelProvider to ModelingLanguage 2020-04-16 20:40:54 +02:00
Arjan Molenaar
bdade85d69 Remove uml model provider as a service
It's now exclusively accesisble through the ModelProvider service.
2020-04-16 20:35:12 +02:00
Arjan Molenaar
6faa2cf7ff ElementDispatcher and storage now use ModelProvider
No Generic model provider implementation yet, so all defaults to
implementations of the UMLModelProvider.
2020-04-16 20:32:35 +02:00
Dan Yeaw
3b66040c72
Fix test model locations
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-04-13 21:34:34 -04: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
Dan Yeaw
1e182b244b
Move all test models to models package
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-04-12 12:40:46 -04:00
Dan Yeaw
c65a7bc9ba
Move gen_uml and build_uml to codegen module with CLI
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-04-10 22:18:21 -04:00
Arjan Molenaar
f9a0ec6c3c Move diagram module to core.modeling 2020-04-09 21:05:54 +02:00
Arjan Molenaar
6ad184a3fd Move Element and friends to gaphor.core.modeling 2020-04-09 10:07:27 +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
29a9e03ced
Merge pull request #263 from gaphor/unwind-uml-package
Unwind uml package
2020-02-06 19:30:16 +01:00
Arjan Molenaar
f2a177c957 Inline diagram code in uml2 module
This prevents cyclic imports.
2020-02-05 11:17:22 +01:00