From 5305661f325ea84bbbc9c8fc7b6f2a4813a9147d Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Sat, 27 Dec 2025 15:25:36 -0500 Subject: v.01 --- settingsdialog.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 settingsdialog.h (limited to 'settingsdialog.h') diff --git a/settingsdialog.h b/settingsdialog.h new file mode 100644 index 0000000..95d43b3 --- /dev/null +++ b/settingsdialog.h @@ -0,0 +1,36 @@ +#ifndef SETTINGSDIALOG_H +#define SETTINGSDIALOG_H + +#include +#include +#include "database.h" + +QT_BEGIN_NAMESPACE +namespace Ui { class SettingsDialog; } +QT_END_NAMESPACE + +class SettingsDialog : public QDialog +{ + Q_OBJECT + +public: + explicit SettingsDialog(Database *db, QWidget *parent = nullptr); + ~SettingsDialog(); + + QFont getCurrentAmountFont() const { return currentAmountFont; } + int getWeekStartDay() const { return weekStartDay; } + +private slots: + void onChooseAmountFont(); + +private: + Ui::SettingsDialog *ui; + Database *database; + QFont currentAmountFont; + int weekStartDay; + + void loadSettings(); + void saveSettings(); +}; + +#endif // SETTINGSDIALOG_H -- cgit v1.2.3