]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling/scl/Simantics/Profile.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.modeling / scl / Simantics / Profile.scl
diff --git a/bundles/org.simantics.modeling/scl/Simantics/Profile.scl b/bundles/org.simantics.modeling/scl/Simantics/Profile.scl
new file mode 100644 (file)
index 0000000..c7602f8
--- /dev/null
@@ -0,0 +1,43 @@
+include "Simantics/Entity" hiding (nameOf)\r
+include "Simantics/Model"\r
+include "Simantics/Misc"\r
+\r
+type ProfileEntry = Resource\r
+type RuntimeProfile = Resource\r
+\r
+importJava "org.simantics.modeling.ModelingUtils" where\r
+    """\r
+    Creates a Profile with given string, returns the created profile.\r
+    """\r
+    createProfile :: String -> [ProfileEntry] -> <WriteGraph> Resource\r
+    \r
+    """\r
+    CreateProfileEntry name style group.\r
+    """\r
+    createProfileEntry :: String -> Resource -> Resource -> <WriteGraph> ProfileEntry\r
+\r
+    """\r
+    CreateToplevelProfile model name entries.\r
+    """\r
+    createToplevelProfile :: Model -> String -> [ProfileEntry] -> <WriteGraph> Resource\r
+    \r
+    """\r
+    \r
+    """\r
+    activateProfileEntries :: Resource -> [ProfileEntry] -> <WriteGraph> ()\r
+    \r
+    """\r
+        toggleProfileGroup runtimeProfile profileGroupName value\r
+        \r
+    Toggles the given `profileGroupName` in given `runtimeProfile` on or off\r
+    depending on `value`\r
+    \r
+    Example:\r
+    \r
+        toggleProfileGroup runtimeProfile "Simulated 1" True\r
+    """\r
+    toggleProfileGroup :: RuntimeProfile -> String -> Boolean -> <WriteGraph> ()\r
+    \r
+importJava "org.simantics.diagram.profile.ElementTranslation" where\r
+    setProfileMonitorPosition :: Resource -> Double -> Double -> <WriteGraph> ()\r
+    resetProfileMonitorPosition :: Resource -> <WriteGraph> ()
\ No newline at end of file