mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-29 10:53:49 +08:00
49 lines
1.0 KiB
C++
49 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include "frogpilot/ui/qt/offroad/frogpilot_settings.h"
|
|
|
|
class FrogPilotNavigationPanel : public FrogPilotListWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit FrogPilotNavigationPanel(FrogPilotSettingsWindow *parent, bool forceOpen = false);
|
|
|
|
signals:
|
|
void closeSubPanel();
|
|
void openSubPanel();
|
|
|
|
protected:
|
|
void hideEvent(QHideEvent *event);
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
private:
|
|
void mousePressEvent(QMouseEvent *event);
|
|
void updateButtons();
|
|
void updateState(const UIState &s, const FrogPilotUIState &fs);
|
|
void updateStep();
|
|
|
|
bool forceOpenDescriptions;
|
|
bool mapboxPublicKeySet;
|
|
bool mapboxSecretKeySet;
|
|
bool updatingLimits;
|
|
|
|
FrogPilotButtonsControl *publicMapboxKeyControl;
|
|
FrogPilotButtonsControl *secretMapboxKeyControl;
|
|
ButtonControl *setupButton;
|
|
|
|
FrogPilotButtonControl *updateSpeedLimitsToggle;
|
|
|
|
FrogPilotSettingsWindow *parent;
|
|
|
|
LabelControl *ipLabel;
|
|
|
|
Params params;
|
|
Params params_memory{"", true};
|
|
|
|
QLabel *imageLabel;
|
|
|
|
QNetworkAccessManager *networkManager;
|
|
|
|
QStackedLayout *primelessLayout;
|
|
};
|