From 12bdc3a229a31e4d279f3f20c155fb25ef4bd9e9 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 17 Sep 2024 08:51:47 +0200 Subject: [PATCH] diagram: implement the option to set the grid style --- .../languageModels/editor.mps | 6 +- .../generator/template/main@generator.mps | 87 +++++++++++++++++++ .../languageModels/editor.mps | 13 +++ .../languageModels/structure.mps | 30 +++++++ .../mps/editor/diagram/runtime/jgraph.mps | 13 +++ .../mps/editor/diagram/runtime/model.mps | 25 ++++++ 6 files changed, 172 insertions(+), 2 deletions(-) diff --git a/code/diagram/languages/de.itemis.mps.editor.diagram.demoentities/languageModels/editor.mps b/code/diagram/languages/de.itemis.mps.editor.diagram.demoentities/languageModels/editor.mps index 8d7c144e7..60eb77349 100644 --- a/code/diagram/languages/de.itemis.mps.editor.diagram.demoentities/languageModels/editor.mps +++ b/code/diagram/languages/de.itemis.mps.editor.diagram.demoentities/languageModels/editor.mps @@ -224,6 +224,7 @@ + @@ -490,6 +491,7 @@ + @@ -896,8 +898,8 @@ - - + + diff --git a/code/diagram/languages/de.itemis.mps.editor.diagram/generator/template/main@generator.mps b/code/diagram/languages/de.itemis.mps.editor.diagram/generator/template/main@generator.mps index a6eef4ee4..2762d1286 100644 --- a/code/diagram/languages/de.itemis.mps.editor.diagram/generator/template/main@generator.mps +++ b/code/diagram/languages/de.itemis.mps.editor.diagram/generator/template/main@generator.mps @@ -68,7 +68,9 @@ + + @@ -101,6 +103,9 @@ + + + @@ -140,6 +145,7 @@ + @@ -265,6 +271,10 @@ + + + + @@ -275,6 +285,10 @@ + + + + @@ -6879,6 +6893,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/diagram/languages/de.itemis.mps.editor.diagram/languageModels/editor.mps b/code/diagram/languages/de.itemis.mps.editor.diagram/languageModels/editor.mps index 75c40173e..6b04ced6d 100644 --- a/code/diagram/languages/de.itemis.mps.editor.diagram/languageModels/editor.mps +++ b/code/diagram/languages/de.itemis.mps.editor.diagram/languageModels/editor.mps @@ -1222,6 +1222,19 @@ + + + + + + + + + + + + + diff --git a/code/diagram/languages/de.itemis.mps.editor.diagram/languageModels/structure.mps b/code/diagram/languages/de.itemis.mps.editor.diagram/languageModels/structure.mps index 2d4f976df..5753fb3d9 100644 --- a/code/diagram/languages/de.itemis.mps.editor.diagram/languageModels/structure.mps +++ b/code/diagram/languages/de.itemis.mps.editor.diagram/languageModels/structure.mps @@ -124,6 +124,11 @@ + + + + + @@ -5095,5 +5100,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps b/code/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps index 7eb059d63..a8ca78721 100644 --- a/code/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps +++ b/code/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/jgraph.mps @@ -28157,6 +28157,19 @@ + + + + + + + + + + + + + diff --git a/code/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/model.mps b/code/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/model.mps index 60d6ecded..f6a94dea2 100644 --- a/code/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/model.mps +++ b/code/diagram/solutions/de.itemis.mps.editor.diagram.runtime/models/de/itemis/mps/editor/diagram/runtime/model.mps @@ -54,6 +54,7 @@ + @@ -17611,6 +17612,12 @@ + + + + + + @@ -29473,6 +29480,24 @@ + + + + + + + + + + + + + + + + + +