blob: 06977fd194bedd1c838587748a64de175eb149aa (
plain) (
blame)
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
|
#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
|