added values for displayName-property
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1326 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -157,14 +157,14 @@ chordCreator::chord chordCreator::s_chordTable[] =
|
||||
|
||||
|
||||
chordCreator::chordCreator( model * _parent ) :
|
||||
model( _parent ),
|
||||
model( _parent, tr( "Chords" ) ),
|
||||
m_chordsEnabledModel( FALSE, this ),
|
||||
m_chordsModel( this, tr( "Chord type" ) ),
|
||||
m_chordRangeModel( 1.0f, 1.0f, 9.0f, 1.0f, this, tr( "Chord range" ) )
|
||||
{
|
||||
for( int i = 0; s_chordTable[i].interval[0] != -1; ++i )
|
||||
{
|
||||
m_chordsModel.addItem( tr( s_chordTable[i].name.toAscii().
|
||||
m_chordsModel.addItem( tr( s_chordTable[i].name.toUtf8().
|
||||
constData() ) );
|
||||
}
|
||||
}
|
||||
@@ -264,7 +264,7 @@ void chordCreator::loadSettings( const QDomElement & _this )
|
||||
|
||||
|
||||
arpeggiator::arpeggiator( model * _parent ) :
|
||||
model( _parent ),
|
||||
model( _parent, tr( "Arpeggio" ) ),
|
||||
m_arpEnabledModel( FALSE ),
|
||||
m_arpModel( this, tr( "Arpeggio type" ) ),
|
||||
m_arpRangeModel( 1.0f, 1.0f, 9.0f, 1.0f, this, tr( "Arpeggio range" ) ),
|
||||
@@ -279,7 +279,7 @@ arpeggiator::arpeggiator( model * _parent ) :
|
||||
{
|
||||
m_arpModel.addItem( chordCreator::tr(
|
||||
chordCreator::s_chordTable[i].
|
||||
name.toAscii().constData() ) );
|
||||
name.toUtf8().constData() ) );
|
||||
}
|
||||
|
||||
m_arpDirectionModel.addItem( tr( "Up" ),
|
||||
|
||||
@@ -45,25 +45,28 @@ const float RES_PRECISION = 1000.0f;
|
||||
|
||||
// names for env- and lfo-targets - first is name being displayed to user
|
||||
// and second one is used internally, e.g. for saving/restoring settings
|
||||
const QString __targetNames[instrumentSoundShaping::NumTargets][2] =
|
||||
const QString __targetNames[instrumentSoundShaping::NumTargets][3] =
|
||||
{
|
||||
{ instrumentSoundShaping::tr( "VOLUME" ), "vol" },
|
||||
{ instrumentSoundShaping::tr( "VOLUME" ), "vol",
|
||||
instrumentSoundShaping::tr( "Volume" ) },
|
||||
/* instrumentSoundShaping::tr( "Pan" ),
|
||||
instrumentSoundShaping::tr( "Pitch" ),*/
|
||||
{ instrumentSoundShaping::tr( "CUTOFF" ), "cut" },
|
||||
{ instrumentSoundShaping::tr( "Q/RESO" ), "res" }
|
||||
{ instrumentSoundShaping::tr( "CUTOFF" ), "cut",
|
||||
instrumentSoundShaping::tr( "Cutoff frequency" ) },
|
||||
{ instrumentSoundShaping::tr( "Q/RESO" ), "res",
|
||||
instrumentSoundShaping::tr( "Q/Resonance" ) }
|
||||
} ;
|
||||
|
||||
|
||||
|
||||
instrumentSoundShaping::instrumentSoundShaping(
|
||||
instrumentTrack * _instrument_track ) :
|
||||
model( _instrument_track ),
|
||||
model( _instrument_track, tr( "Envelopes & LFOs" ) ),
|
||||
m_instrumentTrack( _instrument_track ),
|
||||
m_filterEnabledModel( FALSE, this ),
|
||||
m_filterModel( this, tr( "Filter type" ) ),
|
||||
m_filterCutModel( 14000.0, 1.0, 14000.0, 1.0, this,
|
||||
tr( "cutoff-frequency" ) ),
|
||||
tr( "Cutoff frequency" ) ),
|
||||
m_filterResModel( 0.5, basicFilters<>::minQ(), 10.0, 0.01, this,
|
||||
tr( "Q/Resonance" ) )
|
||||
{
|
||||
@@ -77,6 +80,8 @@ instrumentSoundShaping::instrumentSoundShaping(
|
||||
m_envLFOParameters[i] = new envelopeAndLFOParameters(
|
||||
value_for_zero_amount,
|
||||
this );
|
||||
m_envLFOParameters[i]->setDisplayName(
|
||||
tr( __targetNames[i][2].toUtf8().constData() ) );
|
||||
}
|
||||
|
||||
m_filterModel.addItem( tr( "LowPass" ),
|
||||
|
||||
@@ -186,7 +186,7 @@ void surroundArea::mouseReleaseEvent( QMouseEvent * )
|
||||
|
||||
surroundAreaModel::surroundAreaModel( ::model * _parent,
|
||||
bool _default_constructed ) :
|
||||
model( _parent, _default_constructed ),
|
||||
model( _parent, QString::null, _default_constructed ),
|
||||
m_posX( 0, -SURROUND_AREA_SIZE, SURROUND_AREA_SIZE, _parent ),
|
||||
m_posY( 0, -SURROUND_AREA_SIZE, SURROUND_AREA_SIZE, _parent )
|
||||
{
|
||||
|
||||
@@ -344,7 +344,7 @@ void graph::updateGraph( void )
|
||||
|
||||
graphModel::graphModel( float _min, float _max, int _length,
|
||||
::model * _parent, bool _default_constructed ) :
|
||||
model( _parent, _default_constructed ),
|
||||
model( _parent, tr( "Graph" ), _default_constructed ),
|
||||
m_samples( _length ),
|
||||
m_minValue( _min ),
|
||||
m_maxValue( _max )
|
||||
|
||||
Reference in New Issue
Block a user