X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ontology%2Fgraph%2FModelingViewpoint.pgraph;h=98b7aa98120c69217aba16c8a9cf709a98bccbf0;hb=e109aff92fb5edf5601b266009cc7e1e2c345571;hp=d392fa2cbaf7322be3a7a21684a547fe87803bd5;hpb=b26efd413afbe72381af527de7cd706f83be1340;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph b/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph index d392fa2cb..98b7aa981 100644 --- a/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph +++ b/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph @@ -23,6 +23,18 @@ MOD.SCLChildRule -- MOD.SCLLabelRule.getLabels ==> "Resource -> [String]" -- MOD.SCLImageRule.getImages ==> "Resource -> [(String,ImageDescriptor)]" -- MOD.SCLLabelForegroundColorRule.getColor ==> "Resource -> Maybe (Double, Double, Double) -> String -> Integer -> Maybe (Double, Double, Double)]" -- MOD.SCLLabelBackgroundColorRule.getColor ==> "Resource -> Maybe (Double, Double, Double) -> String -> Integer -> Maybe (Double, Double, Double)]" -- MOD.SCLCheckedStateRule.getState ==> "BrowseNodeRule CheckedState" MOD.SCLAction.action ==> "Resource -> ()" [String]" +MOD.sclImageRule : L0.Template + @template %action %expression + %action : MOD.SCLImageRule + MOD.SCLImageRule.getImages _ : MOD.SCLValue + L0.SCLValue.expression %expression + L0.HasValueType "Resource -> [(String,ImageDescriptor)]" + +MOD.sclLabelForegroundColorRule : L0.Template + @template %action %expression + %action : MOD.SCLLabelForegroundColorRule + MOD.SCLLabelForegroundColorRule.getColor _ : MOD.SCLValue + L0.SCLValue.expression %expression + L0.HasValueType "Resource -> Maybe (Double, Double, Double) -> String -> Integer -> Maybe (Double, Double, Double)" + +MOD.sclLabelBackgroundColorRule : L0.Template + @template %action %expression + %action : MOD.SCLLabelBackgroundColorRule + MOD.SCLLabelBackgroundColorRule.getColor _ : MOD.SCLValue + L0.SCLValue.expression %expression + L0.HasValueType "Resource -> Maybe (Double, Double, Double) -> String -> Integer -> Maybe (Double, Double, Double)" + +MOD.sclCheckedStateRule : L0.Template + @template %action %expression + %action : MOD.SCLCheckedStateRule + MOD.SCLCheckedStateRule.getState _ : MOD.SCLValue + L0.SCLValue.expression %expression + L0.HasValueType "Browsable a => a -> CheckedState" + MOD.sclAction : L0.Template @template %action %expression %action : MOD.SCLAction