/* 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 ARCHIVEITEMCOVEREDIT_H #define ARCHIVEITEMCOVEREDIT_H #include #include #include #include class QLineEdit; class QPushButton; class QCheckBox; class PictureViewer; class ArchiveItemCoverEdit : public QWidget { Q_OBJECT public: explicit ArchiveItemCoverEdit(QWidget *parent = 0); void setCovers(const QList &covers); QList covers() const; private slots: void unlock(QWidget *lineEdit); void browse(QWidget *lineEdit); void view(QWidget *lineEdit); private: QLineEdit *mFrontCover; QLineEdit *mBackCover; QLineEdit *mGeneralCover; QPushButton *mBrowseFront; QPushButton *mBrowseBack; QPushButton *mBrowseGeneral; QPushButton *mViewFront; QPushButton *mViewBack; QPushButton *mViewGeneral; QCheckBox *mUnlockFront; QCheckBox *mUnlockBack; QCheckBox *mUnlockGeneral; QHash mLineEditMapping; QHash mInitialValue; QHash > mCheckboxTexts; QHash mBrowseMap; QString mLastOpenedDir; PictureViewer *mPicViewer; }; #endif