MCPcopy Create free account
hub / github.com/LMMS/lmms / processMessage

Method processMessage

plugins/vst_base/VstPlugin.cpp:322–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320
321
322bool VstPlugin::processMessage( const message & _m )
323{
324 switch( _m.id )
325 {
326 case IdVstBadDllFormat:
327 m_badDllFormat = true;
328 break;
329
330 case IdVstPluginWindowID:
331 m_pluginWindowID = _m.getInt();
332 if( m_embedMethod == "none"
333 && ConfigManager::inst()->value(
334 "ui", "vstalwaysontop" ).toInt() )
335 {
336#ifdef LMMS_BUILD_WIN32
337 // We're changing the owner, not the parent,
338 // so this is legal despite MSDN's warning
339 SetWindowLongPtr( (HWND)(intptr_t) m_pluginWindowID,
340 GWLP_HWNDPARENT,
341 (LONG_PTR) gui->mainWindow()->winId() );
342#endif
343
344#ifdef LMMS_BUILD_LINUX
345 XSetTransientForHint( QX11Info::display(),
346 m_pluginWindowID,
347 gui->mainWindow()->winId() );
348#endif
349 }
350 break;
351
352 case IdVstPluginEditorGeometry:
353 m_pluginGeometry = QSize( _m.getInt( 0 ),
354 _m.getInt( 1 ) );
355 break;
356
357 case IdVstPluginName:
358 m_name = _m.getQString();
359 break;
360
361 case IdVstPluginVersion:
362 m_version = _m.getInt();
363 break;
364
365 case IdVstPluginVendorString:
366 m_vendorString = _m.getQString();
367 break;
368
369 case IdVstPluginProductString:
370 m_productString = _m.getQString();
371 break;
372
373 case IdVstCurrentProgram:
374 m_currentProgram = _m.getInt();
375 break;
376
377 case IdVstCurrentProgramName:
378 m_currentProgramName = _m.getQString();
379 break;

Callers

nothing calls this directly

Calls 7

getIntMethod · 0.80
getQStringMethod · 0.80
getStringMethod · 0.80
getFloatMethod · 0.80
instFunction · 0.50
valueMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected