Qmmp
/usr/src/RPM/BUILD/qmmp-0.7-svn/src/qmmpui/jumptotrackdialog_p.h
00001 /***************************************************************************
00002  *   Copyright (C) 2007-2012 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 "ui_jumptotrackdialog.h"
00026 
00027 class QStringListModel;
00028 class QSortFilterProxyModel;
00029 class PlayListManager;
00030 class PlayListModel;
00031 
00036 class JumpToTrackDialog : public QDialog, private Ui::JumpToTrackDialog
00037 {
00038     Q_OBJECT
00039 
00040 public:
00041     JumpToTrackDialog(PlayListModel *model, QWidget* parent = 0);
00042     ~JumpToTrackDialog();
00043     void refresh();
00044 
00045 private slots:
00046     void on_refreshPushButton_clicked();
00047     void on_queuePushButton_clicked();
00048     void on_jumpToPushButton_clicked();
00049     void on_filterLineEdit_textChanged(const QString&);
00050     void on_filterLineEdit_returnPressed ();
00051     void jumpTo(const QModelIndex&);
00052     void queueUnqueue(const QModelIndex&,const QModelIndex&);
00053 
00054 private:
00055     QStringListModel* m_listModel;
00056     QSortFilterProxyModel* m_proxyModel;
00057     PlayListManager *m_pl_manager;
00058     PlayListModel *m_model;
00059 };
00060 
00061 #endif //JUMPTOTRACKDIALOG_P_H
00062 
 All Classes Functions Variables Enumerations Enumerator