#ifndef CATEGORIESVIEW_H
#define CATEGORIESVIEW_H
-#include <QtGui>
-#if QT_VERSION >= 0x050000
#include <QtWidgets>
-#endif
+
#include "view.h"
class VideoSource;
struct YTCategory;
class YTStandardFeed;
+class VideoSourceWidget;
class StandardFeedsView : public View {
-
Q_OBJECT
public:
protected:
void paintEvent(QPaintEvent *event);
-
+
private slots:
- void layoutCategories(const QList<YTCategory> &categories);
+ void layoutCategories(const QVector<YTCategory> &categories);
void selectWorldwideRegion();
void selectLocalRegion();
+ void removeVideoSourceWidget(VideoSourceWidget *videoSourceWidget);
private:
+ void resetLayout();
void addVideoSourceWidget(VideoSource *videoSource);
- QList<YTStandardFeed*> getMainFeeds();
- YTStandardFeed* buildStardardFeed(const QString &feedId, const QString &label, QString time = QString());
+ YTStandardFeed *
+ buildStandardFeed(const QString &feedId, const QString &label, QString time = QString());
QGridLayout *layout;
-
};
#endif // CATEGORIESVIEW_H