mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-03-04 10:13:52 +08:00
* qt ui boilerplate * this kinda works * cleanup * render inside other widget * cleanup * more cleanup * Not needed * Handle click * Draw at 20Hz * create paint.hpp * move stuff around * update sidebar * Draw vision * this works again * add clickable settings button * Only collapse sidebar when started * always use qt on linux * fix width * scrollable area * talk to NetworkManager * code to add a connection * params toggles * small cleanup * add qt5 to dockerfile * Qt on mac * Add qt to release files * fix macos build * nore more ifdefs needed * add icons * make a bit nicer * Hide scrollbar Co-authored-by: Comma Device <device@comma.ai>
29 lines
506 B
C++
29 lines
506 B
C++
#pragma once
|
|
|
|
#include <QWidget>
|
|
#include <QFrame>
|
|
#include <QTimer>
|
|
#include <QCheckBox>
|
|
|
|
class ParamsToggle : public QFrame {
|
|
Q_OBJECT
|
|
|
|
private:
|
|
QCheckBox *checkbox;
|
|
QString param;
|
|
public:
|
|
explicit ParamsToggle(QString param, QString title, QString description, QString icon, QWidget *parent = 0);
|
|
public slots:
|
|
void checkboxClicked(int state);
|
|
};
|
|
|
|
|
|
|
|
class SettingsWindow : public QWidget {
|
|
Q_OBJECT
|
|
public:
|
|
explicit SettingsWindow(QWidget *parent = 0);
|
|
signals:
|
|
void closeSettings();
|
|
};
|