GPS.h
Go to the documentation of this file.
00001 #ifndef GPS_H
00002 #define GPS_H
00003 
00004 
00005 //GPS Widget, the map is not displayed as of now as it would be against google maps rules without any payments to google. An open source solution has to be found
00006 
00007 #include <QtGui>
00008 
00009 class Gps: public QWidget
00010  {
00011 
00012 Q_OBJECT
00013 
00014  public:
00015      Gps();
00016      void setList(QListWidget *l);//gives the pointer to the list widget to display the itineraries
00017 
00018 
00019  public slots:
00020      void set_map_type(QString value);//changes the map type
00021      void set_zoom(int value);//set the map zoom value
00022      void update_coord(double lat, double lon);//update the last coordinate value
00023      void start_clicked();//the button start has been clicked
00024      void stop_clicked();//the button stop has been clicked
00025      void save_clicked();//the button save has been clicked
00026      void load_clicked();//the button load has been clicked
00027      void check_size();//the size od the map if the size of the web widget
00028      void selection_changed();//the itinerary selection has changed, therefore change the path that is displayed
00029 
00030  signals:
00031      void url_changed(QUrl value);
00032 
00033  private :
00034          QUrl url;
00035          bool started;
00036          double started_lat;
00037          double started_lon;
00038          QString path;
00039          QSize size;
00040          QStringList loaded_files;
00041          QListWidget *list_widget;
00042          bool start_pos_set;
00043 
00044  };
00045 
00046 #endif // GPS_H


corobot_teleop
Author(s):
autogenerated on Sun Oct 5 2014 23:18:16