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

« back to all changes in this revision

Viewing changes to Interaction/CreateSingleWayInteraction.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_INTERACTION_CREATESINGLEWAYINTERACTION_H
2
 
#define MERKATOR_INTERACTION_CREATESINGLEWAYINTERACTION_H
3
 
 
4
 
#include "Interaction/Interaction.h"
5
 
 
6
 
class MainWindow;
7
 
class Road;
8
 
class Way;
9
 
 
10
 
class QDockWidget;
11
 
 
12
 
class CreateSingleWayInteraction : public GenericFeatureSnapInteraction<MapFeature>
13
 
{
14
 
        Q_OBJECT
15
 
 
16
 
        public:
17
 
                CreateSingleWayInteraction(MainWindow* Main, MapView* aView, TrackPoint * firstNode, bool aCurved);
18
 
                ~CreateSingleWayInteraction();
19
 
 
20
 
                virtual void snapMousePressEvent(QMouseEvent * event, MapFeature* aLast);
21
 
                virtual void snapMouseReleaseEvent(QMouseEvent * event, MapFeature* aLast);
22
 
                virtual void snapMouseMoveEvent(QMouseEvent* event, MapFeature* aLast);
23
 
                virtual void paintEvent(QPaintEvent* anEvent, QPainter& thePainter);
24
 
                virtual QCursor cursor() const;
25
 
                
26
 
        private:
27
 
                MainWindow* Main;
28
 
                QPointF LastCursor;
29
 
                Road* theRoad;
30
 
                Coord FirstPoint;
31
 
                TrackPoint* FirstNode;
32
 
                bool HaveFirst;
33
 
                bool Prepend;
34
 
                bool IsCurved;
35
 
                bool Creating;
36
 
};
37
 
 
38
 
#endif // INTERACTION\CREATEDOUBLEWAYINTERACTION_H