43
45
* Handles all DocumentView specific actions like zooming. Calls the
44
46
* corresponding code on its view, if any.
46
class GWENVIEWLIB_EXPORT DocumentViewController : public QObject {
48
class GWENVIEWLIB_EXPORT DocumentViewController : public QObject
49
DocumentViewController(KActionCollection*, QObject* parent=0);
50
~DocumentViewController();
52
DocumentView* view() const;
53
ZoomWidget* zoomWidget() const;
55
void setView(DocumentView*);
56
void setZoomWidget(ZoomWidget* widget);
59
bool eventFilter(QObject*, QEvent*);
52
DocumentViewController(KActionCollection*, QObject* parent = 0);
53
~DocumentViewController();
55
DocumentView* view() const;
56
ZoomWidget* zoomWidget() const;
58
void setView(DocumentView*);
59
void setZoomWidget(ZoomWidget* widget);
61
void setToolContainer(SlideContainer* container);
62
void slotAdapterChanged();
63
void updateZoomToFitActionFromView();
64
void slotAdapterChanged();
65
void updateZoomToFitActionFromView();
66
DocumentViewControllerPrivate* const d;
69
DocumentViewControllerPrivate* const d;
72
74
#endif /* DOCUMENTVIEWCONTROLLER_H */