summaryrefslogtreecommitdiffstats
path: root/configurationwidget.h
blob: 8e7bb1903319625c84c9590ca6a53bf8e820f3d5 (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
35
36
37
38
39
40
41
42
43
#ifndef CONFIGURATIONWIDGET_H
#define CONFIGURATIONWIDGET_H

#include <QDialog>
#include <QVector>
#include <QColor>

class QLineEdit;
class ItemSelectionWidget;
class QLabel;
class QCheckBox;

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

    public slots:
        virtual void accept();

    private slots:
        void browsePathforLE(QLineEdit *edit);

    private:
        void readSettings();
        void chooseColor(QLabel *l, int colorIndex);
        QLineEdit *mDbHost;
        QLineEdit *mDbUser;
        QLineEdit *mDbPass;
        QLineEdit *mDbName;
        QLineEdit *mFfProbe;
        QLineEdit *mFfMpeg;
        QLineEdit *mMkvInfo;
        QLabel *mBaseColorL;
        QLabel *mAltColorL;
        QCheckBox *mUseAltColors;
        ItemSelectionWidget *mCopyDirW;
        ItemSelectionWidget *mFavDirW;
        ItemSelectionWidget *mMimeTypeW;
        QVector<QColor> mColors;
};

#endif // CONFIGURATIONWIDGET_H