summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 817c808..155b37d 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -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();