diff options
author | Arno <arno@disconnect.de> | 2016-10-16 00:26:48 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-10-16 00:26:48 +0200 |
commit | 4bbcd75f1ff29c8dbd9befcbe8913587d35a3ed0 (patch) | |
tree | 2d6fdbb21258aa02ae192eae13b281b035566d0b /shemov.cpp | |
parent | 0da05ce76ab01a4bc8debde448905e0c83611792 (diff) | |
download | SheMov-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.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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); |