~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to lib/documentview/documentviewcontroller.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// vim: set tabstop=4 shiftwidth=4 noexpandtab:
 
1
// vim: set tabstop=4 shiftwidth=4 expandtab:
2
2
/*
3
3
Gwenview: an image viewer
4
4
Copyright 2011 Aurélien Gâteau <agateau@kde.org>
32
32
 
33
33
class KActionCollection;
34
34
 
35
 
namespace Gwenview {
 
35
namespace Gwenview
 
36
{
36
37
 
37
38
class DocumentView;
 
39
class SlideContainer;
38
40
class ZoomWidget;
39
41
 
40
42
class DocumentViewControllerPrivate;
43
45
 * Handles all DocumentView specific actions like zooming. Calls the
44
46
 * corresponding code on its view, if any.
45
47
 */
46
 
class GWENVIEWLIB_EXPORT DocumentViewController : public QObject {
47
 
        Q_OBJECT
 
48
class GWENVIEWLIB_EXPORT DocumentViewController : public QObject
 
49
{
 
50
    Q_OBJECT
48
51
public:
49
 
        DocumentViewController(KActionCollection*, QObject* parent=0);
50
 
        ~DocumentViewController();
51
 
 
52
 
        DocumentView* view() const;
53
 
        ZoomWidget* zoomWidget() const;
54
 
 
55
 
        void setView(DocumentView*);
56
 
        void setZoomWidget(ZoomWidget* widget);
57
 
 
58
 
protected:
59
 
        bool eventFilter(QObject*, QEvent*);
 
52
    DocumentViewController(KActionCollection*, QObject* parent = 0);
 
53
    ~DocumentViewController();
 
54
 
 
55
    DocumentView* view() const;
 
56
    ZoomWidget* zoomWidget() const;
 
57
 
 
58
    void setView(DocumentView*);
 
59
    void setZoomWidget(ZoomWidget* widget);
 
60
 
 
61
    void setToolContainer(SlideContainer* container);
60
62
 
61
63
private Q_SLOTS:
62
 
        void slotAdapterChanged();
63
 
        void updateZoomToFitActionFromView();
 
64
    void slotAdapterChanged();
 
65
    void updateZoomToFitActionFromView();
 
66
    void updateTool();
64
67
 
65
68
private:
66
 
        DocumentViewControllerPrivate* const d;
 
69
    DocumentViewControllerPrivate* const d;
67
70
};
68
71
 
69
 
 
70
72
} // namespace
71
73
 
72
74
#endif /* DOCUMENTVIEWCONTROLLER_H */