summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-10-16 00:26:48 +0200
committerArno <arno@disconnect.de>2016-10-16 00:26:48 +0200
commit4bbcd75f1ff29c8dbd9befcbe8913587d35a3ed0 (patch)
tree2d6fdbb21258aa02ae192eae13b281b035566d0b /shemov.cpp
parent0da05ce76ab01a4bc8debde448905e0c83611792 (diff)
downloadSheMov-4bbcd75f1ff29c8dbd9befcbe8913587d35a3ed0.tar.gz
SheMov-4bbcd75f1ff29c8dbd9befcbe8913587d35a3ed0.tar.bz2
SheMov-4bbcd75f1ff29c8dbd9befcbe8913587d35a3ed0.zip
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.
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp11
1 files changed, 11 insertions, 0 deletions
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);