openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.
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.
 
 
 
 
 
 

42 lines
772 B

// Copyright (C) 2023 MapLibre contributors
// SPDX-License-Identifier: BSD-2-Clause
#pragma once
#include <QMapLibre/Map>
#include <QMapLibre/Settings>
#include <memory>
QT_BEGIN_NAMESPACE
class QKeyEvent;
class QMouseEvent;
class QWheelEvent;
QT_END_NAMESPACE
namespace QMapLibre {
class GLWidgetPrivate : public QObject {
Q_OBJECT
public:
explicit GLWidgetPrivate(QObject *parent, Settings settings);
~GLWidgetPrivate() override;
void handleMousePressEvent(QMouseEvent *event);
void handleMouseMoveEvent(QMouseEvent *event);
void handleWheelEvent(QWheelEvent *event) const;
std::unique_ptr<Map> m_map{};
Settings m_settings;
private:
Q_DISABLE_COPY(GLWidgetPrivate);
QPointF m_lastPos;
};
} // namespace QMapLibre