mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-22 00:33:44 +08:00
4d2ccb3a79
* dark mode * inter * frame * this looks pretty good * revert that * fix bg hack * don't override style sheet old-commit-hash: 550b5e422f5ee7f7ca23d569cbd58f78bfdda9c5
52 lines
895 B
C++
52 lines
895 B
C++
#pragma once
|
|
|
|
#include <QWidget>
|
|
#include <QFrame>
|
|
#include <QTimer>
|
|
#include <QPushButton>
|
|
#include <QButtonGroup>
|
|
#include <QStackedLayout>
|
|
|
|
#include "wifi.hpp"
|
|
|
|
// *** settings widgets ***
|
|
|
|
class ParamsToggle : public QFrame {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ParamsToggle(QString param, QString title, QString description,
|
|
QString icon, QWidget *parent = 0);
|
|
|
|
private:
|
|
QString param;
|
|
|
|
public slots:
|
|
void checkboxClicked(int state);
|
|
};
|
|
|
|
|
|
// *** settings window ***
|
|
|
|
class SettingsWindow : public QFrame {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SettingsWindow(QWidget *parent = 0);
|
|
|
|
signals:
|
|
void closeSettings();
|
|
|
|
private:
|
|
QPushButton *sidebar_alert_widget;
|
|
QWidget *sidebar_widget;
|
|
std::map<QString, QWidget *> panels;
|
|
QButtonGroup *nav_btns;
|
|
QStackedLayout *panel_layout;
|
|
|
|
public slots:
|
|
void setActivePanel();
|
|
void closeSidebar();
|
|
void openSidebar();
|
|
};
|