Lab1
Loading...
Searching...
No Matches
settingsdialog.h
1#pragma once
2#include <QDialog>
3#include <QEvent>
4#include "note_repository.h"
5#include <QLineEdit>
6#include "note.h"
7
8namespace Ui { class SettingsDialog; }
9
14class SettingsDialog : public QDialog {
15 Q_OBJECT
16
17public:
23 explicit SettingsDialog(NoteRepository* repository, QWidget *parent = nullptr);
25
26 private slots:
27 void on_runBenchmarkButton_clicked();
28 void on_themeComboBox_currentIndexChanged(int index);
29 void on_languageComboBox_currentIndexChanged(int index);
30
31protected:
32 void changeEvent(QEvent *event) override;
33
34private:
35 Ui::SettingsDialog *ui;
36 void plotResults(double nlohmannTime, double rapidJsonTime);
37 void setDarkTheme(bool enable);
38 void setupStatisticsChart();
39
44 QList<Note> generateTestNotes(int count) const;
45
46 NoteRepository* m_repository;
47};
Центральний репозиторій для керування даними (Repository Pattern).
Definition note_repository.h:26
Діалогове вікно для налаштування параметрів програми.
Definition settingsdialog.h:14