]> git.sur5r.net Git - minitube/blob - src/regionsview.h
f0029ca214c365d75324524265456572ce98140d
[minitube] / src / regionsview.h
1 /* $BEGIN_LICENSE
2
3 This file is part of Minitube.
4 Copyright 2009, Flavio Tordini <flavio.tordini@gmail.com>
5
6 Minitube is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 Minitube is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with Minitube.  If not, see <http://www.gnu.org/licenses/>.
18
19 $END_LICENSE */
20
21 #ifndef REGIONSVIEW_H
22 #define REGIONSVIEW_H
23
24 #include <QtGui>
25 #include "view.h"
26
27 class YTRegion;
28
29 class RegionsView : public QWidget, public View {
30
31     Q_OBJECT
32
33 public:
34     RegionsView(QWidget *parent = 0);
35     void appear();
36
37 signals:
38     void regionChanged();
39
40 private slots:
41     void buttonClicked();
42
43 private:
44     void addRegion(const YTRegion &region);
45     QGridLayout *layout;
46     QPushButton *doneButton;
47
48 };
49
50 #endif // REGIONSVIEW_H