Qmmp
/usr/src/RPM/BUILD/qmmp-0.8-svn/src/qmmpui/jumptotrackdialog_p.h
00001 /***************************************************************************
00002  *   Copyright (C) 2007-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 
00021 #ifndef JUMPTOTRACKDIALOG_P_H
00022 #define JUMPTOTRACKDIALOG_P_H
00023 
00024 #include <QDialog>
00025 #include <QList>
00026 #include "ui_jumptotrackdialog.h"
00027 
00028 class QStringListModel;
00029 class QSortFilterProxyModel;
00030 class QEvent;
00031 class PlayListManager;
00032 class PlayListModel;
00033 
00038 class JumpToTrackDialog : public QDialog, private Ui::JumpToTrackDialog
00039 {
00040     Q_OBJECT
00041 
00042 public:
00043     JumpToTrackDialog(PlayListModel *model, QWidget* parent = 0);
00044     ~JumpToTrackDialog();
00045     void refresh();
00046 
00047 private slots:
00048     void on_refreshPushButton_clicked();
00049     void on_queuePushButton_clicked();
00050     void on_jumpToPushButton_clicked();
00051     void jumpTo(const QModelIndex&);
00052     void queueUnqueue(const QModelIndex&,const QModelIndex&);
00053 
00054 private:
00055     bool eventFilter(QObject *o, QEvent *e);
00056     QStringListModel* m_listModel;
00057     QSortFilterProxyModel* m_proxyModel;
00058     PlayListManager *m_pl_manager;
00059     PlayListModel *m_model;
00060     QList<int> m_indexes;
00061 };
00062 
00063 #endif //JUMPTOTRACKDIALOG_P_H
00064 
 All Classes Functions Variables Enumerations Enumerator