From 2e7924a07d45c1d1468552f951dcd2f2dcc948fa Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 26 Sep 2022 22:14:18 -0400 Subject: 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. --- qdeduper/preferencedialog.hpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 qdeduper/preferencedialog.hpp (limited to 'qdeduper/preferencedialog.hpp') 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 + +#include +#include + +#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 tabs; + QDialogButtonBox *bb; +}; + +#endif -- cgit v1.2.3