/* 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 #include 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; QSpinBox *mHoverOpacity; QLabel *mSeenColor; QLabel *mClipboardColor; QLabel *mBaseColor; QLabel *mAlternateBaseColor; QLabel *mFontColor; QLabel *mLocalColor; QLabel *mArchivedColor; QPushButton *mSeenButton; QPushButton *mClipboardButton; QPushButton *mBaseButton; QPushButton *mAlternateBaseButton; QPushButton *mFontColorButton; QPushButton *mLocalColorButton; QPushButton *mArchivedColorButton; QCheckBox *mAlternateColors; QHash mColors; QStandardItemModel *mIconModel; }; #endif