mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-13 21:32:14 +08:00
39 lines
957 B
C++
39 lines
957 B
C++
#pragma once
|
|
|
|
#include "frogpilot/ui/qt/offroad/frogpilot_settings.h"
|
|
|
|
class FrogPilotDevicePanel : public FrogPilotListWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit FrogPilotDevicePanel(FrogPilotSettingsWindow *parent);
|
|
|
|
signals:
|
|
void openSubPanel();
|
|
|
|
protected:
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
private:
|
|
void updateState(const UIState &s);
|
|
void updateToggles();
|
|
|
|
bool forceOpenDescriptions;
|
|
bool started;
|
|
|
|
int tuningLevel;
|
|
|
|
std::map<QString, AbstractControl*> toggles;
|
|
|
|
QSet<QString> deviceManagementKeys = {"AlwaysAllowUploads", "DeviceShutdown", "HigherBitrate", "IncreaseThermalLimits", "LowVoltageShutdown", "NoLogging", "NoUploads", "UseKonikServer"};
|
|
QSet<QString> screenKeys = {"ScreenBrightness", "ScreenBrightnessOnroad", "ScreenRecorder", "ScreenTimeout", "ScreenTimeoutOnroad", "StandbyMode"};
|
|
|
|
QSet<QString> parentKeys;
|
|
|
|
FrogPilotSettingsWindow *parent;
|
|
|
|
QJsonObject frogpilotToggleLevels;
|
|
|
|
Params params;
|
|
};
|