<div dir="ltr">David,<div><br></div><div>This particular personal convenience is a matter of query, your _personal_ query, not the shape of the internal model, and certainly not the responsibility of Squeak and every current and future user. to host this "convenience" for you.  Nicolas already agreed with me privately, please do not try to solve your query limitations by mutilating the model.</div><div><br></div><div>Remember the other day when you asked people to not reply emails with graphical content?  You should offer the same kind of respect.</div><div><br></div><div> - Chris</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 6, 2020 at 9:59 PM David T. Lewis <<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Chris,<br>
<br>
I disagree. Commit notices are provided for provided for the benefit<br>
of the reader. I find the commit notice for Morphic-nice.1635 to be<br>
clear and meaningful. It helps me to easily understand what was merged<br>
and why. It provides a clear explanation of what I should expect to<br>
see if I browse the ancestry, and it clearly identifies what was<br>
included in the merge. This is not bloat, it is useful information<br>
and I appreciate it.<br>
<br>
Dave<br>
<br>
On Fri, Mar 06, 2020 at 07:33:51PM -0600, Chris Muller wrote:<br>
> Jakob, we can accomplish that convenient email reading idea by upgrading<br>
> the code which produces the email diff -- just enumerate the immediate<br>
> ancestors and paste in their descriptions.  The code is in the /ss<br>
> repository if you want to take a crack at it.  As the one doing the work,<br>
> you'd get to choose how it gets delineated, and since its generated it'd be<br>
> consistent each time we submit a "Merge" object.<br>
> <br>
> Thanks,<br>
>   Chris<br>
> <br>
> On Fri, Mar 6, 2020 at 6:58 PM Chris Muller <<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>> wrote:<br>
> <br>
> > Would you be willing to find another way to re-read the same thing<br>
> > multiple times than bloating the image with multiple copies of the same<br>
> > text?  Would you be willing to find another way to re-read the same thing<br>
> > multiple times than bloating the image with multiple copies of the same<br>
> > text?<br>
> ><br>
> > On Fri, Mar 6, 2020 at 6:07 PM Jakob Reschke <<a href="mailto:forums.jakob@resfarm.de" target="_blank">forums.jakob@resfarm.de</a>><br>
> > wrote:<br>
> ><br>
> >> I find it convenient to re-read here what was merged, without reading<br>
> >> the source code diff or looking up other mails.<br>
> >> But I agree it would be even better if original changes introduced<br>
> >> during the merge were pointed out at the top, not in between or at the<br>
> >> bottom. I overlooked the "integrator note" until after Chris replied.<br>
> >><br>
> >> Am Sa., 7. M??rz 2020 um 00:51 Uhr schrieb Chris Muller <<br>
> >> <a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>>:<br>
> >> ><br>
> >> > Versions about merging can be concisely described with merely "Merge."<br>
> >> and actually provide a clearer description of what that Version object is<br>
> >> about -- a merge, not code changes.  Since they're a unit of change of the<br>
> >> ancestry, not the code, including the prior descriptions about code changes<br>
> >> isn't necessary and even adds some confusion whether this is a simple merge<br>
> >> or something more..<br>
> >> ><br>
> >> > IMO, the original descriptions should remain with the original<br>
> >> submissions _only_.<br>
> >> ><br>
> >> >  - Chris<br>
> >> ><br>
> >> > On Fri, Mar 6, 2020 at 4:54 PM <<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a>> wrote:<br>
> >> >><br>
> >> >> Nicolas Cellier uploaded a new version of Morphic to project The Trunk:<br>
> >> >> <a href="http://source.squeak.org/trunk/Morphic-nice.1635.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/trunk/Morphic-nice.1635.mcz</a><br>
> >> >><br>
> >> >> ==================== Summary ====================<br>
> >> >><br>
> >> >> Name: Morphic-nice.1635<br>
> >> >> Author: nice<br>
> >> >> Time: 6 March 2020, 11:54:05.017411 pm<br>
> >> >> UUID: 2db3548c-1ac5-4197-bf5e-2df91ee604ed<br>
> >> >> Ancestors: Morphic-mt.1634, Morphic-nice.1616, Morphic-ct.1622,<br>
> >> Morphic-cmm.1489<br>
> >> >><br>
> >> >> Merge Morphic-mt.1634, Morphic-nice.1616, Morphic-ct.1622,<br>
> >> Morphic-cmm.1489<br>
> >> >><br>
> >> >> Mainly set smoother scrolling in postscript now that our VM support<br>
> >> that.<br>
> >> >> Note that this removes shared mouseWheelState as discussed in thread<br>
> >> >><br>
> >> <a href="http://lists.squeakfoundation.org/pipermail/squeak-dev/2020-January/206227.html" rel="noreferrer" target="_blank">http://lists.squeakfoundation.org/pipermail/squeak-dev/2020-January/206227.html</a><br>
> >> >> (this was Morphic-nice.1613, but was refactored a bit since then).<br>
> >> >><br>
> >> >> Morphic-nice.1616:<br>
> >> >>         Provide smoother scrolling in response to mouse wheel events<br>
> >> >><br>
> >> >> Instead of delivering the events when wheelDelta reaches 120, make<br>
> >> this threshold a Preference (minimumWheelDelta)<br>
> >> >><br>
> >> >> Reminder: 120 represents a single notch for traditional mouse wheel<br>
> >> with notches, but trackpads can deliver much smaller deltas<br>
> >> >><br>
> >> >> Rather than accumulating the wheelDeltas into MouseWheelState, do it<br>
> >> when we #generateMouseWheelEvent:<br>
> >> >> Indeed, small deltas will come in packets of successive events, and<br>
> >> it's more efficient to regroup then, exactly like we do with mouse trails...<br>
> >> >><br>
> >> >> Also MouseWheelState did ignore time outs (long delays between deltas)<br>
> >> and other state changes (buttons/modifiers), which was not ideal.<br>
> >> >><br>
> >> >> Directly get those states from the raw eventBuffer, like any other<br>
> >> mouse event. This requires integration of tose 2 PR:<br>
> >> >> <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/461" rel="noreferrer" target="_blank">https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/461</a> for Windows<br>
> >> >> <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/462" rel="noreferrer" target="_blank">https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/462</a> for OSX<br>
> >> and linux<br>
> >> >><br>
> >> >> Honour larger wheelDeltas too in ScrollPane>>#mouseWheel: event<br>
> >> handling<br>
> >> >> Honour horizontal mouse wheels too in ScrollPane<br>
> >> >> Note that the scroll pane still won't deliver<br>
> >> sub-scrollDeltaWidth/scrollDeltaHeight with those changes, the number of<br>
> >> scroll deltas is still rounded to 1.<br>
> >> >><br>
> >> >> With patched VM, and following settings, I get a reasonnable scrolling<br>
> >> experience on OSX:<br>
> >> >><br>
> >> >>         HandMorph minimumWheelDelta: 20.<br>
> >> >>         Smalltalk sendMouseWheelEvents: true.<br>
> >> >><br>
> >> >> NOTE: it is tricky to add/remove inst. var. to such HandMorph because<br>
> >> obsolete CompiledMethod pointing to old inst. var. offset are still active<br>
> >> on the stack and can mess things up (unless you do not load the package<br>
> >> from UI but rather from command line...).<br>
> >> >><br>
> >> >> Since accessing 'lastMouseEvent' in such obsolete CompiledMethod is<br>
> >> causing grief, preserve its offset by swapping inst. var. order with<br>
> >> 'targetOffset' which is less likely used.<br>
> >> >><br>
> >> >> Morphic-ct.1622:<br>
> >> >>         Proposal: Swap key and item of an Integer's explorer contents.<br>
> >> Integer representations are not really keys, but rather values. In an<br>
> >> explorer's code pane, this allows you to interact with the selected string<br>
> >> representation (for example '101010') which is much more interesting than<br>
> >> the base name (for example 'binary').<br>
> >> >><br>
> >> >> Morphic-cmm.1489:<br>
> >> >>         Fix TextEditor>>#hasMultipleLinesSelected to consider actual<br>
> >> lines, instead of wrapped lines.<br>
> >> >><br>
> >> >> integrator note: but I also let it consider case of LF<br>
> >> >><br>
> >> >> =============== Diff against Morphic-mt.1634 ===============<br>
> >> >><br>
> >> >> Item was changed:<br>
> >> >>   Morph subclass: #HandMorph<br>
> >> >> +       instanceVariableNames: 'mouseFocus keyboardFocus<br>
> >> eventListeners mouseListeners keyboardListeners eventCaptureFilters<br>
> >> mouseCaptureFilters keyboardCaptureFilters mouseClickState mouseOverHandler<br>
> >> targetOffset lastMouseEvent damageRecorder cacheCanvas cachedCanvasHasHoles<br>
> >> temporaryCursor temporaryCursorOffset hardwareCursor hasChanged savedPatch<br>
> >> userInitials lastEventBuffer genieGestureProcessor keyboardInterpreter'<br>
> >> >> +       classVariableNames: 'CompositionWindowManager DoubleClickTime<br>
> >> DragThreshold EventStats MinimalWheelDelta NewEventRules NormalCursor<br>
> >> PasteBuffer SendMouseWheelToKeyboardFocus ShowEvents<br>
> >> SynthesizeMouseWheelEvents'<br>
> >> >> -       instanceVariableNames: 'mouseFocus keyboardFocus<br>
> >> eventListeners mouseListeners keyboardListeners eventCaptureFilters<br>
> >> mouseCaptureFilters keyboardCaptureFilters mouseClickState mouseOverHandler<br>
> >> mouseWheelState lastMouseEvent targetOffset damageRecorder cacheCanvas<br>
> >> cachedCanvasHasHoles temporaryCursor temporaryCursorOffset hardwareCursor<br>
> >> hasChanged savedPatch userInitials lastEventBuffer genieGestureProcessor<br>
> >> keyboardInterpreter'<br>
> >> >> -       classVariableNames: 'CompositionWindowManager DoubleClickTime<br>
> >> DragThreshold EventStats NewEventRules NormalCursor PasteBuffer<br>
> >> SendMouseWheelToKeyboardFocus ShowEvents SynthesizeMouseWheelEvents'<br>
> >> >>         poolDictionaries: 'EventSensorConstants'<br>
> >> >>         category: 'Morphic-Kernel'!<br>
> >> >><br>
> >> >>   !HandMorph commentStamp: '<historical>' prior: 0!<br>
> >> >>   The cursor may be thought of as the HandMorph.  The hand's submorphs<br>
> >> hold anything being carried by dragging.<br>
> >> >><br>
> >> >>   There is some minimal support for multiple hands in the same world.!<br>
> >> >><br>
> >> >> Item was added:<br>
> >> >> + ----- Method: HandMorph class>>minimumWheelDelta (in category<br>
> >> 'preferences') -----<br>
> >> >> + minimumWheelDelta<br>
> >> >> +       <preference: 'Minimal Mouse Wheel Detection Threshold'<br>
> >> >> +               categoryList: #(Morphic mouse)<br>
> >> >> +               description: 'Answer the minimal scrolling units taken<br>
> >> into account<br>
> >> >> + Defaults to 120 (See #scrollUnitsPerMouseWheelNotch), corresponding<br>
> >> to a single mouse wheel notch.<br>
> >> >> + Use a lower value (20 - See #minimalScrollUnitsPerEvent) if wanting<br>
> >> smoother scrolling with trackpads.'<br>
> >> >> +               type: #Number><br>
> >> >> +       ^MinimalWheelDelta ifNil: [MouseWheelEvent<br>
> >> scrollUnitsPerMouseWheelNotch].!<br>
> >> >><br>
> >> >> Item was added:<br>
> >> >> + ----- Method: HandMorph class>>minimumWheelDelta: (in category<br>
> >> 'preferences') -----<br>
> >> >> + minimumWheelDelta: anInteger<br>
> >> >> +       MinimalWheelDelta := anInteger ifNotNil: [anInteger<br>
> >> >> +               clampLow: MouseWheelEvent minimalScrollUnitsPerEvent<br>
> >> >> +               high: MouseWheelEvent scrollUnitsPerMouseWheelNotch]!<br>
> >> >><br>
> >> >> Item was changed:<br>
> >> >>   ----- Method: HandMorph>>generateMouseWheelEvent: (in category<br>
> >> 'private events') -----<br>
> >> >>   generateMouseWheelEvent: evtBuf<br>
> >> >>         "Generate the appropriate mouse wheel event for the given raw<br>
> >> event buffer"<br>
> >> >><br>
> >> >> +       | buttons modifiers deltaX deltaY stamp nextEvent |<br>
> >> >> -       | buttons modifiers deltaX deltaY stamp |<br>
> >> >>         stamp := evtBuf second.<br>
> >> >>         stamp = 0 ifTrue: [stamp := Time eventMillisecondClock].<br>
> >> >>         deltaX := evtBuf third.<br>
> >> >>         deltaY := evtBuf fourth.<br>
> >> >> +       buttons := evtBuf fifth.<br>
> >> >> +       modifiers := evtBuf sixth.<br>
> >> >> +       [(deltaX abs + deltaY abs < self class minimumWheelDelta)<br>
> >> >> +                       and: [(nextEvent := Sensor peekEvent) notNil<br>
> >> >> +                       and: [nextEvent first = evtBuf first<br>
> >> >> +                       and: [nextEvent fifth = evtBuf fifth<br>
> >> >> +                       and: [nextEvent sixth = evtBuf sixth]<br>
> >> >> +                       and: [nextEvent third isZero = evtBuf third<br>
> >> isZero "both horizontal or vertical"]]]]]<br>
> >> >> +               whileTrue:<br>
> >> >> +                       ["nextEvent is similar.  Remove it from the<br>
> >> queue, and check the next."<br>
> >> >> +                       nextEvent := Sensor nextEvent.<br>
> >> >> +                       deltaX := deltaX + nextEvent third.<br>
> >> >> +                       deltaY := deltaY + nextEvent fourth].<br>
> >> >> -       modifiers := evtBuf fifth.<br>
> >> >> -       buttons := (modifiers bitShift: 3) bitOr: (lastMouseEvent<br>
> >> buttons bitAnd: 7).<br>
> >> >>         ^ MouseWheelEvent new<br>
> >> >>                 setType: #mouseWheel<br>
> >> >>                 position: self position<br>
> >> >>                 delta: deltaX@deltaY<br>
> >> >> -               direction: 2r0000<br>
> >> >>                 buttons: buttons<br>
> >> >>                 hand: self<br>
> >> >>                 stamp: stamp!<br>
> >> >><br>
> >> >> Item was changed:<br>
> >> >>   ----- Method: HandMorph>>generateMouseWheelEvent:direction: (in<br>
> >> category 'private events') -----<br>
> >> >>   generateMouseWheelEvent: keystrokeEvent direction: direction<br>
> >> >>         "Generate the appropriate mouse wheel event from the<br>
> >> keystrokeEvent. Before calling this, ensure that the control key is pressed.<br>
> >> >><br>
> >> >>         This method can be discarded once the VM produces real mouse<br>
> >> wheel events."<br>
> >> >><br>
> >> >>         ^ MouseWheelEvent new<br>
> >> >>                 setType: #mouseWheel<br>
> >> >>                 position: keystrokeEvent position<br>
> >> >> +               delta: 0 @ ((direction anyMask: 2r1000 "wheel up")<br>
> >> ifTrue: [MouseWheelEvent scrollUnitsPerMouseWheelNotch] ifFalse:<br>
> >> [MouseWheelEvent scrollUnitsPerMouseWheelNotch negated])<br>
> >> >> -               delta: 0 @ ((direction anyMask: 2r1000 "wheel up")<br>
> >> ifTrue: [120] ifFalse: [-120])<br>
> >> >>                 direction: direction<br>
> >> >>                 buttons: (keystrokeEvent buttons bitAnd: 2r01111)<br>
> >> "drop control key pressed for this conversion"<br>
> >> >>                 hand: keystrokeEvent hand<br>
> >> >>                 stamp: keystrokeEvent timeStamp!<br>
> >> >><br>
> >> >> Item was changed:<br>
> >> >>   ----- Method: HandMorph>>handleEvent: (in category<br>
> >> 'events-processing') -----<br>
> >> >>   handleEvent: unfilteredEvent<br>
> >> >><br>
> >> >>         | filteredEvent |<br>
> >> >>         owner ifNil: [^ unfilteredEvent  "not necessary but good style<br>
> >> -- see Morph >> #handleEvent:"].<br>
> >> >><br>
> >> >>         self logEvent: unfilteredEvent.<br>
> >> >><br>
> >> >>         "Mouse-over events occur really, really, really often. They<br>
> >> are kind of the heart beat of the Morphic UI process."<br>
> >> >>         unfilteredEvent isMouseOver ifTrue: [^ self sendMouseEvent:<br>
> >> unfilteredEvent].<br>
> >> >><br>
> >> >>         self showEvent: unfilteredEvent.<br>
> >> >>         self sendListenEvents: unfilteredEvent.<br>
> >> >><br>
> >> >>         filteredEvent := self sendFilterEventCapture: unfilteredEvent<br>
> >> for: nil.<br>
> >> >>         "filteredEvent := unfilteredEvent" " <-- use this to disable<br>
> >> global capture filters"<br>
> >> >><br>
> >> >>         filteredEvent wasIgnored ifTrue: [<br>
> >> >>                 self mouseOverHandler processMouseOver: lastMouseEvent.<br>
> >> >>                 ^ filteredEvent].<br>
> >> >><br>
> >> >>         filteredEvent isWindowEvent ifTrue: [<br>
> >> >>                 self sendEvent: filteredEvent focus: nil.<br>
> >> >>                 self mouseOverHandler processMouseOver: lastMouseEvent.<br>
> >> >>                 ^ filteredEvent].<br>
> >> >><br>
> >> >>         filteredEvent isKeyboard ifTrue:[<br>
> >> >>                 self sendKeyboardEvent: filteredEvent.<br>
> >> >>                 self mouseOverHandler processMouseOver: lastMouseEvent.<br>
> >> >>                 ^ filteredEvent].<br>
> >> >><br>
> >> >>         filteredEvent isDropEvent ifTrue:[<br>
> >> >>                 self sendEvent: filteredEvent focus: nil.<br>
> >> >>                 self mouseOverHandler processMouseOver: lastMouseEvent.<br>
> >> >>                 ^ filteredEvent].<br>
> >> >><br>
> >> >>         filteredEvent isMouse ifFalse: [<br>
> >> >>                 self mouseOverHandler processMouseOver: lastMouseEvent.<br>
> >> >>                 ^ filteredEvent].<br>
> >> >><br>
> >> >>         " ********** MOUSE EVENT *********** "<br>
> >> >><br>
> >> >>         lastMouseEvent := filteredEvent.<br>
> >> >><br>
> >> >>         "Check for pending drag or double click operations."<br>
> >> >>         mouseClickState ifNotNil:[<br>
> >> >>                 (mouseClickState handleEvent: filteredEvent from:<br>
> >> self) ifFalse:[<br>
> >> >>                         "Possibly dispatched #click: or something and<br>
> >> will not re-establish otherwise"<br>
> >> >>                         self mouseOverHandler processMouseOver:<br>
> >> lastMouseEvent.<br>
> >> >>                         ^ filteredEvent]].<br>
> >> >><br>
> >> >>         filteredEvent isMouseWheel ifTrue: [<br>
> >> >> +               self class sendMouseWheelToKeyboardFocus<br>
> >> >> +                       ifFalse: [self sendMouseEvent: filteredEvent]<br>
> >> >> +                       ifTrue: [self sendEvent: filteredEvent focus:<br>
> >> self keyboardFocus clear: [self keyboardFocus: nil]].<br>
> >> >> -               mouseWheelState ifNil: [mouseWheelState :=<br>
> >> MouseWheelState new].<br>
> >> >> -               mouseWheelState handleEvent: filteredEvent from: self.<br>
> >> >>                 self mouseOverHandler processMouseOver: lastMouseEvent.<br>
> >> >>                 ^ filteredEvent].<br>
> >> >><br>
> >> >>         filteredEvent isMove ifTrue:[<br>
> >> >>                 self position: filteredEvent position.<br>
> >> >>                 self sendMouseEvent: filteredEvent.<br>
> >> >>                 self mouseOverHandler processMouseOver: lastMouseEvent.<br>
> >> >>                 ^ filteredEvent].<br>
> >> >><br>
> >> >>         "Issue a synthetic move event if we're not at the position of<br>
> >> the event"<br>
> >> >>         filteredEvent position = self position<br>
> >> >>                 ifFalse: [self moveToEvent: filteredEvent].<br>
> >> >><br>
> >> >>         "Drop submorphs on button events"<br>
> >> >>         self hasSubmorphs<br>
> >> >>                 ifTrue:[self dropMorphs: filteredEvent]<br>
> >> >>                 ifFalse:[self sendMouseEvent: filteredEvent].<br>
> >> >><br>
> >> >>         self mouseOverHandler processMouseOver: lastMouseEvent.<br>
> >> >>         ^ filteredEvent "not necessary but good style -- see Morph >><br>
> >> #handleEvent:"    !<br>
> >> >><br>
> >> >> Item was changed:<br>
> >> >>   ----- Method: Integer>>explorerContents (in category<br>
> >> '*Morphic-Explorer') -----<br>
> >> >>   explorerContents<br>
> >> >><br>
> >> >>         ^#(<br>
> >> >>                 ('hexadecimal' 16)<br>
> >> >>                 ('octal' 8)<br>
> >> >>                 ('binary' 2)) collect: [ :each |<br>
> >> >>                         ObjectExplorerWrapper<br>
> >> >> +                               with: (self printStringBase: each<br>
> >> second)<br>
> >> >> +                               name: each first translated<br>
> >> >> -                               with: each first translated<br>
> >> >> -                               name: (self printStringBase: each<br>
> >> second)<br>
> >> >>                                 model: self ]!<br>
> >> >><br>
> >> >> Item was added:<br>
> >> >> + ----- Method: MouseWheelEvent<br>
> >> class>>convertScrollUnits:intoScrollDelta: (in category 'utility') -----<br>
> >> >> + convertScrollUnits: scrollUnits intoScrollDelta:<br>
> >> scrollDeltaPerMouseWheelNotch<br>
> >> >> +       "Convert the scrolling units provided by the VM into scrolling<br>
> >> delta (increment) used by Morph.<br>
> >> >> +       The morph knows how many scroll delta it wants per single<br>
> >> wheel notch.<br>
> >> >> +       I know how many scrolling units is generated by a single wheel<br>
> >> notch."<br>
> >> >> +<br>
> >> >> +       ^scrollUnits abs * scrollDeltaPerMouseWheelNotch // self<br>
> >> scrollUnitsPerMouseWheelNotch max: 1!<br>
> >> >><br>
> >> >> Item was added:<br>
> >> >> + ----- Method: MouseWheelEvent class>>minimalScrollUnitsPerEvent (in<br>
> >> category 'constants') -----<br>
> >> >> + minimalScrollUnitsPerEvent<br>
> >> >> +       "Answer how many scroll units a single mouse wheel event can<br>
> >> generate.<br>
> >> >> +       This reflects a value hardcoded in the VM.<br>
> >> >> +       The VM aggregate wheel events until this threshold is reached."<br>
> >> >> +<br>
> >> >> +       ^20!<br>
> >> >><br>
> >> >> Item was added:<br>
> >> >> + ----- Method: MouseWheelEvent class>>scrollUnitsPerMouseWheelNotch<br>
> >> (in category 'constants') -----<br>
> >> >> + scrollUnitsPerMouseWheelNotch<br>
> >> >> +       "Answer how many scroll units a single mouse wheel notch does<br>
> >> generate.<br>
> >> >> +       This reflects a value hardcoded in the VM.<br>
> >> >> +       The value is chosen high enough so as to enable:<br>
> >> >> +       - smoother scrolling on notch-less devices.<br>
> >> >> +       - while preserving Integer arithmetic<br>
> >> >> +       Interpretation (scaling) of scrolling units is left to the<br>
> >> client morphs.<br>
> >> >> +       Typically, 120 units (1 notch) represents 3 lines of text."<br>
> >> >> +<br>
> >> >> +       ^120!<br>
> >> >><br>
> >> >> Item was added:<br>
> >> >> + ----- Method: MouseWheelEvent>>horizontalScrollDelta: (in category<br>
> >> 'accessing') -----<br>
> >> >> + horizontalScrollDelta: scrollDeltaPerMouseWheelNotch<br>
> >> >> +       "Convert scrolling units into unsigned scrolling increment.<br>
> >> >> +       The morph knows how many scroll delta it wants per single<br>
> >> wheel notch.<br>
> >> >> +       Note that returned increment value is always positive,<br>
> >> regardless of direction."<br>
> >> >> +       ^self class convertScrollUnits: delta x intoScrollDelta:<br>
> >> scrollDeltaPerMouseWheelNotch!<br>
> >> >><br>
> >> >> Item was added:<br>
> >> >> + ----- Method: MouseWheelEvent>>setDirection (in category<br>
> >> 'initialization') -----<br>
> >> >> + setDirection<br>
> >> >> +       delta x > 0 ifTrue: [self setWheelRight].<br>
> >> >> +       delta x < 0 ifTrue: [self setWheelLeft].<br>
> >> >> +<br>
> >> >> +       delta y > 0 ifTrue: [self setWheelUp].<br>
> >> >> +       delta y < 0 ifTrue: [self setWheelDown].!<br>
> >> >><br>
> >> >> Item was added:<br>
> >> >> + ----- Method:<br>
> >> MouseWheelEvent>>setType:position:delta:buttons:hand:stamp: (in category<br>
> >> 'private') -----<br>
> >> >> + setType: evtType position: evtPos delta: evtDelta buttons:<br>
> >> evtButtons hand: evtHand stamp: stamp<br>
> >> >> +       type := evtType.<br>
> >> >> +       position := evtPos.<br>
> >> >> +       buttons := evtButtons.<br>
> >> >> +       source := evtHand.<br>
> >> >> +       wasHandled := false.<br>
> >> >> +       direction := 2r0000.<br>
> >> >> +       delta := evtDelta.<br>
> >> >> +       timeStamp := stamp.<br>
> >> >> +       self setDirection!<br>
> >> >><br>
> >> >> Item was added:<br>
> >> >> + ----- Method: MouseWheelEvent>>verticalScrollDelta: (in category<br>
> >> 'accessing') -----<br>
> >> >> + verticalScrollDelta: scrollDeltaPerMouseWheelNotch<br>
> >> >> +       "Convert scrolling units into unsigned scrolling increment.<br>
> >> >> +       The morph knows how many scroll delta it wants per single<br>
> >> wheel notch.<br>
> >> >> +       Note that returned increment value is always positive,<br>
> >> regardless of direction."<br>
> >> >> +       ^self class convertScrollUnits: delta y intoScrollDelta:<br>
> >> scrollDeltaPerMouseWheelNotch!<br>
> >> >><br>
> >> >> Item was removed:<br>
> >> >> - Object subclass: #MouseWheelState<br>
> >> >> -       instanceVariableNames: 'currentDelta'<br>
> >> >> -       classVariableNames: ''<br>
> >> >> -       poolDictionaries: ''<br>
> >> >> -       category: 'Morphic-Events'!<br>
> >> >><br>
> >> >> Item was removed:<br>
> >> >> - ----- Method: MouseWheelState>>handleEvent:from: (in category 'event<br>
> >> processing') -----<br>
> >> >> - handleEvent: aMouseWheelEvent from: aHand<br>
> >> >> -       "Every 120 units, raise the wheel flags for convenient mouse<br>
> >> wheel programming. We choose not to send multiple mouse-wheel events for<br>
> >> multiples of 120 because applications can always react to the actual delta<br>
> >> values if they want to do more scrolling or zooming."<br>
> >> >> -<br>
> >> >> -       | sign |<br>
> >> >> -       currentDelta := currentDelta + aMouseWheelEvent wheelDelta.<br>
> >> >> -<br>
> >> >> -       sign := currentDelta sign.<br>
> >> >> -       currentDelta := currentDelta abs.<br>
> >> >> -<br>
> >> >> -       (currentDelta x // 120) > 0 ifTrue: [<br>
> >> >> -               sign x = 1<br>
> >> >> -                       ifTrue: [aMouseWheelEvent setWheelRight]<br>
> >> >> -                       ifFalse: [aMouseWheelEvent setWheelLeft]].<br>
> >> >> -<br>
> >> >> -       (currentDelta y // 120) > 0 ifTrue: [<br>
> >> >> -               sign y = 1<br>
> >> >> -                       ifTrue: [aMouseWheelEvent setWheelUp]<br>
> >> >> -                       ifFalse: [aMouseWheelEvent setWheelDown]].<br>
> >> >> -<br>
> >> >> -       currentDelta := currentDelta \\ 120.<br>
> >> >> -       currentDelta := currentDelta * sign.<br>
> >> >> -<br>
> >> >> -       "Finally, send the event."<br>
> >> >> -       HandMorph sendMouseWheelToKeyboardFocus<br>
> >> >> -               ifFalse: [aHand sendMouseEvent: aMouseWheelEvent]<br>
> >> >> -               ifTrue: [aHand sendEvent: aMouseWheelEvent focus:<br>
> >> aHand keyboardFocus clear: [aHand keyboardFocus: nil]].<br>
> >> >> - !<br>
> >> >><br>
> >> >> Item was removed:<br>
> >> >> - ----- Method: MouseWheelState>>initialize (in category<br>
> >> 'initialize-release') -----<br>
> >> >> - initialize<br>
> >> >> -<br>
> >> >> -       super initialize.<br>
> >> >> -       currentDelta := 0@0.!<br>
> >> >><br>
> >> >> Item was changed:<br>
> >> >>   MorphicModel subclass: #ScrollPane<br>
> >> >>         instanceVariableNames: 'scrollBar scroller<br>
> >> retractableScrollBar scrollBarOnLeft getMenuSelector getMenuTitleSelector<br>
> >> hasFocus hScrollBar hScrollBarPolicy vScrollBarPolicy scrollBarThickness'<br>
> >> >> +       classVariableNames: 'HorizontalScrollDeltaPerMouseWheelNotch<br>
> >> UseRetractableScrollBars VerticalScrollDeltaPerMouseWheelNotch'<br>
> >> >> -       classVariableNames: 'UseRetractableScrollBars'<br>
> >> >>         poolDictionaries: ''<br>
> >> >>         category: 'Morphic-Windows'!<br>
> >> >><br>
> >> >>   !ScrollPane commentStamp: 'mk 8/9/2005 10:34' prior: 0!<br>
> >> >>   The scroller (a transform) of a scrollPane is driven by the<br>
> >> scrollBar.  The scroll values vary from 0.0, meaning zero offset to 1.0<br>
> >> meaning sufficient offset such that the bottom of the scrollable material<br>
> >> appears 3/4 of the way down the pane.  The total distance to achieve this<br>
> >> range is called the totalScrollRange.<br>
> >> >><br>
> >> >>   Basic clue about utilization of the ScrollPane class is given in:<br>
> >> >>         ScrollPane example1.<br>
> >> >>         ScrollPane example2.!<br>
> >> >><br>
> >> >> Item was added:<br>
> >> >> + ----- Method: ScrollPane<br>
> >> class>>horizontalScrollDeltaPerMouseWheelNotch (in category 'preferences')<br>
> >> -----<br>
> >> >> + horizontalScrollDeltaPerMouseWheelNotch<br>
> >> >> +<br>
> >> >> +       <preference: 'horizontal scroll increment per single mouse<br>
> >> wheel'<br>
> >> >> +               category: #scrolling<br>
> >> >> +               description: 'How many horizontal scroll increments<br>
> >> should be caused in response to a single mouse wheel notch.<br>
> >> >> + Typically, the scroll panes increment are about 1 character width<br>
> >> for list and text panes (see #scrollDeltaWidth).<br>
> >> >> + The default setting is 3 so as to match the most widely used<br>
> >> convention.'<br>
> >> >> +               type: #Number><br>
> >> >> +       ^ HorizontalScrollDeltaPerMouseWheelNotch ifNil: [3]!<br>
> >> >><br>
> >> >> Item was added:<br>
> >> >> + ----- Method: ScrollPane<br>
> >> class>>horizontalScrollDeltaPerMouseWheelNotch: (in category 'preferences')<br>
> >> -----<br>
> >> >> + horizontalScrollDeltaPerMouseWheelNotch: anIntegerOrNil<br>
> >> >> +<br>
> >> >> +       HorizontalScrollDeltaPerMouseWheelNotch := anIntegerOrNil!<br>
> >> >><br>
> >> >> Item was added:<br>
> >> >> + ----- Method: ScrollPane<br>
> >> class>>verticalScrollDeltaPerMouseWheelNotch (in category 'preferences')<br>
> >> -----<br>
> >> >> + verticalScrollDeltaPerMouseWheelNotch<br>
> >> >> +<br>
> >> >> +       <preference: 'vertical scroll increment per single mouse wheel'<br>
> >> >> +               category: #scrolling<br>
> >> >> +               description: 'How many vertical scroll increments<br>
> >> should be caused in response to a single mouse wheel notch.<br>
> >> >> + Typically, the scroll panes increment are one line height for list<br>
> >> and text panes (see #scrollDeltaHeight).<br>
> >> >> + The default setting is 3 so as to match the most widely used<br>
> >> convention.'<br>
> >> >> +               type: #Number><br>
> >> >> +       ^ VerticalScrollDeltaPerMouseWheelNotch ifNil: [3]!<br>
> >> >><br>
> >> >> Item was added:<br>
> >> >> + ----- Method: ScrollPane<br>
> >> class>>verticalScrollDeltaPerMouseWheelNotch: (in category 'preferences')<br>
> >> -----<br>
> >> >> + verticalScrollDeltaPerMouseWheelNotch: anIntegerOrNil<br>
> >> >> +<br>
> >> >> +       VerticalScrollDeltaPerMouseWheelNotch := anIntegerOrNil!<br>
> >> >><br>
> >> >> Item was changed:<br>
> >> >>   ----- Method: ScrollPane>>mouseWheel: (in category 'event handling')<br>
> >> -----<br>
> >> >>   mouseWheel: evt<br>
> >> >><br>
> >> >> +       evt isWheelUp ifTrue: [scrollBar scrollUp: (evt<br>
> >> verticalScrollDelta: self class verticalScrollDeltaPerMouseWheelNotch)].<br>
> >> >> +       evt isWheelDown ifTrue: [scrollBar scrollDown: (evt<br>
> >> verticalScrollDelta: self class verticalScrollDeltaPerMouseWheelNotch)].<br>
> >> >> +       evt isWheelLeft ifTrue: [hScrollBar scrollUp: (evt<br>
> >> horizontalScrollDelta: self class verticalScrollDeltaPerMouseWheelNotch)].<br>
> >> >> +       evt isWheelRight ifTrue: [hScrollBar scrollDown: (evt<br>
> >> horizontalScrollDelta: self class verticalScrollDeltaPerMouseWheelNotch)].!<br>
> >> >> -       evt isWheelUp ifTrue: [scrollBar scrollUp: 3].<br>
> >> >> -       evt isWheelDown ifTrue: [scrollBar scrollDown: 3].!<br>
> >> >><br>
> >> >> Item was changed:<br>
> >> >>   ----- Method: TextEditor>>hasMultipleLinesSelected (in category<br>
> >> 'typing support') -----<br>
> >> >>   hasMultipleLinesSelected<br>
> >> >> +       ^ self selection includesAnyOf: CharacterSet crlf!<br>
> >> >> -<br>
> >> >> -       ^ self hasSelection and: [self startBlock top < self stopBlock<br>
> >> top]!<br>
> >> >><br>
> >> >> Item was changed:<br>
> >> >> + (PackageInfo named: 'Morphic') postscript: '''Set a smoother<br>
> >> scrolling, especially useful for trackpads"<br>
> >> >> + HandMorph minimumWheelDelta: 20.<br>
> >> >> + Smalltalk sendMouseWheelEvents: true.'!<br>
> >> >> - (PackageInfo named: 'Morphic') postscript: 'PluggableListMorph<br>
> >> allSubInstancesDo: [:m |<br>
> >> >> -       m scroller layoutPolicy: TableLayout new.<br>
> >> >> -       m listMorph<br>
> >> >> -               cellPositioning: #leftCenter;<br>
> >> >> -               cellInset: 3@0;<br>
> >> >> -               vResizing: #shrinkWrap;<br>
> >> >> -               removeProperty: #errorOnDraw. "Just in case."<br>
> >> >> -       m updateList.<br>
> >> >> -       m hScrollBarPolicy: #never].<br>
> >> >> - '!<br>
> >> >><br>
> >> >><br>
> >> ><br>
> >><br>
> >><br>
> >><br>
<br>
> <br>
<br>
</blockquote></div>