~ubuntu-branches/ubuntu/saucy/merkaartor/saucy

« back to all changes in this revision

Viewing changes to src/Interaction/ZoomInteraction.h

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Zeimetz
  • Date: 2009-09-13 00:52:12 UTC
  • mto: (1.2.7 upstream) (0.1.3 upstream) (3.1.7 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20090913005212-pjecal8zxm07x0fj
ImportĀ upstreamĀ versionĀ 0.14+svnfixes~20090912

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef MERKATOR_ZOOMINTERACTION_H_
 
2
#define MERKATOR_ZOOMINTERACTION_H_
 
3
 
 
4
#include "Interaction/Interaction.h"
 
5
 
 
6
#include <QtCore/QPointF>
 
7
 
 
8
class MapView;
 
9
 
 
10
class ZoomInteraction : public Interaction
 
11
{
 
12
        public:
 
13
                ZoomInteraction(MapView* aView);
 
14
                ~ZoomInteraction();
 
15
 
 
16
                virtual void mouseReleaseEvent(QMouseEvent * event);
 
17
                virtual void mouseMoveEvent(QMouseEvent* event);
 
18
                virtual void paintEvent(QPaintEvent* anEvent, QPainter& thePainter);
 
19
                virtual QString toHtml();
 
20
#ifndef Q_OS_SYMBIAN
 
21
                virtual QCursor cursor() const;
 
22
#endif
 
23
 
 
24
        private:
 
25
                bool HaveFirstPoint;
 
26
                QPointF P1, P2;
 
27
};
 
28
 
 
29
#endif
 
30
 
 
31