summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-05-03 12:47:50 (UTC)
committer mickeyl <mickeyl>2004-05-03 12:47:50 (UTC)
commit0490226f4ed54fdeef5578255594830659a8d3bd (patch) (unidiff)
treee960e0d3d8f916927a9c7c911b1b496475b21e07
parentfb6f93892d4d0e0471d62f5b5ab6d9bdef0a5e76 (diff)
downloadopie-0490226f4ed54fdeef5578255594830659a8d3bd.zip
opie-0490226f4ed54fdeef5578255594830659a8d3bd.tar.gz
opie-0490226f4ed54fdeef5578255594830659a8d3bd.tar.bz2
write more settings into the .config file and read it
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/configwindow.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp
index 89ed24c..ae149e2 100644
--- a/noncore/net/wellenreiter/gui/configwindow.cpp
+++ b/noncore/net/wellenreiter/gui/configwindow.cpp
@@ -401,7 +401,13 @@ void WellenreiterConfigWindow::load()
401 adaptiveHopping->setChecked( c->readBoolEntry( "adaptive", true ) ); 401 adaptiveHopping->setChecked( c->readBoolEntry( "adaptive", true ) );
402 402
403 c->setGroup( "Capture" ); 403 c->setGroup( "Capture" );
404 writeCaptureFile->setChecked( c->readBoolEntry( "writeCaptureFile", true ) );
405 captureFileName->setEnabled( writeCaptureFile->isChecked() );
406 getCaptureFileName->setEnabled( writeCaptureFile->isChecked() );
404 captureFileName->setText( c->readEntry( "filename", "/tmp/capture" ) ); 407 captureFileName->setText( c->readEntry( "filename", "/tmp/capture" ) );
408 hexViewBufferUnlimited->setChecked( c->readBoolEntry( "hexViewBufferUnlimited", true ) );
409 hexViewBufferLimited->setChecked( !c->readBoolEntry( "hexViewBufferUnlimited", true ) );
410 hexViewBufferSize->setValue( c->readNumEntry( "hexViewBufferSize", 2000 ) );
405 411
406 c->setGroup( "UI" ); 412 c->setGroup( "UI" );
407 lookupVendor->setChecked( c->readBoolEntry( "lookupVendor", true ) ); 413 lookupVendor->setChecked( c->readBoolEntry( "lookupVendor", true ) );
@@ -451,7 +457,10 @@ void WellenreiterConfigWindow::save()
451 c->writeEntry( "adaptive", adaptiveHopping->isChecked() ); 457 c->writeEntry( "adaptive", adaptiveHopping->isChecked() );
452 458
453 c->setGroup( "Capture" ); 459 c->setGroup( "Capture" );
460 c->writeEntry( "writeCaptureFile", writeCaptureFile->isChecked() );
454 c->writeEntry( "filename", captureFileName->text() ); 461 c->writeEntry( "filename", captureFileName->text() );
462 c->writeEntry( "hexViewBufferUnlimited", hexViewBufferUnlimited->isChecked() );
463 c->writeEntry( "hexViewBufferSize", hexViewBufferSize->value() );
455 464
456 c->setGroup( "UI" ); 465 c->setGroup( "UI" );
457 c->writeEntry( "lookupVendor", lookupVendor->isChecked() ); 466 c->writeEntry( "lookupVendor", lookupVendor->isChecked() );