mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-07 17:35:41 +08:00
25 lines
465 B
C++
25 lines
465 B
C++
#pragma once
|
|
|
|
#include "starpilot/ui/qt/offroad/starpilot_settings.h"
|
|
|
|
class StarPilotWheelPanel : public StarPilotListWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit StarPilotWheelPanel(StarPilotSettingsWindow *parent, bool forceOpen = false);
|
|
|
|
protected:
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
private:
|
|
void updateToggles();
|
|
|
|
bool forceOpenDescriptions;
|
|
|
|
std::map<QString, AbstractControl*> toggles;
|
|
|
|
StarPilotSettingsWindow *parent;
|
|
|
|
Params params;
|
|
};
|