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
26f6de78
Commit
26f6de78
authored
Nov 05, 2015
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor compatibility updates (strings etc; missing includes)
parent
d97feb57
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
11 deletions
+15
-11
UBSvgSubsetAdaptor.cpp
src/adaptors/UBSvgSubsetAdaptor.cpp
+4
-3
UBDocumentPublisher.cpp
src/adaptors/publishing/UBDocumentPublisher.cpp
+1
-1
UBW3CWidgetAPI.cpp
src/api/UBW3CWidgetAPI.cpp
+1
-1
UBWidgetUniboardAPI.cpp
src/api/UBWidgetUniboardAPI.cpp
+4
-4
UBBoardView.h
src/board/UBBoardView.h
+3
-0
UBPersistenceManager.cpp
src/core/UBPersistenceManager.cpp
+2
-2
No files found.
src/adaptors/UBSvgSubsetAdaptor.cpp
View file @
26f6de78
...
...
@@ -30,6 +30,7 @@
#include <QtCore>
#include <QtXml>
#include <QGraphicsTextItem>
#include <QDomElement>
#include "domain/UBGraphicsSvgItem.h"
#include "domain/UBGraphicsPixmapItem.h"
...
...
@@ -329,7 +330,7 @@ QUuid UBSvgSubsetAdaptor::sceneUuid(UBDocumentProxy* proxy, const int pageIndex)
UBGraphicsScene
*
UBSvgSubsetAdaptor
::
loadScene
(
UBDocumentProxy
*
proxy
,
const
QByteArray
&
pArray
)
{
UBSvgSubsetReader
reader
(
proxy
,
UBTextTools
::
cleanHtmlCData
(
QString
(
pArray
)).
to
Ascii
());
UBSvgSubsetReader
reader
(
proxy
,
UBTextTools
::
cleanHtmlCData
(
QString
(
pArray
)).
to
Latin1
());
return
reader
.
loadScene
();
}
...
...
@@ -1335,7 +1336,7 @@ void UBSvgSubsetAdaptor::UBSvgSubsetWriter::persistGroupToDom(QGraphicsItem *gro
QUuid
uuid
=
UBGraphicsScene
::
getPersonalUuid
(
groupItem
);
if
(
!
uuid
.
isNull
())
{
QDomElement
curGroupElement
=
groupDomDocument
->
createElement
(
tGroup
);
curGroupElement
.
setAttribute
(
aId
,
uuid
);
curGroupElement
.
setAttribute
(
aId
,
uuid
.
toString
()
);
UBGraphicsGroupContainerItem
*
group
=
dynamic_cast
<
UBGraphicsGroupContainerItem
*>
(
groupItem
);
if
(
group
&&
group
->
Delegate
()){
if
(
group
->
Delegate
()
->
isLocked
())
...
...
@@ -1351,7 +1352,7 @@ void UBSvgSubsetAdaptor::UBSvgSubsetWriter::persistGroupToDom(QGraphicsItem *gro
persistGroupToDom
(
item
,
curParent
,
groupDomDocument
);
else
{
QDomElement
curSubElement
=
groupDomDocument
->
createElement
(
tElement
);
curSubElement
.
setAttribute
(
aId
,
tmpUuid
);
curSubElement
.
setAttribute
(
aId
,
tmpUuid
.
toString
()
);
curGroupElement
.
appendChild
(
curSubElement
);
}
}
...
...
src/adaptors/publishing/UBDocumentPublisher.cpp
View file @
26f6de78
...
...
@@ -24,7 +24,7 @@
#include <QPushButton>
#include "UBDocumentPublisher.h"
...
...
src/api/UBW3CWidgetAPI.cpp
View file @
26f6de78
...
...
@@ -59,7 +59,7 @@ UBW3CWidgetAPI::~UBW3CWidgetAPI()
QString
UBW3CWidgetAPI
::
uuid
()
{
if
(
mGraphicsW3CWidget
)
return
mGraphicsW3CWidget
->
uuid
();
return
mGraphicsW3CWidget
->
uuid
()
.
toString
()
;
else
return
""
;
}
...
...
src/api/UBWidgetUniboardAPI.cpp
View file @
26f6de78
...
...
@@ -514,7 +514,7 @@ void UBWidgetUniboardAPI::ProcessDropEvent(QGraphicsSceneDragDropEvent *event)
QString
str
=
"test string"
;
QMimeData
mimeData
;
mimeData
.
setData
(
tMimeText
,
str
.
to
Ascii
());
mimeData
.
setData
(
tMimeText
,
str
.
to
Latin1
());
sDownloadFileDesc
desc
;
desc
.
dest
=
sDownloadFileDesc
::
graphicsWidget
;
...
...
@@ -556,7 +556,7 @@ void UBWidgetUniboardAPI::ProcessDropEvent(QGraphicsSceneDragDropEvent *event)
}
qDebug
()
<<
destFileName
;
QString
mimeText
=
createMimeText
(
downloaded
,
contentType
,
destFileName
);
dropMimeData
->
setData
(
tMimeText
,
mimeText
.
to
Ascii
());
dropMimeData
->
setData
(
tMimeText
,
mimeText
.
to
Latin1
());
event
->
setMimeData
(
dropMimeData
);
}
...
...
@@ -588,7 +588,7 @@ void UBWidgetUniboardAPI::onDownloadFinished(bool pSuccess, sDownloadFileDesc de
}
}
QString
destFileName
=
objDir
+
QUuid
::
createUuid
()
+
"."
+
extention
;
QString
destFileName
=
objDir
+
QUuid
::
createUuid
()
.
toString
()
+
"."
+
extention
;
QFile
destFile
(
destFileName
);
if
(
!
destFile
.
open
(
QIODevice
::
WriteOnly
))
{
...
...
@@ -606,7 +606,7 @@ void UBWidgetUniboardAPI::onDownloadFinished(bool pSuccess, sDownloadFileDesc de
QMimeData
dropMimeData
;
QString
mimeText
=
createMimeText
(
true
,
contentType
,
destFileName
);
dropMimeData
.
setData
(
tMimeText
,
mimeText
.
to
Ascii
());
dropMimeData
.
setData
(
tMimeText
,
mimeText
.
to
Latin1
());
destFile
.
close
();
...
...
src/board/UBBoardView.h
View file @
26f6de78
...
...
@@ -30,6 +30,9 @@
#define CONTROLVIEW_OBJ_NAME "ControlView"
#include <QtGui>
#include <QGraphicsView>
#include <QRubberBand>
#include "core/UB.h"
#include "domain/UBGraphicsDelegateFrame.h"
...
...
src/core/UBPersistenceManager.cpp
View file @
26f6de78
...
...
@@ -596,7 +596,7 @@ void UBPersistenceManager::duplicateDocumentScene(UBDocumentProxy* proxy, int in
UBGraphicsPixmapItem
*
pixmapItem
=
qgraphicsitem_cast
<
UBGraphicsPixmapItem
*>
(
item
);
if
(
pixmapItem
){
QString
source
=
proxy
->
persistencePath
()
+
"/"
+
UBPersistenceManager
::
imageDirectory
+
"/"
+
pixmapItem
->
uuid
()
+
".png"
;
QString
source
=
proxy
->
persistencePath
()
+
"/"
+
UBPersistenceManager
::
imageDirectory
+
"/"
+
pixmapItem
->
uuid
()
.
toString
()
+
".png"
;
QString
destination
=
source
;
QUuid
newUuid
=
QUuid
::
createUuid
();
QString
fileName
=
QFileInfo
(
source
).
completeBaseName
();
...
...
@@ -608,7 +608,7 @@ void UBPersistenceManager::duplicateDocumentScene(UBDocumentProxy* proxy, int in
UBGraphicsSvgItem
*
svgItem
=
qgraphicsitem_cast
<
UBGraphicsSvgItem
*>
(
item
);
if
(
svgItem
){
QString
source
=
proxy
->
persistencePath
()
+
"/"
+
UBPersistenceManager
::
imageDirectory
+
"/"
+
svgItem
->
uuid
()
+
".svg"
;
QString
source
=
proxy
->
persistencePath
()
+
"/"
+
UBPersistenceManager
::
imageDirectory
+
"/"
+
svgItem
->
uuid
()
.
toString
()
+
".svg"
;
QString
destination
=
source
;
QUuid
newUuid
=
QUuid
::
createUuid
();
QString
fileName
=
QFileInfo
(
source
).
completeBaseName
();
...
...
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