Skip to content

Commit

Permalink
Renamed [C|c]heckBox => [C|c]heckbox, see phetsims/tasks#910
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jan 12, 2018
1 parent 7f2ddfb commit cd52ee1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
34 changes: 17 additions & 17 deletions js/demo/ComponentsScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ define( function( require ) {
var ArrowNode = require( 'SCENERY_PHET/ArrowNode' );
var BracketNode = require( 'SCENERY_PHET/BracketNode' );
var CapsLockKeyNode = require( 'SCENERY_PHET/keyboard/CapsLockKeyNode' );
var CheckBox = require( 'SUN/CheckBox' );
var Checkbox = require( 'SUN/Checkbox' );
var Color = require( 'SCENERY/util/Color' );
var ConductivityTesterNode = require( 'SCENERY_PHET/ConductivityTesterNode' );
var DemosScreenView = require( 'SUN/demo/DemosScreenView' );
Expand Down Expand Up @@ -132,7 +132,7 @@ define( function( require ) {
arrowNode.setDoubleHead( checked );
} );

var checkbox = CheckBox.createTextCheckBox( 'Double head', { font: new PhetFont( 20 ) }, checkedProperty, {
var checkbox = Checkbox.createTextCheckbox( 'Double head', { font: new PhetFont( 20 ) }, checkedProperty, {
centerX: layoutBounds.centerX,
top: arrowNode.bottom + 50
} );
Expand Down Expand Up @@ -178,13 +178,13 @@ define( function( require ) {
shortCircuitProperty.link( function( shortCircuit ) {
conductivityTesterNode.shortCircuit = shortCircuit;
} );
var shortCircuitCheckBox = new CheckBox( new Text( 'short circuit', { font: new PhetFont( 20 ) } ), shortCircuitProperty, {
var shortCircuitCheckbox = new Checkbox( new Text( 'short circuit', { font: new PhetFont( 20 ) } ), shortCircuitProperty, {
centerX: brightnessSlider.centerX,
bottom: brightnessSlider.bottom + 50
} );

return new Node( {
children: [ conductivityTesterNode, brightnessSlider, shortCircuitCheckBox ],
children: [ conductivityTesterNode, brightnessSlider, shortCircuitCheckbox ],
center: layoutBounds.center
} );
};
Expand Down Expand Up @@ -241,13 +241,13 @@ define( function( require ) {

var faucetNode = new FaucetNode( 10, fluidRateProperty, faucetEnabledProperty );

var faucetEnabledCheckBox = new CheckBox( new Text( 'faucet enabled', { font: new PhetFont( 20 ) } ), faucetEnabledProperty, {
var faucetEnabledCheckbox = new Checkbox( new Text( 'faucet enabled', { font: new PhetFont( 20 ) } ), faucetEnabledProperty, {
left: faucetNode.left,
bottom: faucetNode.top - 20
} );

return new Node( {
children: [ faucetNode, faucetEnabledCheckBox ],
children: [ faucetNode, faucetEnabledCheckbox ],
center: layoutBounds.center
} );
};
Expand Down Expand Up @@ -522,12 +522,12 @@ define( function( require ) {
} );

// enabled check box
var enabledCheckBox = new CheckBox( new Text( 'enabled', { font: new PhetFont( 20 ) } ), enabledProperty, {
var enabledCheckbox = new Checkbox( new Text( 'enabled', { font: new PhetFont( 20 ) } ), enabledProperty, {
centerX: layoutBounds.centerX,
top: leftLaserNode.bottom + 40
} );

return new Node( { children: [ leftBeamNode, leftLaserNode, rightBeamNode, rightLaserNode, enabledCheckBox ] } );
return new Node( { children: [ leftBeamNode, leftLaserNode, rightBeamNode, rightLaserNode, enabledCheckbox ] } );
};

// Creates a demo for MeasuringTapeNode
Expand Down Expand Up @@ -562,7 +562,7 @@ define( function( require ) {

// For testing NumberKeypad's clearOnNextKeyPress feature
var clearOnNextKeyPressProperty = new Property( false );
var clearOnNextKeyPressCheckBox = new CheckBox( new Text( 'clearOnNextKeyPress', { font: new PhetFont( 16 ) } ), clearOnNextKeyPressProperty );
var clearOnNextKeyPressCheckbox = new Checkbox( new Text( 'clearOnNextKeyPress', { font: new PhetFont( 16 ) } ), clearOnNextKeyPressProperty );

clearOnNextKeyPressProperty.link( function( clearOnNextKeyPress ) {
integerKeypad.clearOnNextKeyPress = clearOnNextKeyPress;
Expand All @@ -589,7 +589,7 @@ define( function( require ) {
// integer keypad and display
new VBox( {
spacing: 40,
children: [ integerText, integerKeypad, clearOnNextKeyPressCheckBox ]
children: [ integerText, integerKeypad, clearOnNextKeyPressCheckbox ]
} ),

// decimal keypad and display
Expand Down Expand Up @@ -729,7 +729,7 @@ define( function( require ) {

// For testing clearOnNextKeyPress feature
var integerClearOnNextKeyPressProperty = new Property( integerKeyPad.getClearOnNextKeyPress() );
var integerClearOnNextKeyPressCheckBox = new CheckBox(
var integerClearOnNextKeyPressCheckbox = new Checkbox(
new Text( 'Clear On Next Key Press' ),
integerClearOnNextKeyPressProperty
);
Expand All @@ -750,7 +750,7 @@ define( function( require ) {
integerStringRepresentation,
integerKeyPad,
integerClearButton,
integerClearOnNextKeyPressCheckBox
integerClearOnNextKeyPressCheckbox
]
} );

Expand Down Expand Up @@ -781,7 +781,7 @@ define( function( require ) {

// For testing clearOnNextKeyPress feature
var floatingPointClearOnNextKeyPressProperty = new Property( floatingPointKeyPad.getClearOnNextKeyPress() );
var floatingPointClearOnNextKeyPressButton = new CheckBox(
var floatingPointClearOnNextKeyPressButton = new Checkbox(
new Text( 'Clear On Next Key Press' ),
floatingPointClearOnNextKeyPressProperty
);
Expand Down Expand Up @@ -835,7 +835,7 @@ define( function( require ) {
var positiveAndNegativeFloatingPointClearOnNextKeyPressProperty = new Property(
positiveAndNegativeFloatingPointKeyPad.getClearOnNextKeyPress()
);
var positiveAndNegativeFloatingPointClearOnNextKeyPressCheckBox = new CheckBox(
var positiveAndNegativeFloatingPointClearOnNextKeyPressCheckbox = new Checkbox(
new Text( 'Clear On Next Key Press' ),
positiveAndNegativeFloatingPointClearOnNextKeyPressProperty
);
Expand Down Expand Up @@ -864,8 +864,8 @@ define( function( require ) {
positiveAndNegativeFloatingPointKeyPad = null;
positiveAndNegativeFloatingPointVBox.removeChild( positiveAndNegativeFloatingPointClearButton );
positiveAndNegativeFloatingPointClearButton.dispose();
positiveAndNegativeFloatingPointVBox.removeChild( positiveAndNegativeFloatingPointClearOnNextKeyPressCheckBox );
positiveAndNegativeFloatingPointClearOnNextKeyPressCheckBox.dispose();
positiveAndNegativeFloatingPointVBox.removeChild( positiveAndNegativeFloatingPointClearOnNextKeyPressCheckbox );
positiveAndNegativeFloatingPointClearOnNextKeyPressCheckbox.dispose();
positiveAndNegativeFloatingPointVBox.removeChild( removeKeypadFromScreenButton );
removeKeypadFromScreenButton.dispose();
}
Expand All @@ -880,7 +880,7 @@ define( function( require ) {
positiveAndNegativeFloatingPointStringRepresentation,
positiveAndNegativeFloatingPointKeyPad,
positiveAndNegativeFloatingPointClearButton,
positiveAndNegativeFloatingPointClearOnNextKeyPressCheckBox,
positiveAndNegativeFloatingPointClearOnNextKeyPressCheckbox,
removeKeypadFromScreenButton
]
} );
Expand Down
6 changes: 3 additions & 3 deletions js/demo/SlidersScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ define( function( require ) {
'use strict';

// modules
var CheckBox = require( 'SUN/CheckBox' );
var Checkbox = require( 'SUN/Checkbox' );
var DemosScreenView = require( 'SUN/demo/DemosScreenView' );
var HBox = require( 'SCENERY/nodes/HBox' );
var inherit = require( 'PHET_CORE/inherit' );
Expand Down Expand Up @@ -98,12 +98,12 @@ define( function( require ) {
}, numberControlOptions ) );

// Check box that will disable all NumberControls
var enabledCheckBox = new CheckBox( new Text( 'enabled', { font: new PhetFont( 20 ) } ), enabledProperty );
var enabledCheckbox = new Checkbox( new Text( 'enabled', { font: new PhetFont( 20 ) } ), enabledProperty );

return new VBox( {
spacing: 30,
resize: false, // prevent sliders from causing a resize when thumb is at min or max
children: [ numberControl1, numberControl2, numberControl3, numberControl4, enabledCheckBox ],
children: [ numberControl1, numberControl2, numberControl3, numberControl4, enabledCheckbox ],
center: layoutBounds.center
} );
};
Expand Down

0 comments on commit cd52ee1

Please sign in to comment.