5
* Copyright (C) 2002 Richard Moore, <rich@kde.org>
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Library General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Library General Public License for more details.
17
* You should have received a copy of the GNU Library General Public License
18
* along with this library; see the file COPYING.LIB. If not, write to
19
* the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
20
* Boston, MA 02110-1301, USA.
25
#ifndef __KDETVELEGANT_PLUGIN_H
26
#define __KDETVELEGANT_PLUGIN_H
28
#include <kdetvosdplugin.h>
29
#include "elegantconfigwidget.h"
39
* @author Richard Moore, rich@kde.org
41
class KdetvElegant : public KdetvOSDPlugin
46
KdetvElegant( Kdetv *ktv, QWidget *parent=0, const char *name=0 );
47
virtual ~KdetvElegant();
54
void display( const QString &text, const QPixmap &icon );
55
void display( const QString &text, const QString &icon=QString::null );
58
virtual void displayMisc(const QString& text);
59
virtual void displayChannel(int channel, const QString& name);
60
virtual void displayMuted(bool muted);
61
virtual void displayVolume(int vol);
62
virtual void displayCC(const QString& text);
64
virtual void viewResized(int w, int h);
66
virtual ElegantConfigWidget *configWidget( QWidget *parent, const char *name );
67
void applyConfigWidget();
70
void updateGeometry();
72
void colourKeyChanged(QColor key);
79
#endif // INCLUDE_TESTS
85
ElegantConfigWidget *form;