1 | /* This file is part of the KDE project |
2 | Copyright (C) 2006-2007 Matthias Kretz <kretz@kde.org> |
3 | |
4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public |
6 | License as published by the Free Software Foundation; either |
7 | version 2.1 of the License, or (at your option) version 3, or any |
8 | later version accepted by the membership of KDE e.V. (or its |
9 | successor approved by the membership of KDE e.V.), Nokia Corporation |
10 | (or its successors, if any) and the KDE Free Qt Foundation, which shall |
11 | act as a proxy defined in Section 6 of version 3 of the license. |
12 | |
13 | This library is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | Lesser General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Lesser General Public |
19 | License along with this library. If not, see <http://www.gnu.org/licenses/>. |
20 | |
21 | */ |
22 | |
23 | #ifndef VIDEOWIDGET_P_H |
24 | #define VIDEOWIDGET_P_H |
25 | |
26 | #include "videowidget.h" |
27 | #include "abstractvideooutput_p.h" |
28 | #include <QtGui/QBoxLayout> |
29 | #include <QtCore/QEvent> |
30 | #include <QtCore/QCoreApplication> |
31 | #include <QtGui/QPalette> |
32 | #include <QtGui/QKeyEvent> |
33 | #include <QtCore/QTimer> |
34 | |
35 | QT_BEGIN_NAMESPACE |
36 | |
37 | #ifndef QT_NO_PHONON_VIDEO |
38 | |
39 | namespace Phonon |
40 | { |
41 | |
42 | class VideoWidgetPrivate : public Phonon::AbstractVideoOutputPrivate |
43 | { |
44 | Q_DECLARE_PUBLIC(VideoWidget) |
45 | public: |
46 | virtual QObject *qObject() { return q_func(); } |
47 | protected: |
48 | virtual bool aboutToDeleteBackendObject(); |
49 | virtual void createBackendObject(); |
50 | void setupBackendObject(); |
51 | |
52 | VideoWidgetPrivate(VideoWidget *parent) |
53 | : layout(parent), |
54 | aspectRatio(VideoWidget::AspectRatioAuto), |
55 | scaleMode(VideoWidget::FitInView), |
56 | brightness(0), |
57 | contrast(0), |
58 | hue(0), |
59 | saturation(0) |
60 | { |
61 | layout.setMargin(0); |
62 | } |
63 | |
64 | QHBoxLayout layout; |
65 | VideoWidget::AspectRatio aspectRatio; |
66 | VideoWidget::ScaleMode scaleMode; |
67 | Qt::WindowFlags changeFlags; |
68 | |
69 | qreal brightness; |
70 | qreal contrast; |
71 | qreal hue; |
72 | qreal saturation; |
73 | |
74 | private: |
75 | void init(); |
76 | }; |
77 | |
78 | } // namespace Phonon |
79 | |
80 | #endif //QT_NO_PHONON_VIDEO |
81 | |
82 | QT_END_NAMESPACE |
83 | #endif // VIDEOWIDGET_P_H |
84 | // vim: sw=4 ts=4 tw=80 |
85 | |