57 lines
1.4 KiB
C
57 lines
1.4 KiB
C
|
/* This file is part of Clementine.
|
||
|
|
||
|
Clementine is free software: you can redistribute it and/or modify
|
||
|
it under the terms of the GNU General Public License as published by
|
||
|
the Free Software Foundation, either version 3 of the License, or
|
||
|
(at your option) any later version.
|
||
|
|
||
|
Clementine is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
GNU General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU General Public License
|
||
|
along with Clementine. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
#ifndef RADIOVIEWCONTAINER_H
|
||
|
#define RADIOVIEWCONTAINER_H
|
||
|
|
||
|
#include <QWidget>
|
||
|
|
||
|
#include "ui_radioviewcontainer.h"
|
||
|
|
||
|
class RadioModel;
|
||
|
class RadioService;
|
||
|
class RadioView;
|
||
|
|
||
|
class QTimeLine;
|
||
|
|
||
|
class RadioViewContainer : public QWidget {
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
RadioViewContainer(QWidget* parent = 0);
|
||
|
|
||
|
void SetModel(RadioModel* model);
|
||
|
|
||
|
RadioView* tree() const { return ui_.tree; }
|
||
|
|
||
|
private slots:
|
||
|
void CurrentIndexChanged(const QModelIndex& index);
|
||
|
void SetFilterHeight(int height);
|
||
|
|
||
|
private:
|
||
|
void SetFilterVisible(bool visible);
|
||
|
|
||
|
private:
|
||
|
Ui::RadioViewContainer ui_;
|
||
|
RadioModel* model_;
|
||
|
RadioService* current_service_;
|
||
|
|
||
|
bool filter_visible_;
|
||
|
QTimeLine* filter_animation_;
|
||
|
};
|
||
|
|
||
|
#endif // RADIOVIEWCONTAINER_H
|