2011-05-12 22:57:08 +02:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// LameXP - Audio Encoder Front-End
|
2012-01-02 00:52:27 +01:00
|
|
|
// Copyright (C) 2004-2012 LoRd_MuldeR <MuldeR2@GMX.de>
|
2011-05-12 22:57:08 +02:00
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program 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 this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
//
|
|
|
|
// http://www.gnu.org/licenses/gpl-2.0.txt
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
class CueSheetModel;
|
2011-05-15 01:45:27 +02:00
|
|
|
class LockedFile;
|
2012-12-15 23:23:22 +01:00
|
|
|
class AudioFileModel;
|
2011-05-15 01:45:27 +02:00
|
|
|
class FileListModel;
|
2013-01-18 02:42:37 +01:00
|
|
|
class SettingsModel;
|
2011-05-12 22:57:08 +02:00
|
|
|
|
2012-12-15 23:23:22 +01:00
|
|
|
//UIC forward declartion
|
|
|
|
namespace Ui {
|
|
|
|
class CueSheetImport;
|
|
|
|
}
|
|
|
|
|
|
|
|
//CueImportDialog class
|
|
|
|
class CueImportDialog : public QDialog
|
2011-05-12 22:57:08 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2013-01-18 02:42:37 +01:00
|
|
|
CueImportDialog(QWidget *parent, FileListModel *fileList, const QString &cueFile, const SettingsModel *settings);
|
2011-05-12 22:57:08 +02:00
|
|
|
~CueImportDialog(void);
|
|
|
|
|
2011-05-15 01:45:27 +02:00
|
|
|
int exec(void);
|
2011-05-12 22:57:08 +02:00
|
|
|
|
2011-05-13 02:44:20 +02:00
|
|
|
protected:
|
|
|
|
void CueImportDialog::showEvent(QShowEvent *event);
|
|
|
|
|
2011-05-12 22:57:08 +02:00
|
|
|
private slots:
|
2011-05-14 15:54:04 +02:00
|
|
|
void browseButtonClicked(void);
|
2011-05-12 22:57:08 +02:00
|
|
|
void importButtonClicked(void);
|
2011-09-29 17:36:38 +02:00
|
|
|
void loadOtherButtonClicked(void);
|
2011-05-13 02:44:20 +02:00
|
|
|
void modelChanged(void);
|
2011-05-14 18:34:34 +02:00
|
|
|
void analyzedFile(const AudioFileModel &file);
|
2011-05-12 22:57:08 +02:00
|
|
|
|
|
|
|
private:
|
2012-12-15 23:23:22 +01:00
|
|
|
Ui::CueSheetImport *ui; //for Qt UIC
|
|
|
|
|
2011-05-14 18:34:34 +02:00
|
|
|
void importCueSheet(void);
|
2011-05-15 18:53:44 +02:00
|
|
|
bool analyzeFiles(QStringList &files);
|
|
|
|
void splitFiles(void);
|
2011-05-14 18:34:34 +02:00
|
|
|
|
2011-05-12 22:57:08 +02:00
|
|
|
CueSheetModel *m_model;
|
2011-05-15 01:45:27 +02:00
|
|
|
FileListModel *m_fileList;
|
|
|
|
|
2013-01-18 02:42:37 +01:00
|
|
|
const SettingsModel *m_settings;
|
|
|
|
|
2011-05-15 01:45:27 +02:00
|
|
|
QList<LockedFile*> m_locks;
|
|
|
|
QList<AudioFileModel> m_fileInfo;
|
|
|
|
QString m_cueFileName;
|
2011-05-14 15:54:04 +02:00
|
|
|
QString m_outputDir;
|
2011-05-12 22:57:08 +02:00
|
|
|
};
|