From b688068466cbb8712dad66250dc679aae2b2a428 Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 5 Apr 2021 15:13:49 -0400 Subject: [PATCH] SelfVoicing -> Voicing, see https://github.com/phetsims/tasks/issues/1083 --- js/Sim.js | 4 ++-- js/toolbar/SelfVoicingToolbarItem.js | 2 +- js/toolbar/Toolbar.js | 2 +- ...ToolbarAlertManager.js => VoicingToolbarAlertManager.js} | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) rename js/toolbar/{SelfVoicingToolbarAlertManager.js => VoicingToolbarAlertManager.js} (92%) diff --git a/js/Sim.js b/js/Sim.js index 6e0feb71..da5b3e53 100644 --- a/js/Sim.js +++ b/js/Sim.js @@ -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'; @@ -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( () => { diff --git a/js/toolbar/SelfVoicingToolbarItem.js b/js/toolbar/SelfVoicingToolbarItem.js index a718a77f..bdeea18a 100644 --- a/js/toolbar/SelfVoicingToolbarItem.js +++ b/js/toolbar/SelfVoicingToolbarItem.js @@ -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 ) { diff --git a/js/toolbar/Toolbar.js b/js/toolbar/Toolbar.js index 3533ebf4..751b595a 100644 --- a/js/toolbar/Toolbar.js +++ b/js/toolbar/Toolbar.js @@ -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 */ diff --git a/js/toolbar/SelfVoicingToolbarAlertManager.js b/js/toolbar/VoicingToolbarAlertManager.js similarity index 92% rename from js/toolbar/SelfVoicingToolbarAlertManager.js rename to js/toolbar/VoicingToolbarAlertManager.js index c2316360..69c93d01 100644 --- a/js/toolbar/SelfVoicingToolbarAlertManager.js +++ b/js/toolbar/VoicingToolbarAlertManager.js @@ -10,7 +10,7 @@ import joist from '../joist.js'; -class SelfVoicingToolbarAlertManager { +class VoicingToolbarAlertManager { /** * @param {Property.} screenProperty - indicates the active screen @@ -54,5 +54,5 @@ class SelfVoicingToolbarAlertManager { } } -joist.register( 'SelfVoicingToolbarAlertManager', SelfVoicingToolbarAlertManager ); -export default SelfVoicingToolbarAlertManager; \ No newline at end of file +joist.register( 'VoicingToolbarAlertManager', VoicingToolbarAlertManager ); +export default VoicingToolbarAlertManager; \ No newline at end of file