Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
f3146a02
Commit
f3146a02
authored
Dec 23, 2011
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed UBDesktopServices because QDesktopService has been fixed on Qt
parent
7c9e34d5
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
67 additions
and
269 deletions
+67
-269
UBExportAdaptor.cpp
src/adaptors/UBExportAdaptor.cpp
+0
-1
UBLibraryController.cpp
src/board/UBLibraryController.cpp
+3
-4
UBPersistenceManager.cpp
src/core/UBPersistenceManager.cpp
+1
-2
UBSettings.cpp
src/core/UBSettings.cpp
+12
-14
UBDesktopAnnotationController.cpp
src/desktop/UBDesktopAnnotationController.cpp
+1
-0
UBDocumentController.cpp
src/document/UBDocumentController.cpp
+0
-1
UBDesktopServices.h
src/frameworks/UBDesktopServices.h
+0
-34
UBDesktopServices_linux.cpp
src/frameworks/UBDesktopServices_linux.cpp
+0
-21
UBDesktopServices_mac.cpp
src/frameworks/UBDesktopServices_mac.cpp
+0
-103
UBDesktopServices_win.cpp
src/frameworks/UBDesktopServices_win.cpp
+0
-23
UBFileSystemUtils.cpp
src/frameworks/UBFileSystemUtils.cpp
+3
-4
frameworks.pri
src/frameworks/frameworks.pri
+41
-46
UBNetworkAccessManager.cpp
src/network/UBNetworkAccessManager.cpp
+0
-2
UBPodcastController.cpp
src/podcast/UBPodcastController.cpp
+0
-1
UBQuickTimeVideoEncoder.cpp
src/podcast/quicktime/UBQuickTimeVideoEncoder.cpp
+0
-1
UBWindowsMediaVideoEncoder.cpp
src/podcast/windowsmedia/UBWindowsMediaVideoEncoder.cpp
+0
-1
UBSoftwareUpdateController.cpp
src/softwareupdate/UBSoftwareUpdateController.cpp
+0
-1
UBGraphicsCache.cpp
src/tools/UBGraphicsCache.cpp
+1
-2
UniboardSankoreTransition.cpp
src/transition/UniboardSankoreTransition.cpp
+3
-4
UBTrapFlashController.cpp
src/web/UBTrapFlashController.cpp
+1
-1
WBDownloadManager.cpp
src/web/browser/WBDownloadManager.cpp
+1
-3
No files found.
src/adaptors/UBExportAdaptor.cpp
View file @
f3146a02
...
...
@@ -17,7 +17,6 @@
#include "document/UBDocumentProxy.h"
#include "frameworks/UBDesktopServices.h"
#include "frameworks/UBFileSystemUtils.h"
#include "core/UBSettings.h"
...
...
src/board/UBLibraryController.cpp
View file @
f3146a02
...
...
@@ -16,7 +16,6 @@
#include "frameworks/UBFileSystemUtils.h"
#include "frameworks/UBPlatformUtils.h"
#include "frameworks/UBDesktopServices.h"
#include "core/UBApplication.h"
#include "core/UBPersistenceManager.h"
...
...
@@ -54,13 +53,13 @@ UBLibraryController::UBLibraryController(QWidget *pParentWidget) :
{
readFavoriteList
();
mAudioStandardDirectoryPath
=
QUrl
::
fromLocalFile
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
MusicLocation
));
mAudioStandardDirectoryPath
=
QUrl
::
fromLocalFile
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
MusicLocation
));
userPath
(
mAudioStandardDirectoryPath
);
mVideoStandardDirectoryPath
=
QUrl
::
fromLocalFile
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
MoviesLocation
));
mVideoStandardDirectoryPath
=
QUrl
::
fromLocalFile
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
MoviesLocation
));
userPath
(
mVideoStandardDirectoryPath
);
mPicturesStandardDirectoryPath
=
QUrl
::
fromLocalFile
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
PicturesLocation
));
mPicturesStandardDirectoryPath
=
QUrl
::
fromLocalFile
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
PicturesLocation
));
userPath
(
mPicturesStandardDirectoryPath
);
mInteractiveUserDirectoryPath
=
QUrl
::
fromLocalFile
(
UBSettings
::
settings
()
->
uniboardInteractiveUserDirectory
());
...
...
src/core/UBPersistenceManager.cpp
View file @
f3146a02
...
...
@@ -20,7 +20,6 @@
#include "frameworks/UBPlatformUtils.h"
#include "frameworks/UBFileSystemUtils.h"
#include "frameworks/UBDesktopServices.h"
#include "core/UBApplication.h"
#include "core/UBSettings.h"
...
...
@@ -171,7 +170,7 @@ QStringList UBPersistenceManager::allGips()
QStringList
UBPersistenceManager
::
allSounds
()
{
QString
soundLibraryPath
=
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
MusicLocation
);
QString
soundLibraryPath
=
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
MusicLocation
);
QDir
dir
(
soundLibraryPath
);
...
...
src/core/UBSettings.cpp
View file @
f3146a02
...
...
@@ -13,7 +13,6 @@
#include "frameworks/UBPlatformUtils.h"
#include "frameworks/UBFileSystemUtils.h"
#include "frameworks/UBDesktopServices.h"
#include "frameworks/UBCryptoUtils.h"
#include "UB.h"
...
...
@@ -294,15 +293,15 @@ void UBSettings::init()
mirroringRefreshRateInFps
=
new
UBSetting
(
this
,
"Mirroring"
,
"RefreshRateInFramePerSecond"
,
QVariant
(
defaultRefreshRateInFramePerSecond
));
lastImportFilePath
=
new
UBSetting
(
this
,
"Import"
,
"LastImportFilePath"
,
QVariant
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
DocumentsLocation
)));
lastImportFolderPath
=
new
UBSetting
(
this
,
"Import"
,
"LastImportFolderPath"
,
QVariant
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
DocumentsLocation
)));
lastExportFilePath
=
new
UBSetting
(
this
,
"Export"
,
"LastExportFilePath"
,
QVariant
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
DocumentsLocation
)));
lastExportDirPath
=
new
UBSetting
(
this
,
"Export"
,
"LastExportDirPath"
,
QVariant
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
DocumentsLocation
)));
lastImportToLibraryPath
=
new
UBSetting
(
this
,
"Library"
,
"LastImportToLibraryPath"
,
QVariant
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
DocumentsLocation
)));
lastImportFilePath
=
new
UBSetting
(
this
,
"Import"
,
"LastImportFilePath"
,
QVariant
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
DocumentsLocation
)));
lastImportFolderPath
=
new
UBSetting
(
this
,
"Import"
,
"LastImportFolderPath"
,
QVariant
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
DocumentsLocation
)));
lastExportFilePath
=
new
UBSetting
(
this
,
"Export"
,
"LastExportFilePath"
,
QVariant
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
DocumentsLocation
)));
lastExportDirPath
=
new
UBSetting
(
this
,
"Export"
,
"LastExportDirPath"
,
QVariant
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
DocumentsLocation
)));
lastImportToLibraryPath
=
new
UBSetting
(
this
,
"Library"
,
"LastImportToLibraryPath"
,
QVariant
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
DocumentsLocation
)));
lastPicturePath
=
new
UBSetting
(
this
,
"Library"
,
"LastPicturePath"
,
QVariant
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
PicturesLocation
)));
lastWidgetPath
=
new
UBSetting
(
this
,
"Library"
,
"LastWidgetPath"
,
QVariant
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
DocumentsLocation
)));
lastVideoPath
=
new
UBSetting
(
this
,
"Library"
,
"LastVideoPath"
,
QVariant
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
MoviesLocation
)));
lastPicturePath
=
new
UBSetting
(
this
,
"Library"
,
"LastPicturePath"
,
QVariant
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
PicturesLocation
)));
lastWidgetPath
=
new
UBSetting
(
this
,
"Library"
,
"LastWidgetPath"
,
QVariant
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
DocumentsLocation
)));
lastVideoPath
=
new
UBSetting
(
this
,
"Library"
,
"LastVideoPath"
,
QVariant
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
MoviesLocation
)));
defaultDocumentGroupName
=
tr
(
"Untitled Documents"
);
documentTrashGroupName
=
tr
(
"Trash"
);
...
...
@@ -761,9 +760,8 @@ QString UBSettings::uniboardDataDirectory()
// ", defaulting to " + UBDesktopServices::storageLocation(QDesktopServices::DataLocation);
}
}
QString
qtDataPath
=
UBFileSystemUtils
::
normalizeFilePath
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
DataLocation
));
QString
qtDataPath
=
UBFileSystemUtils
::
normalizeFilePath
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
DataLocation
));
qtDataPath
.
replace
(
"/Open-Sankore"
,
""
);
qDebug
()
<<
qtDataPath
;
return
qtDataPath
;
}
...
...
@@ -771,7 +769,7 @@ QString UBSettings::uniboardDataDirectory()
QString
UBSettings
::
uniboardUserImageDirectory
()
{
QString
valideUserImageDirectory
=
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
PicturesLocation
)
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
PicturesLocation
)
+
"/"
+
QCoreApplication
::
applicationName
();
bool
hasCreatedDir
=
false
;
...
...
@@ -853,7 +851,7 @@ QString UBSettings::defaultUserImagesDirectory()
QString
UBSettings
::
uniboardUserVideoDirectory
()
{
QString
valideUserVideoDirectory
=
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
MoviesLocation
);
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
MoviesLocation
);
// first look into the application settings
if
(
sAppSettings
&&
getAppSettings
()
->
contains
(
"App/UserVideoDirectory"
))
...
...
@@ -924,7 +922,7 @@ QString UBSettings::uniboardUserVideoDirectory()
QString
UBSettings
::
podcastRecordingDirectory
()
{
QString
validePodcastRecordingDirectory
=
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
DesktopLocation
);
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
DesktopLocation
);
// first look into the application settings
if
(
sAppSettings
&&
getAppSettings
()
->
contains
(
"Podcast/RecordingDirectory"
))
...
...
src/desktop/UBDesktopAnnotationController.cpp
View file @
f3146a02
...
...
@@ -372,6 +372,7 @@ void UBDesktopAnnotationController::close()
void
UBDesktopAnnotationController
::
stylusToolChanged
(
int
tool
)
{
Q_UNUSED
(
tool
);
// UBStylusTool::Enum eTool = (UBStylusTool::Enum)tool;
// if(eTool != UBStylusTool::Selector && eTool != UBStylusTool::Text)
// {
...
...
src/document/UBDocumentController.cpp
View file @
f3146a02
...
...
@@ -19,7 +19,6 @@
#include "frameworks/UBFileSystemUtils.h"
#include "frameworks/UBStringUtils.h"
#include "frameworks/UBDesktopServices.h"
#include "frameworks/UBPlatformUtils.h"
#include "core/UBApplication.h"
...
...
src/frameworks/UBDesktopServices.h
deleted
100644 → 0
View file @
7c9e34d5
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef UBDESKTOPSERVICES_H_
#define UBDESKTOPSERVICES_H_
#include <QtCore/qglobal.h>
#include <QDesktopServices>
#include "core/memcheck.h"
// TODO Qt 4.6 #error Delete this UBDesktopServices class,
// it was used to work around a bug in Qt 4.4 that was fixed in Qt 4.5 and another that should be fixed
// in 4.5.1
class
UBDesktopServices
:
public
QDesktopServices
{
public
:
static
QString
storageLocation
(
StandardLocation
type
);
};
#endif
/* UBDESKTOPSERVICES_H_ */
src/frameworks/UBDesktopServices_linux.cpp
deleted
100644 → 0
View file @
7c9e34d5
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "UBDesktopServices.h"
QString
UBDesktopServices
::
storageLocation
(
StandardLocation
type
)
{
return
QDesktopServices
::
storageLocation
(
type
);
}
src/frameworks/UBDesktopServices_mac.cpp
deleted
100644 → 0
View file @
7c9e34d5
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "UBDesktopServices.h"
#include <QtCore>
#import <Carbon/Carbon.h>
/*
Translates a QDesktopServices::StandardLocation into the mac equivalent.
*/
OSType
translateLocation
(
QDesktopServices
::
StandardLocation
type
)
{
switch
(
type
)
{
case
QDesktopServices
:
:
DesktopLocation
:
return
kDesktopFolderType
;
break
;
case
QDesktopServices
:
:
DocumentsLocation
:
return
kDocumentsFolderType
;
break
;
case
QDesktopServices
:
:
FontsLocation
:
// There are at least two different font directories on the mac: /Library/Fonts and ~/Library/Fonts.
// To select a specific one we have to specify a different first parameter when calling FSFindFolder.
return
kFontsFolderType
;
break
;
case
QDesktopServices
:
:
ApplicationsLocation
:
return
kApplicationsFolderType
;
break
;
case
QDesktopServices
:
:
MusicLocation
:
return
kMusicDocumentsFolderType
;
break
;
case
QDesktopServices
:
:
MoviesLocation
:
return
kMovieDocumentsFolderType
;
break
;
case
QDesktopServices
:
:
PicturesLocation
:
return
kPictureDocumentsFolderType
;
break
;
case
QDesktopServices
:
:
TempLocation
:
return
kTemporaryFolderType
;
break
;
case
QDesktopServices
:
:
DataLocation
:
return
kApplicationSupportFolderType
;
break
;
case
QDesktopServices
:
:
CacheLocation
:
return
kCachedDataFolderType
;
break
;
default:
return
kDesktopFolderType
;
break
;
}
}
/*
Constructs a full unicode path from a FSRef.
*/
static
QString
getFullPath
(
const
FSRef
&
ref
)
{
QByteArray
ba
(
2048
,
0
);
if
(
FSRefMakePath
(
&
ref
,
reinterpret_cast
<
UInt8
*>
(
ba
.
data
()),
ba
.
size
())
==
noErr
)
return
QString
::
fromUtf8
(
ba
).
normalized
(
QString
::
NormalizationForm_C
);
return
QString
();
}
// Mac OS X implementation of QDesktopServices is bugged in Qt 4.4,
// we use the implementation inspired from Qt 4.5 snapshot
QString
UBDesktopServices
::
storageLocation
(
StandardLocation
type
)
{
if
(
QDesktopServices
::
HomeLocation
==
type
)
return
QDir
::
homePath
();
else
if
(
QDesktopServices
::
TempLocation
==
type
)
return
QDir
::
tempPath
();
short
domain
=
kOnAppropriateDisk
;
if
(
QDesktopServices
::
DataLocation
==
type
||
QDesktopServices
::
CacheLocation
==
type
)
domain
=
kUserDomain
;
// http://developer.apple.com/documentation/Carbon/Reference/Folder_Manager/Reference/reference.html
FSRef
ref
;
OSErr
err
=
FSFindFolder
(
domain
,
translateLocation
(
type
),
false
,
&
ref
);
if
(
err
)
return
QString
();
QString
path
=
getFullPath
(
ref
);
if
(
QDesktopServices
::
DataLocation
==
type
||
QDesktopServices
::
CacheLocation
==
type
)
path
+=
"/Sankore/Open-Sankore"
;
return
path
;
}
src/frameworks/UBDesktopServices_win.cpp
deleted
100644 → 0
View file @
7c9e34d5
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "UBDesktopServices.h"
#include "core/memcheck.h"
QString
UBDesktopServices
::
storageLocation
(
StandardLocation
type
)
{
// Windows implementation of QDesktopServices is fine
return
QDesktopServices
::
storageLocation
(
type
);
}
src/frameworks/UBFileSystemUtils.cpp
View file @
f3146a02
...
...
@@ -14,7 +14,6 @@
*/
#include "UBFileSystemUtils.h"
#include "UBDesktopServices.h"
#include <QtGui>
...
...
@@ -57,12 +56,12 @@ bool UBFileSystemUtils::isAZipFile(QString &filePath)
QString
UBFileSystemUtils
::
defaultTempDirPath
()
{
return
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
TempLocation
)
+
"/"
+
defaultTempDirName
();
return
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
TempLocation
)
+
"/"
+
defaultTempDirName
();
}
QString
UBFileSystemUtils
::
createTempDir
(
const
QString
&
templateString
,
bool
autoDeleteOnExit
)
{
QString
appTempDir
=
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
TempLocation
)
QString
appTempDir
=
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
TempLocation
)
+
"/"
+
templateString
;
int
index
=
0
;
...
...
@@ -127,7 +126,7 @@ void UBFileSystemUtils::deleteAllTempDirCreatedDuringSession()
void
UBFileSystemUtils
::
cleanupGhostTempFolders
(
const
QString
&
templateString
)
{
QDir
dir
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
TempLocation
));
QDir
dir
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
TempLocation
));
foreach
(
QFileInfo
dirContent
,
dir
.
entryInfoList
(
QDir
::
Dirs
|
QDir
::
NoDotAndDotDot
|
QDir
::
Hidden
,
QDir
::
Name
))
{
...
...
src/frameworks/frameworks.pri
View file @
f3146a02
HEADERS += src/frameworks/UBGeometryUtils.h \
src/frameworks/UBDesktopServices.h \
src/frameworks/UBPlatformUtils.h \
src/frameworks/UBFileSystemUtils.h \
src/frameworks/UBStringUtils.h \
src/frameworks/UBVersion.h \
src/frameworks/UBCoreGraphicsScene.h \
src/frameworks/UBCryptoUtils.h \
src/frameworks/UBBase32.h
SOURCES += src/frameworks/UBGeometryUtils.cpp \
src/frameworks/UBPlatformUtils.cpp \
src/frameworks/UBFileSystemUtils.cpp \
src/frameworks/UBStringUtils.cpp \
src/frameworks/UBVersion.cpp \
src/frameworks/UBCoreGraphicsScene.cpp \
src/frameworks/UBCryptoUtils.cpp \
src/frameworks/UBBase32.cpp
win32 {
SOURCES += src/frameworks/UBPlatformUtils_win.cpp \
src/frameworks/UBDesktopServices_win.cpp
}
macx {
SOURCES += src/frameworks/UBPlatformUtils_mac.mm \
src/frameworks/UBDesktopServices_mac.cpp
}
linux-g++ {
SOURCES += src/frameworks/UBPlatformUtils_linux.cpp \
src/frameworks/UBDesktopServices_linux.cpp
}
linux-g++-32 {
SOURCES += src/frameworks/UBPlatformUtils_linux.cpp \
src/frameworks/UBDesktopServices_linux.cpp
}
HEADERS += src/frameworks/UBGeometryUtils.h \
src/frameworks/UBPlatformUtils.h \
src/frameworks/UBFileSystemUtils.h \
src/frameworks/UBStringUtils.h \
src/frameworks/UBVersion.h \
src/frameworks/UBCoreGraphicsScene.h \
src/frameworks/UBCryptoUtils.h \
src/frameworks/UBBase32.h
SOURCES += src/frameworks/UBGeometryUtils.cpp \
src/frameworks/UBPlatformUtils.cpp \
src/frameworks/UBFileSystemUtils.cpp \
src/frameworks/UBStringUtils.cpp \
src/frameworks/UBVersion.cpp \
src/frameworks/UBCoreGraphicsScene.cpp \
src/frameworks/UBCryptoUtils.cpp \
src/frameworks/UBBase32.cpp
win32 {
SOURCES += src/frameworks/UBPlatformUtils_win.cpp
}
macx {
SOURCES += src/frameworks/UBPlatformUtils_mac.mm
}
linux-g++ {
SOURCES += src/frameworks/UBPlatformUtils_linux.cpp
}
linux-g++-32 {
SOURCES += src/frameworks/UBPlatformUtils_linux.cpp
}
src/network/UBNetworkAccessManager.cpp
View file @
f3146a02
...
...
@@ -17,8 +17,6 @@
#include <QtGui>
#include <QtNetwork>
#include "frameworks/UBDesktopServices.h"
#include "core/UBApplication.h"
#include "core/UBApplicationController.h"
#include "core/UBSettings.h"
...
...
src/podcast/UBPodcastController.cpp
View file @
f3146a02
...
...
@@ -15,7 +15,6 @@
#include "UBPodcastController.h"
#include "frameworks/UBDesktopServices.h"
#include "frameworks/UBFileSystemUtils.h"
#include "frameworks/UBStringUtils.h"
#include "frameworks/UBPlatformUtils.h"
...
...
src/podcast/quicktime/UBQuickTimeVideoEncoder.cpp
View file @
f3146a02
...
...
@@ -19,7 +19,6 @@
#include <QtGui>
#include "frameworks/UBDesktopServices.h"
#include "frameworks/UBFileSystemUtils.h"
#include "core/UBApplication.h"
...
...
src/podcast/windowsmedia/UBWindowsMediaVideoEncoder.cpp
View file @
f3146a02
...
...
@@ -17,7 +17,6 @@
#include <QtGui>
#include "frameworks/UBDesktopServices.h"
#include "frameworks/UBFileSystemUtils.h"
#include "core/UBApplication.h"
...
...
src/softwareupdate/UBSoftwareUpdateController.cpp
View file @
f3146a02
...
...
@@ -14,7 +14,6 @@
*/
//#include "frameworks/UBVersion.h"
//#include "frameworks/UBDesktopServices.h"
//#include "frameworks/UBFileSystemUtils.h"
//#include "frameworks/UBPlatformUtils.h"
...
...
src/tools/UBGraphicsCache.cpp
View file @
f3146a02
...
...
@@ -89,10 +89,9 @@ void UBGraphicsCache::init()
void
UBGraphicsCache
::
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
)
{
//
Q_UNUSED(option);
Q_UNUSED
(
option
);
Q_UNUSED
(
widget
);
// setZValue(CACHE_ZVALUE);
UBGraphicsItem
::
assignZValue
(
this
,
CACHE_ZVALUE
);
painter
->
setBrush
(
mMaskColor
);
...
...
src/transition/UniboardSankoreTransition.cpp
View file @
f3146a02
...
...
@@ -15,7 +15,6 @@
#include "UniboardSankoreTransition.h"
#include "core/UBSettings.h"
#include "frameworks/UBDesktopServices.h"
#include "frameworks/UBFileSystemUtils.h"
#include "core/UBApplication.h"
#include "core/UBPersistenceManager.h"
...
...
@@ -28,9 +27,9 @@ UniboardSankoreTransition::UniboardSankoreTransition(QObject *parent) :
,
mTransitionDlg
(
NULL
)
,
mThread
(
NULL
)
{
mOldSankoreDirectory
=
UBFileSystemUtils
::
normalizeFilePath
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
DataLocation
));
mOldSankoreDirectory
=
UBFileSystemUtils
::
normalizeFilePath
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
DataLocation
));
mUniboardSourceDirectory
=
UBFileSystemUtils
::
normalizeFilePath
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
DataLocation
));
mUniboardSourceDirectory
=
UBFileSystemUtils
::
normalizeFilePath
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
DataLocation
));
#if defined(Q_WS_MACX)
mOldSankoreDirectory
.
replace
(
"Sankore/Sankore 3.1"
,
"Sankore"
);
mUniboardSourceDirectory
.
replace
(
"Sankore/Sankore 3.1"
,
"Uniboard"
);
...
...
@@ -86,7 +85,7 @@ void UniboardSankoreTransition::documentTransition()
QFileInfoList
fileInfoList
=
UBFileSystemUtils
::
allElementsInDirectory
(
uniboardDocumentDirectory
);
fileInfoList
<<
UBFileSystemUtils
::
allElementsInDirectory
(
mOldSankoreDirectory
+
"/document"
);
QString
backupDirectoryPath
=
UBFileSystemUtils
::
normalizeFilePath
(
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
DesktopLocation
));
QString
backupDirectoryPath
=
UBFileSystemUtils
::
normalizeFilePath
(
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
DesktopLocation
));
if
(
fileInfoList
.
count
()
!=
0
){
mTransitionDlg
=
new
UBUpdateDlg
(
NULL
,
fileInfoList
.
count
(),
backupDirectoryPath
);
...
...
src/web/UBTrapFlashController.cpp
View file @
f3146a02
...
...
@@ -116,7 +116,7 @@ void UBTrapFlashController::text_Changed(const QString &newText)
void
UBTrapFlashController
::
text_Edited
(
const
QString
&
newText
)
{
Q_UNUSED
(
newText
);
}
void
UBTrapFlashController
::
hideTrapFlash
()
...
...
src/web/browser/WBDownloadManager.cpp
View file @
f3146a02
...
...
@@ -58,8 +58,6 @@
#include <QtGui>
#include <QtWebKit>
#include "frameworks/UBDesktopServices.h"
#include "network/UBAutoSaver.h"
#include "network/UBNetworkAccessManager.h"
#include "frameworks/UBFileSystemUtils.h"
...
...
@@ -134,7 +132,7 @@ void WBDownloadItem::getFileName()
{
QSettings
settings
;
settings
.
beginGroup
(
QLatin1String
(
"downloadmanager"
));
QString
defaultLocation
=
!
mCustomDownloadPath
.
isEmpty
()
?
mCustomDownloadPath
:
UB
DesktopServices
::
storageLocation
(
QDesktopServices
::
DesktopLocation
);
QString
defaultLocation
=
!
mCustomDownloadPath
.
isEmpty
()
?
mCustomDownloadPath
:
Q
DesktopServices
::
storageLocation
(
QDesktopServices
::
DesktopLocation
);
QString
downloadDirectory
=
settings
.
value
(
QLatin1String
(
"downloadDirectory"
),
defaultLocation
).
toString
();
if
(
!
downloadDirectory
.
isEmpty
())
downloadDirectory
+=
QLatin1Char
(
'/'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment