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
f1d7b152
Commit
f1d7b152
authored
Jun 04, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed video path
parent
aef7e56e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
12 deletions
+4
-12
UBCFFSubsetAdaptor.cpp
src/adaptors/UBCFFSubsetAdaptor.cpp
+0
-5
UBSvgSubsetAdaptor.cpp
src/adaptors/UBSvgSubsetAdaptor.cpp
+2
-0
UBBoardController.cpp
src/board/UBBoardController.cpp
+0
-5
UBPersistenceManager.cpp
src/core/UBPersistenceManager.cpp
+2
-2
No files found.
src/adaptors/UBCFFSubsetAdaptor.cpp
View file @
f1d7b152
...
@@ -853,13 +853,8 @@ bool UBCFFSubsetAdaptor::UBCFFSubsetReader::parseSvgVideo(const QDomElement &ele
...
@@ -853,13 +853,8 @@ bool UBCFFSubsetAdaptor::UBCFFSubsetReader::parseSvgVideo(const QDomElement &ele
QUuid
uuid
=
QUuid
::
createUuid
();
QUuid
uuid
=
QUuid
::
createUuid
();
#ifdef Q_WS_X11
concreteUrl
=
QUrl
::
fromLocalFile
(
mCurrentScene
->
document
()
->
persistencePath
()
+
"/"
+
UBPersistenceManager
::
persistenceManager
()
->
addVideoFileToDocument
(
mCurrentScene
->
document
(),
concreteUrl
.
toLocalFile
(),
uuid
));
#else
concreteUrl
=
QUrl
::
fromLocalFile
(
UBPersistenceManager
::
persistenceManager
()
concreteUrl
=
QUrl
::
fromLocalFile
(
UBPersistenceManager
::
persistenceManager
()
->
addVideoFileToDocument
(
mCurrentScene
->
document
(),
concreteUrl
.
toLocalFile
(),
uuid
));
->
addVideoFileToDocument
(
mCurrentScene
->
document
(),
concreteUrl
.
toLocalFile
(),
uuid
));
#endif
UBGraphicsVideoItem
*
videoItem
=
mCurrentScene
->
addVideo
(
concreteUrl
,
false
);
UBGraphicsVideoItem
*
videoItem
=
mCurrentScene
->
addVideo
(
concreteUrl
,
false
);
QTransform
transform
;
QTransform
transform
;
...
...
src/adaptors/UBSvgSubsetAdaptor.cpp
View file @
f1d7b152
...
@@ -1833,6 +1833,8 @@ void UBSvgSubsetAdaptor::UBSvgSubsetWriter::videoItemToLinkedVideo(UBGraphicsVid
...
@@ -1833,6 +1833,8 @@ void UBSvgSubsetAdaptor::UBSvgSubsetWriter::videoItemToLinkedVideo(UBGraphicsVid
}
}
QString
videoFileHref
=
videoItem
->
mediaFileUrl
().
toString
();
QString
videoFileHref
=
videoItem
->
mediaFileUrl
().
toString
();
if
(
videoFileHref
.
startsWith
(
"file://"
))
videoFileHref
=
videoFileHref
.
replace
(
"file://"
+
mDocumentPath
+
"/"
,
""
);
mXmlWriter
.
writeAttribute
(
nsXLink
,
"href"
,
videoFileHref
);
mXmlWriter
.
writeAttribute
(
nsXLink
,
"href"
,
videoFileHref
);
mXmlWriter
.
writeEndElement
();
mXmlWriter
.
writeEndElement
();
}
}
...
...
src/board/UBBoardController.cpp
View file @
f1d7b152
...
@@ -1753,13 +1753,8 @@ UBGraphicsVideoItem* UBBoardController::addVideo(const QUrl& pSourceUrl, bool st
...
@@ -1753,13 +1753,8 @@ UBGraphicsVideoItem* UBBoardController::addVideo(const QUrl& pSourceUrl, bool st
QUuid
uuid
=
QUuid
::
createUuid
();
QUuid
uuid
=
QUuid
::
createUuid
();
QUrl
concreteUrl
=
pSourceUrl
;
QUrl
concreteUrl
=
pSourceUrl
;
#ifdef Q_WS_X11
concreteUrl
=
QUrl
::
fromLocalFile
(
mActiveDocument
->
persistencePath
()
+
"/"
+
UBPersistenceManager
::
persistenceManager
()
->
addVideoFileToDocument
(
mActiveDocument
,
pSourceUrl
.
toLocalFile
(),
uuid
));
#else
concreteUrl
=
QUrl
::
fromLocalFile
(
UBPersistenceManager
::
persistenceManager
()
concreteUrl
=
QUrl
::
fromLocalFile
(
UBPersistenceManager
::
persistenceManager
()
->
addVideoFileToDocument
(
mActiveDocument
,
pSourceUrl
.
toLocalFile
(),
uuid
));
->
addVideoFileToDocument
(
mActiveDocument
,
pSourceUrl
.
toLocalFile
(),
uuid
));
#endif
UBGraphicsVideoItem
*
vi
=
mActiveScene
->
addVideo
(
concreteUrl
,
startPlay
,
pos
);
UBGraphicsVideoItem
*
vi
=
mActiveScene
->
addVideo
(
concreteUrl
,
startPlay
,
pos
);
mActiveDocument
->
setMetaData
(
UBSettings
::
documentUpdatedAt
,
UBStringUtils
::
toUtcIsoDateTime
(
QDateTime
::
currentDateTime
()));
mActiveDocument
->
setMetaData
(
UBSettings
::
documentUpdatedAt
,
UBStringUtils
::
toUtcIsoDateTime
(
QDateTime
::
currentDateTime
()));
...
...
src/core/UBPersistenceManager.cpp
View file @
f1d7b152
...
@@ -840,7 +840,7 @@ QString UBPersistenceManager::addVideoFileToDocument(UBDocumentProxy* pDocumentP
...
@@ -840,7 +840,7 @@ QString UBPersistenceManager::addVideoFileToDocument(UBDocumentProxy* pDocumentP
}
}
return
fileName
;
return
destPath
;
}
}
...
@@ -872,7 +872,7 @@ QString UBPersistenceManager::addVideoFileToDocument(UBDocumentProxy* pDocumentP
...
@@ -872,7 +872,7 @@ QString UBPersistenceManager::addVideoFileToDocument(UBDocumentProxy* pDocumentP
}
}
}
}
return
fileName
;
return
destPath
;
}
}
...
...
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