Skip to content

Commit

Permalink
SelfVoicing -> Voicing, see phetsims/tasks#1083
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Apr 5, 2021
1 parent b688068 commit 9b5d1cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions js/toolbar/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import Rectangle from '../../../scenery/js/nodes/Rectangle.js';
import ButtonNode from '../../../sun/js/buttons/ButtonNode.js';
import RoundPushButton from '../../../sun/js/buttons/RoundPushButton.js';
import joist from '../joist.js';
import SelfVoicingToolbarItem from './SelfVoicingToolbarItem.js';
import VoicingToolbarItem from './VoicingToolbarItem.js';

// constants
const MAX_ANIMATION_SPEED = 5; // in view coordinates, maximum speed at which Toolbar will open/close
Expand Down Expand Up @@ -70,9 +70,9 @@ class Toolbar extends Node {
// @private {number} - Scale applied to the Toolbar and its contents in response to layout and window resizing.
this.layoutScale = 1;

// @private {SelfVoicingToolbarItem} - Contents for the Toolbar, currently only controls related to the self-voicing
// @private {VoicingToolbarItem} - Contents for the Toolbar, currently only controls related to the self-voicing
// feature.
this.menuContent = new SelfVoicingToolbarItem( selfVoicingAlertManager, lookAndFeel );
this.menuContent = new VoicingToolbarItem( selfVoicingAlertManager, lookAndFeel );

// icon for the openButton
const chevronIcon = new DoubleChevron();
Expand Down
2 changes: 1 addition & 1 deletion js/toolbar/VoicingToolbarAlertManager.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2021, University of Colorado Boulder

/**
* Abstract class that creates alert content for the SelfVoicingToolbarItem. Buttons in that item will call these
* Abstract class that creates alert content for the VoicingToolbarItem. Buttons in that item will call these
* functions to create content that is spoken using speech synthesis. Extend this class and implement these
* functions. Then pass this as an entry to the PreferencesConfiguration when creating a Sim.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const overviewString = 'Overview';
const detailsString = 'Details';
const hintString = 'Hint';

class SelfVoicingToolbarItem extends VBox {
class VoicingToolbarItem extends VBox {

/**
* @param {VoicingToolbarAlertManager} alertManager - generates the alert content when buttons are pressed
Expand Down Expand Up @@ -135,5 +135,5 @@ class SelfVoicingToolbarItem extends VBox {
}
}

joist.register( 'SelfVoicingToolbarItem', SelfVoicingToolbarItem );
export default SelfVoicingToolbarItem;
joist.register( 'VoicingToolbarItem', VoicingToolbarItem );
export default VoicingToolbarItem;

0 comments on commit 9b5d1cb

Please sign in to comment.