summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authoram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-08-15 13:59:50 +0000
committeram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-08-15 13:59:50 +0000
commitf0eae1094e83a73b9baeebd21e0c77cce3803e19 (patch)
tree546b8593e95dba76b39a01a4946679f5222472cb /shemov.cpp
parent06233888b033adc6e821331e6d1822e9807371ae (diff)
downloadSheMov-f0eae1094e83a73b9baeebd21e0c77cce3803e19.tar.gz
SheMov-f0eae1094e83a73b9baeebd21e0c77cce3803e19.tar.bz2
SheMov-f0eae1094e83a73b9baeebd21e0c77cce3803e19.zip
-Modified MovieModel:
->FullPathRole and CoverPathRole ->maxValue of any column -Implemented move files to directory for burning -Implemented collective DVDNo change -Implemented delete from archive git-svn-id: file:///var/svn/repos2/shemov/trunk@402 f440f766-f032-0410-8965-dc7d17de2ca0
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 4e18806..c769709 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -87,6 +87,7 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla
connect(mFSWidget, SIGNAL(statusbarMessage(const QString &)), this, SLOT(statusbarMessage(const QString &)));
connect(mFSWidget, SIGNAL(newTemplate(const QString &)), this, SLOT(setTemplate(const QString &)));
connect(mAVWidget, SIGNAL(statusbarMessage(const QString &)), this, SLOT(statusbarMessage(const QString &)));
+ connect(mAVWidget, SIGNAL(refreshDir(const QString &)), mFSWidget, SLOT(refreshDir(const QString &)));
connect(mTab, SIGNAL(currentChanged(int)), this, SLOT(tabChanged(int)));
QWidget *centralWidget = new QWidget;
@@ -140,11 +141,9 @@ void SheMov::tabChanged(int newTab){
mEditArchiveMenuA->setVisible(newTab == 1);
if(newTab == 0){
setWindowTitle(mFSWidget->windowTitle());
- //mSelectedItems->setText(QString::number(mFSWidget->fileView()->selectionModel()->selectedRows().count()));
}
if(newTab == 1){
setWindowTitle(mAVWidget->windowTitle());
- //mSelectedItems->setText(QString::number(mAVWidget->fileView()->selectionModel()->selectedRows().count()));
}
updateSelectionCount(QItemSelection(), QItemSelection());
}
@@ -265,6 +264,15 @@ void SheMov::createActions(){
mPropertiesA = new QAction(tr("Properties..."), this);
mAVWidget->fileView()->addAction(mPropertiesA);
connect(mPropertiesA, SIGNAL(triggered()), mAVWidget, SLOT(properties()));
+ mMoveBurnA = new QAction(tr("Move for burning..."), this);
+ mAVWidget->fileView()->addAction(mMoveBurnA);
+ connect(mMoveBurnA, SIGNAL(triggered()), mAVWidget, SLOT(moveBurn()));
+ mSetDvdA = new QAction(tr("Set DVD No. for selected..."), this);
+ mAVWidget->fileView()->addAction(mSetDvdA);
+ connect(mSetDvdA, SIGNAL(triggered()), mAVWidget, SLOT(setDvdNo()));
+ mDeleteFromArchiveA = new QAction(tr("Delete from archive..."), this);
+ mAVWidget->fileView()->addAction(mDeleteFromArchiveA);
+ connect(mDeleteFromArchiveA, SIGNAL(triggered()), mAVWidget, SLOT(deleteFromArchive()));
}
void SheMov::createMenus(){
@@ -299,7 +307,13 @@ void SheMov::createMenus(){
mEditArchiveMenu = new QMenu(tr("&Edit archive"), this);
mEditArchiveMenu->addAction(mEditArchiveFileA);
mEditArchiveMenu->addAction(mEditArchiveCoverA);
+ mEditArchiveMenu->addSeparator();
mEditArchiveMenu->addAction(mPropertiesA);
+ mEditArchiveMenu->addSeparator();
+ mEditArchiveMenu->addAction(mMoveBurnA);
+ mEditArchiveMenu->addAction(mSetDvdA);
+ mEditArchiveMenu->addSeparator();
+ mEditArchiveMenu->addAction(mDeleteFromArchiveA);
menuBar()->addMenu(fileMenu);
mEditFSMenuA = menuBar()->addMenu(mEditFSMenu);