~ubuntu-branches/ubuntu/oneiric/koffice/oneiric-updates

« back to all changes in this revision

Viewing changes to krita/plugins/tools/tool_dyna/kis_tool_dyna.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
    QPointF m_mousePos;
130
130
    bool first;
131
131
 
 
132
    qreal m_surfaceWidth;
 
133
    qreal m_surfaceHeight;
 
134
    
132
135
    // settings variables
133
136
    qreal m_width;
134
137
    qreal m_curmass;
142
145
    qreal flerp(qreal f0, qreal f1, qreal p) {
143
146
        return ((f0 *(1.0 - p)) + (f1 * p));
144
147
    }
145
 
    void initMouse(const QPointF &point) {
146
 
        m_mousePos.setX(point.x() / currentImage()->width());
147
 
        m_mousePos.setY(point.y() / currentImage()->height());
 
148
    void setMousePosition(const QPointF &point) {
 
149
        m_mousePos.setX(point.x() / m_surfaceWidth );
 
150
        m_mousePos.setY(point.y() / m_surfaceHeight);
148
151
    }
149
152
 
150
153
    void initDyna();
151
154
    int applyFilter(qreal mx, qreal my);
152
 
    void drawSegment(KoPointerEvent * event);
 
155
    KoPointerEvent filterEvent(KoPointerEvent * event);
153
156
 
154
157
};
155
158