From 895a5f5dae68fbcbf45ae7e073281f9bbd09931f Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 28 May 2011 10:17:06 +0200 Subject: Suggest file for burning Implemented an action to suggest the best fitting file for burning in FilesTreeWidget. Added 20 Mb of margin to maximum dvd size. --- shemov.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index cf49b57..b1b8fbe 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -595,6 +595,8 @@ void SheMov::createActions(){ copyMapper->setMapping(mCopyWindowsDirA, ArchiveTreeView::WindowsDir); connect(mCopyWindowsDirA, SIGNAL(triggered()), copyMapper, SLOT(map())); connect(copyMapper, SIGNAL(mapped(int)), mATree, SLOT(copyPath(int))); + mSuggestFileA = new QAction(QIcon(":/analstretcher.png"), tr("Suggest file for burning"), this); + connect(mSuggestFileA, SIGNAL(triggered()), mATree->filesWidget(), SLOT(suggest())); // misc mOpenWithMapperFS = new QSignalMapper(this); @@ -676,6 +678,7 @@ void SheMov::createMenus(){ mTreeViewMenu->addAction(mShowLocalA); mTreeViewMenu->addAction(mShowArchivedA); mTreeViewMenu->addAction(mShowAllFilesA); + mTreeViewMenu->addAction(mSuggestFileA); QAction *sep14 = new QAction(this); sep14->setSeparator(true); mTreeViewMenu->addAction(sep14); @@ -792,6 +795,7 @@ void SheMov::createMenus(){ sep21->setSeparator(true); mATree->filesWidget()->filesTree()->addAction(sep20); mATree->filesWidget()->filesTree()->addAction(mShowAllFilesA); + mATree->filesWidget()->filesTree()->addAction(mSuggestFileA); QAction *sep8 = new QAction(this); sep8->setSeparator(true); mATree->filesWidget()->filesTree()->addAction(sep8); @@ -877,6 +881,7 @@ void SheMov::createToolBar(){ toolBar->addAction(mShowArchivedA); toolBar->addAction(mShowLocalA); toolBar->addAction(mShowAllFilesA); + toolBar->addAction(mSuggestFileA); toolBar->addSeparator(); toolBar->addActions(mFilterGroup->actions()); toolBar->addAction(mFilterFavoritesA); -- cgit v1.2.3-70-g09d2