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

« back to all changes in this revision

Viewing changes to karbon/plugins/tools/KarbonPatternTool.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:
20
20
#ifndef _KARBONPATTERNTOOL_H_
21
21
#define _KARBONPATTERNTOOL_H_
22
22
 
23
 
#include <KoTool.h>
 
23
#include <KoToolBase.h>
24
24
#include <QtCore/QMap>
25
25
 
26
26
class QPainter;
30
30
class KoShape;
31
31
 
32
32
 
33
 
class KarbonPatternTool : public KoTool
 
33
class KarbonPatternTool : public KoToolBase
34
34
{
35
35
    Q_OBJECT
36
36
public:
37
37
    explicit KarbonPatternTool(KoCanvasBase *canvas);
38
38
    ~KarbonPatternTool();
39
39
 
40
 
    void paint( QPainter &painter, const KoViewConverter &converter );
 
40
    void paint(QPainter &painter, const KoViewConverter &converter);
41
41
    void repaintDecorations();
42
42
 
43
 
    void mousePressEvent( KoPointerEvent *event ) ;
44
 
    void mouseMoveEvent( KoPointerEvent *event );
45
 
    void mouseReleaseEvent( KoPointerEvent *event );
 
43
    void mousePressEvent(KoPointerEvent *event) ;
 
44
    void mouseMoveEvent(KoPointerEvent *event);
 
45
    void mouseReleaseEvent(KoPointerEvent *event);
46
46
    void keyPressEvent(QKeyEvent *event);
47
47
 
48
 
    void activate (bool temporary=false);
 
48
    virtual void activate(ToolActivation toolActivation, const QSet<KoShape*> &shapes);
49
49
    void deactivate();
50
50
 
51
51
protected:
52
52
    virtual QMap<QString, QWidget *> createOptionWidgets();
53
53
 
54
54
private slots:
55
 
    virtual void resourceChanged( int key, const QVariant & res );
56
 
    void patternSelected( KoResource * resource );
 
55
    virtual void resourceChanged(int key, const QVariant & res);
 
56
    void patternSelected(KoResource * resource);
57
57
    void initialize();
58
58
    /// updates options widget from selected pattern
59
59
    void updateOptionsWidget();