summaryrefslogtreecommitdiffstats
path: root/configurationdialog.h
blob: 816474e966079f636e0b078ede9f21834e562da8 (plain)
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
33
34
#ifndef CONFIGURATIONDIALOG_H
#define CONFIGURATIONDIALOG_H

#include <QDialog>

class QLineEdit;
class QCheckBox;
class QLabel;
class QRadioButton;

class ConfigurationDialog : public QDialog {
    Q_OBJECT
    public:
        explicit ConfigurationDialog(QWidget *parent = nullptr, Qt::WindowFlags f = nullptr);

    public slots:
        virtual void accept();
        void chooseColor(QWidget *label);
        void selectBeet(bool checked);

    private:
        void readSettings();
        QLineEdit *mDbHost;
        QLineEdit *mDbUser;
        QLineEdit *mDbPass;
        QLineEdit *mDbName;
        QLabel *mBaseColorL;
        QLabel *mAltColorL;
        QCheckBox *mUseAltColors;
        QRadioButton *mUseBeetRB;
        QLineEdit *mScanDir;
};

#endif // CONFIGURATIONDIALOG_H