Qmmp
/usr/src/RPM/BUILD/qmmp-0.8-svn/src/qmmpui/detailsdialog.h
00001 /***************************************************************************
00002  *   Copyright (C) 2009-2013 by Ilya Kotov                                 *
00003  *   forkotov02@hotmail.ru                                                 *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
00019  ***************************************************************************/
00020 #ifndef DETAILSDIALOG_H
00021 #define DETAILSDIALOG_H
00022 
00023 #include <QDialog>
00024 #include <QList>
00025 #include <QMap>
00026 #include <qmmp/qmmp.h>
00027 
00028 class QTextCodec;
00029 class QAbstractButton;
00030 class PlayListTrack;
00031 class MetaDataModel;
00032 
00033 namespace Ui {
00034     class DetailsDialog;
00035 }
00036 
00040 class DetailsDialog : public QDialog
00041 {
00042     Q_OBJECT
00043 public:
00049     DetailsDialog(QList<PlayListTrack *> tracks, QWidget *parent = 0);
00053     ~DetailsDialog();
00054 
00055 private slots:
00056     void on_buttonBox_clicked(QAbstractButton *button);
00057     void on_directoryButton_clicked();
00058     void on_prevButton_clicked();
00059     void on_nextButton_clicked();
00060 
00061 private:
00062     Ui::DetailsDialog *m_ui;
00063     void updatePage();
00064     void printInfo();
00065     QString formatRow(const QString key, const QString value);
00066     QString m_path;
00067     MetaDataModel *m_metaDataModel;
00068     PlayListTrack *m_track;
00069     QList<PlayListTrack *> m_tracks;
00070     QMap <Qmmp::MetaData, QString> m_metaData;
00071     int m_page;
00072 };
00073 
00074 #endif
 All Classes Functions Variables Enumerations Enumerator