This commit is contained in:
Your Name
2024-02-17 13:29:10 -06:00
parent 863e79690f
commit 8fe60169a2
21 changed files with 600 additions and 545 deletions

View File

@@ -29,9 +29,6 @@
#include "selfdrive/frogpilot/ui/vehicle_settings.h"
#include "selfdrive/frogpilot/ui/visual_settings.h"
// Bbot notes:
// This is the main settings page. All other settings pages attach themselves to this page.
TogglesPanel::TogglesPanel(SettingsWindow *parent) : ListWidget(parent) {
// param, title, desc, icon
std::vector<std::tuple<QString, QString, QString, QString>> toggle_defs{
@@ -447,16 +444,14 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QFrame(parent) {
QObject::connect(frogpilotVisuals, &FrogPilotVisualsPanel::openParentToggle, this, [this]() {frogPilotTogglesOpen = true;});
QList<QPair<QString, QWidget *>> panels = {
{tr("Basic"), toggles},
{tr("Interface"), frogpilotVisuals},
{tr("Advanced"), frogpilotControls},
{tr("System"), new Networking(this)},
{tr("Software"), new SoftwarePanel(this)},
// {tr("Extras"), device},
// {tr("Navigation"), new FrogPilotNavigationPanel(this)},
// {tr("Vehicles"), new FrogPilotVehiclesPanel(this)},
// {tr("Visuals"), frogpilotVisuals},
{tr("Device"), device},
{tr("Network"), new Networking(this)},
{tr("Toggles"), toggles},
{tr("Software"), new SoftwarePanel(this)},
{tr("Controls"), frogpilotControls},
{tr("Navigation"), new FrogPilotNavigationPanel(this)},
{tr("Vehicles"), new FrogPilotVehiclesPanel(this)},
{tr("Visuals"), frogpilotVisuals},
};
nav_btns = new QButtonGroup(this);