VstEffect: fixed some messages

This commit is contained in:
Tobias Doerffel
2014-02-23 15:08:01 +01:00
parent 67d363ef79
commit 408c98f473
11 changed files with 10 additions and 16 deletions

View File

@@ -25,7 +25,7 @@ ADD_SUBDIRECTORY(stk)
ADD_SUBDIRECTORY(triple_oscillator)
ADD_SUBDIRECTORY(vestige)
ADD_SUBDIRECTORY(vst_base)
ADD_SUBDIRECTORY(vst_effect)
ADD_SUBDIRECTORY(VstEffect)
ADD_SUBDIRECTORY(waveshaper)
ADD_SUBDIRECTORY(vibed)
ADD_SUBDIRECTORY(zynaddsubfx)

View File

@@ -40,8 +40,7 @@ Plugin::Descriptor PLUGIN_EXPORT vsteffect_plugin_descriptor =
STRINGIFY( PLUGIN_NAME ),
"VST Effect",
QT_TRANSLATE_NOOP( "pluginBrowser",
"plugin for using arbitrary VST-effects "
"inside LMMS." ),
"plugin for using arbitrary VST effects inside LMMS." ),
"Tobias Doerffel <tobydox/at/users.sf.net>",
0x0200,
Plugin::Effect,
@@ -127,8 +126,7 @@ void VstEffect::openPlugin( const QString & _plugin )
{
textFloat * tf = textFloat::displayMessage(
VstPlugin::tr( "Loading plugin" ),
VstPlugin::tr(
"Please wait while loading VST-plugin..." ),
VstPlugin::tr( "Please wait while loading VST plugin..." ),
PLUGIN_NAME::getIconPixmap( "logo", 24, 24 ), 0 );
m_pluginMutex.lock();
m_plugin = new VstPlugin( _plugin );
@@ -138,21 +136,17 @@ void VstEffect::openPlugin( const QString & _plugin )
closePlugin();
delete tf;
QMessageBox::information( NULL,
VstPlugin::tr( "Failed loading VST-plugin" ),
VstPlugin::tr( "The VST-plugin %1 could not "
"be loaded for some reason.\n"
"If it runs with other VST-"
"software under Linux, please "
"contact an LMMS-developer!"
).arg( _plugin ),
QMessageBox::Ok );
VstPlugin::tr( "Failed loading VST plugin" ),
VstPlugin::tr( "The VST plugin %1 could not be loaded for some reason." ).arg( _plugin ),
QMessageBox::Ok );
return;
}
VstPlugin::connect( engine::getSong(),
SIGNAL( tempoChanged( bpm_t ) ),
m_plugin, SLOT( setTempo( bpm_t ) ) );
VstPlugin::connect( engine::getSong(), SIGNAL( tempoChanged( bpm_t ) ), m_plugin, SLOT( setTempo( bpm_t ) ) );
m_plugin->setTempo( engine::getSong()->getTempo() );
m_pluginMutex.unlock();
delete tf;
m_key.attributes["file"] = _plugin;

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB