|
|
@ -50,6 +50,8 @@ UBLibraryController::UBLibraryController(QWidget *pParentWidget, UBBoardControll |
|
|
|
|
|
|
|
|
|
|
|
mInteractiveUserDirectoryPath = QUrl::fromLocalFile(UBSettings::settings()->uniboardInteractiveUserDirectory()); |
|
|
|
mInteractiveUserDirectoryPath = QUrl::fromLocalFile(UBSettings::settings()->uniboardInteractiveUserDirectory()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mAnimationUserDirectoryPath = QUrl::fromLocalFile(UBSettings::settings()->animationUserDirectory()); |
|
|
|
|
|
|
|
|
|
|
|
createInternalWidgetItems(); |
|
|
|
createInternalWidgetItems(); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -103,8 +105,12 @@ void UBLibraryController::routeItem(QString& pItem, QString pMiddleDirectory) |
|
|
|
destination = mVideoStandardDirectoryPath.toLocalFile(); |
|
|
|
destination = mVideoStandardDirectoryPath.toLocalFile(); |
|
|
|
else if (mimetype.contains("image")) |
|
|
|
else if (mimetype.contains("image")) |
|
|
|
destination = mPicturesStandardDirectoryPath.toLocalFile(); |
|
|
|
destination = mPicturesStandardDirectoryPath.toLocalFile(); |
|
|
|
else if (mimetype.contains("application")) |
|
|
|
else if (mimetype.contains("application")){ |
|
|
|
destination = UBSettings::settings()->uniboardInteractiveUserDirectory(); |
|
|
|
if (mimetype.contains("x-shockwave-flash")) |
|
|
|
|
|
|
|
destination = mAnimationUserDirectoryPath.toLocalFile(); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
destination = mInteractiveUserDirectoryPath.toLocalFile(); |
|
|
|
|
|
|
|
} |
|
|
|
else{ |
|
|
|
else{ |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -225,6 +231,13 @@ QList<UBLibElement*> UBLibraryController::rootCategoriesList() |
|
|
|
element->setMoveable(false); |
|
|
|
element->setMoveable(false); |
|
|
|
categories << element; |
|
|
|
categories << element; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
categoryImage = new QImage(":images/libpalette/InteractivesCategory.svg"); |
|
|
|
|
|
|
|
element = new UBLibElement(eUBLibElementType_Folder, mAnimationUserDirectoryPath, tr("Animations", "Animations category element")); |
|
|
|
|
|
|
|
element->setThumbnail(categoryImage); |
|
|
|
|
|
|
|
element->setMoveable(false); |
|
|
|
|
|
|
|
categories << element; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
categories << UBLibElement::trashElement(); |
|
|
|
categories << UBLibElement::trashElement(); |
|
|
|
|
|
|
|
|
|
|
|