Qmmp
detailsdialog.h
1 /***************************************************************************
2  * Copyright (C) 2009-2018 by Ilya Kotov *
3  * forkotov02@ya.ru *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19  ***************************************************************************/
20 #ifndef DETAILSDIALOG_H
21 #define DETAILSDIALOG_H
22 
23 #include <QDialog>
24 #include <QList>
25 #include <QMap>
26 #include <qmmp/qmmp.h>
27 #include <qmmp/trackinfo.h>
28 #include "qmmpui_export.h"
29 
30 class QTextCodec;
31 class QAbstractButton;
32 class PlayListTrack;
33 class MetaDataModel;
34 class MetaDataItem;
35 
36 namespace Ui {
37  class DetailsDialog;
38 }
39 
43 class QMMPUI_EXPORT DetailsDialog : public QDialog
44 {
45  Q_OBJECT
46 public:
52  DetailsDialog(QList<PlayListTrack *> tracks, QWidget *parent = 0);
56  ~DetailsDialog();
57 
58 private slots:
59  void on_buttonBox_clicked(QAbstractButton *button);
60  void on_tabWidget_currentChanged(int index);
61  void on_directoryButton_clicked();
62  void on_prevButton_clicked();
63  void on_nextButton_clicked();
64 
65 private:
66  Ui::DetailsDialog *m_ui;
67  void closeEvent(QCloseEvent *);
68  void updatePage();
69  void printInfo();
70  QString formatRow(const QString &key, const QString &value) const;
71  QString formatRow(const MetaDataItem &item) const;
72  MetaDataModel *m_metaDataModel;
73  QList<PlayListTrack *> m_tracks;
74  TrackInfo m_info;
75  int m_page;
76 };
77 
78 #endif
Definition: columneditor_p.h:26
The MetaDataModel is the base interface class of metadata access.
Definition: metadatamodel.h:54
The DetailsDialog class provides dialog to show/edit metadata.
Definition: detailsdialog.h:43
The PlayListTrack class provides a track for use with the PlayListModel class.
Definition: playlisttrack.h:36