Albert Astals Cid
0a3f4a78a3
Fix playing of external audio files
...
QUrl::fromUserInput().isRelative() returns false for things like "sound.ogg"
because it converts it to http://sound.ogg
So we use the variant where we give it the document folder, this way if
the file exists returns the local file.
For full urls we get the full url with this second variant so all should
be good
2023-08-05 08:33:35 +00:00
Albert Astals Cid
74fad426f2
Fix phonon not being correctly detected
2023-08-03 23:57:04 +02:00
Yuri Chornoivan
419b10fbb5
Fix minor typo
2023-06-22 09:11:40 +03:00
Sune Vuorela
03368e06f4
Make phonon optional
...
In certain configurations not lugging around a multimedia framework could be preferred.
2023-06-21 15:50:58 +00:00
Sune Vuorela
907cc7fb80
Simple deprecation. KRandom
2023-05-03 07:34:45 +00:00
Volker Krause
50d0703ae0
Enable readability-braces-around-statements
2022-03-09 23:29:56 +01:00
Alexander Lohnau
2f193a63de
Convert license headers to SPDX
2021-06-10 08:11:56 +00:00
Albert Astals Cid
19d98d6a74
Run clang-format
...
find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) -exec clang-format -i {} \;
If you reached this file doing a git blame, please see README.clang-format (added 2 commits in the future of this one)
2020-07-11 09:17:33 +02:00
Laurent Montel
516fb89d94
Use camelcase include. (scripted)
2020-07-08 13:54:37 +02:00
Alexander Volkov
3311ba3a67
Use lambdas instead of QSignalMapper
...
Reviewers: #okular, aacid
Reviewed By: #okular, aacid
Subscribers: okular-devel
Tags: #okular
Differential Revision: https://phabricator.kde.org/D17481
2019-06-10 14:07:55 +03:00
Albert Astals Cid
47d7d04b5e
delete copy constructor and assignment operator of some internal classes
...
they are unused(except the PageViewItem one), but if anyone would use
them things would go wrong, so protect us from it
Actually fixes a bug in PageView::slotFitWindowToPage in which we were
copying constructing PageViewItem and that's bad
2019-01-10 00:28:49 +01:00
Yuri Chornoivan
c04ca1fa96
Fix minor EBN issues
2018-08-31 12:23:45 +03:00
Kevin Funk
a53a2402ca
clang-tidy: modernize-use-nullptr run
...
Semi-ACK'd by Albert :)
2017-09-06 00:19:48 +02:00
Lukáš Tinkl
fd6a35486e
port KUrl -> QUrl
2015-01-29 20:55:57 +01:00
Frederik Gladhorn
6c602bf0e7
Use categorized logging even more
2014-09-16 23:38:25 +02:00
Frederik Gladhorn
9d89739972
Use categorized logging
2014-09-16 23:24:36 +02:00
Frederik Gladhorn
83d3f1f6b7
Revert "Some more kDebug->qDebug"
...
Seems like kDebug doesn't spam the user, so this needs to use qCDebug.
This reverts commit 34fbdf8c85
.
2014-09-11 02:03:46 +02:00
Frederik Gladhorn
34fbdf8c85
Some more kDebug->qDebug
2014-09-09 18:17:36 +02:00
Frederik Gladhorn
0ba233788c
Use moc include style dictated by automoc
...
While it's generally not a great idea to include moc files at least this
compiles.
2014-08-09 00:21:03 +02:00
Frederik Gladhorn
75031eee7e
Fix includes
2014-08-08 01:59:55 +02:00
Egor Matirov
f98f55db9d
Extend AudioPlayer so that it gives info about if something is playing at the moment or not
...
Reviewed by Jaydeep Solanki
REVIEW: 114019
2013-11-27 23:27:30 +01:00
Montel Laurent
f9f65979f5
Normalize signals/slots
2011-07-31 21:22:04 +02:00
Pino Toscano
40d96b9cdd
remove the mapping when the playback of a sound is done
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=896747
2008-12-14 12:12:46 +00:00
Pino Toscano
1f43811f61
redirect all the debug output of core to the debug area
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=763941
2008-01-20 16:39:21 +00:00
Pino Toscano
819037c6b6
SVN_SILENT clean a bit the debug output
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=717498
2007-09-26 23:29:50 +00:00
Pino Toscano
e8bad1f69d
it seems phonon-xine can handle sound streams via data, so feel brave enough and enabling the embedded sounds code
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=717456
2007-09-26 22:14:13 +00:00
Thiago Macieira
99a7d08c6d
Remove use of k_funcinfo
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=702588
2007-08-20 21:38:21 +00:00
Matthias Kretz
4e7fa038b4
adapt to phonon-Trolltech branch API changes
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=698536
2007-08-10 09:43:33 +00:00
Pino Toscano
5150419e81
adapt the debug stuff to the new kdebug way:
...
- make the output looking more or less like before (using nospace() or removing the spaces)
- remove endl and '\n' at the end of debug outputs
- fixing the QDebug operator<<'s around
- isolate the debug area number of the core into a separate header, and apply it instead of the numbers found in textpage.cpp
svn path=/trunk/KDE/kdegraphics/okular/; revision=694667
2007-07-31 10:19:48 +00:00
Pino Toscano
a07b2ca166
Properly build the url of the external sound to be played.
...
This makes okular able to play external sounds again :)
svn path=/trunk/KDE/kdegraphics/okular/; revision=686652
2007-07-11 22:20:35 +00:00
Pino Toscano
f5c216b19c
extract the private class of AudioPlayer out of the implementation, so the Document can store the url of the current document;
...
disable the playing of external sounds for remote (non-local) documents;
simple compile fix in the embedded sound paying code
svn path=/trunk/KDE/kdegraphics/okular/; revision=686133
2007-07-10 18:24:18 +00:00
Pino Toscano
106e96240c
rename (almost) every ActionFoo class to FooAction
...
exception to this is the ActionDocumentAction, renamed to DocumentAction and whose id is DocAction
svn path=/trunk/KDE/kdegraphics/okular/; revision=660523
2007-05-02 22:50:27 +00:00
Pino Toscano
6d99240256
hopefully port to the new Phonon API
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=660038
2007-05-01 11:25:32 +00:00
Stephan Binner
d4940f5a56
fix compilation
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=659939
2007-05-01 05:28:28 +00:00
Pino Toscano
5f21b15d99
Link -> Action renaming.
...
Step #2 : Link -> Action for the action hierarchy, and for the ObjectRect type.
svn path=/trunk/KDE/kdegraphics/okular/; revision=656140
2007-04-20 12:37:12 +00:00
Pino Toscano
f3e484082d
Link -> Action renaming.
...
Step #1 : link.(cpp|h) -> action.(cpp|h)
svn path=/trunk/KDE/kdegraphics/okular/; revision=656123
2007-04-20 11:26:05 +00:00
Albert Astals Cid
0d47b62715
krazy include order issues
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
2007-04-19 18:30:20 +00:00
Pino Toscano
47dad5cac7
compile with the latest kdelibs
...
svn path=/trunk/playground/graphics/okular/; revision=630700
2007-02-06 00:53:24 +00:00
Pino Toscano
355645922b
Make the playback of repeating sounds working (hopefully).
...
Add a way to stop all the playbacks of the AudioPlayer.
svn path=/trunk/playground/graphics/okular/; revision=630500
2007-02-05 15:26:05 +00:00
Pino Toscano
770079b736
SVN_SILENT forgot this one
...
svn path=/trunk/playground/graphics/okular/; revision=630429
2007-02-05 12:05:20 +00:00
Pino Toscano
1752a95053
SVN_SILENT PlayInfo -> PlayData
...
svn path=/trunk/playground/graphics/okular/; revision=630428
2007-02-05 12:02:53 +00:00
Pino Toscano
ad1d23cc26
Honor the 'mix' flag in sounds, stopping the playing sounds if necessary.
...
svn path=/trunk/playground/graphics/okular/; revision=630424
2007-02-05 11:50:07 +00:00
Pino Toscano
1e7cb0b2eb
First version of an audio player for okular, able to play the sounds in the documents.
...
At the moment is quite simple and works only for external sounds.
Activate the sound playing when processing links and when switching pages in presentation mode only.
svn path=/trunk/playground/graphics/okular/; revision=630315
2007-02-05 00:49:40 +00:00