summaryrefslogtreecommitdiffstats
path: root/configurationdialog.h
blob: 2b7d12c3ac983b8fc0e1ef7933da46b49ae91fcd (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*
  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License
  as published by the Free Software Foundation; either version
  2 of the License, or (at your option) any later version.
*/

#ifndef CONFIGURATIONDIALOG_H
#define CONFIGURATIONDIALOG_H

#include <QDialog>
#include <QHash>

class QPushButton;
class QTabWidget;
class QLineEdit;
class QComboBox;
class QCheckBox;
class QSpinBox;
class QLabel;
class QStandardItemModel;

class ProgramConfigurator;

class ConfigurationDialog : public QDialog {
	Q_OBJECT
	public:
		ConfigurationDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
		~ConfigurationDialog() {}

	public slots:
		void accept();

	private slots:
		void setGrabFrameEnabled(bool enabled);
		void chooseColor(QWidget *label);
		void alternateColorsChanged(int);
	
	private:
		void readSettings();
		void writeSettings();
		bool checkDvdPath();
		void mountError(const QString &error);
		void setColor(QWidget *label);
		QPushButton *mOk;
		QPushButton *mCancel;
		QTabWidget *mTab;
		ProgramConfigurator *mMovieConfig;
		ProgramConfigurator *mPicConfig;
		QLineEdit *mArchiveDir;
		QLineEdit *mBurnDir;
		QLineEdit *mFfProbePath;
		QLineEdit *mFfMpegPath;
		QLineEdit *mDvdMountPath;
		QLineEdit *mCoverPath;
		QLineEdit *mDatabaseHost;
		QLineEdit *mDatabaseName;
		QLineEdit *mDatabaseUsername;
		QLineEdit *mDatabasePassword;
		QLineEdit *mWindowsDrive;
		QLineEdit *mStripPath;
		QLineEdit *mGrabFrameFrom;
		QComboBox *mIconForFolder;
		QCheckBox *mHoverPics;
		QCheckBox *mHoverArchive;
		QCheckBox *mHoverMovies;
		QCheckBox *mAutoAddCovers;
		QCheckBox *mIconizeCovers;
		QSpinBox *mHoverOpacity;
		QLabel *mSeenColor;
		QLabel *mClipboardColor;
		QLabel *mBaseColor;
		QLabel *mAlternateBaseColor;
		QLabel *mFontColor;
		QLabel *mLocalColor;
		QLabel *mArchivedColor;
		QLabel *mFavoriteColor;
		QPushButton *mSeenButton;
		QPushButton *mClipboardButton;
		QPushButton *mBaseButton;
		QPushButton *mAlternateBaseButton;
		QPushButton *mFontColorButton;
		QPushButton *mLocalColorButton;
		QPushButton *mArchivedColorButton;
		QPushButton *mFavoriteColorButton;
		QCheckBox *mAlternateColors;
		QHash<QWidget*, QColor> mColors;
		QStandardItemModel *mIconModel;
};

#endif