From 4bbcd75f1ff29c8dbd9befcbe8913587d35a3ed0 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 16 Oct 2016 00:26:48 +0200 Subject: Add Next> to NewPicsDialog Make archiving various pictures easier. When NewPicsDialog is calles with a directory, the Next> button archives the current pic and selects the next. --- shemov.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index 17194f2..38bbf7a 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -397,6 +397,8 @@ void SheMov::createActions(){ connect(mArchiveSelectedMovsA, SIGNAL(triggered()), this, SLOT(newMovieWizardWithFiles())); mArchiveSelectedPicsA = new QAction(QIcon(":/hourglass_figure.png"), tr("Archive selected pics..."), this); connect(mArchiveSelectedPicsA, SIGNAL(triggered()), this, SLOT(newPicsDialogWithFiles())); + mArchivePicsInDirA = new QAction(QIcon(":/higheels.png"), tr("Archive all pics..."), this); + connect(mArchivePicsInDirA, SIGNAL(triggered()), this, SLOT(newPicsDialogWithDir())); mConsistencyA = new QAction(tr("Check consisteny..."), this); connect(mConsistencyA, SIGNAL(triggered()), this, SLOT(checkConsistency())); mNewPicsA = new QAction(tr("Archive pics...."), this); @@ -872,6 +874,7 @@ void SheMov::createMenus(){ mFSWidget->fileView()->addAction(createSeparator()); mFSWidget->fileView()->addAction(mArchiveSelectedPicsA); + mFSWidget->fileView()->addAction(mArchivePicsInDirA); mFSWidget->fileView()->addAction(mArchiveSelectedMovsA); mFSWidget->fileView()->addAction(createSeparator()); mFSWidget->fileView()->addAction(mUnpackA); @@ -1105,6 +1108,14 @@ void SheMov::newPicsDialogWithFiles(){ mNewPicsDialog->exec(); } +void SheMov::newPicsDialogWithDir(){ + QString dir = mFSWidget->currentDir(); + mNewPicsDialog->clearFiles(); + mNewPicsDialog->setDir(dir); + SmGlobals::instance()->pictureViewer()->show(); + mNewPicsDialog->exec(); +} + void SheMov::searchResult(int seriesPartId){ mSearchDialog->hide(); mTab->setCurrentIndex(Movies); -- cgit v1.2.3-70-g09d2