Remove FLP import, revert to GPLv2+ only (#2904)
This commit is contained in:
@@ -191,7 +191,7 @@ bool DataFile::validate( QString extension )
|
||||
extension == "xpf" || extension == "xml" ||
|
||||
( extension == "xiz" && ! pluginFactory->pluginSupportingExtension(extension).isNull()) ||
|
||||
extension == "sf2" || extension == "pat" || extension == "mid" ||
|
||||
extension == "flp" || extension == "dll"
|
||||
extension == "dll"
|
||||
) )
|
||||
{
|
||||
return true;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* ImportFilter.cpp - base-class for all import-filters (MIDI, FLP etc)
|
||||
* ImportFilter.cpp - base-class for all import-filters
|
||||
*
|
||||
* Copyright (c) 2006-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
|
||||
@@ -1170,8 +1170,6 @@ void Song::importProject()
|
||||
ConfigManager::inst()->userProjectsDir(),
|
||||
tr("MIDI sequences") +
|
||||
" (*.mid *.midi *.rmi);;" +
|
||||
tr("FL Studio projects") +
|
||||
" (*.flp);;" +
|
||||
tr("Hydrogen projects") +
|
||||
" (*.h2song);;" +
|
||||
tr("All file types") +
|
||||
|
||||
@@ -478,9 +478,6 @@ void FileBrowserTreeWidget::mouseMoveEvent( QMouseEvent * me )
|
||||
embed::getIconPixmap( "vst_plugin_file" ), this );
|
||||
break;
|
||||
case FileItem::MidiFile:
|
||||
// don't allow dragging FLP-files as FLP import filter clears project
|
||||
// without asking
|
||||
// case fileItem::FlpFile:
|
||||
new StringPairDrag( "importedproject", f->fullName(),
|
||||
embed::getIconPixmap( "midi_file" ), this );
|
||||
break;
|
||||
@@ -568,11 +565,6 @@ void FileBrowserTreeWidget::handleFile(FileItem * f, InstrumentTrack * it )
|
||||
}
|
||||
|
||||
case FileItem::ImportAsProject:
|
||||
if( f->type() == FileItem::FlpFile &&
|
||||
!gui->mainWindow()->mayChangeProject(true) )
|
||||
{
|
||||
break;
|
||||
}
|
||||
ImportFilter::import( f->fullName(),
|
||||
Engine::getSong() );
|
||||
break;
|
||||
@@ -853,7 +845,6 @@ QPixmap * FileItem::s_sampleFilePixmap = NULL;
|
||||
QPixmap * FileItem::s_soundfontFilePixmap = NULL;
|
||||
QPixmap * FileItem::s_vstPluginFilePixmap = NULL;
|
||||
QPixmap * FileItem::s_midiFilePixmap = NULL;
|
||||
QPixmap * FileItem::s_flpFilePixmap = NULL;
|
||||
QPixmap * FileItem::s_unknownFilePixmap = NULL;
|
||||
|
||||
|
||||
@@ -918,12 +909,6 @@ void FileItem::initPixmaps( void )
|
||||
"midi_file", 16, 16 ) );
|
||||
}
|
||||
|
||||
if( s_flpFilePixmap == NULL )
|
||||
{
|
||||
s_flpFilePixmap = new QPixmap( embed::getIconPixmap(
|
||||
"midi_file", 16, 16 ) );
|
||||
}
|
||||
|
||||
if( s_unknownFilePixmap == NULL )
|
||||
{
|
||||
s_unknownFilePixmap = new QPixmap( embed::getIconPixmap(
|
||||
@@ -951,9 +936,6 @@ void FileItem::initPixmaps( void )
|
||||
case MidiFile:
|
||||
setIcon( 0, *s_midiFilePixmap );
|
||||
break;
|
||||
case FlpFile:
|
||||
setIcon( 0, *s_flpFilePixmap );
|
||||
break;
|
||||
case UnknownFile:
|
||||
default:
|
||||
setIcon( 0, *s_unknownFilePixmap );
|
||||
@@ -997,11 +979,6 @@ void FileItem::determineFileType( void )
|
||||
m_type = MidiFile;
|
||||
m_handling = ImportAsProject;
|
||||
}
|
||||
else if( ext == "flp" )
|
||||
{
|
||||
m_type = FlpFile;
|
||||
m_handling = ImportAsProject;
|
||||
}
|
||||
else if( ext == "dll" )
|
||||
{
|
||||
m_type = VstPluginFile;
|
||||
|
||||
@@ -108,7 +108,7 @@ MainWindow::MainWindow() :
|
||||
sideBar->appendTab( new FileBrowser(
|
||||
confMgr->userProjectsDir() + "*" +
|
||||
confMgr->factoryProjectsDir(),
|
||||
"*.mmp *.mmpz *.xml *.mid *.flp",
|
||||
"*.mmp *.mmpz *.xml *.mid",
|
||||
tr( "My Projects" ),
|
||||
embed::getIconPixmap( "project_file" ).transformed( QTransform().rotate( 90 ) ),
|
||||
splitter, false, true ) );
|
||||
|
||||
Reference in New Issue
Block a user