1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
/*
Copyright (c) 2006-2009, Tom Thielicke IT Solutions
Copyright (c) 2021, André Apitzsch
SPDX-License-Identifier: GPL-2.0-only
*/
#ifndef SETTINGS_H
#define SETTINGS_H
#include <QDialog>
#include <QFont>
namespace Ui {
class Settings;
}
class Settings : public QDialog {
Q_OBJECT
public:
explicit Settings(QWidget* parent = nullptr);
~Settings();
private slots:
void on_buttonFont_clicked();
void on_buttonFontColor_clicked();
void on_buttonBackground_clicked();
void on_buttonCursor_clicked();
void on_buttonLayoutAdvanced_clicked();
void on_buttonResetLessons_clicked();
void on_buttonResetRecordedChars_clicked();
void checkLessonToLayout();
void clearLayoutSetting();
private:
void showHelp();
void save();
void readSettings();
bool writeSettings();
void setFontButtonLabel();
Ui::Settings* ui;
QFont tickerFont;
};
#endif // SETTINGS_H
|