OSDN Git Service

Set proper exit code.
[lamexp/LameXP.git] / src / Dialog_CueImport.h
index b918055..59939f1 100644 (file)
@@ -1,6 +1,6 @@
 ///////////////////////////////////////////////////////////////////////////////
 // LameXP - Audio Encoder Front-End
-// Copyright (C) 2004-2011 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2012 LoRd_MuldeR <MuldeR2@GMX.de>
 //
 // 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
 #pragma once
 
 #include <QDialog>
-#include "../tmp/UIC_CueSheetImport.h"
-
-#include "Model_AudioFile.h"
 
 class CueSheetModel;
+class LockedFile;
+class AudioFileModel;
+class FileListModel;
+
+//UIC forward declartion
+namespace Ui {
+       class CueSheetImport;
+}
 
-class CueImportDialog : public QDialog, private Ui::CueSheetImport
+//CueImportDialog class
+class CueImportDialog : public QDialog
 {
        Q_OBJECT
 
 public:
-       CueImportDialog(QWidget *parent);
+       CueImportDialog(QWidget *parent, FileListModel *fileList, const QString &cueFile);
        ~CueImportDialog(void);
 
-       int exec(const QString &cueFile);
+       int exec(void);
 
 protected:
        void CueImportDialog::showEvent(QShowEvent *event);
 
 private slots:
+       void browseButtonClicked(void);
        void importButtonClicked(void);
+       void loadOtherButtonClicked(void);
        void modelChanged(void);
+       void analyzedFile(const AudioFileModel &file);
 
 private:
+       Ui::CueSheetImport *ui; //for Qt UIC
+       
+       void importCueSheet(void);
+       bool analyzeFiles(QStringList &files);
+       void splitFiles(void);
+
        CueSheetModel *m_model;
+       FileListModel *m_fileList;
+
+       QList<LockedFile*> m_locks;
+       QList<AudioFileModel> m_fileInfo;
+       QString m_cueFileName;
+       QString m_outputDir;
 };