Commit graph

60 commits

Author SHA1 Message Date
Albert Astals Cid 9cbe17dbb9 Improvements to the play/pause button
In an ideal world I would have commented this in reviewboard and Saheb would
have fixed it, but Feature Freeze is almost here so I decided just to fix it myself
2014-02-24 23:30:21 +01:00
Saheb Preet Singh 921815b58b Implement a play pause button in presentation mode
REVIEW: 115072
BUGS: 328125
GUI
2014-02-24 23:30:21 +01:00
Albert Astals Cid 541650a4f4 Remove the concept of observer/view id
Just use the pointer as id :-)

This is BIC and SIC, increase the soversion now to makes sure we don't forget in the future

Patch based in an earlier patch by Bogdan Cristea <cristeab@gmail.com>
REVIEW: 109115
2013-02-24 23:01:02 +01:00
Tobias Koenig 6dddb7eff8 Adapt PageView and PresentationWidget to handle ScreenAnnotations correctly
REVIEW: 106986
2012-10-25 08:30:41 +02:00
Fabio D'Urso 8426ea944f Don't remove the drawings when changing page in presentation mode
In other words, make drawings per-page and don't delete them on page switch.
2012-09-08 19:29:28 +02:00
Tobias Koenig d3e0dadcac Introduce notifyCurrentPageChanged callback DocumentObserver interface 2012-09-06 08:46:10 +02:00
Fabio D'Urso 3a383f64fd Store and render presentation drawings at UI level instead of involving core.
This prevents spurious annotation warnings from being shown in
presentation mode.
BUG: 300938
2012-06-07 18:58:52 +02:00
Tobias Koenig 4639ded310 Implement autostart support for movie annotations
Evaluate MovieActions to implement autostart behavior for movie annotations.

REVIEW:104271
2012-04-03 14:18:10 +02:00
Tobias Koenig 486df96203 Make video player behave similar to Adobe Acroread
Hide the video player initially until the user has clicked on
the annotation area. This ensures that an available 'first-frame' image
is always visible. Also change the appearance of the mouse cursor when
the annotation area is entered.

REVIEW:104159
2012-03-12 17:20:51 +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
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 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 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
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 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 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
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 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
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 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
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 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 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 b56ad8c3ae Change the DocumentObserver::notifySetup() to allow a better tuning of the different setup options (different layout for the pages, or different document).
svn path=/trunk/KDE/kdegraphics/okular/; revision=710227
2007-09-09 10:50:36 +00:00
Pino Toscano 6cf46e9160 make the D-Bus call for the search have effect also when in presentation mode;
give focus to the presentation search toolbar when showing it

svn path=/trunk/KDE/kdegraphics/okular/; revision=656256
2007-04-20 19:45:33 +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
Christian Ehrlicher c5c2da7c89 fix win32 compilation
warnings--

svn path=/trunk/playground/graphics/okular/; revision=643874
2007-03-18 17:14:36 +00:00
Pino Toscano f55c401b20 Refactor the document search interfaces, as discussed on the mailing list.
Merge the search in normal mode and the type-ahead in a search bar that appears on the bottom of the page view. This should work nicely.
In presentation mode, add a small floating search toolbar that takes care of searching during the presentation mode, on document request. This is not working yet, but basically most of the work is done.

Please test and report any problems you find.

CCMAIL: okular-devel@kde.org

svn path=/trunk/playground/graphics/okular/; revision=643607
2007-03-17 22:58:41 +00:00
Pino Toscano 5083655c11 Implement the page duration in presentation mode, and read the info from PDF documents.
svn path=/trunk/playground/graphics/okular/; revision=618136
2006-12-31 10:48:49 +00:00
Albert Astals Cid 1987645027 fordwardport r608521
Using a singleshot timer to start the auto page change is bad because if the user changes the page manually you get more than one timer active at once and then next pages change in what seems a random time.

svn path=/trunk/playground/graphics/okular/; revision=608531
2006-11-27 20:17:11 +00:00
Albert Astals Cid ac1c0b75bc const_iterator is your friend :-)
svn path=/trunk/playground/graphics/okular/; revision=606558
2006-11-20 20:10:42 +00:00
Pino Toscano 4130ba5e49 Just like any other presentation application, now you can draw red paths on a page during the presentation mode.
Like that kind of applications, the drawings are erased when switching page and when exiting the presentation, and there is a button to explicitely clear the page.

svn path=/trunk/playground/graphics/okular/; revision=600982
2006-11-01 15:34:27 +00:00
Tobias Koenig df7d144c10 Moved all classes in core/ into the 'Okular' namespace and removed
nearly all references to kpdf (knewstuff still missing).

svn path=/trunk/playground/graphics/okular/; revision=586993
2006-09-21 08:45:36 +00:00
Pino Toscano 15ab36aac4 Add a small line edit in the top bar o the presentation mode to manually jump to any page of the current presentation.
svn path=/trunk/playground/graphics/okular/; revision=556253
2006-06-29 18:12:12 +00:00
Pino Toscano 840a526be7 Use the configured shortcuts for the PrevPage/NextPage/FirstPage/LastPage actions in the presentation mode, and for the FindNext in the find ahead of the main view.
svn path=/trunk/playground/graphics/okular/; revision=554883
2006-06-25 16:34:11 +00:00
Pino Toscano 6edb8be453 use the qt4 way of showing tooltips basing on the cursor position
svn path=/trunk/playground/graphics/okular/; revision=552119
2006-06-16 17:04:21 +00:00
Pino Toscano ce8da14d97 put the info messagebox in a delayed slot, so it won't make the presentation mode crash
trying to fix the brush colors

svn path=/branches/work/kde4/playground/graphics/okular/; revision=540502
2006-05-13 16:50:53 +00:00
Albert Astals Cid 3568d20ee7 disable the information messagebox as it making the fullscreen mode crash
remove the event function as lubos asked me to remove it from 3.5 branch time ago

svn path=/branches/work/kde4/playground/graphics/okular/; revision=540494
2006-05-13 16:34:03 +00:00
Pino Toscano 90d9ab5ba2 improve a bit
svn path=/branches/work/kde4/playground/graphics/okular/; revision=525403
2006-04-01 22:54:26 +00:00
Albert Astals Cid 2ac0ac6300 some more files that compile
svn path=/branches/work/kde4/playground/graphics/okular/; revision=522229
2006-03-24 19:35:20 +00:00
Piotr Szymanski 210a0d44a0 - backport links in presentations
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=435938
2005-07-18 17:51:27 +00:00
Enrico Ros 9c207ace30 applying patch_070,071
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=425017
2005-06-13 16:55:57 +00:00
Enrico Ros 14f5e8946e applying patch_069 [great number]
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=425014
2005-06-13 16:47:01 +00:00
Enrico Ros 451a3091cc Opening kdpf_annotations branch. Code changes:
User Interface: added a toolbox for selecting an annotation tool without
   polluting the toolbar (pageviewtoolbox animated widget). Icons of that
   toolbar are gimped version of ones in nuvola icontheme.
 Core: added annotation class. this will support all features (except for
   silly ones (really there are some!)) from pdf 1.6 specs but abstracted
   in the kdpf way. (api changes in progress...)

About annotations: only some incomplete interfaces are in plasefor now.
Every type of pdf annotations has tens of parameters. I think we'll render
correctly everything but provide only simple and useful tools for making
annotations over the pages, otherwise a 'Qt designer like' property view
will be required to do fine adjustment over the crappy thousands of
settings. (and we're aiming at a quick and simple viewer with lots of
coolness, not chaos).

Note: the code has been wrongly committed to HEAD before,but soon reverted.
Have fun!

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=388768
2005-02-12 17:42:54 +00:00