Permalink
Browse files

Yet another tweek reflecting the removal of GUI redirects

CVWidget2D: set CV.viewDictionary[Slider2D].props and
CV.viewDictionary[RangeSlider].props rather than
CV.viewDictionary[QSlider2D].prop and
CV.viewDictionary[QRangeSlider].prop if Main.versionAtLeast(3, 7)

Signed-off-by:  <st9fan@gmail.com>
  • Loading branch information...
nuss committed Jan 22, 2014
1 parent 3d309f0 commit 84a8bcf859f6495d8f012ae70dad42205bdd4a14
Showing with 155 additions and 146 deletions.
  1. +10 −2 CVCenter/CVWidget2D.sc
  2. +145 −144 CVCenter/HelpSource/Classes/CVWidget2D.schelp
View
@@ -39,14 +39,22 @@ CVWidget2D : CVWidget {
var thisName, thisXY, thisX, thisY, thisWidth, thisHeight, knobsize, widgetSpecsActions;
var msrc = "source", mchan = "chan", mctrl = "ctrl", margs;
var nextY, rightBarX, oscEditButHeight, right, left;
+ var rSliderClass, slider2DClass;
var text, tActions;
this.bgColor ?? { this.bgColor_(Color.white) };
synchKeys ?? { synchKeys = [\default] };
+ // GUI redirects have been removed in SC 3.7alpha. Hence, QSomeClass has become SomeClass
+ if(Main.versionAtLeast(3, 7), {
+ rSliderClass = RangeSlider; slider2DClass = Slider2D;
+ }, {
+ rSliderClass = QRangeSlider; slider2DClass = QSlider2D;
+ });
+
if(GUI.id === \qt, {
- CV.viewDictionary[QSlider2D].props_(#[xValue, yValue]);
- CV.viewDictionary[QRangeSlider].props_(#[loValue, hiValue]);
+ CV.viewDictionary[slider2DClass].props_(#[xValue, yValue]);
+ CV.viewDictionary[rSliderClass].props_(#[loValue, hiValue]);
});
setupArgs !? {
Oops, something went wrong.

0 comments on commit 84a8bcf

Please sign in to comment.