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 af5fe0c commit b688068
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions js/Sim.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import ScreenshotGenerator from './ScreenshotGenerator.js';
import selectScreens from './selectScreens.js';
import SimInfo from './SimInfo.js';
import LegendsOfLearningSupport from './thirdPartySupport/LegendsOfLearningSupport.js';
import SelfVoicingToolbarAlertManager from './toolbar/SelfVoicingToolbarAlertManager.js';
import VoicingToolbarAlertManager from './toolbar/VoicingToolbarAlertManager.js';
import Toolbar from './toolbar/Toolbar.js';
import updateCheck from './updateCheck.js';

Expand Down Expand Up @@ -730,7 +730,7 @@ class Sim {
const audioOptions = options.preferencesConfiguration.audioOptions;
if ( audioOptions.supportsVoicing ) {

const selfVoicingAlertManager = new SelfVoicingToolbarAlertManager( this.screenProperty );
const selfVoicingAlertManager = new VoicingToolbarAlertManager( this.screenProperty );
this.toolbar = new Toolbar( selfVoicingAlertManager, this.preferencesProperties.toolbarEnabledProperty, this.lookAndFeel );

this.toolbar.rightPositionProperty.lazyLink( () => {
Expand Down
2 changes: 1 addition & 1 deletion js/toolbar/SelfVoicingToolbarItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const hintString = 'Hint';
class SelfVoicingToolbarItem extends VBox {

/**
* @param {SelfVoicingToolbarAlertManager} alertManager - generates the alert content when buttons are pressed
* @param {VoicingToolbarAlertManager} alertManager - generates the alert content when buttons are pressed
* @param {LookAndFeel} lookAndFeel
*/
constructor( alertManager, lookAndFeel ) {
Expand Down
2 changes: 1 addition & 1 deletion js/toolbar/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const CONTENT_TOP_MARGIN = 15; // margin between top of Toolbar and contents
class Toolbar extends Node {

/**
* @param {SelfVoicingToolbarAlertManager} selfVoicingAlertManager - generates self-voicing alerts
* @param {VoicingToolbarAlertManager} selfVoicingAlertManager - generates self-voicing alerts
* @param {BooleanProperty} enabledProperty - whether or not the Toolbar is enabled and visible to the user
* @param {LookAndFeel} lookAndFeel
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import joist from '../joist.js';

class SelfVoicingToolbarAlertManager {
class VoicingToolbarAlertManager {

/**
* @param {Property.<Screen>} screenProperty - indicates the active screen
Expand Down Expand Up @@ -54,5 +54,5 @@ class SelfVoicingToolbarAlertManager {
}
}

joist.register( 'SelfVoicingToolbarAlertManager', SelfVoicingToolbarAlertManager );
export default SelfVoicingToolbarAlertManager;
joist.register( 'VoicingToolbarAlertManager', VoicingToolbarAlertManager );
export default VoicingToolbarAlertManager;

0 comments on commit b688068

Please sign in to comment.