author | llornkcor <llornkcor> | 2003-08-10 23:02:47 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-08-10 23:02:47 (UTC) |
commit | 44bb1f23dcd0bea4775ba4b48fb370ad651290cc (patch) (side-by-side diff) | |
tree | 83028d0b3af21790e9e69dd83ce495a020bea948 /noncore/settings/sound/soundsettings.cpp | |
parent | 41b3267ce7142a62ac3d3d6eef3feb33f00deda5 (diff) | |
download | opie-44bb1f23dcd0bea4775ba4b48fb370ad651290cc.zip opie-44bb1f23dcd0bea4775ba4b48fb370ad651290cc.tar.gz opie-44bb1f23dcd0bea4775ba4b48fb370ad651290cc.tar.bz2 |
add adpcm checkbox
Diffstat (limited to 'noncore/settings/sound/soundsettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sound/soundsettings.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp index 09d2e92..4bc86fa 100644 --- a/noncore/settings/sound/soundsettings.cpp +++ b/noncore/settings/sound/soundsettings.cpp @@ -105,17 +105,25 @@ SoundSettings::SoundSettings( QWidget* parent, const char* objname, WFlags fl ) cfg.setGroup("Defaults"); keyComboBox->setCurrentItem(cfg.readNumEntry("toggleKey") ); updateStorageCombo(); + + Config vmCfg("Vmemo"); + vmCfg.setGroup("Defaults"); + adpcmCheckBox->setChecked( vmCfg.readBoolEntry("use_ADPCM", 0)); + connect( LocationComboBox,SIGNAL(activated(const QString &)), this, SLOT( setLocation(const QString &))); connect( keyComboBox,SIGNAL(activated( int)), this, SLOT( setKeyButton( int))); connect( timeLimitComboBox,SIGNAL(activated( const QString &)), this, SLOT( setSizeLimitButton(const QString &))); connect( restartCheckBox,SIGNAL( toggled( bool)), this, SLOT( restartOpie( bool))); -// connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); + connect( adpcmCheckBox,SIGNAL( toggled( bool)), this, + SLOT( slotAdpcm( bool))); + + // connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); } void SoundSettings::updateStorageCombo() { @@ -163,9 +171,8 @@ void SoundSettings::cleanUp() { cfg.setGroup("Record"); cfg.writeEntry("SampleRate",sampleRate->currentText()); cfg.writeEntry("Stereo",stereoCheckBox->isChecked()); cfg.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked()); - if(keyReset && noWarning) { QCopEnvelope ("QPE/System", "restart()"); } } @@ -204,4 +211,10 @@ void SoundSettings::setSizeLimitButton(const QString &index) { void SoundSettings::restartOpie(bool b) { noWarning=b; } +void SoundSettings::slotAdpcm(bool b) { + Config vmCfg("Vmemo"); + vmCfg.setGroup("Defaults"); + vmCfg.writeEntry("use_ADPCM", b); + vmCfg.write(); +} |