Skip to content

Commit

Permalink
spelling mistake in "bringToForeground"
Browse files Browse the repository at this point in the history
  • Loading branch information
davidedc committed Mar 7, 2018
1 parent 461873a commit 0df9408
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/ErrorsLogViewerMorph.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ErrorsLogViewerMorph extends Widget

if !@parent.isVisible
@parent.show()
@parent.bringToForegroud()
@parent.bringToForeground()


buildAndConnectChildren: ->
Expand Down
2 changes: 1 addition & 1 deletion src/FolderWindowWdgt.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ class FolderWindowWdgt extends WindowWdgt
whichFolderPanelToAddTo.add morphToAdd
morphToAdd.setExtent new Point 75, 75
morphToAdd.fullChanged()
@bringToForegroud()
@bringToForeground()

2 changes: 1 addition & 1 deletion src/HandMorph.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ class HandMorph extends Widget
# pop into the foreground. I'm liking the OSX style
# so I'm leaving this commented-out, but it's there.
# TODO this could be a setting somewhere in ZK.
# @nonFloatDraggedMorph.bringToForegroud()
# @nonFloatDraggedMorph.bringToForeground()

if @mouseButton
if @previousNonFloatDraggingPos?
Expand Down
2 changes: 1 addition & 1 deletion src/HandleMorph.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class HandleMorph extends Widget
# will trigger the button when resizing.
mouseDownLeft: (pos) ->
return nil unless @target
@target.bringToForegroud()
@target.bringToForeground()

nonFloatDragging: (nonFloatDragPositionWithinMorphAtStart, pos, deltaDragFromPreviousCall) ->
newPos = pos.subtract nonFloatDragPositionWithinMorphAtStart
Expand Down
2 changes: 1 addition & 1 deletion src/LayoutElementAdderOrDropletMorph.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class LayoutElementAdderOrDropletMorph extends Widget
@drawHandle context

mouseClickLeft: ->
@bringToForegroud()
@bringToForeground()
# if the adder/droplet is on its own, free floating, then
# put a supporting morph underneath it and put the adder/droplet
# in a layout.
Expand Down
2 changes: 1 addition & 1 deletion src/PanelWdgt.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class PanelWdgt extends Widget


mouseClickLeft: (pos, ignored_button, ignored_buttons, ignored_ctrlKey, shiftKey, ignored_altKey, ignored_metaKey) ->
@bringToForegroud()
@bringToForeground()

# when you click on an "empty" part of a Panel that contains
# a piece of text, we pass the click on to the text to it
Expand Down
2 changes: 1 addition & 1 deletion src/SliderButtonMorph.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ class SliderButtonMorph extends CircleBoxMorph
@setPressedColor()

mouseClickLeft: ->
@bringToForegroud()
@bringToForeground()
@setHiglightedColor()

2 changes: 1 addition & 1 deletion src/StringFieldMorph.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class StringFieldMorph extends PanelWdgt
@text.text

mouseClickLeft: (pos)->
@bringToForegroud()
@bringToForeground()
if @isEditable
@text.edit()
else
Expand Down
2 changes: 1 addition & 1 deletion src/StringFieldWdgt2.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class StringFieldWdgt2 extends PanelWdgt
@text.text

mouseClickLeft: (pos)->
@bringToForegroud()
@bringToForeground()
if @isEditable
@text.edit()
else
Expand Down
2 changes: 1 addition & 1 deletion src/StringMorph.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ class StringMorph extends Widget
# Every time the user clicks on the text, a new edit()
# is triggered, which creates a new caret.
mouseClickLeft: (pos) ->
@bringToForegroud()
@bringToForeground()
caret = world.caret
if @isEditable
@edit() unless @currentlySelecting
Expand Down
4 changes: 2 additions & 2 deletions src/StringMorph2.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1197,8 +1197,8 @@ class StringMorph2 extends Widget
# Every time the user clicks on the text, a new edit()
# is triggered, which creates a new caret.
mouseClickLeft: (pos, ignored_button, ignored_buttons, ignored_ctrlKey, shiftKey, ignored_altKey, ignored_metaKey) ->
@bringToForegroud()
world.caret?.bringToForegroud()
@bringToForeground()
world.caret?.bringToForeground()
if @isEditable
# doesn't matter what we set editResult to initially,
# just not undefined or nil cause that's
Expand Down
4 changes: 2 additions & 2 deletions src/StringMorph3.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1202,8 +1202,8 @@ class StringMorph3 extends Widget
# Every time the user clicks on the text, a new edit()
# is triggered, which creates a new caret.
mouseClickLeft: (pos, ignored_button, ignored_buttons, ignored_ctrlKey, shiftKey, ignored_altKey, ignored_metaKey) ->
@bringToForegroud()
world.caret?.bringToForegroud()
@bringToForeground()
world.caret?.bringToForeground()
if @isEditable
# doesn't matter what we set editResult to initially,
# just not undefined or nil cause that's
Expand Down
2 changes: 1 addition & 1 deletion src/TemplatesButtonWdgt.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TemplatesButtonWdgt extends IconMorph
world.simpleEditorTemplates = wm

bringTemplatesWindowIntoView: ->
world.simpleEditorTemplates.bringToForegroud()
world.simpleEditorTemplates.bringToForeground()
world.simpleEditorTemplates.fullRawMoveTo world.hand.position().subtract new Point 50, 50
world.simpleEditorTemplates.fullRawMoveWithin world

Expand Down
2 changes: 1 addition & 1 deletion src/TreeNode.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class TreeNode

@addChild aMorphicNode, 0

# used from bringToForegroud method
# used from bringToForeground method
# for example when you
# click morphs around... they
# pop to the foreground
Expand Down
2 changes: 1 addition & 1 deletion src/TriggerMorph.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class TriggerMorph extends Widget
super

mouseClickLeft: ->
@bringToForegroud()
@bringToForeground()
@state = @STATE_HIGHLIGHTED
@changed()
if @ifInsidePopUpThenClosesUnpinnedPopUpsWhenClicked
Expand Down
8 changes: 4 additions & 4 deletions src/Widget.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class Widget extends TreeNode
# you could bring up what you right-click,
# however for example that's not how OSX works.
# Perhaps this could be a system setting?
#@bringToForegroud()
#@bringToForeground()

world.hand.openContextMenuAtPointer @

Expand Down Expand Up @@ -1953,7 +1953,7 @@ class Widget extends TreeNode
placeToDropItIn.add morphToAdd
morphToAdd.setExtent new Point 75, 75
morphToAdd.fullChanged()
@bringToForegroud()
@bringToForeground()

createReferenceAndClose: (referenceName, placeToDropItIn = world) ->
@createReference referenceName, placeToDropItIn
Expand Down Expand Up @@ -2627,7 +2627,7 @@ class Widget extends TreeNode
@moveAsLastChild()
@fullChanged()

bringToForegroud: ->
bringToForeground: ->
@rootForFocus()?.moveAsLastChild()
@rootForFocus()?.fullChanged()

Expand All @@ -2642,7 +2642,7 @@ class Widget extends TreeNode
@parent.propagateKillPopUps()

mouseDownLeft: (pos) ->
@bringToForegroud()
@bringToForeground()
@escalateEvent "mouseDownLeft", pos

mouseClickLeft: (pos) ->
Expand Down
2 changes: 1 addition & 1 deletion src/WindowWdgt.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class WindowWdgt extends SimpleVerticalStackPanelWdgt
placeToDropItIn.add morphToAdd
morphToAdd.setExtent new Point 75, 75
morphToAdd.fullChanged()
@bringToForegroud()
@bringToForeground()
else
super

Expand Down
2 changes: 1 addition & 1 deletion src/WorldMorph.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1852,7 +1852,7 @@ class WorldMorph extends PanelWdgt

switchTextFieldFocus: (current, next) ->
current.clearSelection()
next.bringToForegroud()
next.bringToForeground()
next.selectAll()
next.edit()

Expand Down

0 comments on commit 0df9408

Please sign in to comment.