Handle plugin-specific resources in TrackContainerView/ResourcePreviewer

Up to now plugin-specific resources (e.g. ZynAddSubFX presets) were
not previewed or loaded into a track container. This now works by
adding TypePluginSpecificResource to the according switch-block.

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
This commit is contained in:
Tobias Doerffel
2009-06-29 14:21:29 +02:00
parent 77a7db5d2e
commit 40e6d26dbb
2 changed files with 2 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ void ResourcePreviewer::preview( ResourceItem * _item )
break;
case ResourceItem::TypeSample:
case ResourceItem::TypeSoundFont:
case ResourceItem::TypePluginSpecificResource:
{
// restore default settings we are going to preview a
// sample (which should be played at a default

View File

@@ -420,6 +420,7 @@ void trackContainerView::dropEvent( QDropEvent * _de )
break;
case ResourceItem::TypeSample:
case ResourceItem::TypeSoundFont:
case ResourceItem::TypePluginSpecificResource:
action.loadByPlugin(
dynamic_cast<instrumentTrack *>(
track::create( track::InstrumentTrack,