Changeset 15 in flair-src for trunk/tools/FlairGCS/src/mapwidget.h


Ignore:
Timestamp:
04/08/16 15:40:57 (8 years ago)
Author:
Bayard Gildas
Message:

sources reformatted with flair-format-dir script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/mapwidget.h

    r10 r15  
    5757using namespace QtMobility;
    5858
    59 class MapWidget : public QGraphicsView
    60 {
    61     Q_OBJECT
     59class MapWidget : public QGraphicsView {
     60  Q_OBJECT
    6261
    63     public:
    64         MapWidget(Map* map,QWidget *parent = 0);
    65         void setMap(QtMobility::QGraphicsGeoMap *geoMap);
    66         QGraphicsScene *scene() const;
    67         bool IsUptodate(void);
    68         void SetUptodate(void);
    69         void Reset(void);
    70         QList<Landmark*>* Landmarks(void);
    71         bool LandmarkToSend(int index);
    72         void AddLandmark(const QGeoCoordinate &coordinate);
    73         void RemoveLandmarks(void);
    74         void AddLandmarks(QGraphicsGeoMap *geoMap);
    75         void AddPoint(QString name);
     62public:
     63  MapWidget(Map *map, QWidget *parent = 0);
     64  void setMap(QtMobility::QGraphicsGeoMap *geoMap);
     65  QGraphicsScene *scene() const;
     66  bool IsUptodate(void);
     67  void SetUptodate(void);
     68  void Reset(void);
     69  QList<Landmark *> *Landmarks(void);
     70  bool LandmarkToSend(int index);
     71  void AddLandmark(const QGeoCoordinate &coordinate);
     72  void RemoveLandmarks(void);
     73  void AddLandmarks(QGraphicsGeoMap *geoMap);
     74  void AddPoint(QString name);
    7675
    77     signals:
    78         void positionChanged(const QGeoCoordinate &coordinate);
     76signals:
     77  void positionChanged(const QGeoCoordinate &coordinate);
    7978
    80     protected:
    81         void mousePressEvent(QMouseEvent *event);
    82         void mouseMoveEvent(QMouseEvent *event);
    83         void mouseReleaseEvent(QMouseEvent *event);
    84         void resizeEvent(QResizeEvent *event);
    85         void wheelEvent(QWheelEvent *event);
    86         void mouseDoubleClickEvent(QMouseEvent *event);
     79protected:
     80  void mousePressEvent(QMouseEvent *event);
     81  void mouseMoveEvent(QMouseEvent *event);
     82  void mouseReleaseEvent(QMouseEvent *event);
     83  void resizeEvent(QResizeEvent *event);
     84  void wheelEvent(QWheelEvent *event);
     85  void mouseDoubleClickEvent(QMouseEvent *event);
    8786
    88     private slots:
    89         void initDrag();
     87private slots:
     88  void initDrag();
    9089
    91     private:
    92         QGraphicsGeoMap *geoMap;
    93         bool dragging;
    94         QPoint dragStartPosition;
    95         bool pressed;
    96         bool is_uptodate;
     90private:
     91  QGraphicsGeoMap *geoMap;
     92  bool dragging;
     93  QPoint dragStartPosition;
     94  bool pressed;
     95  bool is_uptodate;
    9796
    98         QGraphicsScene *m_scene;
    99         QList<Landmark*> *landmarks;
    100         QList<Landmark*> *landmarks_old;
    101         QList<QString> points;
    102         Landmark *landmark_match;
    103         Map* map;
     97  QGraphicsScene *m_scene;
     98  QList<Landmark *> *landmarks;
     99  QList<Landmark *> *landmarks_old;
     100  QList<QString> points;
     101  Landmark *landmark_match;
     102  Map *map;
    104103};
    105104
Note: See TracChangeset for help on using the changeset viewer.