{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1}],"scripts":[],"id":"B5706345-BEFC-4ADB-8E7C-EA8B001CED5F","shape":{"__isSmartRef__":true,"id":4},"droppingEnabled":true,"halosEnabled":true,"attributeConnections":[{"__isSmartRef__":true,"id":5}],"doNotSerialize":["$$value"],"doNotCopyProperties":["$$value"],"value":0,"sliderExtent":0.1,"valueScale":1,"sliderKnob":{"__isSmartRef__":true,"id":1},"styleClass":["slider_background_horizontal"],"showsHalos":false,"name":"SteppingSlider","partsBinMetaInfo":{"__isSmartRef__":true,"id":6},"eventHandler":{"__isSmartRef__":true,"id":9},"layout":{"__isSmartRef__":true,"id":10},"derivationIds":[2631,"E6C0AF56-6D3E-41C8-AE8E-A0520F495C6B"],"_ClipMode":"visible","moved":true,"__serializedExpressions__":["_Position"],"isBeingDragged":false,"min":0,"max":4,"draggingEnabled":true,"grabbingEnabled":false,"isDragging":false,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11},"__LivelyClassName__":"lively.morphic.Slider","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"1":{"submorphs":[],"scripts":[],"id":"3EDFEA0D-30E3-4B5B-908A-55BA477E7E48","shape":{"__isSmartRef__":true,"id":2},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"slider":{"__isSmartRef__":true,"id":0},"owner":{"__isSmartRef__":true,"id":0},"styleClass":["slider_horizontal"],"eventHandler":{"__isSmartRef__":true,"id":3},"derivationIds":[2632,"A8917D7B-B083-4C54-AFA0-5443B4DEF9E4"],"_ClipMode":"visible","isBeingDragged":false,"__serializedExpressions__":["_Position","hitPoint"],"showsHalos":false,"eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.SliderKnob","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","hitPoint":"lively.pt(196.0,602.0)"},"2":{"_BorderWidth":1,"__serializedExpressions__":["_Fill","position","_Extent","_BorderColor","_Padding"],"_BorderRadius":6,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(196,211,221),\n    offset: 0\n  },{\n    color: Color.rgb(137,167,187),\n    offset: 0.5\n  },{\n    color: Color.rgb(96,130,153),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(15.5,26.0)","_BorderColor":"Color.rgb(102,102,102)","_Padding":"lively.rect(0,0,0,0)"},"3":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4":{"_BorderWidth":1,"__serializedExpressions__":["_Fill","position","_Extent","_BorderColor","_Padding"],"_BorderRadius":6,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(204,204,204),\n    offset: 0\n  },{\n    color: Color.rgb(240,240,240),\n    offset: 0.4\n  },{\n    color: Color.rgb(245,245,245),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(155.0,26.0)","_BorderColor":"Color.rgb(192,192,192)","_Padding":"lively.rect(0,0,0,0)"},"5":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"adjustSliderParts","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"6":{"requiredModules":[],"partsSpaceName":"PartsBin/Inputs","migrationLevel":8,"partName":"SteppingSlider","comment":"Based on the standard Slider but fixed to integer steps.","changes":[{"__isSmartRef__":true,"id":7},{"__isSmartRef__":true,"id":8}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Feb 06 2013 21:45:01 GMT-0800 (PST)\")"},"7":{"__serializedExpressions__":["date"],"author":"dustin.glaeser","message":"no comment","id":"9CD9677C-9A79-4D71-85C1-E5C72C253D16","date":"new Date(\"Thu Dec 13 2012 02:34:16 GMT-0800 (PST)\")"},"8":{"__serializedExpressions__":["date"],"author":"cschuster","message":"initial commit","id":"5E0EFD5F-230B-464B-81B0-280058502B2D","date":"new Date(\"Wed Jun 04 2014 19:57:04 GMT-0700 (PDT)\")"},"9":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10":{},"11":{"onMouseDown":{"__isSmartRef__":true,"id":12},"onDragEnd":{"__isSmartRef__":true,"id":19},"onDragStart":{"__isSmartRef__":true,"id":26},"onDrag":{"__isSmartRef__":true,"id":33}},"12":{"varMapping":{"__isSmartRef__":true,"id":13},"source":"function onMouseDown(evt) {\n    if (!evt.isLeftMouseButtonDown() || evt.isCommandKey()) return false;\n    return true;\n}","funcProperties":{"__isSmartRef__":true,"id":18},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14}},"14":{"$super":{"__isSmartRef__":true,"id":15}},"15":{"varMapping":{"__isSmartRef__":true,"id":16},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":17},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16":{"obj":{"__isSmartRef__":true,"id":0},"name":"onMouseDown"},"17":{},"18":{"__serializedExpressions__":["timestamp"],"user":"cschuster","tags":[],"timestamp":"new Date(\"Wed Jun 04 2014 19:39:33 GMT-0700 (PDT)\")"},"19":{"varMapping":{"__isSmartRef__":true,"id":20},"source":"function onDragEnd(evt) {\n    this.isDragging = false;\n    if (evt.isCommandKey()) return false;\n}","funcProperties":{"__isSmartRef__":true,"id":25},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21}},"21":{"$super":{"__isSmartRef__":true,"id":22}},"22":{"varMapping":{"__isSmartRef__":true,"id":23},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":24},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23":{"obj":{"__isSmartRef__":true,"id":0},"name":"onDragEnd"},"24":{},"25":{"__serializedExpressions__":["timestamp"],"user":"cschuster","tags":[],"timestamp":"new Date(\"Wed Jun 04 2014 19:44:45 GMT-0700 (PDT)\")"},"26":{"varMapping":{"__isSmartRef__":true,"id":27},"source":"function onDragStart(evt) {\n    if (!evt.isLeftMouseButtonDown() || evt.isCommandKey()) return false;\n    var handPos = this.localize(this.world().eventStartPos);\n    this.isDragging = this.sliderKnob.bounds().containsPoint(handPos);\n}","funcProperties":{"__isSmartRef__":true,"id":32},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28}},"28":{"$super":{"__isSmartRef__":true,"id":29}},"29":{"varMapping":{"__isSmartRef__":true,"id":30},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":31},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30":{"obj":{"__isSmartRef__":true,"id":0},"name":"onDragStart"},"31":{},"32":{"__serializedExpressions__":["timestamp"],"user":"cschuster","tags":[],"timestamp":"new Date(\"Wed Jun 04 2014 19:44:32 GMT-0700 (PDT)\")"},"33":{"varMapping":{"__isSmartRef__":true,"id":34},"source":"function onDrag(evt) {\n    // Compute the value from a new mouse point, and emit it\n    var delta = this.localize(evt.getPosition());\n    var v = delta.x / (this.innerBounds().width);\n    var q = Math.floor(0.5 + v * (this.max - this.min)) / (this.max - this.min);\n    this.setScaledValue(Math.max(0, Math.min(1.0, q)));\n}","funcProperties":{"__isSmartRef__":true,"id":39},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35}},"35":{"$super":{"__isSmartRef__":true,"id":36}},"36":{"varMapping":{"__isSmartRef__":true,"id":37},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":38},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37":{"obj":{"__isSmartRef__":true,"id":0},"name":"onDrag"},"38":{},"39":{"__serializedExpressions__":["timestamp"],"user":"cschuster","tags":[],"timestamp":"new Date(\"Wed Jun 04 2014 19:53:32 GMT-0700 (PDT)\")"},"isSimplifiedRegistry":true}}