Skip to content

Commit

Permalink
Use window instead of embedder application
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Serrano Polo committed Apr 1, 2017
1 parent f533246 commit a6400c9
Show file tree
Hide file tree
Showing 10 changed files with 115 additions and 610 deletions.
2 changes: 1 addition & 1 deletion include/RemotePlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ RemotePluginClient::RemotePluginClient( const char * socketPath ) :
if( waitForMessage( IdBufferSizeInformation ).id
!= IdBufferSizeInformation )
{
fprintf( stderr, "Could not get buffer size information.\n" );
fprintf( stderr, "Could not get buffer size information\n" );
}
sendMessage( IdHostInfoGotten );
}
Expand Down
6 changes: 4 additions & 2 deletions plugins/VstEffect/VstEffectControlDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
l->addItem( new QSpacerItem( newSize - 20, 30, QSizePolicy::Fixed,
QSizePolicy::Fixed ), 1, 0 );
l->addWidget( resize, 2, 0, 1, 1, Qt::AlignCenter );
#if QT_VERSION < 0x050000
l->addWidget( m_pluginWidget, 3, 0, 1, 1, Qt::AlignCenter );
#endif
l->setRowStretch( 5, 1 );
l->setColumnStretch( 1, 1 );

Expand Down Expand Up @@ -273,11 +275,11 @@ void VstEffectControlDialog::togglePluginUI( bool checked )
{
if( checked )
{
m_plugin->showUI();
m_plugin->showEditor( NULL, true );
}
else
{
m_plugin->hideUI();
m_plugin->hideEditor();
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions plugins/vestige/vestige.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ void vestigeInstrument::loadFile( const QString & _file )
return;
}

m_plugin->showUI();
m_plugin->showEditor( NULL, false );

if( set_ch_name )
{
Expand Down Expand Up @@ -753,7 +753,7 @@ void VestigeInstrumentView::toggleGUI( void )
{
return;
}
m_vi->m_plugin->toggleUI();
m_vi->m_plugin->toggleEditor();
}


Expand Down
12 changes: 0 additions & 12 deletions plugins/vst_base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,6 @@ ADD_CUSTOM_COMMAND(
OUTPUTS ../RemoteVstPlugin
)

IF(QT5)
QT5_WRAP_CPP(embed-window_MOC_out EmbedderApplication.h)
ELSE()
QT4_WRAP_CPP(embed-window_MOC_out EmbedderApplication.h)
ENDIF()

ADD_EXECUTABLE(embed-window embed-window.cpp ${embed-window_MOC_out})
TARGET_LINK_LIBRARIES(embed-window ${QT_LIBRARIES})
IF(NOT QT5)
TARGET_LINK_LIBRARIES(embed-window ${X11_X11_LIB})
ENDIF()

SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ../RemoteVstPlugin.exe.so)
INSTALL(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/../RemoteVstPlugin" "${CMAKE_CURRENT_BINARY_DIR}/../RemoteVstPlugin.exe.so" DESTINATION "${PLUGIN_DIR}")
ENDIF(LMMS_BUILD_LINUX AND NOT WANT_VST_NOWINE)
Expand Down
82 changes: 0 additions & 82 deletions plugins/vst_base/EmbedderApplication.h

This file was deleted.

Loading

0 comments on commit a6400c9

Please sign in to comment.