blob: eb267c44b9f721efba47a2742974b6076d1ecb6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
/*
avdeviceconfig.h - Kopete Video Device Configuration Panel
Copyright (c) 2005-2006 by Cláudio da Silveira Pinheiro <taupter@gmail.com>
Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* *
* This program 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 2 of the License, or *
* (at your option) any later version. *
* *
*************************************************************************
*/
#ifndef AVDEVICECONFIG_H
#define AVDEVICECONFIG_H
#include "kcmodule.h"
#include "videodevicepool.h"
#include <tqimage.h>
#include <tqpixmap.h>
#include <tqtimer.h>
#ifdef HAVE_GL
# include <tqgl.h>
#endif
class TQFrame;
class TQTabWidget;
class AVDeviceConfig_VideoDevice;
class AVDeviceConfig_AudioDevice;
/**
@author Cl�dio da Silveira Pinheiro
*/
class AVDeviceConfig : public KCModule
{
Q_OBJECT
TQ_OBJECT
public:
AVDeviceConfig(TQWidget *parent, const char * name , const TQStringList &args);
~AVDeviceConfig();
virtual void save();
virtual void load();
private slots:
void slotSettingsChanged(bool);
void slotValueChanged(int);
void slotDeviceKComboBoxChanged(int);
void slotInputKComboBoxChanged(int);
void slotStandardKComboBoxChanged(int);
void slotBrightnessSliderChanged(int);
void slotContrastSliderChanged(int);
void slotSaturationSliderChanged(int);
void slotWhitenessSliderChanged(int);
void slotHueSliderChanged(int);
void slotImageAutoBrightnessContrastChanged(bool);
void slotImageAutoColorCorrectionChanged(bool);
void slotImageAsMirrorChanged(bool);
void slotUpdateImage();
private:
TQTabWidget* mAVDeviceTabCtl;
AVDeviceConfig_VideoDevice *mPrfsVideoDevice;
AVDeviceConfig_AudioDevice *mPrfsAudioDevice;
Kopete::AV::VideoDevicePool *mVideoDevicePool ;
TQImage qimage;
TQPixmap qpixmap;
TQTimer qtimer;
void setVideoInputParameters();
#ifdef HAVE_GL
TQGLWidget m_video_gl;
#endif
};
#endif
|