Added directory for distributed interactivities

preferencesAboutTextFull
Claudio Valerio 14 years ago
parent 843b7b2d8b
commit e467abe681
  1. 3
      src/board/UBLibraryController.cpp
  2. 16
      src/core/UBSettings.cpp
  3. 1
      src/core/UBSettings.h

@ -292,6 +292,9 @@ QList<UBLibElement*> UBLibraryController::addVirtualElementsForItemPath(const QS
content << listElementsInPath(path.toLocalFile());
content << listElementsInPath(UBSettings::settings()->uniboardDefaultUserImageLibraryDirectory());
}
else if (pPath == mInteractiveCategoryPath.toLocalFile()){
content << listElementsInPath(UBSettings::settings()->sankoreDistributedInteractiveDirectory());
}
return content;
}

@ -1109,6 +1109,22 @@ QString UBSettings::uniboardInteractiveUserDirectory()
}
QString UBSettings::sankoreDistributedInteractiveDirectory()
{
QString defaultRelativePath = QString("./library/sankoreInteractivities");
QString configPath = value("Library/DefaultUserImageDirectory", QVariant(defaultRelativePath)).toString();
if (configPath.startsWith("."))
{
return UBPlatformUtils::applicationResourcesDirectory() + configPath.right(configPath.size() - 1);
}
else
{
return configPath;
}
}
QString UBSettings::uniboardInteractiveLibraryDirectory()
{
QString defaultRelativePath = QString("./library/interactive");

@ -109,6 +109,7 @@ class UBSettings : public QObject
QString uniboardInteractiveUserDirectory();
QString uniboardInteractiveLibraryDirectory();
QString uniboardInteractiveFavoritesDirectory();
QString sankoreDistributedInteractiveDirectory();
QString podcastRecordingDirectory();

Loading…
Cancel
Save