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 --- pictureviewer2.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pictureviewer2.h') diff --git a/pictureviewer2.h b/pictureviewer2.h index 9d5c1c5..631f5f8 100644 --- a/pictureviewer2.h +++ b/pictureviewer2.h @@ -26,6 +26,7 @@ class QGraphicsItem; class SmTreeItem; class MappingTreeModel; class PicFilesModel; +class NewPicsDialog; typedef QList PicData; typedef QList > PicDataList; @@ -51,6 +52,8 @@ class PictureViewer2 : public QGraphicsView { void shuffle(); void initActions(); void copyCurrent(); + void showNewPicsDialog(); + void addToNewPics(); protected: virtual void wheelEvent(QWheelEvent *event); @@ -90,6 +93,7 @@ class PictureViewer2 : public QGraphicsView { MappingTreeModel *mMappingTreeModel; PicFilesModel *mPicFilesModel; PicData mCurPicData; + NewPicsDialog *mNewPicsDlg; }; class PictureViewer2Item : public QGraphicsItem { -- cgit v1.2.3-70-g09d2