1 #ifndef IMAGEFORMATSETUP_H
2 #define IMAGEFORMATSETUP_H
3 
4 #include <QMap>
5 #include <QList>
6 #include <QStringList>
7 
8 #include "ui_imageformatsetup.h"
9 
10 class ImageFormatSetup : public QDialog, public Ui::ImageFormatSetup
11 {
12 	Q_OBJECT
13 
14        	public:
15 		ImageFormatSetup(QWidget *parent = 0);
16 
17 		QStringList artworkClassPrefixes;
18 		QStringList artworkClassNames;
19 		QStringList artworkClassIcons;
20 
21 	public slots:
22 		void adjustIconSizes();
23 		void on_pushButtonOk_clicked();
24 		void on_pushButtonCancel_clicked();
25 		void on_pushButtonRestore_clicked();
26 		void on_comboBoxImageType_currentIndexChanged(int);
27 		void on_treeWidget_itemClicked(QTreeWidgetItem *, int);
28 
29 	protected:
30 		void showEvent(QShowEvent *);
31 		void hideEvent(QHideEvent *);
32 
33 	private:
34 		void restoreActiveFormats(bool init = false);
35 
36 		QMap<QString, QList<int> > m_activeFormats;
37 		int m_previousClassIndex;
38 
39 	private slots:
40 		void checkForModifications();
41 		void rowsInserted(const QModelIndex &, int, int);
42 };
43 
44 #endif
45