| 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 |