summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authoram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-07-13 15:42:03 +0000
committeram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-07-13 15:42:03 +0000
commit440f3fe87e9adc95f6155b924162e335f2b434e0 (patch)
tree35aae6cb701552252ced67b7ba7f17bcdc7b8c9b /shemov.cpp
parenta3dd54389f7b28431fc9853cd57af231bd6a3c9c (diff)
downloadSheMov-440f3fe87e9adc95f6155b924162e335f2b434e0.tar.gz
SheMov-440f3fe87e9adc95f6155b924162e335f2b434e0.tar.bz2
SheMov-440f3fe87e9adc95f6155b924162e335f2b434e0.zip
-Finished ConfigurationDialog->paths
-Implemented ExtractorDialog (untested) -started work on extractor menus git-svn-id: file:///var/svn/repos2/shemov/trunk@386 f440f766-f032-0410-8965-dc7d17de2ca0
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/shemov.cpp b/shemov.cpp
index f5d9e61..2ec0d7a 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -15,11 +15,13 @@
#include <QLabel>
#include <QItemSelection>
#include <QSignalMapper>
+#include <QSettings>
#include <QDebug>
#include "shemov.h"
#include "filesystemwidget.h"
#include "fileview.h"
+#include "configurationdialog.h"
SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, flags) {
mFSWidget = new FilesystemWidget;
@@ -66,6 +68,11 @@ void SheMov::setTemplate(const QString &newTemplate){
mTemplate->setText(newTemplate);
}
+void SheMov::configure(){
+ ConfigurationDialog dlg(this);
+ dlg.exec();
+}
+
void SheMov::createStatusbar(){
QLabel *selCountL = new QLabel(tr("Sel. Items"));
mSelectedItems = new QLabel("0");
@@ -123,6 +130,8 @@ void SheMov::createActions(){
mRenameA->setShortcut(tr("CTRL+r"));
connect(mRenameA, SIGNAL(triggered()), mFSWidget, SLOT(renameFile()));
mFSWidget->fileView()->addAction(mRenameA);
+ mConfigA = new QAction(tr("Configure..."), this);
+ connect(mConfigA, SIGNAL(triggered()), this, SLOT(configure()));
//Edit menu rename submenu
mTemplateA = new QAction(tr("Set as template"), this);
@@ -150,6 +159,11 @@ void SheMov::createActions(){
mRenameCoverCA->setData("RenameMenu");
mFSWidget->fileView()->addAction(mRenameCoverCA);
connect(mRenameMapper, SIGNAL(mapped(const QString &)), mFSWidget, SLOT(renameCover(const QString &)));
+
+ //Edit menu extract submenu
+ mExtractMapper = new QSignalMapper(this);
+ mExtractMenu = new QMenu(tr("E&xtract to..."), this);
+ createExtractMenu();
}
void SheMov::createMenus(){
@@ -175,8 +189,13 @@ void SheMov::createMenus(){
editMenu->addMenu(renameMenu);
editMenu->addSeparator();
editMenu->addAction(mRefreshA);
+ editMenu->addSeparator();
+ editMenu->addAction(mConfigA);
menuBar()->addMenu(fileMenu);
menuBar()->addMenu(editMenu);
}
+void SheMov::createExtractMenu(){
+
+}