diff options
author | Chris Xiong <chirs241097@gmail.com> | 2022-09-26 22:14:18 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2022-09-26 22:17:44 -0400 |
commit | 2e7924a07d45c1d1468552f951dcd2f2dcc948fa (patch) | |
tree | 24b6788b505a82f70f7dd82f8d9f1570fc88fef1 /qdeduper/preferencedialog.hpp | |
parent | 43a058c0957bec3fc564a7a019bdc03829e32e70 (diff) | |
download | deduper-2e7924a07d45c1d1468552f951dcd2f2dcc948fa.tar.xz |
Add a few basic settings items.
Yes I stole qmp's settings design and silently relicensed the
(largely identical) code. But who in the world cares, plus I'm the
author of qmp anyway.
Diffstat (limited to 'qdeduper/preferencedialog.hpp')
-rw-r--r-- | qdeduper/preferencedialog.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/qdeduper/preferencedialog.hpp b/qdeduper/preferencedialog.hpp new file mode 100644 index 0000000..06977fd --- /dev/null +++ b/qdeduper/preferencedialog.hpp @@ -0,0 +1,32 @@ +#ifndef PREFERENCEDIALOG_HPP +#define PREFERENCEDIALOG_HPP + +#include <vector> + +#include <QDialog> +#include <QGridLayout> + +#include "settings.hpp" + +class QTabWidget; +class QGridLayout; +class QDialogButtonBox; + +class PreferenceDialog : public QDialog +{ + Q_OBJECT +public: + PreferenceDialog(SettingsRegistry *sr, QWidget *parent = nullptr); + void setup_widgets(); + void load_widget_status(); + void save_widget_status(); + void open() override; + void accept() override; +private: + SettingsRegistry *sr; + QTabWidget *tw; + std::vector<QGridLayout*> tabs; + QDialogButtonBox *bb; +}; + +#endif |