svgui  1.9
MIDIFileImportDialog.h
Go to the documentation of this file.
00001 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
00002 
00003 /*
00004     Sonic Visualiser
00005     An audio file viewer and annotation editor.
00006     Centre for Digital Music, Queen Mary, University of London.
00007     
00008     This program is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU General Public License as
00010     published by the Free Software Foundation; either version 2 of the
00011     License, or (at your option) any later version.  See the file
00012     COPYING included with this distribution for more information.
00013 */
00014 
00015 #ifndef _MIDI_FILE_IMPORT_DIALOG_H_
00016 #define _MIDI_FILE_IMPORT_DIALOG_H_
00017 
00018 #include <QObject>
00019 
00020 #include "data/fileio/MIDIFileReader.h"
00021 
00022 class MIDIFileImportDialog : public QObject,
00023                              public MIDIFileImportPreferenceAcquirer
00024 {
00025     Q_OBJECT
00026 
00027 public:
00028     MIDIFileImportDialog(QWidget *parent = 0);
00029 
00030     virtual TrackPreference getTrackImportPreference
00031     (QStringList trackNames, bool haveSomePercussion,
00032      QString &singleTrack) const;
00033 
00034     virtual void showError(QString error);
00035 
00036 protected:
00037     QWidget *m_parent;
00038 };
00039 
00040 #endif