author | llornkcor <llornkcor> | 2002-06-23 18:33:17 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-06-23 18:33:17 (UTC) |
commit | b50f663aabaf51821a35a94354237a3387954e79 (patch) (unidiff) | |
tree | c2dc2879fc7d6964aea4201995927e967f3bade3 /noncore/settings/sound/soundsettings.cpp | |
parent | f0e656b51a2dcee1dec594636cbc1ba8d4b11eef (diff) | |
download | opie-b50f663aabaf51821a35a94354237a3387954e79.zip opie-b50f663aabaf51821a35a94354237a3387954e79.tar.gz opie-b50f663aabaf51821a35a94354237a3387954e79.tar.bz2 |
added recording time limit
Diffstat (limited to 'noncore/settings/sound/soundsettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sound/soundsettings.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp index 672548f..3ceaf0c 100644 --- a/noncore/settings/sound/soundsettings.cpp +++ b/noncore/settings/sound/soundsettings.cpp | |||
@@ -76,6 +76,18 @@ SoundSettings::SoundSettings( QWidget* parent, const char* objname, WFlags fl ) | |||
76 | } | 76 | } |
77 | // else | 77 | // else |
78 | // stereoCheckBox->hide(); | 78 | // stereoCheckBox->hide(); |
79 | int sRate=config.readNumEntry("SizeLimit", 30); | ||
80 | if(sRate ==30) | ||
81 | timeLimitComboBox->setCurrentItem(0); | ||
82 | else if(sRate==20) | ||
83 | timeLimitComboBox->setCurrentItem(1); | ||
84 | else if(sRate == 15) | ||
85 | timeLimitComboBox->setCurrentItem(2); | ||
86 | else if(sRate == 10) | ||
87 | |||
88 | timeLimitComboBox->setCurrentItem(3); | ||
89 | else | ||
90 | timeLimitComboBox->setCurrentItem(4); | ||
79 | 91 | ||
80 | 92 | ||
81 | sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1)); | 93 | sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1)); |
@@ -91,6 +103,7 @@ SoundSettings::SoundSettings( QWidget* parent, const char* objname, WFlags fl ) | |||
91 | connect(qApp, SIGNAL( micChanged(bool) ), this, SLOT ( micChanged(bool) ) ); | 103 | connect(qApp, SIGNAL( micChanged(bool) ), this, SLOT ( micChanged(bool) ) ); |
92 | connect( LocationComboBox,SIGNAL(activated(const QString &)),this,SLOT( setLocation(const QString &))); | 104 | connect( LocationComboBox,SIGNAL(activated(const QString &)),this,SLOT( setLocation(const QString &))); |
93 | connect( keyComboBox,SIGNAL(activated(const QString &)),this,SLOT(setKeyButton(const QString &))); | 105 | connect( keyComboBox,SIGNAL(activated(const QString &)),this,SLOT(setKeyButton(const QString &))); |
106 | connect( timeLimitComboBox,SIGNAL(activated( const QString &)),this,SLOT(setSizeLimitButton(const QString &))); | ||
94 | // connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | 107 | // connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); |
95 | } | 108 | } |
96 | 109 | ||
@@ -248,3 +261,11 @@ void SoundSettings::setKeyButton(const QString &name) { | |||
248 | void SoundSettings::updateLocationCombo() { | 261 | void SoundSettings::updateLocationCombo() { |
249 | 262 | ||
250 | } | 263 | } |
264 | |||
265 | void SoundSettings::setSizeLimitButton(const QString &index) { | ||
266 | |||
267 | Config cfg("Vmemo"); | ||
268 | cfg.setGroup("Record"); | ||
269 | cfg.writeEntry("SizeLimit", index); | ||
270 | cfg.write(); | ||
271 | } | ||