|
|
@ -882,6 +882,17 @@ QString UBSettings::userTrashDirPath() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QString UBSettings::userGipLibraryDirectory() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
static QString dirPath = ""; |
|
|
|
|
|
|
|
if(dirPath.isEmpty()){ |
|
|
|
|
|
|
|
dirPath = userDataDirectory() + "/library/gips"; |
|
|
|
|
|
|
|
checkDirectory(dirPath); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return dirPath; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QString UBSettings::applicationShapeLibraryDirectory() |
|
|
|
QString UBSettings::applicationShapeLibraryDirectory() |
|
|
|
{ |
|
|
|
{ |
|
|
|
QString defaultRelativePath = QString("./library/shape"); |
|
|
|
QString defaultRelativePath = QString("./library/shape"); |
|
|
@ -896,16 +907,6 @@ QString UBSettings::applicationShapeLibraryDirectory() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
QString UBSettings::applicationGipLibraryDirectory() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
static QString dirPath = ""; |
|
|
|
|
|
|
|
if(dirPath.isEmpty()){ |
|
|
|
|
|
|
|
dirPath = UBPlatformUtils::applicationResourcesDirectory() + "/library/gips"; |
|
|
|
|
|
|
|
checkDirectory(dirPath); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return dirPath; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QString UBSettings::userSearchDirectory() |
|
|
|
QString UBSettings::userSearchDirectory() |
|
|
|
{ |
|
|
|
{ |
|
|
|
static QString dirPath = ""; |
|
|
|
static QString dirPath = ""; |
|
|
|