deprecate SCViewHolder-layRight
[supercollider.git] / SCClassLibrary / Common / GUI / osx / scide_scapp / ScopeView.sc
blob5f266e6c43bba612f8635338fd45f16a081dec4b
1 SCScope : SCView {
2         bufnum {
3                 ^this.getProperty(\bufnum)
4         }
5         bufnum_ { arg num;
6                 this.setProperty(\bufnum, num);
7         }
8         x {
9                 ^this.getProperty(\x)
10         }
11         x_ { arg val;
12                 this.setProperty(\x, val);
13         }
14         y {
15                 ^this.getProperty(\y)
16         }
17         y_ { arg val;
18                 this.setProperty(\y, val);
19         }
20         xZoom {
21                 ^this.getProperty(\xZoom)
22         }
23         xZoom_ { arg val;
24                 this.setProperty(\xZoom, val);
25         }
26         yZoom {
27                 ^this.getProperty(\yZoom)
28         }
29         yZoom_ { arg val;
30                 this.setProperty(\yZoom, val);
31         }
33         gridColor {
34                 ^this.getProperty(\gridColor, Color.new)
35         }
36         gridColor_ { arg color;
37                 this.setProperty(\gridColor, color);
38         }
40         waveColors {
41                 ^this.getProperty(\waveColors, Array.fill(128, {Color.new})) // 128 is kMaxScopeChannels
42         }
43         waveColors_ { arg arrayOfColors;
44                 this.setProperty(\waveColors, arrayOfColors);
45         }
47         style_ { arg val;
48                 this.setProperty(\style, val);
49                 // 0 = vertically spaced
50                 // 1 = overlapped
51                 // 2 = x/y
52         }
54         properties {
55                 ^super.properties ++ #[\bufnum, \x, \y, \xZoom, \yZoom, \gridColor, \waveColors, \style]
56         }