diff options
Diffstat (limited to 'archiveitemcoveredit.h')
-rw-r--r-- | archiveitemcoveredit.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/archiveitemcoveredit.h b/archiveitemcoveredit.h new file mode 100644 index 0000000..7f91a49 --- /dev/null +++ b/archiveitemcoveredit.h @@ -0,0 +1,54 @@ +/* + 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 <QWidget> +#include <QHash> +#include <QPair> +#include <QList> + +class QLineEdit; +class QPushButton; +class QCheckBox; +class PictureViewer; + +class ArchiveItemCoverEdit : public QWidget { + Q_OBJECT + public: + explicit ArchiveItemCoverEdit(QWidget *parent = 0); + void setCovers(const QList<QVariant> &covers); + QList<QVariant> 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<QLineEdit*, QCheckBox*> mLineEditMapping; + QHash<QLineEdit*, QString> mInitialValue; + QHash<QCheckBox*, QPair<QString, QString> > mCheckboxTexts; + QHash<QCheckBox*, QPushButton*> mBrowseMap; + QString mLastOpenedDir; + PictureViewer *mPicViewer; +}; + +#endif |