From ca84789d9f288e39936a288c17eff247cb0f4a3f Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 29 May 2010 14:54:55 +0200 Subject: Implement new ArchiveItemEditDialog Use ArchiveItemEditDialog instead of EditArchiveItemDialog. The latter will soon be obsolete and removed. Terrible naming, though. This commit is not as atomic as I want it to be, but it can't be helped. I had to fix several bugs in ArchveItemInfoEdit and ArchiveItemCoverEdit on the way: -Fix layout of ArchiveItemCoverEdit -Make white background of warning label in ArchiveItemCoverEdit work -Add function to ArchiveItemInfoEdit to init the ActorModel and FileInfoModel -Add function to ArchiveItemInfoEdit to return selected actors Beware: The update button still does nothing! --- archiveitemeditdialog.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 archiveitemeditdialog.h (limited to 'archiveitemeditdialog.h') diff --git a/archiveitemeditdialog.h b/archiveitemeditdialog.h new file mode 100644 index 0000000..edb4af3 --- /dev/null +++ b/archiveitemeditdialog.h @@ -0,0 +1,33 @@ +/* + 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 ARCHIVEITEMEDITDIALOG_H +#define ARCHIVEITEMEDITDIALOG_H + +#include + +class QPushButton; +class QTabWidget; +class ArchiveItemInfoEdit; +class ArchiveItemCoverEdit; +class QModelIndex; + +class ArchiveItemEditDialog : public QDialog { + Q_OBJECT + public: + explicit ArchiveItemEditDialog(QWidget *parent = 0, Qt::WindowFlags f = 0); + void setMovie(const QModelIndex &idx); + + private: + QPushButton *mUpdate; + QPushButton *mCancel; + QTabWidget *mTab; + ArchiveItemInfoEdit *mInfoEdit; + ArchiveItemCoverEdit *mCoverEdit; +}; + +#endif -- cgit v1.2.3-70-g09d2