Changeset View
Changeset View
Standalone View
Standalone View
ui/pageview.h
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Line(s) | 120 | public Q_SLOTS: | |||
---|---|---|---|---|---|
130 | void slotSelectPage(); | 130 | void slotSelectPage(); | ||
131 | 131 | | |||
132 | Q_SIGNALS: | 132 | Q_SIGNALS: | ||
133 | void rightClick( const Okular::Page *, const QPoint & ); | 133 | void rightClick( const Okular::Page *, const QPoint & ); | ||
134 | void mouseBackButtonClick(); | 134 | void mouseBackButtonClick(); | ||
135 | void mouseForwardButtonClick(); | 135 | void mouseForwardButtonClick(); | ||
136 | void escPressed(); | 136 | void escPressed(); | ||
137 | void fitWindowToPage( const QSize& pageViewPortSize, const QSize& pageSize ); | 137 | void fitWindowToPage( const QSize& pageViewPortSize, const QSize& pageSize ); | ||
138 | void triggerSearch( const QString& text ); | ||||
138 | 139 | | |||
139 | protected: | 140 | protected: | ||
140 | bool event( QEvent * event ) override; | 141 | bool event( QEvent * event ) override; | ||
141 | 142 | | |||
142 | void resizeEvent( QResizeEvent* ) override; | 143 | void resizeEvent( QResizeEvent* ) override; | ||
143 | bool gestureEvent( QGestureEvent * e ); | 144 | bool gestureEvent( QGestureEvent * e ); | ||
144 | 145 | | |||
145 | // mouse / keyboard events | 146 | // mouse / keyboard events | ||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 163 | private: | |||
191 | void center(int cx, int cy); | 192 | void center(int cx, int cy); | ||
192 | void scrollTo( int x, int y ); | 193 | void scrollTo( int x, int y ); | ||
193 | 194 | | |||
194 | void toggleFormWidgets( bool on ); | 195 | void toggleFormWidgets( bool on ); | ||
195 | 196 | | |||
196 | void resizeContentArea( const QSize & newSize ); | 197 | void resizeContentArea( const QSize & newSize ); | ||
197 | void updatePageStep(); | 198 | void updatePageStep(); | ||
198 | 199 | | |||
200 | void addSearchWithinDocumentAction(QMenu * menu, const QString & searchText ); | ||||
199 | void addWebShortcutsMenu( QMenu * menu, const QString & text ); | 201 | void addWebShortcutsMenu( QMenu * menu, const QString & text ); | ||
200 | QMenu* createProcessLinkMenu( PageViewItem *item, const QPoint & eventPos ); | 202 | QMenu* createProcessLinkMenu( PageViewItem *item, const QPoint & eventPos ); | ||
201 | // used when selecting stuff, makes the view scroll as necessary to keep the mouse inside the view | 203 | // used when selecting stuff, makes the view scroll as necessary to keep the mouse inside the view | ||
202 | void scrollPosIntoView( const QPoint & pos ); | 204 | void scrollPosIntoView( const QPoint & pos ); | ||
203 | QPoint viewportToContentArea( const Okular::DocumentViewport & vp ) const; | 205 | QPoint viewportToContentArea( const Okular::DocumentViewport & vp ) const; | ||
204 | 206 | | |||
205 | // called from slots to turn off trim modes mutually exclusive to id | 207 | // called from slots to turn off trim modes mutually exclusive to id | ||
206 | void updateTrimMode( int except_id ); | 208 | void updateTrimMode( int except_id ); | ||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |