diff options
author | Arno <am@disconnect.de> | 2012-11-16 16:43:50 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-11-16 16:43:50 +0100 |
commit | ba9c314b4ba68b2da1d6c59accbcb9cf1aa5f897 (patch) | |
tree | b28c4ee1d91a27b8eb11da29395fa3d42dad5ceb /shemov.cpp | |
parent | 7a56ffb6f1afc5ed09459230d47621fa4a1963b6 (diff) | |
download | SheMov-ba9c314b4ba68b2da1d6c59accbcb9cf1aa5f897.tar.gz SheMov-ba9c314b4ba68b2da1d6c59accbcb9cf1aa5f897.tar.bz2 SheMov-ba9c314b4ba68b2da1d6c59accbcb9cf1aa5f897.zip |
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
Diffstat (limited to 'shemov.cpp')
-rw-r--r-- | shemov.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -198,6 +198,8 @@ void SheMov::tabChanged(int newTab){ mPicActionGroup->setEnabled(newTab == 2); mFilterFavoritesA->setEnabled(newTab == 1); mPVSelectAllA->disconnect(); + mPVShowNPDialogA->setEnabled(newTab == 0); + mPVAddToNPA->setEnabled(newTab == 0); switch(newTab){ case 0: connect(mPVSelectAllA, SIGNAL(triggered()), mFSWidget, SLOT(selectAllPV())); @@ -699,6 +701,16 @@ void SheMov::createActions(){ connect(mPVCopyToA, SIGNAL(triggered()), picViewer, SLOT(copyCurrent())); picViewer->addAction(mPVCopyToA); + // NewPicsDialog actions + mPVShowNPDialogA = new QAction(tr("Show new pics dialog..."), this); + mPVShowNPDialogA->setShortcut(tr("Meta+s")); + connect(mPVShowNPDialogA, SIGNAL(triggered()), picViewer, SLOT(showNewPicsDialog())); + picViewer->addAction(mPVShowNPDialogA); + mPVAddToNPA = new QAction(tr("Add to new pics dialog"), this); + mPVAddToNPA->setShortcut(tr("Meta+a")); + connect(mPVAddToNPA, SIGNAL(triggered()), picViewer, SLOT(addToNewPics())); + picViewer->addAction(mPVAddToNPA); + // assign actions to PictureViewer2 members, so they can be toggled from within picViewer->initActions(); |