mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-20 00:32:11 +08:00
26 lines
452 B
C++
26 lines
452 B
C++
#pragma once
|
|
|
|
#include <QFrame>
|
|
#include <QMapLibre/Settings>
|
|
#include <QStackedLayout>
|
|
|
|
class MapPanel : public QFrame {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MapPanel(const QMapLibre::Settings &settings, QWidget *parent = nullptr);
|
|
|
|
signals:
|
|
void mapPanelRequested();
|
|
|
|
public slots:
|
|
void toggleMapSettings();
|
|
|
|
private:
|
|
QStackedLayout *content_stack;
|
|
|
|
// FrogPilot widgets
|
|
void hideEvent(QHideEvent *event);
|
|
void showEvent(QShowEvent *event);
|
|
};
|