Files
dragonpilot/selfdrive/ui/qt/maps/map_settings.h
Willem Melching 190409c938 nav: show settings without token (#21624)
* map settings always in sidebar

* show screenshot when no prime

* remove print

* repaint to fix star sizing

* checked in sconsscript

* match designs
2021-07-19 14:18:01 +02:00

33 lines
689 B
C++

#pragma once
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include <QWidget>
#include <QStackedWidget>
#include "selfdrive/common/params.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 clear();
private:
Params params;
QStackedWidget *stack;
QPushButton *home_button, *work_button;
QLabel *home_address, *work_address;
QVBoxLayout *recent_layout;
signals:
void closeSettings();
};