added ResourcesDB::Item::TypeMidiFile
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1880 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2008-12-08 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* include/resources_db.h:
|
||||
* src/core/resources_db.cpp:
|
||||
added ResourcesDB::Item::TypeMidiFile
|
||||
|
||||
* include/fluiq/collapsible_widget.h:
|
||||
* include/fluiq/splitter.h:
|
||||
* include/fluiq/widget.h:
|
||||
|
||||
@@ -32,9 +32,11 @@
|
||||
#include <QtXml/QDomDocument>
|
||||
|
||||
#define foreachTreeItem(list) \
|
||||
for(TreeItemList::Iterator it=list.begin();it!=list.end();++it)
|
||||
#define foreachConstTreeItem(list) \
|
||||
for(TreeItemList::ConstIterator it=list.begin(); \
|
||||
for(ResourcesDB::TreeItemList::Iterator it=list.begin();\
|
||||
it!=list.end();++it)
|
||||
|
||||
#define foreachConstTreeItem(list) \
|
||||
for(ResourcesDB::TreeItemList::ConstIterator it=list.begin(); \
|
||||
it!=list.end();++it)
|
||||
|
||||
class ResourcesDB : public QObject
|
||||
@@ -66,6 +68,7 @@ public:
|
||||
TypeSoundFont,
|
||||
TypePreset,
|
||||
TypeProject,
|
||||
TypeMidiFile,
|
||||
TypeForeignProject,
|
||||
TypePlugin,
|
||||
TypeImage,
|
||||
|
||||
@@ -127,7 +127,8 @@ ResourcesDB::Item::Types ResourcesDB::Item::guessType( void ) const
|
||||
typeMap["mmp"] = TypeProject;
|
||||
typeMap["mmpz"] = TypeProject;
|
||||
|
||||
typeMap["mid"] = TypeForeignProject;
|
||||
typeMap["mid"] = TypeMidiFile;
|
||||
|
||||
typeMap["flp"] = TypeForeignProject;
|
||||
|
||||
typeMap["dll"] = TypePlugin;
|
||||
@@ -193,7 +194,6 @@ void ResourcesDB::Item::init( void )
|
||||
}
|
||||
if( m_hash.isEmpty() )
|
||||
{
|
||||
printf("rehash %s\n", fullName().toAscii().constData());
|
||||
QCryptographicHash h( QCryptographicHash::Sha1 );
|
||||
|
||||
QFile f( fullName() );
|
||||
@@ -477,7 +477,7 @@ void ResourcesDB::readDir( const QString & _dir, TreeItem * _parent,
|
||||
TreeItem * curParent = _parent->findChild( d.dirName() +
|
||||
QDir::separator(),
|
||||
_base_dir );
|
||||
printf("read dir: %s (%d)\n", d.canonicalPath().toAscii().constData(), curParent );
|
||||
printf("read dir: %s\n", d.canonicalPath().toAscii().constData() );
|
||||
if( curParent )
|
||||
{
|
||||
parentItem = curParent->item();
|
||||
|
||||
Reference in New Issue
Block a user