-// EmuFront
-// Copyright 2010 Mikko Keinänen
-//
-// This file is part of EmuFront.
-//
-//
-// EmuFront is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License version 2 as published by
-// the Free Software Foundation and appearing in the file gpl.txt included in the
-// packaging of this file.
-//
-// EmuFront is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with EmuFront. If not, see <http://www.gnu.org/licenses/>.
-
+/*
+** EmuFront
+** Copyright 2010 Mikko Keinänen
+**
+** This file is part of EmuFront.
+**
+**
+** EmuFront is free software: you can redistribute it and/or modify
+** it under the terms of the GNU General Public License version 2 as published by
+** the Free Software Foundation and appearing in the file gpl.txt included in the
+** packaging of this file.
+**
+** EmuFront is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU General Public License for more details.
+**
+** You should have received a copy of the GNU General Public License
+** along with EmuFront. If not, see <http://www.gnu.org/licenses/>.
+*/
#include <QtGui>
-#include "../dataobjects/filepathobject.h"
-#include "../dataobjects/emufrontfileobject.h"
-#include "../db/dbfilepath.h"
-#include "../utils/fileutil.h"
+#include "filepathobject.h"
+#include "emufrontfileobject.h"
+#include "dbfilepath.h"
+#include "fileutil.h"
#include "mediaimagepathmaindialog.h"
#include "mediaimagepathdialog.h"
hideColumns();
fileUtil = new FileUtil(this);
-
initProgressDialog();
+
// do not move to parent class:
connectSignals();
}
{
DbObjectDialog::connectSignals();
connect(scanButton, SIGNAL(clicked()), this, SLOT(beginScanFilePath()));
- connect(fileUtil, SIGNAL(dbUpdateFinished()), this, SLOT(hideDbUpdating()));
- connect(fileUtil, SIGNAL(dbUpdateInProgress()), this, SLOT(showDbUpdating()));
-}
-
-void MediaImagePathMainDialog::showDbUpdating()
-{
- qDebug() << "DB updating";
- // TODO: the following is not currently working
- progressDialog->setWindowTitle(tr("Updating DB... please wait!"));
- progressDialog->setEnabled(false);
}
-void MediaImagePathMainDialog::hideDbUpdating()
-{
- qDebug() << "DB update finished";
- // TODO: the following is not currently working
- progressDialog->setEnabled(true);
- progressDialog->setWindowTitle(tr("Scanning files"));
-}
-
-
void MediaImagePathMainDialog::initEditDialog()
{
nameDialog = new MediaImagePathDialog(this, dynamic_cast<FilePathObject*>(dbObject));
dbMediaImageContainer->removeFromFilePath(fpo->getId());
progressDialog->show();
- progressDialog->setEnabled(true);
setUIEnabled(false);
int count = fileUtil->scanFilePath(fpo, l, dbMediaImageContainer, progressDialog);