]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.ui.ontology/graph/DocumentUI.pgraph
Added org.simantics.views.text[.ontology] for modelled source viewers
[simantics/platform.git] / bundles / org.simantics.document.ui.ontology / graph / DocumentUI.pgraph
index cb7cd6498d3139072b14268adac3cff8d40ccbcc..b06a314a38fa29ac97f93c484fd7d42b434e91d2 100644 (file)
@@ -1,5 +1,6 @@
 L0 = <http://www.simantics.org/Layer0-1.1>
 VIEWS = <http://www.simantics.org/Views-1.2>
+TEXTVIEWS = <http://www.simantics.org/TextViews-1.0>
 SG = <http://www.simantics.org/Scenegraph-1.1>
 DOC = <http://www.simantics.org/Document-1.2>
 ACT = <http://www.simantics.org/Action-1.1>
@@ -15,6 +16,7 @@ UI = <http://www.simantics.org/DocumentUI-1.1> : L0.Ontology
     L0.HasResourceClass "org.simantics.document.ui.DocumentUIResource"
 
 UI.Functions : L0.Library
+UI.Functions.editorLoaded : L0.Function
 
 UI.CSSEditorContribution
     L0.HasLabel "Wiki Style Editor"
@@ -39,11 +41,6 @@ UI.WikitextContribution.View : VIEWS.Composite
     @L0.list
       _ : VIEWS.Composite
         VIEWS.Composite.layout _ : VIEWS.RowLayout
-          //VIEWS.RowLayout.type VIEWS.Control.Style.Constant.Horizontal
-          //VIEWS.RowLayout.spacing 0
-          //VIEWS.RowLayout.justify true
-          //VIEWS.RowLayout.pack true
-          //VIEWS.RowLayout.wrap true
         VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
           VIEWS.GridLayout.GridData.horizontalGrab true
         SG.Node.children _ : L0.List
@@ -158,7 +155,7 @@ UI.WikitextContribution.View : VIEWS.Composite
         VIEWS.Composite.layout _ : VIEWS.GridLayout
         SG.Node.children _ : L0.List
           @L0.list
-            UI.WikitextContribution.View.Text : VIEWS.StyledText
+            UI.WikitextContribution.View.Text : TEXTVIEWS.MarkupSourceViewer
               @VIEWS.Control.style4 VIEWS.Control.Style.Constant.Multi VIEWS.Control.Style.Constant.Border VIEWS.Control.Style.Constant.VScroll VIEWS.Control.Style.Constant.HScroll
               VIEWS.TextContainer.text UI.Functions.selectedDocumentPart : L0.Function
                 L0.HasValueType "String"
@@ -187,7 +184,7 @@ UI.Alternative : VIEWS.Alternative
       UI.NoDocument
 
 UI.Sash : VIEWS.SashForm
-  VIEWS.onLoaded UI.Functions.editorLoaded : L0.Function
+  VIEWS.onLoaded UI.Functions.editorLoaded
   VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
     VIEWS.GridLayout.GridData.horizontalGrab true
     VIEWS.GridLayout.GridData.verticalGrab true
@@ -199,13 +196,6 @@ UI.Sash : VIEWS.SashForm
   VIEWS.SashForm.orientation VIEWS.SashForm.Vertical
   SG.Node.children _ : L0.List
     @L0.list
-//      UI.Scroll : VIEWS.ScrolledComposite
- //       VIEWS.Control.layoutData
- //         _ : VIEWS.GridLayout.GridData
- //           VIEWS.GridLayout.GridData.horizontalGrab true
- //           VIEWS.GridLayout.GridData.verticalGrab true
- //       SG.Node.children _ : L0.List
- //         @L0.list
       UI.Browser : VIEWS.Browser
         VIEWS.Control.layoutData
           _ : VIEWS.GridLayout.GridData
@@ -243,7 +233,7 @@ UI.NoDocument : VIEWS.Composite
               VIEWS.Button.modifier UI.Functions.onCreateDocumentButton : L0.Function
 
 UI.Editor : VIEWS.Composite
-  VIEWS.onLoaded UI.Functions.editorLoaded : L0.Function
+  VIEWS.onLoaded UI.Functions.editorLoaded
     L0.HasValueType "WriteGraph => Variable -> Variable -> Boolean"
   VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
     VIEWS.GridLayout.GridData.horizontalGrab true