~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to krita/ui/canvas/kis_abstract_canvas_widget.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#ifndef _KIS_ABSTRACT_CANVAS_WIDGET_
19
19
#define _KIS_ABSTRACT_CANVAS_WIDGET_
20
20
 
21
 
#include <QList>
22
 
 
23
21
class QWidget;
24
22
class QRect;
25
23
class QPoint;
26
 
class QImage;
27
24
class QPainter;
28
25
class QRect;
29
26
 
30
27
class KoToolProxy;
31
28
 
32
29
class KisCanvas2;
33
 
class KisGridDrawer;
34
30
class KisCanvasDecoration;
35
31
 
36
32
class KisAbstractCanvasWidget
48
44
 
49
45
    virtual void documentOffsetMoved(const QPoint &) = 0;
50
46
 
51
 
    virtual QPoint documentOrigin() = 0;
 
47
    virtual QPoint documentOrigin() const = 0;
52
48
 
53
49
    virtual void adjustOrigin() = 0;
54
50
 
55
51
    /**
56
52
     * Draw the specified decorations on the view.
57
53
     */
58
 
    void drawDecorations(QPainter & gc, bool tools,
59
 
                         const QPoint & documentOffset,
60
 
                         const QRect & clipRect,
61
 
                         KisCanvas2 * canvas);
62
 
 
63
 
    /**
64
 
     * Returns one check of the background checkerboard pattern.
65
 
     *
66
 
     * @param checkSize the size of the check
67
 
     */
68
 
    QImage checkImage(qint32 checkSize);
69
 
    void addDecoration(KisCanvasDecoration* deco);
70
 
    KisCanvasDecoration* decoration(const QString& id);
71
 
 
72
 
private:
73
 
    QList<KisCanvasDecoration*> m_decorations;
 
54
    virtual void drawDecorations(QPainter & gc, bool tools,
 
55
                                 const QPoint & documentOffset,
 
56
                                 const QRect & clipRect,
 
57
                                 KisCanvas2 * canvas) = 0;
 
58
 
 
59
    virtual void addDecoration(KisCanvasDecoration* deco) = 0;
 
60
    virtual KisCanvasDecoration* decoration(const QString& id) = 0;
 
61
 
 
62
    virtual void setDecorations(const QList<KisCanvasDecoration*> &) = 0;
 
63
    virtual QList<KisCanvasDecoration*> decorations() = 0;
74
64
};
75
65
 
76
66
#endif // _KIS_ABSTRACT_CANVAS_WIDGET_