-rw-r--r-- | noncore/settings/sound/sound.pro | 16 | ||||
-rw-r--r-- | noncore/settings/sound/soundsettings.cpp | 84 | ||||
-rw-r--r-- | noncore/settings/sound/soundsettingsbase.cpp | 252 | ||||
-rw-r--r-- | noncore/settings/sound/soundsettingsbase.h | 63 |
4 files changed, 369 insertions, 46 deletions
diff --git a/noncore/settings/sound/sound.pro b/noncore/settings/sound/sound.pro index 9649262..a4f6333 100644 --- a/noncore/settings/sound/sound.pro +++ b/noncore/settings/sound/sound.pro | |||
@@ -1,11 +1,11 @@ | |||
1 | TEMPLATE= app | 1 | TEMPLATE = app |
2 | CONFIG += qt warn_on release | 2 | CONFIG += qt warn_on release |
3 | DESTDIR = ../../bin | 3 | DESTDIR = ../../bin |
4 | HEADERS = soundsettings.h | 4 | HEADERS = soundsettings.h soundsettingsbase.h |
5 | SOURCES = soundsettings.cpp main.cpp | 5 | SOURCES = soundsettings.cpp soundsettingsbase.cpp main.cpp |
6 | INTERFACES= soundsettingsbase.ui | 6 | #INTERFACES = soundsettingsbase.ui |
7 | INCLUDEPATH += $(OPIEDIR)/include | 7 | INCLUDEPATH += $(OPIEDIR)/include |
8 | DEPENDPATH+= ../$(OPIEDIR)/include | 8 | DEPENDPATH += ../$(OPIEDIR)/include |
9 | LIBS += -lqpe | 9 | LIBS += -lqpe |
10 | TARGET = sound | 10 | TARGET = sound |
11 | 11 | ||
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp index c1918de..cdee87c 100644 --- a/noncore/settings/sound/soundsettings.cpp +++ b/noncore/settings/sound/soundsettings.cpp | |||
@@ -19,2 +19,3 @@ | |||
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | |||
20 | #include "soundsettings.h" | 21 | #include "soundsettings.h" |
@@ -35,23 +36,26 @@ SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl ) | |||
35 | { | 36 | { |
36 | Config config( "Sound" ); | 37 | Config config( "qpe"); |
37 | config.setGroup( "System" ); | 38 | config.setGroup( "Volume" ); |
38 | volume->setValue(100-config.readNumEntry("Volume")); | 39 | volume->setValue(100-config.readNumEntry("VolumePercent")); |
39 | mic->setValue(100-config.readNumEntry("Mic")); | 40 | mic->setValue(100-config.readNumEntry("Mic")); |
40 | touchsound->setChecked(config.readBoolEntry("Touch")); | 41 | // touchsound->setChecked(config.readBoolEntry("TouchSound")); |
41 | keysound->setChecked(config.readBoolEntry("Key")); | 42 | // keysound->setChecked(config.readBoolEntry("KeySound")); |
42 | AlertCheckBox->setChecked(config.readBoolEntry("Alert")); | 43 | Config cfg("Vmemo"); |
44 | AlertCheckBox->setChecked(cfg.readBoolEntry("Alert")); | ||
43 | 45 | ||
44 | config.setGroup("Record"); | 46 | cfg.setGroup("Record"); |
45 | int rate=config.readNumEntry("SampleRate", 22050); | 47 | int rate=config.readNumEntry("SampleRate", 22050); |
46 | if(rate == 11025) | 48 | if(rate == 8000) |
47 | sampleRate->setCurrentItem(0); | 49 | sampleRate->setCurrentItem(0); |
48 | else if(rate == 22050) | 50 | else if(rate == 11025) |
49 | sampleRate->setCurrentItem(1); | 51 | sampleRate->setCurrentItem(1); |
50 | else if(rate == 32000) | 52 | else if(rate == 22050) |
51 | sampleRate->setCurrentItem(2); | 53 | sampleRate->setCurrentItem(2); |
54 | else if(rate == 33075) | ||
55 | sampleRate->setCurrentItem(3); | ||
52 | else if(rate==44100) | 56 | else if(rate==44100) |
53 | sampleRate->setCurrentItem(2); | 57 | sampleRate->setCurrentItem(4); |
54 | 58 | ||
55 | stereoCheckBox->setChecked(config.readNumEntry("Stereo", 0)); | 59 | stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0)); |
56 | sixteenBitCheckBox->setChecked(config.readNumEntry("SixteenBit", 1)); | 60 | sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1)); |
57 | 61 | ||
@@ -68,6 +72,6 @@ void SoundSettings::reject() | |||
68 | { | 72 | { |
69 | Config config( "Sound" ); | 73 | Config config( "qpe"); |
70 | config.setGroup( "System" ); | 74 | config.setGroup( "Volume"); |
71 | 75 | ||
72 | setVolume(100-config.readNumEntry("Volume")); | 76 | setVolume(100-config.readNumEntry("VolumePercent")); |
73 | setMic(100-config.readNumEntry("Mic")); | 77 | setMic(100-config.readNumEntry("Mic")); |
@@ -92,9 +96,11 @@ void SoundSettings::accept() | |||
92 | { | 96 | { |
93 | Config config( "Sound" ); | 97 | Config config( "qpe" ); |
94 | config.setGroup( "System" ); | 98 | config.setGroup( "Volume" ); |
95 | config.writeEntry("Volume",100-volume->value()); | 99 | config.writeEntry("VolumePercent",100-volume->value()); |
96 | config.writeEntry("Mic",100-mic->value()); | 100 | config.writeEntry("Mic",100-mic->value()); |
97 | config.writeEntry("Touch",touchsound->isChecked()); | 101 | // config.writeEntry("TouchSound",touchsound->isChecked()); |
98 | config.writeEntry("Key",keysound->isChecked()); | 102 | // config.writeEntry("KeySound",keysound->isChecked()); |
99 | config.writeEntry("Alert",AlertCheckBox->isChecked()); | 103 | |
104 | Config cfg("Vmemo"); | ||
105 | cfg.writeEntry("Alert",AlertCheckBox->isChecked()); | ||
100 | setVolume(volume->value()); | 106 | setVolume(volume->value()); |
@@ -102,7 +108,9 @@ void SoundSettings::accept() | |||
102 | 108 | ||
103 | config.setGroup("Record"); | 109 | cfg.setGroup("Record"); |
104 | config.writeEntry("SampleRate",sampleRate->currentText()); | 110 | cfg.writeEntry("SampleRate",sampleRate->currentText()); |
105 | config.writeEntry("Stereo",stereoCheckBox->isChecked()); | 111 | cfg.writeEntry("Stereo",stereoCheckBox->isChecked()); |
106 | config.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked()); | 112 | cfg.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked()); |
107 | 113 | // Config cfg( "VMemo" ); | |
114 | // cfg.setGroup( "Defaults" ); | ||
115 | // cfg.writeEntry( "hideIcon", HideIcon_CheckBox->isChecked()); | ||
108 | QDialog::accept(); | 116 | QDialog::accept(); |
@@ -112,5 +120,5 @@ void SoundSettings::setVolume(int v) | |||
112 | { | 120 | { |
113 | Config config( "Sound" ); | 121 | Config config( "qpe" ); |
114 | config.setGroup( "System" ); | 122 | config.setGroup( "Volume" ); |
115 | config.writeEntry("Volume",100-v); | 123 | config.writeEntry("VolumePercent",100-v); |
116 | #if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP) | 124 | #if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP) |
@@ -122,4 +130,4 @@ void SoundSettings::setMic(int m) | |||
122 | { | 130 | { |
123 | Config config( "Sound" ); | 131 | Config config( "qpe" ); |
124 | config.setGroup( "System" ); | 132 | config.setGroup( "Volume" ); |
125 | config.writeEntry("Mic",100-m); | 133 | config.writeEntry("Mic",100-m); |
@@ -132,5 +140,5 @@ void SoundSettings::volumeChanged( bool ) | |||
132 | { | 140 | { |
133 | Config config( "Sound" ); | 141 | Config config( "qpe" ); |
134 | config.setGroup( "System" ); | 142 | config.setGroup( "Volume" ); |
135 | volume->setValue(100-config.readNumEntry("Volume")); | 143 | volume->setValue(100-config.readNumEntry("VolumePercent")); |
136 | } | 144 | } |
@@ -139,4 +147,4 @@ void SoundSettings::micChanged( bool ) | |||
139 | { | 147 | { |
140 | Config config( "Sound" ); | 148 | Config config( "qpe" ); |
141 | config.setGroup( "System" ); | 149 | config.setGroup( "Volume" ); |
142 | mic->setValue(100-config.readNumEntry("Mic")); | 150 | mic->setValue(100-config.readNumEntry("Mic")); |
@@ -162,3 +170,3 @@ void SoundSettings::updateStorageCombo() { | |||
162 | void SoundSettings::setLocation(const QString & string) { | 170 | void SoundSettings::setLocation(const QString & string) { |
163 | Config config( "Sound" ); | 171 | Config config( "Vmemo" ); |
164 | config.setGroup( "System" ); | 172 | config.setGroup( "System" ); |
diff --git a/noncore/settings/sound/soundsettingsbase.cpp b/noncore/settings/sound/soundsettingsbase.cpp new file mode 100644 index 0000000..937b068 --- a/dev/null +++ b/noncore/settings/sound/soundsettingsbase.cpp | |||
@@ -0,0 +1,252 @@ | |||
1 | /**************************************************************************** | ||
2 | ** Form implementation generated from reading ui file 'soundsettingsbase.ui' | ||
3 | ** | ||
4 | ** Created: Sun May 19 12:11:35 2002 | ||
5 | ** by: The User Interface Compiler (uic) | ||
6 | ** | ||
7 | ** WARNING! All changes made in this file will be lost! | ||
8 | ****************************************************************************/ | ||
9 | #include "soundsettingsbase.h" | ||
10 | |||
11 | #include <qcheckbox.h> | ||
12 | #include <qcombobox.h> | ||
13 | #include <qgroupbox.h> | ||
14 | #include <qlabel.h> | ||
15 | #include <qpushbutton.h> | ||
16 | #include <qslider.h> | ||
17 | #include <qlayout.h> | ||
18 | #include <qvariant.h> | ||
19 | #include <qtooltip.h> | ||
20 | #include <qwhatsthis.h> | ||
21 | #include <qimage.h> | ||
22 | #include <qpixmap.h> | ||
23 | |||
24 | static const char* const image0_data[] = { | ||
25 | "16 16 3 1", | ||
26 | ". c None", | ||
27 | "a c #000000", | ||
28 | "# c #ff0000", | ||
29 | "............#...", | ||
30 | "............##..", | ||
31 | "..........#..#..", | ||
32 | ".....a..#..#.#..", | ||
33 | "....aa..##.#..#.", | ||
34 | "...aaa...#.##.#.", | ||
35 | "aaaaaa.#.#..#.##", | ||
36 | "aaaaaa.#.##.#.##", | ||
37 | "aaaaaa.#.##.#.##", | ||
38 | "aaaaaa.#.##.#.##", | ||
39 | "aaaaaa.#.#..#.##", | ||
40 | "...aaa...#.##.#.", | ||
41 | "....aa..#..#..#.", | ||
42 | ".....a.....#.##.", | ||
43 | "..........#..#..", | ||
44 | "............##.."}; | ||
45 | |||
46 | static const char* const image1_data[] = { | ||
47 | "16 16 3 1", | ||
48 | ". c None", | ||
49 | "# c #000000", | ||
50 | "a c #ff0000", | ||
51 | "................", | ||
52 | "................", | ||
53 | "................", | ||
54 | ".....#..........", | ||
55 | "....##..........", | ||
56 | "...###...a...a..", | ||
57 | "######..aaa.aaa.", | ||
58 | "######...aaaaa..", | ||
59 | "######....aaa...", | ||
60 | "######...aaaaa..", | ||
61 | "######..aaa.aaa.", | ||
62 | "...###...a...a..", | ||
63 | "....##..........", | ||
64 | ".....#..........", | ||
65 | "................", | ||
66 | "................"}; | ||
67 | |||
68 | |||
69 | /* | ||
70 | * Constructs a SoundSettingsBase which is a child of 'parent', with the | ||
71 | * name 'name' and widget flags set to 'f' | ||
72 | * | ||
73 | * The dialog will by default be modeless, unless you set 'modal' to | ||
74 | * TRUE to construct a modal dialog. | ||
75 | */ | ||
76 | SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool modal, WFlags fl ) | ||
77 | : QDialog( parent, name, modal, fl ) | ||
78 | { | ||
79 | QPixmap image0( ( const char** ) image0_data ); | ||
80 | QPixmap image1( ( const char** ) image1_data ); | ||
81 | if ( !name ) | ||
82 | setName( "SoundSettingsBase" ); | ||
83 | resize( 255, 301 ); | ||
84 | setCaption( tr( "Vmemo Settings" ) ); | ||
85 | SoundSettingsBaseLayout = new QGridLayout( this ); | ||
86 | SoundSettingsBaseLayout->setSpacing( 6 ); | ||
87 | SoundSettingsBaseLayout->setMargin( 11 ); | ||
88 | |||
89 | GroupBox3 = new QGroupBox( this, "GroupBox3" ); | ||
90 | GroupBox3->setFrameShape( QGroupBox::Box ); | ||
91 | GroupBox3->setFrameShadow( QGroupBox::Sunken ); | ||
92 | GroupBox3->setTitle( tr( "Levels" ) ); | ||
93 | GroupBox3->setColumnLayout(0, Qt::Vertical ); | ||
94 | GroupBox3->layout()->setSpacing( 0 ); | ||
95 | GroupBox3->layout()->setMargin( 0 ); | ||
96 | GroupBox3Layout = new QVBoxLayout( GroupBox3->layout() ); | ||
97 | GroupBox3Layout->setAlignment( Qt::AlignTop ); | ||
98 | GroupBox3Layout->setSpacing( 2 ); | ||
99 | GroupBox3Layout->setMargin( 2 ); | ||
100 | |||
101 | Layout10 = new QVBoxLayout; | ||
102 | Layout10->setSpacing( 2 ); | ||
103 | Layout10->setMargin( 2 ); | ||
104 | |||
105 | Layout16 = new QHBoxLayout; | ||
106 | Layout16->setSpacing( 2 ); | ||
107 | Layout16->setMargin( 2 ); | ||
108 | QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | ||
109 | Layout16->addItem( spacer ); | ||
110 | |||
111 | PixmapLabel1_2 = new QLabel( GroupBox3, "PixmapLabel1_2" ); | ||
112 | PixmapLabel1_2->setPixmap( image0 ); | ||
113 | PixmapLabel1_2->setScaledContents( FALSE ); | ||
114 | Layout16->addWidget( PixmapLabel1_2 ); | ||
115 | |||
116 | TextLabel1_2 = new QLabel( GroupBox3, "TextLabel1_2" ); | ||
117 | TextLabel1_2->setText( tr( "Loud" ) ); | ||
118 | Layout16->addWidget( TextLabel1_2 ); | ||
119 | QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | ||
120 | Layout16->addItem( spacer_2 ); | ||
121 | Layout10->addLayout( Layout16 ); | ||
122 | |||
123 | Layout13 = new QHBoxLayout; | ||
124 | Layout13->setSpacing( 2 ); | ||
125 | Layout13->setMargin( 2 ); | ||
126 | |||
127 | volLabel = new QLabel( GroupBox3, "volLabel" ); | ||
128 | volLabel->setText( tr( "Output" ) ); | ||
129 | Layout13->addWidget( volLabel ); | ||
130 | QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | ||
131 | Layout13->addItem( spacer_3 ); | ||
132 | |||
133 | micLabel = new QLabel( GroupBox3, "micLabel" ); | ||
134 | micLabel->setText( tr( "Mic" ) ); | ||
135 | Layout13->addWidget( micLabel ); | ||
136 | QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | ||
137 | Layout13->addItem( spacer_4 ); | ||
138 | Layout10->addLayout( Layout13 ); | ||
139 | |||
140 | Layout12 = new QHBoxLayout; | ||
141 | Layout12->setSpacing( 2 ); | ||
142 | Layout12->setMargin( 2 ); | ||
143 | |||
144 | volume = new QSlider( GroupBox3, "volume" ); | ||
145 | volume->setMaxValue( 100 ); | ||
146 | volume->setValue( 50 ); | ||
147 | volume->setOrientation( QSlider::Vertical ); | ||
148 | volume->setTickmarks( QSlider::Right ); | ||
149 | volume->setTickInterval( 5 ); | ||
150 | Layout12->addWidget( volume ); | ||
151 | QSpacerItem* spacer_5 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | ||
152 | Layout12->addItem( spacer_5 ); | ||
153 | |||
154 | mic = new QSlider( GroupBox3, "mic" ); | ||
155 | mic->setMaxValue( 100 ); | ||
156 | mic->setValue( 50 ); | ||
157 | mic->setOrientation( QSlider::Vertical ); | ||
158 | mic->setTickmarks( QSlider::Right ); | ||
159 | mic->setTickInterval( 5 ); | ||
160 | Layout12->addWidget( mic ); | ||
161 | QSpacerItem* spacer_6 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | ||
162 | Layout12->addItem( spacer_6 ); | ||
163 | Layout10->addLayout( Layout12 ); | ||
164 | |||
165 | Layout17 = new QHBoxLayout; | ||
166 | Layout17->setSpacing( 2 ); | ||
167 | Layout17->setMargin( 2 ); | ||
168 | QSpacerItem* spacer_7 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | ||
169 | Layout17->addItem( spacer_7 ); | ||
170 | |||
171 | PixmapLabel2_2 = new QLabel( GroupBox3, "PixmapLabel2_2" ); | ||
172 | PixmapLabel2_2->setPixmap( image1 ); | ||
173 | PixmapLabel2_2->setScaledContents( FALSE ); | ||
174 | Layout17->addWidget( PixmapLabel2_2 ); | ||
175 | |||
176 | TextLabel2_2 = new QLabel( GroupBox3, "TextLabel2_2" ); | ||
177 | TextLabel2_2->setText( tr( "Silent" ) ); | ||
178 | Layout17->addWidget( TextLabel2_2 ); | ||
179 | QSpacerItem* spacer_8 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | ||
180 | Layout17->addItem( spacer_8 ); | ||
181 | Layout10->addLayout( Layout17 ); | ||
182 | GroupBox3Layout->addLayout( Layout10 ); | ||
183 | |||
184 | SoundSettingsBaseLayout->addWidget( GroupBox3, 0, 0 ); | ||
185 | |||
186 | Layout12_2 = new QVBoxLayout; | ||
187 | Layout12_2->setSpacing( 2 ); | ||
188 | Layout12_2->setMargin( 2 ); | ||
189 | |||
190 | GroupBox1 = new QGroupBox( this, "GroupBox1" ); | ||
191 | GroupBox1->setTitle( tr( "Vmemo" ) ); | ||
192 | |||
193 | QWidget* privateLayoutWidget = new QWidget( GroupBox1, "Layout11" ); | ||
194 | privateLayoutWidget->setGeometry( QRect( 5, 16, 96, 169 ) ); | ||
195 | Layout11 = new QVBoxLayout( privateLayoutWidget ); | ||
196 | Layout11->setSpacing( 2 ); | ||
197 | Layout11->setMargin( 0 ); | ||
198 | |||
199 | sampleRateLabel = new QLabel( privateLayoutWidget, "sampleRateLabel" ); | ||
200 | sampleRateLabel->setText( tr( "Sample Rate" ) ); | ||
201 | Layout11->addWidget( sampleRateLabel ); | ||
202 | |||
203 | sampleRate = new QComboBox( FALSE, privateLayoutWidget, "sampleRate" ); | ||
204 | sampleRate->insertItem( tr( "8000" ) ); | ||
205 | sampleRate->insertItem( tr( "11025" ) ); | ||
206 | sampleRate->insertItem( tr( "22050" ) ); | ||
207 | sampleRate->insertItem( tr( "33075" ) ); | ||
208 | sampleRate->insertItem( tr( "44100" ) ); | ||
209 | sampleRate->setFixedWidth(90); | ||
210 | Layout11->addWidget( sampleRate ); | ||
211 | |||
212 | stereoCheckBox = new QCheckBox( privateLayoutWidget, "stereoCheckBox" ); | ||
213 | stereoCheckBox->setText( tr( "Stereo" ) ); | ||
214 | Layout11->addWidget( stereoCheckBox ); | ||
215 | |||
216 | sixteenBitCheckBox = new QCheckBox( privateLayoutWidget, "sixteenBitCheckBox" ); | ||
217 | sixteenBitCheckBox->setText( tr( "16 bit" ) ); | ||
218 | Layout11->addWidget( sixteenBitCheckBox ); | ||
219 | |||
220 | AlertCheckBox = new QCheckBox( privateLayoutWidget, "AlertCheckBox" ); | ||
221 | AlertCheckBox->setText( tr( "Visual Alerts" ) ); | ||
222 | Layout11->addWidget( AlertCheckBox ); | ||
223 | |||
224 | TextLabel1 = new QLabel( privateLayoutWidget, "TextLabel1" ); | ||
225 | TextLabel1->setText( tr( "Location" ) ); | ||
226 | Layout11->addWidget( TextLabel1 ); | ||
227 | |||
228 | LocationComboBox = new QComboBox( FALSE, privateLayoutWidget, "LocationComboBox" ); | ||
229 | Layout11->addWidget( LocationComboBox ); | ||
230 | Layout12_2->addWidget( GroupBox1 ); | ||
231 | |||
232 | // // touchsound = new QCheckBox( this, "touchsound" ); | ||
233 | // // touchsound->setText( tr( "Screen sounds" ) ); | ||
234 | // // Layout12_2->addWidget( touchsound ); | ||
235 | |||
236 | // // keysound = new QCheckBox( this, "keysound" ); | ||
237 | // // keysound->setText( tr( "Keyboard sounds" ) ); | ||
238 | // // Layout12_2->addWidget( keysound ); | ||
239 | QSpacerItem* spacer_9 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); | ||
240 | Layout12_2->addItem( spacer_9 ); | ||
241 | |||
242 | SoundSettingsBaseLayout->addLayout( Layout12_2, 0, 1 ); | ||
243 | } | ||
244 | |||
245 | /* | ||
246 | * Destroys the object and frees any allocated resources | ||
247 | */ | ||
248 | SoundSettingsBase::~SoundSettingsBase() | ||
249 | { | ||
250 | // no need to delete child widgets, Qt does it all for us | ||
251 | } | ||
252 | |||
diff --git a/noncore/settings/sound/soundsettingsbase.h b/noncore/settings/sound/soundsettingsbase.h new file mode 100644 index 0000000..8ad80f6 --- a/dev/null +++ b/noncore/settings/sound/soundsettingsbase.h | |||
@@ -0,0 +1,63 @@ | |||
1 | /**************************************************************************** | ||
2 | ** Form interface generated from reading ui file 'soundsettingsbase.ui' | ||
3 | ** | ||
4 | ** Created: Sun May 19 12:11:23 2002 | ||
5 | ** by: The User Interface Compiler (uic) | ||
6 | ** | ||
7 | ** WARNING! All changes made in this file will be lost! | ||
8 | ****************************************************************************/ | ||
9 | #ifndef SOUNDSETTINGSBASE_H | ||
10 | #define SOUNDSETTINGSBASE_H | ||
11 | |||
12 | #include <qvariant.h> | ||
13 | #include <qdialog.h> | ||
14 | class QVBoxLayout; | ||
15 | class QHBoxLayout; | ||
16 | class QGridLayout; | ||
17 | class QCheckBox; | ||
18 | class QComboBox; | ||
19 | class QGroupBox; | ||
20 | class QLabel; | ||
21 | class QSlider; | ||
22 | |||
23 | class SoundSettingsBase : public QDialog | ||
24 | { | ||
25 | Q_OBJECT | ||
26 | |||
27 | public: | ||
28 | SoundSettingsBase( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); | ||
29 | ~SoundSettingsBase(); | ||
30 | |||
31 | QGroupBox* GroupBox3; | ||
32 | QLabel* PixmapLabel1_2; | ||
33 | QLabel* TextLabel1_2; | ||
34 | QLabel* volLabel; | ||
35 | QLabel* micLabel; | ||
36 | QSlider* volume; | ||
37 | QSlider* mic; | ||
38 | QLabel* PixmapLabel2_2; | ||
39 | QLabel* TextLabel2_2; | ||
40 | QGroupBox* GroupBox1; | ||
41 | QLabel* sampleRateLabel; | ||
42 | QComboBox* sampleRate; | ||
43 | QCheckBox* stereoCheckBox; | ||
44 | QCheckBox* sixteenBitCheckBox; | ||
45 | QCheckBox* AlertCheckBox; | ||
46 | QLabel* TextLabel1; | ||
47 | QComboBox* LocationComboBox; | ||
48 | /* QCheckBox* touchsound; */ | ||
49 | /* QCheckBox* keysound; */ | ||
50 | |||
51 | protected: | ||
52 | QGridLayout* SoundSettingsBaseLayout; | ||
53 | QVBoxLayout* GroupBox3Layout; | ||
54 | QVBoxLayout* Layout10; | ||
55 | QHBoxLayout* Layout16; | ||
56 | QHBoxLayout* Layout13; | ||
57 | QHBoxLayout* Layout12; | ||
58 | QHBoxLayout* Layout17; | ||
59 | QVBoxLayout* Layout12_2; | ||
60 | QVBoxLayout* Layout11; | ||
61 | }; | ||
62 | |||
63 | #endif // SOUNDSETTINGSBASE_H | ||