Diffstat (limited to 'noncore/settings/sound/soundsettingsbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sound/soundsettingsbase.cpp | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/noncore/settings/sound/soundsettingsbase.cpp b/noncore/settings/sound/soundsettingsbase.cpp index 6cb4f89..8be1b3d 100644 --- a/noncore/settings/sound/soundsettingsbase.cpp +++ b/noncore/settings/sound/soundsettingsbase.cpp | |||
@@ -174,104 +174,118 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m | |||
174 | 174 | ||
175 | PixmapLabel2_2 = new QLabel( GroupBox3, "PixmapLabel2_2" ); | 175 | PixmapLabel2_2 = new QLabel( GroupBox3, "PixmapLabel2_2" ); |
176 | PixmapLabel2_2->setPixmap( image1 ); | 176 | PixmapLabel2_2->setPixmap( image1 ); |
177 | PixmapLabel2_2->setScaledContents( FALSE ); | 177 | PixmapLabel2_2->setScaledContents( FALSE ); |
178 | Layout17->addWidget( PixmapLabel2_2 ); | 178 | Layout17->addWidget( PixmapLabel2_2 ); |
179 | 179 | ||
180 | TextLabel2_2 = new QLabel( GroupBox3, "TextLabel2_2" ); | 180 | TextLabel2_2 = new QLabel( GroupBox3, "TextLabel2_2" ); |
181 | TextLabel2_2->setText( tr( "Silent" ) ); | 181 | TextLabel2_2->setText( tr( "Silent" ) ); |
182 | Layout17->addWidget( TextLabel2_2 ); | 182 | Layout17->addWidget( TextLabel2_2 ); |
183 | QSpacerItem* spacer_8 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | 183 | QSpacerItem* spacer_8 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); |
184 | Layout17->addItem( spacer_8 ); | 184 | Layout17->addItem( spacer_8 ); |
185 | Layout10->addLayout( Layout17 ); | 185 | Layout10->addLayout( Layout17 ); |
186 | GroupBox3Layout->addLayout( Layout10 ); | 186 | GroupBox3Layout->addLayout( Layout10 ); |
187 | 187 | ||
188 | SoundSettingsBaseLayout->addWidget( GroupBox3, 0, 0 ); | 188 | SoundSettingsBaseLayout->addWidget( GroupBox3, 0, 0 ); |
189 | 189 | ||
190 | Layout12_2 = new QVBoxLayout; | 190 | Layout12_2 = new QVBoxLayout; |
191 | Layout12_2->setSpacing( 2 ); | 191 | Layout12_2->setSpacing( 2 ); |
192 | Layout12_2->setMargin( 2 ); | 192 | Layout12_2->setMargin( 2 ); |
193 | 193 | ||
194 | GroupBox1 = new QGroupBox( this, "GroupBox1" ); | 194 | GroupBox1 = new QGroupBox( this, "GroupBox1" ); |
195 | GroupBox1->setTitle( tr( "Vmemo" ) ); | 195 | GroupBox1->setTitle( tr( "Vmemo" ) ); |
196 | 196 | ||
197 | QWidget* privateLayoutWidget = new QWidget( GroupBox1, "Layout11" ); | 197 | QWidget* privateLayoutWidget = new QWidget( GroupBox1, "Layout11" ); |
198 | privateLayoutWidget->setGeometry( QRect( 5, 16, 96, 169 ) ); | 198 | privateLayoutWidget->setGeometry( QRect( 5, 16, 96, 230 ) ); |
199 | |||
199 | Layout11 = new QVBoxLayout( privateLayoutWidget ); | 200 | Layout11 = new QVBoxLayout( privateLayoutWidget ); |
200 | Layout11->setSpacing( 2 ); | 201 | Layout11->setSpacing( 2 ); |
201 | Layout11->setMargin( 0 ); | 202 | Layout11->setMargin( 0 ); |
202 | 203 | ||
203 | sampleRateLabel = new QLabel( privateLayoutWidget, "sampleRateLabel" ); | 204 | sampleRateLabel = new QLabel( privateLayoutWidget, "sampleRateLabel" ); |
204 | sampleRateLabel->setText( tr( "Sample Rate" ) ); | 205 | sampleRateLabel->setText( tr( "Sample Rate" ) ); |
205 | Layout11->addWidget( sampleRateLabel ); | 206 | Layout11->addWidget( sampleRateLabel ); |
206 | 207 | ||
207 | sampleRate = new QComboBox( FALSE, privateLayoutWidget, "sampleRate" ); | 208 | sampleRate = new QComboBox( FALSE, privateLayoutWidget, "sampleRate" ); |
208 | sampleRate->insertItem( tr( "8000" ) ); | 209 | sampleRate->insertItem( tr( "8000" ) ); |
209 | sampleRate->insertItem( tr( "11025" ) ); | 210 | sampleRate->insertItem( tr( "11025" ) ); |
210 | sampleRate->insertItem( tr( "22050" ) ); | 211 | sampleRate->insertItem( tr( "22050" ) ); |
211 | sampleRate->insertItem( tr( "33075" ) ); | 212 | sampleRate->insertItem( tr( "33075" ) ); |
212 | sampleRate->insertItem( tr( "44100" ) ); | 213 | sampleRate->insertItem( tr( "44100" ) ); |
213 | sampleRate->setFixedWidth(90); | 214 | sampleRate->setFixedWidth(90); |
214 | Layout11->addWidget( sampleRate ); | 215 | Layout11->addWidget( sampleRate ); |
215 | 216 | ||
216 | stereoCheckBox = new QCheckBox( privateLayoutWidget, "stereoCheckBox" ); | 217 | stereoCheckBox = new QCheckBox( privateLayoutWidget, "stereoCheckBox" ); |
217 | stereoCheckBox->setText( tr( "Stereo" ) ); | 218 | stereoCheckBox->setText( tr( "Stereo" ) ); |
218 | Layout11->addWidget( stereoCheckBox ); | 219 | Layout11->addWidget( stereoCheckBox ); |
219 | 220 | ||
220 | sixteenBitCheckBox = new QCheckBox( privateLayoutWidget, "sixteenBitCheckBox" ); | 221 | sixteenBitCheckBox = new QCheckBox( privateLayoutWidget, "sixteenBitCheckBox" ); |
221 | sixteenBitCheckBox->setText( tr( "16 bit" ) ); | 222 | sixteenBitCheckBox->setText( tr( "16 bit" ) ); |
222 | Layout11->addWidget( sixteenBitCheckBox ); | 223 | Layout11->addWidget( sixteenBitCheckBox ); |
223 | 224 | ||
224 | AlertCheckBox = new QCheckBox( privateLayoutWidget, "AlertCheckBox" ); | 225 | AlertCheckBox = new QCheckBox( privateLayoutWidget, "AlertCheckBox" ); |
225 | AlertCheckBox->setText( tr( "Visual Alerts" ) ); | 226 | AlertCheckBox->setText( tr( "Visual Alerts" ) ); |
226 | Layout11->addWidget( AlertCheckBox ); | 227 | Layout11->addWidget( AlertCheckBox ); |
227 | 228 | ||
228 | TextLabel1 = new QLabel( privateLayoutWidget, "TextLabel1" ); | 229 | TextLabel1 = new QLabel( privateLayoutWidget, "TextLabel1" ); |
229 | TextLabel1->setText( tr( "Location:" ) ); | 230 | TextLabel1->setText( tr( "Location:" ) ); |
230 | Layout11->addWidget( TextLabel1 ); | 231 | Layout11->addWidget( TextLabel1 ); |
231 | 232 | ||
232 | 233 | ||
233 | LocationComboBox = new QComboBox( FALSE, privateLayoutWidget, "LocationComboBox" ); | 234 | LocationComboBox = new QComboBox( FALSE, privateLayoutWidget, "LocationComboBox" ); |
234 | Layout11->addWidget( LocationComboBox ); | 235 | Layout11->addWidget( LocationComboBox ); |
235 | 236 | ||
236 | QLabel *TextLabelKey; | 237 | QLabel *TextLabelKey; |
237 | TextLabelKey = new QLabel( privateLayoutWidget, "TextLabelKey" ); | 238 | TextLabelKey = new QLabel( privateLayoutWidget, "TextLabelKey" ); |
238 | TextLabelKey->setText( tr( "Record Key:" ) ); | 239 | TextLabelKey->setText( tr( "Record Key:" ) ); |
240 | Layout11->addWidget( TextLabelKey ); | ||
239 | 241 | ||
240 | keyComboBox = new QComboBox( FALSE, privateLayoutWidget, "keyComboBox" ); | 242 | keyComboBox = new QComboBox( FALSE, privateLayoutWidget, "keyComboBox" ); |
241 | keyComboBox->insertItem( tr( "" ) ); | 243 | keyComboBox->insertItem( tr( "" ) ); |
242 | keyComboBox->insertItem( tr( "Taskbar Icon" ) ); | 244 | keyComboBox->insertItem( tr( "Taskbar Icon" ) ); |
243 | keyComboBox->insertItem( tr( "Key_Escape" ) ); | 245 | keyComboBox->insertItem( tr( "Key_Escape" ) ); |
244 | keyComboBox->insertItem( tr( "Key_Space" ) ); | 246 | keyComboBox->insertItem( tr( "Key_Space" ) ); |
245 | keyComboBox->insertItem( tr( "Key_Home" ) ); | 247 | keyComboBox->insertItem( tr( "Key_Home" ) ); |
246 | keyComboBox->insertItem( tr( "Key_Calender" ) ); | 248 | keyComboBox->insertItem( tr( "Key_Calender" ) ); |
247 | keyComboBox->insertItem( tr( "Key_Contacts" ) ); | 249 | keyComboBox->insertItem( tr( "Key_Contacts" ) ); |
248 | keyComboBox->insertItem( tr( "Key_Menu" ) ); | 250 | keyComboBox->insertItem( tr( "Key_Menu" ) ); |
249 | keyComboBox->insertItem( tr( "Key_Mail" ) ); | 251 | keyComboBox->insertItem( tr( "Key_Mail" ) ); |
250 | 252 | ||
251 | Layout11->addWidget( TextLabelKey ); | ||
252 | |||
253 | Layout11->addWidget( keyComboBox ); | 253 | Layout11->addWidget( keyComboBox ); |
254 | 254 | ||
255 | QSpacerItem* spacer_9 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); | 255 | QLabel *timeLimitLabel; |
256 | Layout11->addItem( spacer_9 ); | 256 | timeLimitLabel= new QLabel( privateLayoutWidget, "timeLimitLabel" ); |
257 | 257 | timeLimitLabel->setText( tr( "Recording Limit:" ) ); | |
258 | 258 | Layout11->addWidget( timeLimitLabel ); | |
259 | |||
260 | timeLimitComboBox = new QComboBox( FALSE, privateLayoutWidget, "timeLimitComboBox" ); | ||
261 | timeLimitComboBox->insertItem( tr( "30" ) ); | ||
262 | timeLimitComboBox->insertItem( tr( "20" ) ); | ||
263 | timeLimitComboBox->insertItem( tr( "15" ) ); | ||
264 | timeLimitComboBox->insertItem( tr( "10" ) ); | ||
265 | timeLimitComboBox->insertItem( tr( "5" ) ); | ||
266 | |||
267 | Layout11->addWidget(timeLimitComboBox); | ||
268 | QLabel *timeLimitLabel2; | ||
269 | timeLimitLabel2= new QLabel( privateLayoutWidget, "timeLimitLabel2" ); | ||
270 | timeLimitLabel2->setText( tr( "seconds" ) ); | ||
271 | Layout11->addWidget( timeLimitLabel2 ); | ||
272 | |||
259 | Layout12_2->addWidget( GroupBox1 ); | 273 | Layout12_2->addWidget( GroupBox1 ); |
260 | // // touchsound = new QCheckBox( this, "touchsound" ); | 274 | // // touchsound = new QCheckBox( this, "touchsound" ); |
261 | // // touchsound->setText( tr( "Screen sounds" ) ); | 275 | // // touchsound->setText( tr( "Screen sounds" ) ); |
262 | // // Layout12_2->addWidget( touchsound ); | 276 | // // Layout12_2->addWidget( touchsound ); |
263 | 277 | ||
264 | // // keysound = new QCheckBox( this, "keysound" ); | 278 | // // keysound = new QCheckBox( this, "keysound" ); |
265 | // // keysound->setText( tr( "Keyboard sounds" ) ); | 279 | // // keysound->setText( tr( "Keyboard sounds" ) ); |
266 | // // Layout12_2->addWidget( keysound ); | 280 | // // Layout12_2->addWidget( keysound ); |
267 | 281 | ||
268 | SoundSettingsBaseLayout->addLayout( Layout12_2, 0, 1 ); | 282 | SoundSettingsBaseLayout->addLayout( Layout12_2, 0, 1 ); |
269 | } | 283 | } |
270 | 284 | ||
271 | /* | 285 | /* |
272 | * Destroys the object and frees any allocated resources | 286 | * Destroys the object and frees any allocated resources |
273 | */ | 287 | */ |
274 | SoundSettingsBase::~SoundSettingsBase() | 288 | SoundSettingsBase::~SoundSettingsBase() |
275 | { | 289 | { |
276 | // no need to delete child widgets, Qt does it all for us | 290 | // no need to delete child widgets, Qt does it all for us |
277 | } | 291 | } |