mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
84 lines
2.4 KiB
C++
84 lines
2.4 KiB
C++
#ifndef SETTINGS_H
|
|
#define SETTINGS_H
|
|
|
|
#include <QWidget>
|
|
|
|
#include <usbms_splash.h>
|
|
#include "generaldialog.h"
|
|
#include "otamanager.h"
|
|
#include "toast.h"
|
|
|
|
using namespace std;
|
|
|
|
namespace Ui {
|
|
class settings;
|
|
}
|
|
|
|
class settings : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
int settings_page = 1;
|
|
bool launch_sh = false;
|
|
bool ui_enable_changed = false;
|
|
bool ui_not_user_change = false;
|
|
bool not_user_change = true;
|
|
bool enableEncryptedStorageUserChange = false;
|
|
|
|
explicit settings(QWidget *parent = nullptr);
|
|
~settings();
|
|
|
|
private slots:
|
|
void on_demoCheckBox_toggled(bool);
|
|
void on_aboutBtn_clicked();
|
|
void on_okBtn_clicked();
|
|
void on_clockCheckBox_toggled(bool checked);
|
|
void on_quoteCheckBox_toggled(bool checked);
|
|
void on_requestLeaseBtn_clicked();
|
|
void on_usbmsBtn_clicked();
|
|
void on_previousBtn_clicked();
|
|
void on_nextBtn_clicked();
|
|
void on_wordsNumber_valueChanged(int arg1);
|
|
void on_updateBtn_clicked();
|
|
void on_darkModeCheckBox_toggled(bool checked);
|
|
void on_uiScalingSlider_valueChanged(int value);
|
|
void on_menuBarCheckBox_toggled(bool checked);
|
|
void on_comboBox_currentIndexChanged(const QString &arg1);
|
|
void on_resetBtn_clicked();
|
|
void on_setPasscodeBtn_clicked();
|
|
void on_enableLockscreenCheckBox_toggled(bool checked);
|
|
void on_enableUiScalingCheckBox_toggled(bool checked);
|
|
void on_showSystemInfoBtn_clicked();
|
|
void on_pageSizeWidthSpinBox_valueChanged(int arg1);
|
|
void on_pageSizeHeightSpinBox_valueChanged(int arg1);
|
|
void on_readerScrollBarCheckBox_toggled(bool checked);
|
|
void on_sleepTimeoutComboBox_currentIndexChanged(const QString &arg1);
|
|
void brightnessDown();
|
|
void on_globalReadingSettingsCheckBox_toggled(bool checked);
|
|
void on_checkOtaUpdateBtn_clicked();
|
|
void openUpdateDialog();
|
|
void launchOtaUpdater();
|
|
void openUpdateDialogOTA(bool open);
|
|
void showToastNative(QString messageToDisplay);
|
|
void closeIndefiniteToastNative();
|
|
void usbms_launch();
|
|
void quit_restart();
|
|
void on_enableEncryptedStorageCheckBox_toggled(bool checked);
|
|
void disableStorageEncryption();
|
|
void cancelDisableStorageEncryption();
|
|
void on_repackBtn_clicked();
|
|
|
|
signals:
|
|
void showToast(QString messageToDisplay);
|
|
void closeIndefiniteToast();
|
|
|
|
private:
|
|
Ui::settings *ui;
|
|
usbms_splash *usbmsWindow;
|
|
generalDialog *generalDialogWindow;
|
|
otaManager *otaManagerWindow;
|
|
toast *toastWindow;
|
|
};
|
|
|
|
#endif // SETTINGS_H
|