From ba9c314b4ba68b2da1d6c59accbcb9cf1aa5f897 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 16 Nov 2012 16:43:50 +0100 Subject: Usability: Make archiving pics easier To make archiving pictures from different sources easier, add a NewPicsDialog to PictureViewer. Add shortcuts to show the dialog and adding pics to it. After adding all pics with the same mappping, just click OK and add them to the archive. Shortcuts: Meta+s: Show NewPicsDialog Meta+a: Add current pic --- newpicsdialog.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'newpicsdialog.h') diff --git a/newpicsdialog.h b/newpicsdialog.h index 17e012e..110f4fc 100644 --- a/newpicsdialog.h +++ b/newpicsdialog.h @@ -35,11 +35,11 @@ class NewPicsDialog : public QDialog { public slots: void selectFiles(); void removeFiles(); + void addFiles(const QStringList &files); void accept(); private: void setupDlg(); - void addFiles(const QStringList &files); QTabWidget *mTab; QWidget *mFilesWidget; MappingEditWidget *mMappingEditWidget; @@ -74,6 +74,9 @@ class NewPicFilesModel : public SmTreeModel { void removeFile(const QModelIndex &idx); QList validFiles() const; + public slots: + void clear(); + private: bool haveMd5(const QString &md5) const; QSqlDatabase mDb; -- cgit v1.2.3-70-g09d2