You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							38 lines
						
					
					
						
							870 B
						
					
					
				
			
		
		
	
	
							38 lines
						
					
					
						
							870 B
						
					
					
				| #pragma once
 | |
| #include <QJsonArray>
 | |
| #include <QJsonDocument>
 | |
| #include <QJsonObject>
 | |
| #include <QLabel>
 | |
| #include <QPushButton>
 | |
| #include <QVBoxLayout>
 | |
| #include <QWidget>
 | |
| #include <QStackedWidget>
 | |
| 
 | |
| #include "selfdrive/common/params.h"
 | |
| #include "selfdrive/ui/qt/widgets/controls.h"
 | |
| 
 | |
| class MapPanel : public QWidget {
 | |
|   Q_OBJECT
 | |
| public:
 | |
|   explicit MapPanel(QWidget* parent = nullptr);
 | |
| 
 | |
|   void navigateTo(const QJsonObject &place);
 | |
|   void parseResponse(const QString &response);
 | |
|   void failedResponse(const QString &response);
 | |
|   void updateCurrentRoute();
 | |
|   void clear();
 | |
| 
 | |
| private:
 | |
|   void showEvent(QShowEvent *event) override;
 | |
| 
 | |
|   Params params;
 | |
|   QStackedWidget *stack;
 | |
|   QPushButton *home_button, *work_button;
 | |
|   QLabel *home_address, *work_address;
 | |
|   QVBoxLayout *recent_layout;
 | |
|   QWidget *current_widget;
 | |
|   ButtonControl *current_route;
 | |
| 
 | |
| signals:
 | |
|   void closeSettings();
 | |
| };
 | |
| 
 |