blob: d239e181c71457ba1fc4810cc2aed7147a95fbf9 (
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
|
// Copyright 2005-2017 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#ifndef MUMBLE_MUMBLE_AUDIOSTATS_H_
#define MUMBLE_MUMBLE_AUDIOSTATS_H_
#include <QtCore/QtGlobal>
#include <QtCore/QList>
#include <QtCore/QTimer>
#if QT_VERSION >= 0x050000
# include <QtWidgets/QWidget>
#else
# include <QtGui/QWidget>
#endif
class AudioBar : public QWidget {
private:
Q_OBJECT
Q_DISABLE_COPY(AudioBar)
protected:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
public:
AudioBar(QWidget *parent = NULL);
int iMin, iMax;
int iBelow, iAbove;
int iValue, iPeak;
QColor qcBelow, qcInside, qcAbove;
QList<QColor> qlReplacableColors;
QList<Qt::BrushStyle> qlReplacementBrushes;
};
class AudioEchoWidget : public QWidget {
private:
Q_OBJECT
Q_DISABLE_COPY(AudioEchoWidget)
public:
AudioEchoWidget(QWidget *parent);
protected slots:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
};
class AudioNoiseWidget : public QWidget {
private:
Q_OBJECT
Q_DISABLE_COPY(AudioNoiseWidget)
public:
AudioNoiseWidget(QWidget *parent);
protected slots:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
};
#include "ui_AudioStats.h"
class AudioStats : public QDialog, public Ui::AudioStats {
private:
Q_OBJECT
Q_DISABLE_COPY(AudioStats)
protected:
QTimer *qtTick;
bool bTalking;
public:
AudioStats(QWidget *parent);
~AudioStats() Q_DECL_OVERRIDE;
public slots:
void on_Tick_timeout();
};
#else
class AudioStats;
#endif
|