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


Ignore:
Timestamp:
Apr 8, 2016, 3:40:57 PM (9 years ago)
Author:
Bayard Gildas
Message:

sources reformatted with flair-format-dir script

File:
1 edited

Legend:

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

    r10 r15  
    1818
    1919namespace QtMobility {
    20     class QGeoMappingManager;
    21     class QGraphicsGeoMap;
    22     class QGeoServiceProvider;
     20class QGeoMappingManager;
     21class QGraphicsGeoMap;
     22class QGeoServiceProvider;
    2323}
    2424
    25 class Map: public DataRemote
    26 {
    27     Q_OBJECT
     25class Map : public DataRemote {
     26  Q_OBJECT
    2827
    29     public:
    30         Map(Layout* parent,int row, int col,QString name,QList<QtMobility::QGeoCoordinate> coordinates,bool enabled,int period);
    31         ~Map();
    32         void setCenteredPoint(int i);
    33         int centeredPoint(void);
    34         bool isCentered(void);
     28public:
     29  Map(Layout *parent, int row, int col, QString name,
     30      QList<QtMobility::QGeoCoordinate> coordinates, bool enabled, int period);
     31  ~Map();
     32  void setCenteredPoint(int i);
     33  int centeredPoint(void);
     34  bool isCentered(void);
    3535
    36     private:
    37         MapWidget *mapWidget;
    38         QtMobility::QGeoMappingManager *manager;
    39         QList<QtMobility::QGeoMappingManager *> managers;
    40         QtMobility::QGraphicsGeoMap *geoMap;
    41         QtMobility::QGeoServiceProvider *service;
    42         QComboBox *mapTypeCombo,*serviceCombo,*proxyCombo;
    43         QHash<QtMobility::QGraphicsGeoMap::MapType, QString> mapTypes;
    44         QToolButton *zoomin,*zoomout;
    45         QAction *zoomInAction;
    46         QAction *zoomOutAction;
    47         QList<Landmark*> points;
    48         int centeredpoint;
     36private:
     37  MapWidget *mapWidget;
     38  QtMobility::QGeoMappingManager *manager;
     39  QList<QtMobility::QGeoMappingManager *> managers;
     40  QtMobility::QGraphicsGeoMap *geoMap;
     41  QtMobility::QGeoServiceProvider *service;
     42  QComboBox *mapTypeCombo, *serviceCombo, *proxyCombo;
     43  QHash<QtMobility::QGraphicsGeoMap::MapType, QString> mapTypes;
     44  QToolButton *zoomin, *zoomout;
     45  QAction *zoomInAction;
     46  QAction *zoomOutAction;
     47  QList<Landmark *> points;
     48  int centeredpoint;
    4949
    50         bool findServices(void);
    51         void findproxy(void);
    52         void populateMapTypeCombo();
    53         bool IsUptodate(void);
    54         void SetUptodate(void);
    55         void Reset(void);
    56         void XmlEvent(QDomElement dom);
    57         void BufEvent(char** buf,int *buf_size,uint16_t period,bool big_endian);
     50  bool findServices(void);
     51  void findproxy(void);
     52  void populateMapTypeCombo();
     53  bool IsUptodate(void);
     54  void SetUptodate(void);
     55  void Reset(void);
     56  void XmlEvent(QDomElement dom);
     57  void BufEvent(char **buf, int *buf_size, uint16_t period, bool big_endian);
    5858
    59         void RemovePoints(void);
    60         void AddPoints(QtMobility::QGraphicsGeoMap *geoMap);
     59  void RemovePoints(void);
     60  void AddPoints(QtMobility::QGraphicsGeoMap *geoMap);
    6161
    62     private slots:
    63         void changeMapType(int index);
    64         void selectService(int index);
    65         void changeproxy(int index);
    66         void updateZoom(qreal value);
    67         void zoomIn(void);
    68         void zoomOut(void);
    69 
     62private slots:
     63  void changeMapType(int index);
     64  void selectService(int index);
     65  void changeproxy(int index);
     66  void updateZoom(qreal value);
     67  void zoomIn(void);
     68  void zoomOut(void);
    7069};
    7170
Note: See TracChangeset for help on using the changeset viewer.