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
652d966e
Commit
652d966e
authored
Nov 10, 2011
by
Anatoly Mihalchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Memory leaks fixing
parent
73b81093
Changes
98
Hide whitespace changes
Inline
Side-by-side
Showing
98 changed files
with
314 additions
and
84 deletions
+314
-84
UBCFFSubsetAdaptor.cpp
src/adaptors/UBCFFSubsetAdaptor.cpp
+2
-0
UBImportCFF.cpp
src/adaptors/UBImportCFF.cpp
+2
-1
UBSvgSubsetAdaptor.cpp
src/adaptors/UBSvgSubsetAdaptor.cpp
+0
-2
UBWebPublisher.cpp
src/adaptors/UBWebPublisher.cpp
+2
-2
UBDocumentPublisher.cpp
src/adaptors/publishing/UBDocumentPublisher.cpp
+2
-1
UBDrawingController.cpp
src/board/UBDrawingController.cpp
+7
-0
UBDrawingController.h
src/board/UBDrawingController.h
+1
-0
UBLibraryController.cpp
src/board/UBLibraryController.cpp
+4
-1
UBLibraryController.h
src/board/UBLibraryController.h
+2
-2
UBApplication.cpp
src/core/UBApplication.cpp
+18
-10
UBDocumentManager.cpp
src/core/UBDocumentManager.cpp
+2
-1
UBDownloadManager.cpp
src/core/UBDownloadManager.cpp
+11
-0
UBDownloadManager.h
src/core/UBDownloadManager.h
+5
-3
UBDownloadThread.cpp
src/core/UBDownloadThread.cpp
+2
-0
UBPersistenceManager.cpp
src/core/UBPersistenceManager.cpp
+7
-0
UBPersistenceManager.h
src/core/UBPersistenceManager.h
+1
-0
UBSettings.cpp
src/core/UBSettings.cpp
+17
-0
UBSettings.h
src/core/UBSettings.h
+2
-7
main.cpp
src/core/main.cpp
+3
-1
UBGraphicsItemDelegate.cpp
src/domain/UBGraphicsItemDelegate.cpp
+1
-0
UBGraphicsPolygonItem.cpp
src/domain/UBGraphicsPolygonItem.cpp
+13
-9
UBGraphicsPolygonItem.h
src/domain/UBGraphicsPolygonItem.h
+3
-0
UBGraphicsScene.cpp
src/domain/UBGraphicsScene.cpp
+16
-3
UBGraphicsStroke.cpp
src/domain/UBGraphicsStroke.cpp
+7
-0
UBGraphicsStroke.h
src/domain/UBGraphicsStroke.h
+7
-2
UBCryptoUtils.cpp
src/frameworks/UBCryptoUtils.cpp
+15
-0
UBCryptoUtils.h
src/frameworks/UBCryptoUtils.h
+2
-6
UBDesktopServices.h
src/frameworks/UBDesktopServices.h
+2
-0
UBCachePropertiesWidget.cpp
src/gui/UBCachePropertiesWidget.cpp
+2
-0
UBDockPaletteWidget.cpp
src/gui/UBDockPaletteWidget.cpp
+2
-0
UBDownloadWidget.cpp
src/gui/UBDownloadWidget.cpp
+2
-0
UBLeftPalette.cpp
src/gui/UBLeftPalette.cpp
+2
-0
UBLibNavigatorWidget.cpp
src/gui/UBLibNavigatorWidget.cpp
+3
-2
UBLibPathViewer.cpp
src/gui/UBLibPathViewer.cpp
+10
-10
UBLibWebView.cpp
src/gui/UBLibWebView.cpp
+2
-0
UBLibWidget.cpp
src/gui/UBLibWidget.cpp
+2
-1
UBLibraryWidget.cpp
src/gui/UBLibraryWidget.cpp
+2
-7
UBMagnifer.cpp
src/gui/UBMagnifer.cpp
+2
-0
UBRightPalette.cpp
src/gui/UBRightPalette.cpp
+2
-0
UBRubberBand.cpp
src/gui/UBRubberBand.cpp
+8
-5
UBRubberBand.h
src/gui/UBRubberBand.h
+2
-0
UBTeacherBarWidget.cpp
src/gui/UBTeacherBarWidget.cpp
+2
-0
UBThumbnailWidget.cpp
src/gui/UBThumbnailWidget.cpp
+2
-2
ASCII85Decode.cpp
src/pdf-merger/ASCII85Decode.cpp
+3
-0
ASCIIHexDecode.cpp
src/pdf-merger/ASCIIHexDecode.cpp
+2
-0
AnnotsHandler.cpp
src/pdf-merger/AnnotsHandler.cpp
+2
-0
ContentHandler.cpp
src/pdf-merger/ContentHandler.cpp
+2
-0
Document.cpp
src/pdf-merger/Document.cpp
+2
-0
Filter.cpp
src/pdf-merger/Filter.cpp
+2
-0
FilterPredictor.cpp
src/pdf-merger/FilterPredictor.cpp
+2
-0
FlateDecode.cpp
src/pdf-merger/FlateDecode.cpp
+2
-0
LZWDecode.cpp
src/pdf-merger/LZWDecode.cpp
+2
-0
Merger.cpp
src/pdf-merger/Merger.cpp
+2
-0
Object.cpp
src/pdf-merger/Object.cpp
+2
-0
OverlayDocumentParser.cpp
src/pdf-merger/OverlayDocumentParser.cpp
+2
-0
Page.cpp
src/pdf-merger/Page.cpp
+2
-0
PageElementHandler.cpp
src/pdf-merger/PageElementHandler.cpp
+2
-0
Parser.cpp
src/pdf-merger/Parser.cpp
+2
-0
Rectangle.cpp
src/pdf-merger/Rectangle.cpp
+2
-0
RemoveHimselfHandler.cpp
src/pdf-merger/RemoveHimselfHandler.cpp
+2
-0
RunLengthDecode.cpp
src/pdf-merger/RunLengthDecode.cpp
+2
-0
Utils.cpp
src/pdf-merger/Utils.cpp
+2
-0
UBAbstractVideoEncoder.cpp
src/podcast/UBAbstractVideoEncoder.cpp
+2
-0
UBPodcastController.cpp
src/podcast/UBPodcastController.cpp
+1
-0
UBPodcastRecordingPalette.cpp
src/podcast/UBPodcastRecordingPalette.cpp
+1
-0
UBIntranetPodcastPublisher.cpp
src/podcast/intranet/UBIntranetPodcastPublisher.cpp
+2
-0
UBAudioQueueRecorder.cpp
src/podcast/quicktime/UBAudioQueueRecorder.cpp
+1
-0
UBQuickTimeFile.cpp
src/podcast/quicktime/UBQuickTimeFile.cpp
+2
-0
UBQuickTimeVideoEncoder.cpp
src/podcast/quicktime/UBQuickTimeVideoEncoder.cpp
+1
-0
UBWaveRecorder.cpp
src/podcast/windowsmedia/UBWaveRecorder.cpp
+2
-0
UBWindowsMediaFile.cpp
src/podcast/windowsmedia/UBWindowsMediaFile.cpp
+2
-0
UBWindowsMediaVideoEncoder.cpp
src/podcast/windowsmedia/UBWindowsMediaVideoEncoder.cpp
+1
-0
UBYouTubePublisher.cpp
src/podcast/youtube/UBYouTubePublisher.cpp
+2
-0
UBRssHandler.cpp
src/softwareupdate/UBRssHandler.cpp
+2
-0
UBSoftwareUpdate.cpp
src/softwareupdate/UBSoftwareUpdate.cpp
+2
-0
UBGraphicsCache.cpp
src/tools/UBGraphicsCache.cpp
+1
-0
UBToolsManager.cpp
src/tools/UBToolsManager.cpp
+15
-0
UBToolsManager.h
src/tools/UBToolsManager.h
+2
-6
UniboardSankoreTransition.cpp
src/transition/UniboardSankoreTransition.cpp
+2
-0
UBRoutedMouseEventWebView.cpp
src/web/UBRoutedMouseEventWebView.cpp
+2
-0
UBTrapFlashController.cpp
src/web/UBTrapFlashController.cpp
+1
-0
UBWebController.cpp
src/web/UBWebController.cpp
+1
-0
UBWebKitUtils.cpp
src/web/UBWebKitUtils.cpp
+2
-0
UBWebPage.cpp
src/web/UBWebPage.cpp
+2
-0
UBWebPluginWidget.cpp
src/web/UBWebPluginWidget.cpp
+2
-0
WBBrowserWindow.cpp
src/web/browser/WBBrowserWindow.cpp
+1
-0
WBChaseWidget.cpp
src/web/browser/WBChaseWidget.cpp
+2
-0
WBDownloadManager.cpp
src/web/browser/WBDownloadManager.cpp
+2
-0
WBEditTableView.cpp
src/web/browser/WBEditTableView.cpp
+2
-0
WBHistory.cpp
src/web/browser/WBHistory.cpp
+1
-0
WBModelMenu.cpp
src/web/browser/WBModelMenu.cpp
+2
-0
WBSearchLineEdit.cpp
src/web/browser/WBSearchLineEdit.cpp
+2
-0
WBSqueezeLabel.cpp
src/web/browser/WBSqueezeLabel.cpp
+2
-0
WBTabWidget.cpp
src/web/browser/WBTabWidget.cpp
+2
-0
WBToolBarSearch.cpp
src/web/browser/WBToolBarSearch.cpp
+2
-0
WBUrlLineEdit.cpp
src/web/browser/WBUrlLineEdit.cpp
+2
-0
WBWebTrapWebView.cpp
src/web/browser/WBWebTrapWebView.cpp
+2
-0
WBWebView.cpp
src/web/browser/WBWebView.cpp
+1
-0
No files found.
src/adaptors/UBCFFSubsetAdaptor.cpp
View file @
652d966e
...
...
@@ -41,6 +41,8 @@
#include <QDomDocument>
#include "core/memcheck.h"
//enum of xmlparse status
//tag names definition
...
...
src/adaptors/UBImportCFF.cpp
View file @
652d966e
...
...
@@ -18,7 +18,6 @@
#include "core/UBApplication.h"
#include "core/UBPersistenceManager.h"
#include "core/UBDocumentManager.h"
#include "core/memcheck.h"
#include "core/UBPersistenceManager.h"
#include "document/UBDocumentProxy.h"
#include "domain/UBGraphicsPDFItem.h"
...
...
@@ -32,6 +31,8 @@
#include "quazipfile.h"
#include "quazipfileinfo.h"
#include "core/memcheck.h"
UBImportCFF
::
UBImportCFF
(
QObject
*
parent
)
:
UBImportAdaptor
(
parent
)
{
...
...
src/adaptors/UBSvgSubsetAdaptor.cpp
View file @
652d966e
...
...
@@ -471,7 +471,6 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene()
{
if
(
annotationGroup
)
{
annotationGroup
->
addPolygon
(
polygonItem
);
polygonItem
->
setStroke
(
annotationGroup
);
}
...
...
@@ -492,7 +491,6 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene()
{
if
(
annotationGroup
)
{
annotationGroup
->
addPolygon
(
polygonItem
);
polygonItem
->
setStroke
(
annotationGroup
);
}
...
...
src/adaptors/UBWebPublisher.cpp
View file @
652d966e
...
...
@@ -19,10 +19,10 @@
#include "adaptors/publishing/UBDocumentPublisher.h"
#include "core/memcheck.h"
#include "transition/UniboardSankoreTransition.h"
#include "core/memcheck.h"
UBWebPublisher
::
UBWebPublisher
(
QObject
*
parent
)
:
UBExportAdaptor
(
parent
)
{
...
...
src/adaptors/publishing/UBDocumentPublisher.cpp
View file @
652d966e
...
...
@@ -43,9 +43,10 @@
#include "UBSvgSubsetRasterizer.h"
#include "core/memcheck.h"
#include "../../core/UBApplication.h"
#include "core/memcheck.h"
UBDocumentPublisher
::
UBDocumentPublisher
(
UBDocumentProxy
*
pDocument
,
QObject
*
parent
)
:
QObject
(
parent
)
...
...
src/board/UBDrawingController.cpp
View file @
652d966e
...
...
@@ -33,6 +33,13 @@ UBDrawingController* UBDrawingController::drawingController()
return
sDrawingController
;
}
void
UBDrawingController
::
destroy
()
{
if
(
sDrawingController
)
delete
sDrawingController
;
sDrawingController
=
NULL
;
}
UBDrawingController
::
UBDrawingController
(
QObject
*
parent
)
:
QObject
(
parent
)
,
mActiveRuler
(
NULL
)
...
...
src/board/UBDrawingController.h
View file @
652d966e
...
...
@@ -33,6 +33,7 @@ class UBDrawingController : public QObject
public
:
static
UBDrawingController
*
drawingController
();
static
void
destroy
();
int
stylusTool
();
int
latestDrawingTool
();
...
...
src/board/UBLibraryController.cpp
View file @
652d966e
...
...
@@ -476,7 +476,9 @@ QList<UBLibElement*> UBLibraryController::getContent(UBLibElement *element)
UBLibraryController
::~
UBLibraryController
()
{
cleanElementsList
();
//NOOP
qDeleteAll
(
mInternalLibElements
);
mInternalLibElements
.
clear
();
}
void
UBLibraryController
::
setItemAsBackground
(
UBLibElement
*
image
)
...
...
@@ -778,6 +780,7 @@ UBChainedLibElement::~UBChainedLibElement()
delete
mpNextElem
;
mpNextElem
=
NULL
;
}
delete
mpElem
;
}
void
UBChainedLibElement
::
setNextElement
(
UBChainedLibElement
*
nextElem
)
...
...
src/board/UBLibraryController.h
View file @
652d966e
...
...
@@ -43,7 +43,7 @@ public:
UBLibElement
();
UBLibElement
(
eUBLibElementType
type
,
const
QUrl
&
path
,
const
QString
&
name
);
UBLibElement
(
UBLibElement
*
element
);
~
UBLibElement
();
virtual
~
UBLibElement
();
static
UBLibElement
*
trashElement
();
...
...
@@ -79,7 +79,7 @@ class UBChainedLibElement
{
public
:
UBChainedLibElement
(
UBLibElement
*
pElem
,
UBChainedLibElement
*
pNextElem
=
NULL
);
~
UBChainedLibElement
();
virtual
~
UBChainedLibElement
();
UBChainedLibElement
*
nextElement
(){
return
mpNextElem
;}
UBChainedLibElement
*
lastElement
();
...
...
src/core/UBApplication.cpp
View file @
652d966e
...
...
@@ -53,6 +53,9 @@
#include "ui_mainWindow.h"
#include "frameworks/UBCryptoUtils.h"
#include "tools/UBToolsManager.h"
#include "core/memcheck.h"
QPointer
<
QUndoStack
>
UBApplication
::
undoStack
;
...
...
@@ -182,21 +185,26 @@ UBApplication::~UBApplication()
UBFileSystemUtils
::
deleteAllTempDirCreatedDuringSession
();
//
delete mainWindow;
delete
mainWindow
;
mainWindow
=
0
;
// delete staticMemoryCleaner;
staticMemoryCleaner
=
0
;
delete
mUniboardSankoreTransition
;
mUniboardSankoreTransition
=
0
;
if
(
mPreferencesController
)
{
delete
mPreferencesController
;
mPreferencesController
=
0
;
}
UBPersistenceManager
::
destroy
();
UBDownloadManager
::
destroy
();
UBDrawingController
::
destroy
();
UBSettings
::
destroy
();
UBCryptoUtils
::
destroy
();
UBToolsManager
::
destroy
();
delete
staticMemoryCleaner
;
staticMemoryCleaner
=
0
;
}
int
UBApplication
::
exec
(
const
QString
&
pFileToImport
)
...
...
src/core/UBDocumentManager.cpp
View file @
652d966e
...
...
@@ -37,9 +37,10 @@
#include "UBSettings.h"
#include "UBPersistenceManager.h"
#include "core/memcheck.h"
#include "../adaptors/UBExportWeb.h"
#include "core/memcheck.h"
UBDocumentManager
*
UBDocumentManager
::
sDocumentManager
=
0
;
UBDocumentManager
*
UBDocumentManager
::
documentManager
()
...
...
src/core/UBDownloadManager.cpp
View file @
652d966e
...
...
@@ -18,6 +18,8 @@
#include "board/UBBoardController.h"
#include "board/UBBoardPaletteManager.h"
#include "core/memcheck.h"
/** The unique instance of the download manager */
static
UBDownloadManager
*
pInstance
=
NULL
;
...
...
@@ -55,6 +57,15 @@ UBDownloadManager* UBDownloadManager::downloadManager()
return
pInstance
;
}
void
UBDownloadManager
::
destroy
()
{
if
(
pInstance
)
{
delete
pInstance
;
}
pInstance
=
NULL
;
}
/**
* \brief Add a file to the download list
* @param desc as the given file description
...
...
src/core/UBDownloadManager.h
View file @
652d966e
...
...
@@ -63,15 +63,14 @@ class UBDownloadManager : public QObject
{
Q_OBJECT
public
:
UBDownloadManager
(
QObject
*
parent
=
0
,
const
char
*
name
=
"UBDownloadManager"
);
~
UBDownloadManager
();
static
UBDownloadManager
*
downloadManager
();
void
addFileToDownload
(
sDownloadFileDesc
desc
);
QVector
<
sDownloadFileDesc
>
currentDownloads
();
QVector
<
sDownloadFileDesc
>
pendingDownloads
();
void
cancelDownloads
();
static
void
destroy
();
signals
:
void
fileAddedToDownload
();
void
downloadUpdated
(
int
id
,
qint64
crnt
,
qint64
total
);
...
...
@@ -89,6 +88,9 @@ private slots:
void
onDownloadError
(
int
id
);
private
:
UBDownloadManager
(
QObject
*
parent
=
0
,
const
char
*
name
=
"UBDownloadManager"
);
~
UBDownloadManager
();
void
init
();
void
updateDownloadOrder
();
void
updateFileCurrentSize
(
int
id
,
qint64
received
=-
1
,
qint64
total
=-
1
);
...
...
src/core/UBDownloadThread.cpp
View file @
652d966e
...
...
@@ -20,6 +20,8 @@
#include "UBDownloadThread.h"
#include "core/memcheck.h"
/**
* \brief Constructor
* @param parent as the parent object
...
...
src/core/UBPersistenceManager.cpp
View file @
652d966e
...
...
@@ -68,6 +68,13 @@ UBPersistenceManager* UBPersistenceManager::persistenceManager()
return
sSingleton
;
}
void
UBPersistenceManager
::
destroy
()
{
if
(
sSingleton
)
delete
sSingleton
;
sSingleton
=
NULL
;
}
UBPersistenceManager
::~
UBPersistenceManager
()
{
foreach
(
QPointer
<
UBDocumentProxy
>
proxyGuard
,
documentProxies
)
...
...
src/core/UBPersistenceManager.h
View file @
652d966e
...
...
@@ -58,6 +58,7 @@ class UBPersistenceManager : public QObject
static
const
QString
widgetDirectory
;
static
UBPersistenceManager
*
persistenceManager
();
static
void
destroy
();
virtual
UBDocumentProxy
*
createDocument
(
const
QString
&
pGroupName
=
""
,
const
QString
&
pName
=
""
);
virtual
UBDocumentProxy
*
createDocumentFromDir
(
const
QString
&
pDocumentDirectory
);
...
...
src/core/UBSettings.cpp
View file @
652d966e
...
...
@@ -97,6 +97,23 @@ QString UBSettings::appPingMessage = "__uniboard_ping";
QString
UBSettings
::
defaultDocumentGroupName
;
QString
UBSettings
::
documentTrashGroupName
;
UBSettings
*
UBSettings
::
settings
()
{
if
(
!
sSingleton
)
sSingleton
=
new
UBSettings
(
qApp
);
return
sSingleton
;
}
void
UBSettings
::
destroy
()
{
if
(
sSingleton
)
delete
sSingleton
;
sSingleton
=
NULL
;
}
QSettings
*
UBSettings
::
getAppSettings
()
{
if
(
!
UBSettings
::
sAppSettings
)
...
...
src/core/UBSettings.h
View file @
652d966e
...
...
@@ -22,13 +22,8 @@ class UBSettings : public QObject
public
:
static
UBSettings
*
settings
()
{
if
(
!
sSingleton
)
sSingleton
=
new
UBSettings
(
qApp
);
return
sSingleton
;
}
static
UBSettings
*
settings
();
static
void
destroy
();
private
:
...
...
src/core/main.cpp
View file @
652d966e
...
...
@@ -21,6 +21,8 @@
#include "UBApplication.h"
#include "UBSettings.h"
/* Uncomment this for memory leaks detection */
/*
#if defined(WIN32) && defined(_DEBUG)
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
...
...
@@ -28,7 +30,7 @@
#define DEBUG_NEW new( _NORMAL_BLOCK, __FILE__, __LINE__ )
#define new DEBUG_NEW
#endif
*/
void
ub_message_output
(
QtMsgType
type
,
const
char
*
msg
)
{
// We must temporarily remove the handler to avoid the infinite recursion of
...
...
src/domain/UBGraphicsItemDelegate.cpp
View file @
652d966e
...
...
@@ -100,6 +100,7 @@ void UBGraphicsItemDelegate::init()
UBGraphicsItemDelegate
::~
UBGraphicsItemDelegate
()
{
qDeleteAll
(
mButtons
);
// do not release mMimeData.
// the mMimeData is owned by QDrag since the setMimeData call as specified in the documentation
}
...
...
src/domain/UBGraphicsPolygonItem.cpp
View file @
652d966e
...
...
@@ -53,25 +53,29 @@ UBGraphicsPolygonItem::UBGraphicsPolygonItem (const QLineF& pLine, qreal pWidth)
// NOOP
}
UBGraphicsPolygonItem
::~
UBGraphicsPolygonItem
()
void
UBGraphicsPolygonItem
::
clearStroke
()
{
if
(
mStroke
!=
NULL
)
{
QList
<
UBGraphicsPolygonItem
*>
pp
=
mStroke
->
polygons
();
int
n
=
pp
.
indexOf
(
this
);
if
(
n
>=
0
)
pp
.
removeAt
(
n
);
if
(
pp
.
empty
())
delete
mStroke
;
mStroke
->
remove
(
this
);
if
(
mStroke
->
polygons
().
empty
())
delete
mStroke
;
mStroke
=
NULL
;
}
}
UBGraphicsPolygonItem
::~
UBGraphicsPolygonItem
()
{
clearStroke
();
}
void
UBGraphicsPolygonItem
::
setStroke
(
UBGraphicsStroke
*
stroke
)
{
mStroke
=
stroke
;
clearStroke
()
;
mStroke
=
stroke
;
mStroke
->
addPolygon
(
this
);
}
UBGraphicsStroke
*
UBGraphicsPolygonItem
::
stroke
()
const
...
...
src/domain/UBGraphicsPolygonItem.h
View file @
652d966e
...
...
@@ -116,6 +116,9 @@ class UBGraphicsPolygonItem : public QGraphicsPolygonItem, public UBItem
private
:
void
clearStroke
();
bool
mHasAlpha
;
QLineF
mOriginalLine
;
...
...
src/domain/UBGraphicsScene.cpp
View file @
652d966e
...
...
@@ -141,8 +141,11 @@ UBGraphicsScene::UBGraphicsScene(UBDocumentProxy* parent)
UBGraphicsScene
::~
UBGraphicsScene
()
{
// NOOP
DisposeMagnifierQWidgets
();
if
(
mCurrentStroke
)
if
(
mCurrentStroke
->
polygons
().
empty
())
delete
mCurrentStroke
;
}
void
UBGraphicsScene
::
selectionChangedProcessing
()
...
...
@@ -190,6 +193,12 @@ bool UBGraphicsScene::inputDevicePress(const QPointF& scenePos, const qreal& pre
if
(
UBDrawingController
::
drawingController
()
->
isDrawingTool
())
{
qreal
width
=
0
;
// delete current stroke, if not assigned to any polygon
if
(
mCurrentStroke
)
if
(
mCurrentStroke
->
polygons
().
empty
())
delete
mCurrentStroke
;
mCurrentStroke
=
new
UBGraphicsStroke
();
if
(
currentTool
!=
UBStylusTool
::
Line
)
...
...
@@ -344,7 +353,12 @@ bool UBGraphicsScene::inputDeviceRelease()
UBDrawingController
*
dc
=
UBDrawingController
::
drawingController
();
if
(
dc
->
isDrawingTool
())
{
mCurrentStroke
=
0
;
if
(
mCurrentStroke
)
{
if
(
mCurrentStroke
->
polygons
().
empty
())
delete
mCurrentStroke
;
mCurrentStroke
=
0
;
}
}
if
(
mRemovedItems
.
size
()
>
0
||
mAddedItems
.
size
()
>
0
)
...
...
@@ -503,7 +517,6 @@ void UBGraphicsScene::drawLineTo(const QPointF &pEndPoint, const qreal &pWidth,
if
(
mCurrentStroke
)
{
mCurrentStroke
->
addPolygon
(
polygonItem
);
polygonItem
->
setStroke
(
mCurrentStroke
);
}
...
...
src/domain/UBGraphicsStroke.cpp
View file @
652d966e
...
...
@@ -33,9 +33,16 @@ UBGraphicsStroke::~UBGraphicsStroke()
void
UBGraphicsStroke
::
addPolygon
(
UBGraphicsPolygonItem
*
pol
)
{
remove
(
pol
);
mPolygons
<<
pol
;
}
void
UBGraphicsStroke
::
remove
(
UBGraphicsPolygonItem
*
polygonItem
)
{
int
n
=
mPolygons
.
indexOf
(
polygonItem
);
if
(
n
>=
0
)
mPolygons
.
removeAt
(
n
);
}
QList
<
UBGraphicsPolygonItem
*>
UBGraphicsStroke
::
polygons
()
const
{
...
...
src/domain/UBGraphicsStroke.h
View file @
652d966e
...
...
@@ -25,20 +25,25 @@ class UBGraphicsPolygonItem;
class
UBGraphicsStroke
{
friend
class
UBGraphicsPolygonItem
;
public
:
UBGraphicsStroke
();
virtual
~
UBGraphicsStroke
();
bool
hasPressure
();
void
addPolygon
(
UBGraphicsPolygonItem
*
pol
);
QList
<
UBGraphicsPolygonItem
*>
polygons
()
const
;
void
remove
(
UBGraphicsPolygonItem
*
polygonItem
);
UBGraphicsStroke
*
deepCopy
();
bool
hasAlpha
()
const
;
protected
:
void
addPolygon
(
UBGraphicsPolygonItem
*
pol
);
private
:
QList
<
UBGraphicsPolygonItem
*>
mPolygons
;
...
...
src/frameworks/UBCryptoUtils.cpp
View file @
652d966e
...
...
@@ -23,6 +23,21 @@ UBCryptoUtils* UBCryptoUtils::sInstance(0);
QString
UBCryptoUtils
::
sAESKey
(
"9ecHaspud9uD9ste5erAchehefrup3echej-caje6&thestawacuk=h#F3jet3aF"
);
QString
UBCryptoUtils
::
sAESSalt
(
"6f0083e0-a90c-11de-ac21-0002a5d5c51b"
);
UBCryptoUtils
*
UBCryptoUtils
::
instance
()
{
if
(
!
sInstance
)
sInstance
=
new
UBCryptoUtils
(
UBApplication
::
staticMemoryCleaner
);
return
sInstance
;
}
void
UBCryptoUtils
::
destroy
()
{
if
(
sInstance
)
delete
sInstance
;
sInstance
=
NULL
;
}
UBCryptoUtils
::
UBCryptoUtils
(
QObject
*
pParent
)
:
QObject
(
pParent
)
...
...
src/frameworks/UBCryptoUtils.h
View file @
652d966e
...
...
@@ -28,13 +28,9 @@ class UBCryptoUtils : public QObject
public
:
static
UBCryptoUtils
*
instance
()
{
if
(
!
sInstance
)
sInstance
=
new
UBCryptoUtils
(
UBApplication
::
staticMemoryCleaner
);
static
UBCryptoUtils
*
instance
();
static
void
destroy
();
return
sInstance
;
}
QString
symetricEncrypt
(
const
QString
&
clear
);
QString
symetricDecrypt
(
const
QString
&
encrypted
);
...
...
src/frameworks/UBDesktopServices.h
View file @
652d966e
...
...
@@ -19,6 +19,8 @@
#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
...
...
src/gui/UBCachePropertiesWidget.cpp
View file @
652d966e
...
...
@@ -10,6 +10,8 @@
#include "board/UBBoardController.h"
#include "domain/UBGraphicsScene.h"
#include "core/memcheck.h"
static
QVector
<
UBGraphicsCache
*>
mCaches
;
UBCachePropertiesWidget
::
UBCachePropertiesWidget
(
QWidget
*
parent
,
const
char
*
name
)
:
UBDockPaletteWidget
(
parent
)
...
...
src/gui/UBDockPaletteWidget.cpp
View file @
652d966e
#include "UBDockPaletteWidget.h"
#include "core/memcheck.h"
UBDockPaletteWidget
::
UBDockPaletteWidget
(
QWidget
*
parent
,
const
char
*
name
)
:
QWidget
(
parent
)
{
setObjectName
(
name
);
...
...
src/gui/UBDownloadWidget.cpp
View file @
652d966e
...
...
@@ -20,6 +20,8 @@
#include "UBDownloadWidget.h"
#include "core/UBApplication.h"
#include "core/memcheck.h"
/**
* \brief Constructor
* @param parent as the parent widget
...
...
src/gui/UBLeftPalette.cpp
View file @
652d966e
...
...
@@ -15,6 +15,8 @@
#include "UBLeftPalette.h"
#include "core/UBSettings.h"
#include "core/memcheck.h"
/**
* \brief The constructor
*/
...
...
src/gui/UBLibNavigatorWidget.cpp
View file @
652d966e
...
...
@@ -143,8 +143,9 @@ void UBLibNavigatorWidget::removeNextChainedElements(UBChainedLibElement *fromEl
{
if
(
NULL
!=
fromElem
->
nextElement
())
{
removeNextChainedElements
(
fromElem
->
nextElement
());
delete
fromElem
->
nextElement
()
->
element
();
//removeNextChainedElements(fromElem->nextElement());
//delete fromElem->nextElement()->element();
//delete fromElem->nextElement();
delete
fromElem
->
nextElement
();
fromElem
->
setNextElement
(
NULL
);
}
...
...
src/gui/UBLibPathViewer.cpp
View file @
652d966e
...
...
@@ -80,16 +80,16 @@ UBLibPathViewer::~UBLibPathViewer()
delete
mpElems
;
mpElems
=
NULL
;
}
if
(
NULL
!=
mpElemsBackup
)
{
delete
mpElemsBackup
;
mpElemsBackup
=
NULL
;
}
if
(
NULL
!=
mpLayout
)
{
delete
mpLayout
;
mpLayout
=
NULL
;
}
//
if(NULL != mpElemsBackup)
//
{
//
delete mpElemsBackup;
//
mpElemsBackup = NULL;
//
}
//
if(NULL != mpLayout)
//
{
//
delete mpLayout;
//
mpLayout = NULL;
//
}
if
(
NULL
!=
mpScene
)
{
delete
mpScene
;
...
...
src/gui/UBLibWebView.cpp
View file @
652d966e
...
...
@@ -4,6 +4,8 @@
#include "UBLibWebView.h"
#include "core/memcheck.h"
UBLibWebView
::
UBLibWebView
(
QWidget
*
parent
,
const
char
*
name
)
:
QWidget
(
parent
)
,
mpView
(
NULL
)
,
mpWebSettings
(
NULL
)
...
...
src/gui/UBLibWidget.cpp
View file @
652d966e
...
...
@@ -15,9 +15,10 @@
#include <QDebug>
#include "UBLibWidget.h"
#include "core/memcheck.h"
#include "core/UBApplication.h"
#include "core/memcheck.h"
/**
* \brief Constructor
* @param parent as the parent widget
...
...
src/gui/UBLibraryWidget.cpp
View file @
652d966e
...
...
@@ -24,11 +24,12 @@
#include "board/UBBoardController.h"
#include "board/UBLibraryController.h"
#include "core/memcheck.h"
#include "core/UBDownloadManager.h"
#include "frameworks/UBFileSystemUtils.h"
#include "core/memcheck.h"
/**
* \brief Constructor
* @param parent as the parent widget
...
...
@@ -55,12 +56,6 @@ UBLibraryWidget::~UBLibraryWidget()
delete
mLibraryController
;
mLibraryController
=
NULL
;
}
// if(NULL != chainedElements)
// {
// delete chainedElements;
// chainedElements = NULL;
// }
if
(
NULL
!=
mpCrntDir
)
{
delete
mpCrntDir
;
...
...
src/gui/UBMagnifer.cpp
View file @
652d966e
...
...
@@ -20,6 +20,8 @@
#include "board/UBBoardController.h"
#include "domain/UBGraphicsScene.h"
#include "core/memcheck.h"
UBMagnifier
::
UBMagnifier
(
QWidget
*
parent
,
bool
isInteractive
)
:
QWidget
(
parent
,
parent
?
Qt
::
Widget
:
Qt
::
Tool
|
(
Qt
::
FramelessWindowHint
|
Qt
::
WindowStaysOnTopHint
|
Qt
::
X11BypassWindowManagerHint
))
...
...
src/gui/UBRightPalette.cpp
View file @
652d966e
...
...
@@ -17,6 +17,8 @@
#include "UBRightPalette.h"
#include "core/memcheck.h"
/**
* \brief The constructor
*/
...
...
src/gui/UBRubberBand.cpp
View file @
652d966e
...
...
@@ -26,17 +26,20 @@
UBRubberBand
::
UBRubberBand
(
Shape
s
,
QWidget
*
p
)
:
QRubberBand
(
s
,
p
)
{
QStyle
*
rubberBandStyle
=
QRubberBand
::
style
()
;
customStyle
=
NULL
;
#ifdef Q_WS_WIN
rubberBand
Style
=
new
QWindowsXPStyle
();
custom
Style
=
new
QWindowsXPStyle
();
#elif defined(Q_WS_MAC)
rubberBand
Style
=
new
QMacStyle
();
custom
Style
=
new
QMacStyle
();
#endif
QRubberBand
::
setStyle
(
rubberBandStyle
);
if
(
customStyle
)
QRubberBand
::
setStyle
(
customStyle
);
}
UBRubberBand
::~
UBRubberBand
()
{
// NOOP
if
(
customStyle
)
delete
customStyle
;
}
src/gui/UBRubberBand.h
View file @
652d966e
...
...
@@ -25,6 +25,8 @@ class UBRubberBand : public QRubberBand
public
:
UBRubberBand
(
Shape
s
,
QWidget
*
p
=
0
);
virtual
~
UBRubberBand
();
private
:
QStyle
*
customStyle
;
};
#endif
/* UBRUBBERBAND_H_ */
src/gui/UBTeacherBarWidget.cpp
View file @
652d966e
...
...
@@ -9,6 +9,8 @@
#include "board/UBBoardController.h"
#include "board/UBBoardPaletteManager.h"
#include "core/memcheck.h"
UBTeacherBarWidget
::
UBTeacherBarWidget
(
QWidget
*
parent
,
const
char
*
name
)
:
UBDockPaletteWidget
(
parent
)
,
mpLayout
(
NULL
)
,
mpTitleLayout
(
NULL
)
...
...
src/gui/UBThumbnailWidget.cpp
View file @
652d966e
...
...
@@ -21,11 +21,11 @@
#include "core/UBSettings.h"
#include "core/UBApplication.h"
#include "core/memcheck.h"
#include "document/UBDocumentProxy.h"
#include "document/UBDocumentController.h"
#include "core/memcheck.h"
UBThumbnailWidget
::
UBThumbnailWidget
(
QWidget
*
parent
)
:
QGraphicsView
(
parent
)
,
mThumbnailWidth
(
UBSettings
::
defaultThumbnailWidth
)
...
...
src/pdf-merger/ASCII85Decode.cpp
View file @
652d966e
...
...
@@ -15,6 +15,9 @@
#include <iostream>
#include "ASCII85Decode.h"
#include "core/memcheck.h"
using
namespace
merge_lib
;
static
const
unsigned
long
pow85
[]
=
{
85
*
85
*
85
*
85
,
85
*
85
*
85
,
85
*
85
,
85
,
1
...
...
src/pdf-merger/ASCIIHexDecode.cpp
View file @
652d966e
...
...
@@ -17,6 +17,8 @@
#include <string>
#include "Utils.h"
#include "core/memcheck.h"
using
namespace
merge_lib
;
const
std
::
string
WHITESPACES
(
"
\t\f\v\n\r
"
);
...
...
src/pdf-merger/AnnotsHandler.cpp
View file @
652d966e
...
...
@@ -14,6 +14,8 @@
*/
#include "AnnotsHandler.h"
#include "core/memcheck.h"
using
namespace
merge_lib
;
void
AnnotsHandler
::
_processObjectContent
(
unsigned
int
startOfPageElement
)
{
...
...
src/pdf-merger/ContentHandler.cpp
View file @
652d966e
...
...
@@ -21,6 +21,8 @@
#include <string>
#include <string.h>
#include "core/memcheck.h"
using
namespace
merge_lib
;
using
namespace
std
;
//concatenate stream of all objects which contain Content of Page
...
...
src/pdf-merger/Document.cpp
View file @
652d966e
...
...
@@ -23,6 +23,8 @@
#include <iostream>
#include <iomanip>
#include "core/memcheck.h"
using
namespace
merge_lib
;
const
std
::
string
firstObj
(
"%PDF-1.4
\n
1 0 obj
\n
<<
\n
/Title ()/Creator ()/Producer (Qt 4.5.0 (C) 1992-2009 Nokia Corporation and/or its subsidiary(-ies))/CreationDate (D:20090424120829)
\n
>>
\n
endobj
\n
"
);
const
std
::
string
zeroStr
(
"0000000000"
);
...
...
src/pdf-merger/Filter.cpp
View file @
652d966e
...
...
@@ -24,6 +24,8 @@
#include "JBIG2Decode.h"
#include "DCTDecode.h"
#include "core/memcheck.h"
using
namespace
merge_lib
;
std
::
map
<
std
::
string
,
Decoder
*>
Filter
::
_allDecoders
;
...
...
src/pdf-merger/FilterPredictor.cpp
View file @
652d966e
...
...
@@ -21,6 +21,8 @@
#include "Object.h"
#include "Parser.h"
#include "core/memcheck.h"
using
namespace
merge_lib
;
const
std
::
string
FilterPredictor
::
PREDICTOR_TOKEN
=
"/Predictor"
;
...
...
src/pdf-merger/FlateDecode.cpp
View file @
652d966e
...
...
@@ -19,6 +19,8 @@
#include "Utils.h"
#include <string.h>
#include "core/memcheck.h"
using
namespace
merge_lib
;
#define ZLIB_MEM_DELTA 65535
#define ZLIB_CHECK_ERR(err,msg) \
...
...
src/pdf-merger/LZWDecode.cpp
View file @
652d966e
...
...
@@ -16,6 +16,8 @@
#include "LZWDecode.h"
#include "FilterPredictor.h"
#include "core/memcheck.h"
// method performs decoding
using
namespace
merge_lib
;
...
...
src/pdf-merger/Merger.cpp
View file @
652d966e
...
...
@@ -21,6 +21,8 @@
#include <map>
#include <iostream>
#include "core/memcheck.h"
using
namespace
merge_lib
;
Parser
Merger
::
_parser
;
...
...
src/pdf-merger/Object.cpp
View file @
652d966e
...
...
@@ -19,6 +19,8 @@
#include <algorithm>
#include <fstream>
#include "core/memcheck.h"
using
namespace
merge_lib
;
std
::
string
NUMBERANDWHITESPACE
(
" 0123456789"
);
...
...
src/pdf-merger/OverlayDocumentParser.cpp
View file @
652d966e
...
...
@@ -18,6 +18,8 @@
#include "Exception.h"
#include "Object.h"
#include "core/memcheck.h"
using
namespace
merge_lib
;
using
namespace
std
;
...
...
src/pdf-merger/Page.cpp
View file @
652d966e
...
...
@@ -32,6 +32,8 @@
#include <string.h>
#include "Parser.h"
#include "core/memcheck.h"
using
namespace
merge_lib
;
...
...
src/pdf-merger/PageElementHandler.cpp
View file @
652d966e
...
...
@@ -14,6 +14,8 @@
*/
#include "PageElementHandler.h"
#include "core/memcheck.h"
using
namespace
merge_lib
;
std
::
set
<
std
::
string
>
PageElementHandler
::
_allPageFields
;
...
...
src/pdf-merger/Parser.cpp
View file @
652d966e
...
...
@@ -23,6 +23,8 @@
#include "Exception.h"
#include "Utils.h"
#include "core/memcheck.h"
using
namespace
merge_lib
;
using
namespace
std
;
...
...
src/pdf-merger/Rectangle.cpp
View file @
652d966e
...
...
@@ -19,6 +19,8 @@
#include <iostream>
#include "core/memcheck.h"
using
namespace
merge_lib
;
Rectangle
::
Rectangle
(
const
char
*
rectangleName
)
:
...
...
src/pdf-merger/RemoveHimselfHandler.cpp
View file @
652d966e
...
...
@@ -14,6 +14,8 @@
*/
#include "RemoveHimSelfHandler.h"
#include "core/memcheck.h"
using
namespace
merge_lib
;
void
RemoveHimselfHandler
::
_changeObjectContent
(
unsigned
int
startOfPageElement
)
...
...
src/pdf-merger/RunLengthDecode.cpp
View file @
652d966e
...
...
@@ -14,6 +14,8 @@
*/
#include "RunLengthDecode.h"
#include "core/memcheck.h"
using
namespace
merge_lib
;
/* The encoded data is a sequence of
...
...
src/pdf-merger/Utils.cpp
View file @
652d966e
...
...
@@ -21,6 +21,8 @@
#include <fstream>
#include <string.h>
#include "core/memcheck.h"
using
namespace
merge_lib
;
int
Utils
::
stringToInt
(
const
std
::
string
&
str
)
//throw ConvertException
...
...
src/podcast/UBAbstractVideoEncoder.cpp
View file @
652d966e
...
...
@@ -15,6 +15,8 @@
#include "UBAbstractVideoEncoder.h"
#include "core/memcheck.h"
UBAbstractVideoEncoder
::
UBAbstractVideoEncoder
(
QObject
*
pParent
)
:
QObject
(
pParent
)
,
mFramesPerSecond
(
10
)
...
...
src/podcast/UBPodcastController.cpp
View file @
652d966e
...
...
@@ -53,6 +53,7 @@
#include "quicktime/UBAudioQueueRecorder.h"
#endif
#include "core/memcheck.h"
UBPodcastController
*
UBPodcastController
::
sInstance
=
0
;
...
...
src/podcast/UBPodcastRecordingPalette.cpp
View file @
652d966e
...
...
@@ -25,6 +25,7 @@
#include "gui/UBMainWindow.h"
#include "core/memcheck.h"
UBPodcastRecordingPalette
::
UBPodcastRecordingPalette
(
QWidget
*
parent
)
:
UBActionPalette
(
Qt
::
Horizontal
,
parent
)
...
...
src/podcast/intranet/UBIntranetPodcastPublisher.cpp
View file @
652d966e
...
...
@@ -28,6 +28,8 @@
#include "gui/UBMainWindow.h"
#include "core/memcheck.h"
UBIntranetPodcastPublisher
::
UBIntranetPodcastPublisher
(
QObject
*
pParent
)
:
QObject
(
pParent
)
...
...
src/podcast/quicktime/UBAudioQueueRecorder.cpp
View file @
652d966e
...
...
@@ -15,6 +15,7 @@
#include "UBAudioQueueRecorder.h"
#include "core/memcheck.h"
AudioStreamBasicDescription
UBAudioQueueRecorder
::
sAudioFormat
;
...
...
src/podcast/quicktime/UBQuickTimeFile.cpp
View file @
652d966e
...
...
@@ -22,6 +22,8 @@
#include "UBAudioQueueRecorder.h"
#include <QtGui>
#include "core/memcheck.h"
QQueue
<
UBQuickTimeFile
::
VideoFrame
>
UBQuickTimeFile
::
frameQueue
;
QMutex
UBQuickTimeFile
::
frameQueueMutex
;
QWaitCondition
UBQuickTimeFile
::
frameBufferNotEmpty
;
...
...
src/podcast/quicktime/UBQuickTimeVideoEncoder.cpp
View file @
652d966e
...
...
@@ -28,6 +28,7 @@
#include "UBQuickTimeFile.h"
#include "core/memcheck.h"
UBQuickTimeVideoEncoder
::
UBQuickTimeVideoEncoder
(
QObject
*
pParent
)
:
UBAbstractVideoEncoder
(
pParent
)
...
...
src/podcast/windowsmedia/UBWaveRecorder.cpp
View file @
652d966e
...
...
@@ -17,6 +17,8 @@
#include "Mmsystem.h"
#include "core/memcheck.h"
UBWaveRecorder
::
UBWaveRecorder
(
QObject
*
pParent
)
:
QObject
(
pParent
)
,
mIsRecording
(
false
)
...
...
src/podcast/windowsmedia/UBWindowsMediaFile.cpp
View file @
652d966e
...
...
@@ -19,6 +19,8 @@
#include "core/UBApplication.h"
#include "core/memcheck.h"
UBWindowsMediaFile
::
UBWindowsMediaFile
(
QObject
*
pParent
)
:
QObject
(
pParent
)
,
mWMhDC
(
0
)
...
...
src/podcast/windowsmedia/UBWindowsMediaVideoEncoder.cpp
View file @
652d966e
...
...
@@ -24,6 +24,7 @@
#include "UBWindowsMediaFile.h"
#include "core/memcheck.h"
UBWindowsMediaVideoEncoder
::
UBWindowsMediaVideoEncoder
(
QObject
*
pParent
)
:
UBAbstractVideoEncoder
(
pParent
)
...
...
src/podcast/youtube/UBYouTubePublisher.cpp
View file @
652d966e
...
...
@@ -29,6 +29,8 @@
#include "network/UBNetworkAccessManager.h"
#include "network/UBServerXMLHttpRequest.h"
#include "core/memcheck.h"
// API key linked to account dev.mnemis@gmail.com
const
QString
UBYouTubePublisher
::
sYouTubeDeveloperKey
(
"AI39si62ga82stA4YBr5JjkfuRsFT-QyC4UYsFn7yYQFMe_dzg8xOc0r91BOhxSEhEr0gdWJGNnDsYbv9wvpyROd2Yre-6Zh7g"
);
...
...
src/softwareupdate/UBRssHandler.cpp
View file @
652d966e
...
...
@@ -18,6 +18,8 @@
#include "UBRssHandler.h"
#include "UBSoftwareUpdate.h"
#include "core/memcheck.h"
const
QString
UBRssHandler
::
sRssItemElementName
=
"item"
;
const
QString
UBRssHandler
::
sRssLinkElementName
=
"link"
;
const
QString
UBRssHandler
::
sUniboardVersionElementName
=
"ub:version"
;
// TODO UB 4.x map properly ub namespace
...
...
src/softwareupdate/UBSoftwareUpdate.cpp
View file @
652d966e
...
...
@@ -17,6 +17,8 @@
#include "UBSoftwareUpdate.h"
#include "core/memcheck.h"
UBSoftwareUpdate
::
UBSoftwareUpdate
()
{
// NOOP
...
...
src/tools/UBGraphicsCache.cpp
View file @
652d966e
...
...
@@ -22,6 +22,7 @@
#include "board/UBBoardView.h"
#include "domain/UBGraphicsScene.h"
#include "core/memcheck.h"
UBGraphicsCache
::
UBGraphicsCache
()
:
QGraphicsRectItem
()
,
mMaskColor
(
Qt
::
black
)
...
...
src/tools/UBToolsManager.cpp
View file @
652d966e
...
...
@@ -19,6 +19,21 @@
UBToolsManager
*
UBToolsManager
::
sManager
=
0
;
UBToolsManager
*
UBToolsManager
::
manager
()
{
if
(
!
sManager
)
sManager
=
new
UBToolsManager
(
UBApplication
::
staticMemoryCleaner
);
return
sManager
;
}
void
UBToolsManager
::
destroy
()
{
if
(
sManager
)
delete
sManager
;
sManager
=
NULL
;
}
UBToolsManager
::
UBToolsManager
(
QObject
*
parent
)
:
QObject
(
parent
)
{
...
...
src/tools/UBToolsManager.h
View file @
652d966e
...
...
@@ -38,12 +38,8 @@ class UBToolsManager : public QObject
};
static
UBToolsManager
*
manager
()
{
if
(
!
sManager
)
sManager
=
new
UBToolsManager
(
UBApplication
::
staticMemoryCleaner
);
return
sManager
;
}
static
UBToolsManager
*
manager
();
static
void
destroy
();
QList
<
UBToolDescriptor
>
allTools
()
{
...
...
src/transition/UniboardSankoreTransition.cpp
View file @
652d966e
...
...
@@ -20,6 +20,8 @@
#include "core/UBApplication.h"
#include "core/UBPersistenceManager.h"
#include "core/memcheck.h"
UniboardSankoreTransition
::
UniboardSankoreTransition
(
QObject
*
parent
)
:
QObject
(
parent
)
,
mTransitionDlg
(
NULL
)
...
...
src/web/UBRoutedMouseEventWebView.cpp
View file @
652d966e
...
...
@@ -19,6 +19,8 @@
#include <QtWebKit>
#include <QtGui>
#include "core/memcheck.h"
UBRoutedMouseEventWebView
::
UBRoutedMouseEventWebView
(
QWidget
*
parent
)
:
QWebView
(
parent
)
{
...
...
src/web/UBTrapFlashController.cpp
View file @
652d966e
...
...
@@ -33,6 +33,7 @@
#include "ui_trapFlash.h"
#include "core/memcheck.h"
UBTrapFlashController
::
UBTrapFlashController
(
QWidget
*
parent
)
:
QObject
(
parent
)
...
...
src/web/UBWebController.cpp
View file @
652d966e
...
...
@@ -48,6 +48,7 @@
#include "desktop/UBCustomCaptureWindow.h"
#include "board/UBBoardPaletteManager.h"
#include "core/memcheck.h"
UBWebController
::
UBWebController
(
UBMainWindow
*
mainWindow
)
:
QObject
(
mainWindow
->
centralWidget
())
...
...
src/web/UBWebKitUtils.cpp
View file @
652d966e
...
...
@@ -15,6 +15,8 @@
#include "UBWebKitUtils.h"
#include "core/memcheck.h"
UBWebKitUtils
::
UBWebKitUtils
()
{
// NOOP
...
...
src/web/UBWebPage.cpp
View file @
652d966e
...
...
@@ -20,6 +20,8 @@
#include "pdf/UBWebPluginPDFWidget.h"
#include "core/memcheck.h"
class
UBWebPluginFactory
:
public
QWebPluginFactory
{
public
:
...
...
src/web/UBWebPluginWidget.cpp
View file @
652d966e
...
...
@@ -18,6 +18,8 @@
#include "pdf/UBWebPluginPDFWidget.h"
#include "frameworks/UBFileSystemUtils.h"
#include "core/memcheck.h"
UBWebPluginWidget
::
UBWebPluginWidget
(
const
QUrl
&
url
,
QWidget
*
parent
)
:
QWidget
(
parent
)
,
mLoadingProgressBar
(
this
)
...
...
src/web/browser/WBBrowserWindow.cpp
View file @
652d966e
...
...
@@ -78,6 +78,7 @@
#include "ui_passworddialog.h"
#include "WBWebView.h"
#include "core/memcheck.h"
WBDownloadManager
*
WBBrowserWindow
::
sDownloadManager
=
0
;
WBHistoryManager
*
WBBrowserWindow
::
sHistoryManager
=
0
;
...
...
src/web/browser/WBChaseWidget.cpp
View file @
652d966e
...
...
@@ -57,6 +57,8 @@
#include <QtGui>
#include "core/memcheck.h"
WBChaseWidget
::
WBChaseWidget
(
QWidget
*
parent
,
QPixmap
pixmap
,
bool
pixmapEnabled
)
:
QWidget
(
parent
)
,
mSegment
(
0
)
...
...
src/web/browser/WBDownloadManager.cpp
View file @
652d966e
...
...
@@ -66,6 +66,8 @@
#include <math.h>
#include "core/memcheck.h"
/*!
DownloadItem is a widget that is displayed in the download manager list.
It moves the data from the QNetworkReply into the QFile as well
...
...
src/web/browser/WBEditTableView.cpp
View file @
652d966e
...
...
@@ -56,6 +56,8 @@
#include "WBEditTableView.h"
#include <QtGui/QKeyEvent>
#include "core/memcheck.h"
WBEditTableView
::
WBEditTableView
(
QWidget
*
parent
)
:
QTableView
(
parent
)
{
...
...
src/web/browser/WBHistory.cpp
View file @
652d966e
...
...
@@ -63,6 +63,7 @@
#include "core/UBSettings.h"
#include "network/UBAutoSaver.h"
#include "core/memcheck.h"
static
const
unsigned
int
HISTORY_VERSION
=
23
;
...
...
src/web/browser/WBModelMenu.cpp
View file @
652d966e
...
...
@@ -57,6 +57,8 @@
#include <QtCore>
#include "core/memcheck.h"
WBModelMenu
::
WBModelMenu
(
QWidget
*
parent
)
:
QMenu
(
parent
)
,
m_maxRows
(
7
)
...
...
src/web/browser/WBSearchLineEdit.cpp
View file @
652d966e
...
...
@@ -57,6 +57,8 @@
#include <QtGui>
#include "core/memcheck.h"
WBClearButton
::
WBClearButton
(
QWidget
*
parent
)
:
QAbstractButton
(
parent
)
{
...
...
src/web/browser/WBSqueezeLabel.cpp
View file @
652d966e
...
...
@@ -55,6 +55,8 @@
#include "WBSqueezeLabel.h"
#include "core/memcheck.h"
WBSqueezeLabel
::
WBSqueezeLabel
(
QWidget
*
parent
)
:
QLabel
(
parent
)
{
}
...
...
src/web/browser/WBTabWidget.cpp
View file @
652d966e
...
...
@@ -66,6 +66,8 @@
#include <QtGui>
#include <QSvgWidget>
#include "core/memcheck.h"
WBTabBar
::
WBTabBar
(
QWidget
*
parent
)
:
QTabBar
(
parent
)
{
...
...
src/web/browser/WBToolBarSearch.cpp
View file @
652d966e
...
...
@@ -60,6 +60,8 @@
#include "network/UBAutoSaver.h"
#include "core/memcheck.h"
/*
ToolbarSearch is a very basic search widget that also contains a small history.
Searches are turned into urls that use Google to perform search
...
...
src/web/browser/WBUrlLineEdit.cpp
View file @
652d966e
...
...
@@ -60,6 +60,8 @@
#include <QtGui>
#include "core/memcheck.h"
WBExLineEdit
::
WBExLineEdit
(
QWidget
*
parent
)
:
QWidget
(
parent
)
,
mLeftWidget
(
0
)
...
...
src/web/browser/WBWebTrapWebView.cpp
View file @
652d966e
...
...
@@ -24,6 +24,8 @@
#include "core/UBApplicationController.h"
#include "board/UBBoardController.h"
#include "core/memcheck.h"
WBWebTrapWebView
::
WBWebTrapWebView
(
QWidget
*
parent
)
:
QWebView
(
parent
)
,
mCurrentContentType
(
Unknown
)
...
...
src/web/browser/WBWebView.cpp
View file @
652d966e
...
...
@@ -70,6 +70,7 @@
#include <QtWebKit>
#include <QtUiTools/QUiLoader>
#include "core/memcheck.h"
WBWebPage
::
WBWebPage
(
QObject
*
parent
)
:
UBWebPage
(
parent
)
...
...
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