Changeset View
Changeset View
Standalone View
Standalone View
ui/pageview.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | |||||
57 | class PageView : public QAbstractScrollArea, public Okular::DocumentObserver, public Okular::View | 57 | class PageView : public QAbstractScrollArea, public Okular::DocumentObserver, public Okular::View | ||
58 | { | 58 | { | ||
59 | Q_OBJECT | 59 | Q_OBJECT | ||
60 | 60 | | |||
61 | public: | 61 | public: | ||
62 | PageView( QWidget *parent, Okular::Document *document ); | 62 | PageView( QWidget *parent, Okular::Document *document ); | ||
63 | ~PageView(); | 63 | ~PageView(); | ||
64 | 64 | | |||
65 | // Zoom mode ( last 3 are internally used only! ) | 65 | // Zoom mode ( last 4 are internally used only! ) | ||
66 | enum ZoomMode { ZoomFixed = 0, ZoomFitWidth = 1, ZoomFitPage = 2, ZoomFitAuto = 3, | 66 | enum ZoomMode { ZoomFixed = 0, ZoomFitWidth = 1, ZoomFitPage = 2, ZoomFitAuto = 3, | ||
67 | ZoomIn, ZoomOut, ZoomRefreshCurrent }; | 67 | ZoomIn, ZoomOut, ZoomRefreshCurrent, ZoomActual }; | ||
68 | 68 | | |||
69 | enum ClearMode { ClearAllSelection, ClearOnlyDividers }; | 69 | enum ClearMode { ClearAllSelection, ClearOnlyDividers }; | ||
70 | 70 | | |||
71 | // create actions that interact with this widget | 71 | // create actions that interact with this widget | ||
72 | void setupBaseActions( KActionCollection * collection ); | 72 | void setupBaseActions( KActionCollection * collection ); | ||
73 | void setupViewerActions( KActionCollection * collection ); | 73 | void setupViewerActions( KActionCollection * collection ); | ||
74 | void setupActions( KActionCollection * collection ); | 74 | void setupActions( KActionCollection * collection ); | ||
75 | void updateActionState( bool docHasPages, bool docChanged, bool docHasFormWidgets ); | 75 | void updateActionState( bool docHasPages, bool docChanged, bool docHasFormWidgets ); | ||
▲ Show 20 Lines • Show All 156 Lines • ▼ Show 20 Line(s) | 213 | private Q_SLOTS: | |||
232 | 232 | | |||
233 | void slotHandleWebShortcutAction(); | 233 | void slotHandleWebShortcutAction(); | ||
234 | void slotConfigureWebShortcuts(); | 234 | void slotConfigureWebShortcuts(); | ||
235 | 235 | | |||
236 | // connected to local actions (toolbar, menu, ..) | 236 | // connected to local actions (toolbar, menu, ..) | ||
237 | void slotZoom(); | 237 | void slotZoom(); | ||
238 | void slotZoomIn(); | 238 | void slotZoomIn(); | ||
239 | void slotZoomOut(); | 239 | void slotZoomOut(); | ||
240 | void slotZoomActual(); | ||||
240 | void slotFitToWidthToggled( bool ); | 241 | void slotFitToWidthToggled( bool ); | ||
241 | void slotFitToPageToggled( bool ); | 242 | void slotFitToPageToggled( bool ); | ||
242 | void slotAutoFitToggled( bool ); | 243 | void slotAutoFitToggled( bool ); | ||
243 | void slotViewMode( QAction *action ); | 244 | void slotViewMode( QAction *action ); | ||
244 | void slotContinuousToggled( bool ); | 245 | void slotContinuousToggled( bool ); | ||
245 | void slotSetMouseNormal(); | 246 | void slotSetMouseNormal(); | ||
246 | void slotSetMouseZoom(); | 247 | void slotSetMouseZoom(); | ||
247 | void slotSetMouseMagnifier(); | 248 | void slotSetMouseMagnifier(); | ||
Show All 33 Lines |