ResourceItem: added TypePluginSpecificPreset
Added another type TypePluginSpecificPreset in Types enumeration. This allows handling for example XIZ files (ZynAddSubFX presets) properly.
This commit is contained in:
@@ -54,6 +54,7 @@ public:
|
||||
TypeSample,
|
||||
TypeSoundFont,
|
||||
TypePreset,
|
||||
TypePluginSpecificPreset,
|
||||
TypeProject,
|
||||
TypeMidiFile,
|
||||
TypeForeignProject,
|
||||
|
||||
@@ -157,6 +157,8 @@ ResourceItem::Type ResourceItem::guessType( void ) const
|
||||
typeMap["xpf"] = TypePreset;
|
||||
typeMap["cs.xml"] = TypePreset;
|
||||
|
||||
typeMap["xiz"] = TypePluginSpecificPreset;
|
||||
|
||||
typeMap["mmp"] = TypeProject;
|
||||
typeMap["mmpz"] = TypeProject;
|
||||
|
||||
|
||||
@@ -84,6 +84,7 @@ case ResourceItem::TypeDirectory:
|
||||
case ResourceItem::TypeSample:
|
||||
return embed::getIconPixmap( "mimetypes/sample", 24, 24 );
|
||||
case ResourceItem::TypePreset:
|
||||
case ResourceItem::TypePluginSpecificPreset:
|
||||
return embed::getIconPixmap( "mimetypes/preset", 24, 24 );
|
||||
case ResourceItem::TypeProject:
|
||||
return embed::getIconPixmap( "project_file", 24, 24 );
|
||||
|
||||
@@ -159,6 +159,7 @@ void ResourceBrowser::showContextMenu( const QPoint & _pos )
|
||||
case ResourceItem::TypeSample:
|
||||
case ResourceItem::TypeSoundFont:
|
||||
case ResourceItem::TypePreset:
|
||||
case ResourceItem::TypePluginSpecificPreset:
|
||||
case ResourceItem::TypePlugin:
|
||||
m.addAction( m_actions[LoadInNewTrackSongEditor] );
|
||||
m.addAction( m_actions[LoadInNewTrackBBEditor] );
|
||||
|
||||
Reference in New Issue
Block a user