2021-03-25 05:00:19 -07:00
|
|
|
#ifndef SETTINGS_H
|
|
|
|
#define SETTINGS_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
#include <usbms_splash.h>
|
2021-03-31 05:38:59 -07:00
|
|
|
#include "generaldialog.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;
|
2021-04-05 12:35:25 -07:00
|
|
|
bool ui_enable_changed = false;
|
|
|
|
bool ui_not_user_change = false;
|
2021-03-25 05:00:19 -07:00
|
|
|
bool not_user_change = true;
|
|
|
|
|
|
|
|
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);
|
2021-03-26 21:10:49 -07:00
|
|
|
void on_menuBarCheckBox_toggled(bool checked);
|
2021-03-30 05:24:13 -07:00
|
|
|
void on_comboBox_currentIndexChanged(const QString &arg1);
|
2021-03-31 05:38:59 -07:00
|
|
|
void on_resetBtn_clicked();
|
2021-04-04 17:25:07 -07:00
|
|
|
void on_setPasscodeBtn_clicked();
|
|
|
|
void on_enableLockscreenCheckBox_toggled(bool checked);
|
2021-04-05 12:35:25 -07:00
|
|
|
void on_enableUiScalingCheckBox_toggled(bool checked);
|
2021-04-04 17:25:07 -07:00
|
|
|
|
2021-06-08 05:03:46 -07:00
|
|
|
void on_showSystemInfoBtn_clicked();
|
|
|
|
|
2021-03-25 05:00:19 -07:00
|
|
|
private:
|
|
|
|
Ui::settings *ui;
|
|
|
|
usbms_splash *usbmsWindow;
|
2021-03-31 05:38:59 -07:00
|
|
|
generalDialog *generalDialogWindow;
|
2021-03-25 05:00:19 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SETTINGS_H
|