From 028203679a6bbd45287e8ca35a104b026e886c69 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 21 Sep 2013 05:43:34 +0200 Subject: Implement addCovers Add covers to an already archived movie. --- shemov.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index a3096a6..3e10a58 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -431,6 +431,7 @@ void SheMov::createActions(){ connect(mMoveToArchiveA, SIGNAL(triggered()), mFSWidget, SLOT(moveToArchive())); //View menu (FS) + mRefreshA = new QAction(QIcon(":/refresh.png"), tr("Refresh"), this); connect(mRefreshA, SIGNAL(triggered()), mFSWidget->fileModel(), SLOT(refresh())); mFSViewPropertiesA = new QAction(QIcon(":/bizarre_amputee.png"), tr("Properties..."), this); @@ -572,7 +573,11 @@ void SheMov::createActions(){ // edit metadata mArchiveViewMetadataA = new QAction(tr("Edit metadata..."), this); mArchiveViewMetadataA->setData(ArchiveModel::SeriesPartNode); + // add Covers connect(mArchiveViewMetadataA, SIGNAL(triggered()), c->archiveTree(), SLOT(editMetadata())); + mArchiveViewAddCoversA = new QAction(QIcon(":/huge_bra.png"), tr("Add Covers..."), this); + mArchiveViewAddCoversA->setData(ArchiveModel::SeriesPartNode); + connect(mArchiveViewAddCoversA, SIGNAL(triggered()), c, SLOT(addCovers())); // refresh all mArchiveViewRefreshA = new QAction(tr("Refresh"), this); mArchiveViewRefreshA->setData(ArchiveModel::AllNodes); @@ -772,6 +777,7 @@ void SheMov::createMenus(){ c->addActionForTree(mArchiveViewGenresA); c->addActionForTree(mArchiveViewPartnoA); c->addActionForTree(mArchiveViewMetadataA); + c->addActionForTree(mArchiveViewAddCoversA); c->addActionForTree(createSeparator()); c->addActionForTree(mArchiveViewMarkFavA); c->addActionForTree(createSeparator()); @@ -851,6 +857,7 @@ void SheMov::createToolBar(){ mArchive->toolBar()->addSeparator(); mArchive->toolBar()->addAction(mArchiveFilesPreviewA); mArchive->toolBar()->addAction(mArchiveFilesPropertiesA); + mArchive->toolBar()->addAction(mArchiveViewAddCoversA); mArchive->toolBar()->addSeparator(); mArchive->toolBar()->addAction(mConfigA); } -- cgit v1.2.3-70-g09d2