Changeset View
Changeset View
Standalone View
Standalone View
ui/presentationwidget.h
Show All 31 Lines | |||||
32 | 32 | | |||
33 | namespace Okular { | 33 | namespace Okular { | ||
34 | class Action; | 34 | class Action; | ||
35 | class Annotation; | 35 | class Annotation; | ||
36 | class Document; | 36 | class Document; | ||
37 | class MovieAction; | 37 | class MovieAction; | ||
38 | class Page; | 38 | class Page; | ||
39 | class RenditionAction; | 39 | class RenditionAction; | ||
40 | class Mpris2Service; | ||||
40 | } | 41 | } | ||
41 | 42 | | |||
42 | /** | 43 | /** | ||
43 | * @short A widget that shows pages as fullscreen slides (with transitions fx). | 44 | * @short A widget that shows pages as fullscreen slides (with transitions fx). | ||
44 | * | 45 | * | ||
45 | * This is a fullscreen widget that displays | 46 | * This is a fullscreen widget that displays | ||
46 | */ | 47 | */ | ||
47 | class PresentationWidget : public QWidget, public Okular::DocumentObserver | 48 | class PresentationWidget : public QWidget, public Okular::DocumentObserver | ||
48 | { | 49 | { | ||
49 | Q_OBJECT | 50 | Q_OBJECT | ||
50 | public: | 51 | public: | ||
51 | PresentationWidget( QWidget * parent, Okular::Document * doc, DrawingToolActions * drawingToolActions, KActionCollection * collection ); | 52 | PresentationWidget( QWidget * parent, Okular::Document * doc, DrawingToolActions * drawingToolActions, KActionCollection * collection ); | ||
52 | ~PresentationWidget(); | 53 | ~PresentationWidget(); | ||
53 | 54 | | |||
54 | // inherited from DocumentObserver | 55 | // inherited from DocumentObserver | ||
55 | void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ) override; | 56 | void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags ) override; | ||
56 | void notifyViewportChanged( bool smoothMove ) override; | 57 | void notifyViewportChanged( bool smoothMove ) override; | ||
57 | void notifyPageChanged( int pageNumber, int changedFlags ) override; | 58 | void notifyPageChanged( int pageNumber, int changedFlags ) override; | ||
58 | bool canUnloadPixmap( int pageNumber ) const override; | 59 | bool canUnloadPixmap( int pageNumber ) const override; | ||
59 | void notifyCurrentPageChanged( int previous, int current ) override; | 60 | void notifyCurrentPageChanged( int previous, int current ) override; | ||
60 | 61 | | |||
62 | bool isAdvancingSlides() const; | ||||
63 | | ||||
61 | public Q_SLOTS: | 64 | public Q_SLOTS: | ||
62 | void slotFind(); | 65 | void slotFind(); | ||
63 | 66 | | |||
67 | Q_SIGNALS: | ||||
68 | void advancingSlidesChanged(bool isAdvancingSlides); | ||||
69 | | ||||
64 | protected: | 70 | protected: | ||
65 | // widget events | 71 | // widget events | ||
66 | bool event( QEvent * e ) override; | 72 | bool event( QEvent * e ) override; | ||
67 | void keyPressEvent( QKeyEvent * e ) override; | 73 | void keyPressEvent( QKeyEvent * e ) override; | ||
68 | void wheelEvent( QWheelEvent * e ) override; | 74 | void wheelEvent( QWheelEvent * e ) override; | ||
69 | void mousePressEvent( QMouseEvent * e ) override; | 75 | void mousePressEvent( QMouseEvent * e ) override; | ||
70 | void mouseReleaseEvent( QMouseEvent * e ) override; | 76 | void mouseReleaseEvent( QMouseEvent * e ) override; | ||
71 | void mouseMoveEvent( QMouseEvent * e ) override; | 77 | void mouseMoveEvent( QMouseEvent * e ) override; | ||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 83 | private: | |||
136 | int m_frameIndex; | 142 | int m_frameIndex; | ||
137 | QStringList m_metaStrings; | 143 | QStringList m_metaStrings; | ||
138 | QToolBar * m_topBar; | 144 | QToolBar * m_topBar; | ||
139 | QLineEdit *m_pagesEdit; | 145 | QLineEdit *m_pagesEdit; | ||
140 | PresentationSearchBar *m_searchBar; | 146 | PresentationSearchBar *m_searchBar; | ||
141 | KActionCollection * m_ac; | 147 | KActionCollection * m_ac; | ||
142 | KSelectAction * m_screenSelect; | 148 | KSelectAction * m_screenSelect; | ||
143 | QDomElement m_currentDrawingToolElement; | 149 | QDomElement m_currentDrawingToolElement; | ||
150 | Okular::Mpris2Service *m_mpris2Service; | ||||
144 | bool m_isSetup; | 151 | bool m_isSetup; | ||
145 | bool m_blockNotifications; | 152 | bool m_blockNotifications; | ||
146 | bool m_inBlackScreenMode; | 153 | bool m_inBlackScreenMode; | ||
147 | bool m_showSummaryView; | 154 | bool m_showSummaryView; | ||
148 | bool m_advanceSlides; | 155 | bool m_advanceSlides; | ||
149 | bool m_goToNextPageOnRelease; | 156 | bool m_goToNextPageOnRelease; | ||
150 | 157 | | |||
151 | private Q_SLOTS: | 158 | private Q_SLOTS: | ||
Show All 20 Lines |