Skip to content

Commit

Permalink
rename GQEquationAccordionBox subclasses
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Malley <[email protected]>
  • Loading branch information
pixelzoom committed Oct 16, 2018
1 parent 05a30db commit 02484f0
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ define( require => {
const StandardFormEquationNode = require( 'GRAPHING_QUADRATICS/standardform/view/StandardFormEquationNode' );
const Tandem = require( 'TANDEM/Tandem' );

class ExploreAccordionBox extends GQEquationAccordionBox {
class ExploreEquationAccordionBox extends GQEquationAccordionBox {

/**
* @param {ExploreModel} model
Expand All @@ -27,7 +27,7 @@ define( require => {
tandem: Tandem.required
}, options );

assert && assert( !options.titleNode, 'ExploreAccordionBox sets titleNode' );
assert && assert( !options.titleNode, 'ExploreEquationAccordionBox sets titleNode' );
options.titleNode = new StandardFormEquationNode( {
maxWidth: 200, // determined empirically
tandem: options.tandem.createTandem( 'titleNode' )
Expand All @@ -41,5 +41,5 @@ define( require => {
}
}

return graphingQuadratics.register( 'ExploreAccordionBox', ExploreAccordionBox );
return graphingQuadratics.register( 'ExploreEquationAccordionBox', ExploreEquationAccordionBox );
} );
4 changes: 2 additions & 2 deletions js/explore/view/ExploreScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ define( require => {
'use strict';

// modules
const ExploreAccordionBox = require( 'GRAPHING_QUADRATICS/explore/view/ExploreAccordionBox' );
const ExploreEquationAccordionBox = require( 'GRAPHING_QUADRATICS/explore/view/ExploreEquationAccordionBox' );
const ExploreGraphNode = require( 'GRAPHING_QUADRATICS/explore/view/ExploreGraphNode' );
const ExploreViewProperties = require( 'GRAPHING_QUADRATICS/explore/view/ExploreViewProperties' );
const GQScreenView = require( 'GRAPHING_QUADRATICS/common/view/GQScreenView' );
Expand All @@ -35,7 +35,7 @@ define( require => {
super( model,
viewProperties,
new ExploreGraphNode( model, viewProperties ),
new ExploreAccordionBox( model, {
new ExploreEquationAccordionBox( model, {
expandedProperty: viewProperties.equationAccordionBoxExpandedProperty,
tandem: tandem.createTandem( 'equationAccordionBox' )
} ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ define( require => {
const graphingQuadratics = require( 'GRAPHING_QUADRATICS/graphingQuadratics' );
const Tandem = require( 'TANDEM/Tandem' );

class FocusAndDirectrixAccordionBox extends GQEquationAccordionBox {
class FocusAndDirectrixEquationAccordionBox extends GQEquationAccordionBox {

/**
* @param {VertexFormModel} model
Expand All @@ -27,7 +27,7 @@ define( require => {
tandem: Tandem.required
}, options );

assert && assert( !options.titleNode, 'FocusAndDirectrixAccordionBox sets titleNode' );
assert && assert( !options.titleNode, 'FocusAndDirectrixEquationAccordionBox sets titleNode' );
options.titleNode = new FocusAndDirectrixEquationNode( {
maxWidth: 225, // determined empirically
tandem: options.tandem.createTandem( 'titleNode' )
Expand All @@ -41,5 +41,5 @@ define( require => {
}
}

return graphingQuadratics.register( 'FocusAndDirectrixAccordionBox', FocusAndDirectrixAccordionBox );
return graphingQuadratics.register( 'FocusAndDirectrixEquationAccordionBox', FocusAndDirectrixEquationAccordionBox );
} );
4 changes: 2 additions & 2 deletions js/focusanddirectrix/view/FocusAndDirectrixScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ define( require => {
'use strict';

// modules
const FocusAndDirectrixAccordionBox = require( 'GRAPHING_QUADRATICS/focusanddirectrix/view/FocusAndDirectrixAccordionBox' );
const FocusAndDirectrixEquationAccordionBox = require( 'GRAPHING_QUADRATICS/focusanddirectrix/view/FocusAndDirectrixEquationAccordionBox' );
const FocusAndDirectrixGraphControls = require( 'GRAPHING_QUADRATICS/focusanddirectrix/view/FocusAndDirectrixGraphControls' );
const FocusAndDirectrixGraphNode = require( 'GRAPHING_QUADRATICS/focusanddirectrix/view/FocusAndDirectrixGraphNode' );
const FocusAndDirectrixViewProperties = require( 'GRAPHING_QUADRATICS/focusanddirectrix/view/FocusAndDirectrixViewProperties' );
Expand All @@ -35,7 +35,7 @@ define( require => {
super( model,
viewProperties,
new FocusAndDirectrixGraphNode( model, viewProperties, tandem ),
new FocusAndDirectrixAccordionBox( model, {
new FocusAndDirectrixEquationAccordionBox( model, {
expandedProperty: viewProperties.equationAccordionBoxExpandedProperty,
tandem: options.tandem.createTandem( 'equationAccordionBox')
} ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ define( require => {
const StandardFormInteractiveEquationNode = require( 'GRAPHING_QUADRATICS/standardform/view/StandardFormInteractiveEquationNode' );
const Tandem = require( 'TANDEM/Tandem' );

class StandardFormAccordionBox extends GQEquationAccordionBox {
class StandardFormEquationAccordionBox extends GQEquationAccordionBox {

/**
* @param {StandardFormModel} model
Expand All @@ -27,7 +27,7 @@ define( require => {
tandem: Tandem.required
}, options );

assert && assert( !options.titleNode, 'StandardFormAccordionBox sets titleNode' );
assert && assert( !options.titleNode, 'StandardFormEquationAccordionBox sets titleNode' );
options.titleNode = new StandardFormEquationNode( {
maxWidth: 200, // determined empirically
tandem: options.tandem.createTandem( 'titleNode' )
Expand All @@ -41,5 +41,5 @@ define( require => {
}
}

return graphingQuadratics.register( 'StandardFormAccordionBox', StandardFormAccordionBox );
return graphingQuadratics.register( 'StandardFormEquationAccordionBox', StandardFormEquationAccordionBox );
} );
4 changes: 2 additions & 2 deletions js/standardform/view/StandardFormScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ define( require => {
// modules
const GQScreenView = require( 'GRAPHING_QUADRATICS/common/view/GQScreenView' );
const graphingQuadratics = require( 'GRAPHING_QUADRATICS/graphingQuadratics' );
const StandardFormAccordionBox = require( 'GRAPHING_QUADRATICS/standardform/view/StandardFormAccordionBox' );
const StandardFormEquationAccordionBox = require( 'GRAPHING_QUADRATICS/standardform/view/StandardFormEquationAccordionBox' );
const StandardFormGraphControls = require( 'GRAPHING_QUADRATICS/standardform/view/StandardFormGraphControls' );
const StandardFormGraphNode = require( 'GRAPHING_QUADRATICS/standardform/view/StandardFormGraphNode' );
const StandardFormViewProperties = require( 'GRAPHING_QUADRATICS/standardform/view/StandardFormViewProperties' );
Expand All @@ -35,7 +35,7 @@ define( require => {
super( model,
viewProperties,
new StandardFormGraphNode( model, viewProperties, tandem ),
new StandardFormAccordionBox( model, {
new StandardFormEquationAccordionBox( model, {
expandedProperty: viewProperties.equationAccordionBoxExpandedProperty,
tandem: options.tandem.createTandem( 'equationAccordionBox' )
} ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ define( require => {
const VertexFormEquationNode = require( 'GRAPHING_QUADRATICS/vertexform/view/VertexFormEquationNode' );
const VertexFormInteractiveEquationNode = require( 'GRAPHING_QUADRATICS/vertexform/view/VertexFormInteractiveEquationNode' );

class VertexFormAccordionBox extends GQEquationAccordionBox {
class VertexFormEquationAccordionBox extends GQEquationAccordionBox {

/**
* @param {VertexFormModel} model
Expand All @@ -27,7 +27,7 @@ define( require => {
tandem: Tandem.required
}, options );

assert && assert( !options.titleNode, 'VertexFormAccordionBox sets titleNode' );
assert && assert( !options.titleNode, 'VertexFormEquationAccordionBox sets titleNode' );
options.titleNode = new VertexFormEquationNode( {
maxWidth: 200, // determined empirically
tandem: options.tandem.createTandem( 'titleNode' )
Expand All @@ -41,5 +41,5 @@ define( require => {
}
}

return graphingQuadratics.register( 'VertexFormAccordionBox', VertexFormAccordionBox );
return graphingQuadratics.register( 'VertexFormEquationAccordionBox', VertexFormEquationAccordionBox );
} );
4 changes: 2 additions & 2 deletions js/vertexform/view/VertexFormScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ define( require => {
// modules
const GQScreenView = require( 'GRAPHING_QUADRATICS/common/view/GQScreenView' );
const graphingQuadratics = require( 'GRAPHING_QUADRATICS/graphingQuadratics' );
const VertexFormAccordionBox = require( 'GRAPHING_QUADRATICS/vertexform/view/VertexFormAccordionBox' );
const VertexFormEquationAccordionBox = require( 'GRAPHING_QUADRATICS/vertexform/view/VertexFormEquationAccordionBox' );
const VertexFormGraphControls = require( 'GRAPHING_QUADRATICS/vertexform/view/VertexFormGraphControls' );
const VertexFormGraphNode = require( 'GRAPHING_QUADRATICS/vertexform/view/VertexFormGraphNode' );
const VertexFormViewProperties = require( 'GRAPHING_QUADRATICS/vertexform/view/VertexFormViewProperties' );
Expand All @@ -35,7 +35,7 @@ define( require => {
super( model,
viewProperties,
new VertexFormGraphNode( model, viewProperties, tandem ),
new VertexFormAccordionBox( model, {
new VertexFormEquationAccordionBox( model, {
expandedProperty: viewProperties.equationAccordionBoxExpandedProperty,
tandem: options.tandem.createTandem( 'equationAccordionBox' )
} ),
Expand Down

0 comments on commit 02484f0

Please sign in to comment.