quill/settings.h

85 lines
2.4 KiB
C
Raw Normal View History

2021-03-25 05:00:19 -07:00
#ifndef SETTINGS_H
#define SETTINGS_H
#include <QWidget>
#include <usbms_splash.h>
#include "generaldialog.h"
2021-08-25 10:16:41 -07:00
#include "otamanager.h"
#include "toast.h"
2021-03-25 05:00:19 -07:00
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;
2021-03-25 05:00:19 -07:00
bool not_user_change = true;
2021-10-17 19:31:44 -07:00
bool enableEncryptedStorageUserChange = false;
2021-03-25 05:00:19 -07:00
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);
2021-03-30 05:24:13 -07:00
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);
2021-06-29 12:28:54 -07:00
void brightnessDown();
void on_globalReadingSettingsCheckBox_toggled(bool checked);
2021-08-25 10:16:41 -07:00
void on_checkOtaUpdateBtn_clicked();
void openUpdateDialog();
void launchOtaUpdater();
void openUpdateDialogOTA(bool open);
void showToastNative(QString messageToDisplay);
void closeIndefiniteToastNative();
2021-09-26 19:05:45 -07:00
void usbms_launch();
void quit_restart();
2021-10-17 19:31:44 -07:00
void on_enableEncryptedStorageCheckBox_toggled(bool checked);
void disableStorageEncryption();
void cancelDisableStorageEncryption();
2021-11-14 18:22:58 -08:00
void on_repackBtn_clicked();
signals:
2021-08-25 10:16:41 -07:00
void showToast(QString messageToDisplay);
void closeIndefiniteToast();
2021-03-25 05:00:19 -07:00
private:
Ui::settings *ui;
usbms_splash *usbmsWindow;
generalDialog *generalDialogWindow;
2021-08-25 10:16:41 -07:00
otaManager *otaManagerWindow;
toast *toastWindow;
2021-03-25 05:00:19 -07:00
};
#endif // SETTINGS_H