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

Method createUI

plugins/vestige/vestige.cpp:109–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 using VstPlugin::VstPlugin;
108
109 void createUI( QWidget *parent ) override
110 {
111 Q_UNUSED(parent);
112 if ( !hasEditor() ) {
113 return;
114 }
115 if ( embedMethod() != "none" ) {
116 m_pluginSubWindow.reset(new vstSubWin( gui->mainWindow()->workspace() ));
117 VstPlugin::createUI( m_pluginSubWindow.get() );
118 m_pluginSubWindow->setWidget(pluginWidget());
119 } else {
120 VstPlugin::createUI( nullptr );
121 }
122 }
123
124 /// Overwrite editor() to return the sub window instead of the embed widget
125 /// itself. This makes toggleUI() and related functions toggle the

Callers 1

loadFileMethod · 0.45

Calls 3

hasEditorFunction · 0.85
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected