]> gerrit.simantics Code Review - simantics/platform.git/blob - 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
1 include "Simantics/Entity" hiding (nameOf)\r
2 include "Simantics/Model"\r
3 include "Simantics/Misc"\r
4 \r
5 type ProfileEntry = Resource\r
6 type RuntimeProfile = Resource\r
7 \r
8 importJava "org.simantics.modeling.ModelingUtils" where\r
9     """\r
10     Creates a Profile with given string, returns the created profile.\r
11     """\r
12     createProfile :: String -> [ProfileEntry] -> <WriteGraph> Resource\r
13     \r
14     """\r
15     CreateProfileEntry name style group.\r
16     """\r
17     createProfileEntry :: String -> Resource -> Resource -> <WriteGraph> ProfileEntry\r
18 \r
19     """\r
20     CreateToplevelProfile model name entries.\r
21     """\r
22     createToplevelProfile :: Model -> String -> [ProfileEntry] -> <WriteGraph> Resource\r
23     \r
24     """\r
25     \r
26     """\r
27     activateProfileEntries :: Resource -> [ProfileEntry] -> <WriteGraph> ()\r
28     \r
29     """\r
30         toggleProfileGroup runtimeProfile profileGroupName value\r
31         \r
32     Toggles the given `profileGroupName` in given `runtimeProfile` on or off\r
33     depending on `value`\r
34     \r
35     Example:\r
36     \r
37         toggleProfileGroup runtimeProfile "Simulated 1" True\r
38     """\r
39     toggleProfileGroup :: RuntimeProfile -> String -> Boolean -> <WriteGraph> ()\r
40     \r
41 importJava "org.simantics.diagram.profile.ElementTranslation" where\r
42     setProfileMonitorPosition :: Resource -> Double -> Double -> <WriteGraph> ()\r
43     resetProfileMonitorPosition :: Resource -> <WriteGraph> ()