Commit graph

170 commits

Author SHA1 Message Date
Albert Astals Cid 4d8ba36488 Add greedy preloading option
Based on a patch by Sebastian Rose <s.rose@semkath.de>
REVIEW: 103129
BUGS: 184196
2012-03-09 00:12:20 +01:00
Dario Freddi ca1c209ec0 Since KDE 4.8, suppressing screen power management also inhibits the screensaver. Removing relevant now redundant code paths which are no longer needed since 4.8
REVIEW:103723
(cherry picked from commit 551d00a972)
2012-01-18 21:36:22 +01:00
Dario Freddi bc182d3a00 Make Okular inhibit sleep and screen power management when in Presentation mode
REVIEW:103713
(cherry picked from commit 1a31dffca9)
2012-01-18 01:14:57 +01:00
Montel Laurent f9f65979f5 Normalize signals/slots 2011-07-31 21:22:04 +02:00
Christopher Reichert 5be0a98725 added proper KStandardAction's in presentationwidget.cpp 2011-06-19 11:22:29 -05:00
Christopher Reichert 831294d3dc presentation widget allows "back in document".
Back in document and forward in document are not added to
the action of the presentation widget.

CCBUG: 271462
2011-06-19 10:45:47 -05:00
Laurent Montel a86bbe9053 Use QLatin1String
svn path=/trunk/KDE/kdegraphics/okular/; revision=1178207
2010-09-22 11:52:46 +00:00
Albert Astals Cid 89f0eb01fb Factor out static methods for determining the event type and button when dealing with annotations
Patch by Radu Voicilas

svn path=/trunk/KDE/kdegraphics/okular/; revision=1165294
2010-08-18 19:14:54 +00:00
Glen Kaukola b72c292f1a Okular: in presentation mode, disable mouse clicks on the overlay if mouse cursor is hidden.
svn path=/trunk/KDE/kdegraphics/okular/; revision=1110337
2010-04-02 19:20:54 +00:00
Glen Kaukola 45c82f8636 Krazy: Check for spelling errors
svn path=/trunk/KDE/kdegraphics/okular/; revision=1110329
2010-04-02 18:49:13 +00:00
Albert Astals Cid 9771a06f0d bring back the leaveEvent as as pino noted its is needed for multimonitor setups
svn path=/trunk/KDE/kdegraphics/okular/; revision=1109218
2010-03-30 19:59:59 +00:00
Glen Kaukola fd4d90173b Okular: presentationwidget.cpp, added the "// </widget events>" comment back that was accidentally removed.
svn path=/trunk/KDE/kdegraphics/okular/; revision=1109212
2010-03-30 19:45:48 +00:00
Glen Kaukola 185f4f2a58 Okular: when in presentation mode, prevent hovering over a tooltip from hiding the top toolbar.
svn path=/trunk/KDE/kdegraphics/okular/; revision=1109210
2010-03-30 19:40:00 +00:00
Glen Kaukola f675421c89 Okular presentation mode pencil cursor fix: when in drawing mode a left mouse button release over a link shouldn't change the mouse cursor.
svn path=/trunk/KDE/kdegraphics/okular/; revision=1108918
2010-03-30 05:14:21 +00:00
Glen Kaukola 270d9c6cce Show mouse cursor if it's over the top toolbar, even if the hidden mouse cursor option is enabled.
Also makes sure the pencil mouse cursor stays on if drawing mode is on and hidden mouse is enabled.

svn path=/trunk/KDE/kdegraphics/okular/; revision=1108916
2010-03-30 04:47:29 +00:00
Glen Kaukola 337def100c Disable mouse cursor autohide when the cursor is over the top toolbar.
BUG: 229433

svn path=/trunk/KDE/kdegraphics/okular/; revision=1108908
2010-03-30 04:03:00 +00:00
Glen Kaukola f9353fd482 Fix so that the okular presentation window grabs the focus right away when it's created so that mouse auto-hide works if enabled.
svn path=/trunk/KDE/kdegraphics/okular/; revision=1108269
2010-03-28 12:25:35 +00:00
Jonathan Schmidt-Dominé 3fad1f66b5 Old Presentation-Mode (the small CMakeLists-change was kept)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1047244
2009-11-10 19:07:23 +00:00
Jonathan Schmidt-Dominé d6ad4b9b31 Better Presentationmode:
-more intuitive computation of the speed
-play/pause
-change the speed from presentation-mode
Contact me on the mailing-list if you do not like it!


svn path=/trunk/KDE/kdegraphics/okular/; revision=1046853
2009-11-09 20:58:33 +00:00
Pino Toscano f04afe8220 hide the top bar when moving out of the presentation widget
for example when moving the cursor to another screen

svn path=/trunk/KDE/kdegraphics/okular/; revision=1032482
2009-10-07 22:28:06 +00:00
Pino Toscano 077868de22 add a "Presentation" marker in presentation window titles
BUG: 193049

svn path=/trunk/KDE/kdegraphics/okular/; revision=1002256
2009-07-25 14:23:30 +00:00
Pino Toscano 85f5f975db small usability improvement: remove any margin in the topbar of the presentation mode
this way, you can drop the mouse to the upper-right corner to find the exit button (fitts++)

svn path=/trunk/KDE/kdegraphics/okular/; revision=939309
2009-03-14 16:03:06 +00:00
Pino Toscano 1121799376 make sure to attach to the document also when a resize event is received prior of a paint event, hopefully fixing #180291
thanks Roman Cheplyaka for the testing!

BUG: 180291

svn path=/trunk/KDE/kdegraphics/okular/; revision=936560
2009-03-07 22:13:06 +00:00
Pino Toscano 6a41e324a5 Add Up (previous page) and Down (next page) keys for presentation mode.
Will be in KDE 4.3 and KDE 4.2.2.
CCBUG: 184095

svn path=/trunk/KDE/kdegraphics/okular/; revision=933720
2009-03-01 14:37:00 +00:00
Pino Toscano 41a9e20722 turn a sequence of if() into a single switch()
svn path=/trunk/KDE/kdegraphics/okular/; revision=933710
2009-03-01 14:32:24 +00:00
Pino Toscano 77d027bac0 save the real parent widget and use it later for getting the screen number of the okular application
BUG: 185013

svn path=/trunk/KDE/kdegraphics/okular/; revision=928888
2009-02-20 11:17:54 +00:00
Albert Astals Cid 53a9e0528e don't process mouse presses, wheels until the widget has been painted at least once as it initializes some stuff we need
svn path=/trunk/KDE/kdegraphics/okular/; revision=909668
2009-01-12 00:01:07 +00:00
Pino Toscano 9d1977d645 Resize accordingly when we are resized from "outside" (eg by the WM).
BUG: 173545

svn path=/trunk/KDE/kdegraphics/okular/; revision=890639
2008-11-29 17:45:25 +00:00
Pino Toscano a6bfc8bbdc be sure to toggle the drawing mode when exiting from presentation, if checked
svn path=/trunk/KDE/kdegraphics/okular/; revision=890518
2008-11-29 13:54:31 +00:00
Pino Toscano 5d10ae58c6 Pass the action collection directly in the ctor of the presentation widget, so we can use its actions there too.
As result, move the creation of the drawing actions in the main kpart and just plug them, so their shortcut can be configured.
BUG: 175545

svn path=/trunk/KDE/kdegraphics/okular/; revision=890504
2008-11-29 13:50:37 +00:00
Pino Toscano 5d94111ce8 i18n fixes
svn path=/trunk/KDE/kdegraphics/okular/; revision=886194
2008-11-18 18:50:50 +00:00
Laurent Montel c2fc9836e8 Fix iterator
svn path=/trunk/KDE/kdegraphics/okular/; revision=882957
2008-11-11 18:48:40 +00:00
Enrique Matías Sánchez a8ea861f36 SVN_SILENT Fix typos in kdegraphics
svn path=/trunk/KDE/kdegraphics/okular/; revision=875357
2008-10-24 07:10:18 +00:00
Tobias Koenig d34f0bc814 Add blackscreen mode feature to presentation mode.
Now you can switch the screen to black during a presentation
to e.g. write something on the projection wall.

svn path=/trunk/KDE/kdegraphics/okular/; revision=859741
2008-09-11 08:40:00 +00:00
Tobias Koenig a46ba69aa9 Feature: Inhibit screen saver during presentation mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=854939
2008-08-30 17:31:59 +00:00
Pino Toscano 6a09a31aee use the right page size when placing videos in presentation mode: not the global screen one, but the newly calculated page item one
svn path=/trunk/KDE/kdegraphics/okular/; revision=852302
2008-08-25 18:27:19 +00:00
Pino Toscano da420dbcd3 Presentation mode: load the video widgets for the video annotations in the document, and show only the ones for the current slide.
svn path=/trunk/KDE/kdegraphics/okular/; revision=851958
2008-08-25 01:41:41 +00:00
Jakob Petsovits df5364da6c Copy Okular's app icon from Oxygen core as "okular",
in the hicolor namespace. Before, the non-specified
"graphics-viewer-document" icon was used, which caused
icon loaders from other toolkits not to find this icon
as they don't consider Oxygen by default.

Also update all the references that made use of the
"graphics-viewer-document" icon in the code and
the many .desktop files.

svn path=/trunk/KDE/kdegraphics/okular/; revision=819965
2008-06-12 18:51:36 +00:00
Pino Toscano c569aa712e Make the presentation mode a normal widget (instead of a "fake" dialog), so it is not treated like a real dialog when compositing is active.
BUG: 163013

While I am on it, disable the active modality of the presentation mode, so the main window can be actively used once a presentation is active.
CCBUG: 152585

svn path=/trunk/KDE/kdegraphics/okular/; revision=817703
2008-06-06 17:22:19 +00:00
Albert Astals Cid bdd4fa1c0d make sure we keep next and previous pages if we are on aggresive mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=803592
2008-05-03 12:34:49 +00:00
Pino Toscano c123fd1aa7 when we are requested to paint but the pixmap has not been rendered yet, fill the paint area with the background color
svn path=/trunk/KDE/kdegraphics/okular/; revision=797553
2008-04-16 11:12:21 +00:00
Pino Toscano f655fbbb56 isolate the good screen change code snippet in an own function, and use that one from the size change event as well
this reduces the code, and fixes a problem with screen switch then size change sequences

svn path=/trunk/KDE/kdegraphics/okular/; revision=795896
2008-04-11 20:41:22 +00:00
Pino Toscano c59f9b0ec7 Properly invalidate (as quick'n'dirty solution) the rendered page pixmap when the size is changed (new screen resolution).
Now screen resizing or screen switching in presentation mode should work without artifacts.

svn path=/trunk/KDE/kdegraphics/okular/; revision=795891
2008-04-11 19:53:59 +00:00
Pino Toscano d6518cec86 Add the possibility to select the current screen as start of the presentation mode, and make that the default (as one would expect).
GUI:

(futhermore, use an explicit value as screen index)

svn path=/trunk/KDE/kdegraphics/okular/; revision=795880
2008-04-11 18:25:15 +00:00
Pino Toscano b81c942b12 Multi-screen improvement for the presentation mode:
When there is more than one screen available, add a popup menu in the toolbar to dynamically move the presentation widget to another of the available screens.
GUI:

Many thanks go again to Zbigniew Szymanski for his really precious testing!
CCMAIL: zbigniewo@gmail.com

svn path=/trunk/KDE/kdegraphics/okular/; revision=795239
2008-04-09 15:05:08 +00:00
Pino Toscano 6ec6ba9725 When the size of the current screen changes, resize the frames accordingly, and re-request the pixmap for the current slide.
svn path=/trunk/KDE/kdegraphics/okular/; revision=795226
2008-04-09 14:04:39 +00:00
Pino Toscano ffee5881d7 schedule the repaint for the overlay widget, but do not force it
svn path=/trunk/KDE/kdegraphics/okular/; revision=794505
2008-04-07 18:34:33 +00:00
Pino Toscano 1817a198d0 Add the possibility to choose which screen to use for the presentation mode.
Default is "Default Screen", with the options for showing it to any available screen.

Also, dynamically resize when the screen used for the presentation mode changes size during a presentation.

Many thanks to 'zbsz' for his testing!
CCMAIL: zbigniewo@gmail.com

GUI:

svn path=/trunk/KDE/kdegraphics/okular/; revision=794501
2008-04-07 18:16:39 +00:00
Pino Toscano 6672443f43 Add an option to disable page transitions in presentation mode.
Implements KPDF wish #119919.

svn path=/trunk/KDE/kdegraphics/okular/; revision=785173
2008-03-13 13:00:37 +00:00
Albert Astals Cid 87fe7f277a Revert r602310: usability fix: mouse wheel up goes to the next page, not to the previous (and viceversa for mouse wheel down)
Florian agrees

BUG: 156880


svn path=/trunk/KDE/kdegraphics/okular/; revision=768317
2008-01-29 19:13:08 +00:00