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(path.toLocalFile());
content << listElementsInPath(UBSettings::settings()->uniboardDefaultUserImageLibraryDirectory()); content << listElementsInPath(UBSettings::settings()->uniboardDefaultUserImageLibraryDirectory());
} }
else if (pPath == mInteractiveCategoryPath.toLocalFile()){
content << listElementsInPath(UBSettings::settings()->sankoreDistributedInteractiveDirectory());
}
return content; 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 UBSettings::uniboardInteractiveLibraryDirectory()
{ {
QString defaultRelativePath = QString("./library/interactive"); QString defaultRelativePath = QString("./library/interactive");

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

Loading…
Cancel
Save