~ubuntu-branches/ubuntu/lucid/mumble/lucid-security

« back to all changes in this revision

Viewing changes to src/mumble11x/AudioConfigDialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Thorvald Natvig, Patrick Matthäi, Thorvald Natvig
  • Date: 2009-11-11 23:33:38 UTC
  • mfrom: (9.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20091111233338-yrojdl25rlm0f2zy
Tags: 1.2.0~beta1-1
[ Patrick Matthäi ]
* Do not build with missing libcap2-dev on kfreebsd-*.
* Merge 1.1.8-3 and 1.1.8-4 changelog.
* Merge remaining changes from the 1.1.8 branch.
* Also install the menu icon for the mumble-11x package.
* Extend the long description of the mumble-11x package. Thanks lintian.

[ Thorvald Natvig ]
* New upstream beta release.
* Update get-orig-source.
* Update dependencies.
* Let the qmake script find the celt/speex libraries on its own.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2005-2009, Thorvald Natvig <thorvald@natvig.com>
 
2
 
 
3
   All rights reserved.
 
4
 
 
5
   Redistribution and use in source and binary forms, with or without
 
6
   modification, are permitted provided that the following conditions
 
7
   are met:
 
8
 
 
9
   - Redistributions of source code must retain the above copyright notice,
 
10
     this list of conditions and the following disclaimer.
 
11
   - Redistributions in binary form must reproduce the above copyright notice,
 
12
     this list of conditions and the following disclaimer in the documentation
 
13
     and/or other materials provided with the distribution.
 
14
   - Neither the name of the Mumble Developers nor the names of its
 
15
     contributors may be used to endorse or promote products derived from this
 
16
     software without specific prior written permission.
 
17
 
 
18
   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 
19
   ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 
20
   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 
21
   A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR
 
22
   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 
23
   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 
24
   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 
25
   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 
26
   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 
27
   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 
28
   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
29
*/
 
30
 
 
31
#ifndef _AUDIOCONFIGDIALOG_H
 
32
#define _AUDIOCONFIGDIALOG_H
 
33
 
 
34
#include "ConfigDialog.h"
 
35
 
 
36
#include "ui_AudioInput.h"
 
37
#include "ui_AudioOutput.h"
 
38
 
 
39
class AudioInputDialog : public ConfigWidget, public Ui::AudioInput {
 
40
        private:
 
41
                Q_OBJECT
 
42
                Q_DISABLE_COPY(AudioInputDialog)
 
43
        protected:
 
44
                QTimer *qtTick;
 
45
                void hideEvent(QHideEvent *event);
 
46
                void showEvent(QShowEvent *event);
 
47
        public:
 
48
                AudioInputDialog(Settings &st);
 
49
                virtual QString title() const;
 
50
                virtual QIcon icon() const;
 
51
        public slots:
 
52
                void save() const;
 
53
                void load(const Settings &r);
 
54
                bool expert(bool);
 
55
                void updateBitrate();
 
56
                void on_qsTransmitHold_valueChanged(int v);
 
57
                void on_qsFrames_valueChanged(int v);
 
58
                void on_qsQuality_valueChanged(int v);
 
59
                void on_qsAmp_valueChanged(int v);
 
60
                void on_qsDoublePush_valueChanged(int v);
 
61
                void on_qsNoise_valueChanged(int v);
 
62
                void on_qsIdle_valueChanged(int v);
 
63
                void on_qcbTransmit_currentIndexChanged(int v);
 
64
                void on_qcbSystem_currentIndexChanged(int);
 
65
                void on_Tick_timeout();
 
66
};
 
67
 
 
68
class AudioOutputDialog : public ConfigWidget, public Ui::AudioOutput {
 
69
        private:
 
70
                Q_OBJECT
 
71
                Q_DISABLE_COPY(AudioOutputDialog)
 
72
        public:
 
73
                AudioOutputDialog(Settings &st);
 
74
                virtual QString title() const;
 
75
                virtual QIcon icon() const;
 
76
        public slots:
 
77
                void save() const;
 
78
                void load(const Settings &r);
 
79
                bool expert(bool);
 
80
                void on_qsDelay_valueChanged(int v);
 
81
                void on_qsJitter_valueChanged(int v);
 
82
                void on_qsVolume_valueChanged(int v);
 
83
                void on_qsOtherVolume_valueChanged(int v);
 
84
                void on_qsPacketDelay_valueChanged(int v);
 
85
                void on_qsPacketLoss_valueChanged(int v);
 
86
                void on_qcbLoopback_currentIndexChanged(int v);
 
87
                void on_qsMinDistance_valueChanged(int v);
 
88
                void on_qsMaxDistance_valueChanged(int v);
 
89
                void on_qsBloom_valueChanged(int v);
 
90
                void on_qsMaxDistVolume_valueChanged(int v);
 
91
                void on_qcbSystem_currentIndexChanged(int);
 
92
                void on_qcbPositional_stateChanged(int);
 
93
};
 
94
 
 
95
#endif