-rw-r--r-- | noncore/net/wellenreiter/gui/configwindow.cpp | 9 |
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 | |||
@@ -396,17 +396,23 @@ void WellenreiterConfigWindow::load() | |||
396 | } | 396 | } |
397 | 397 | ||
398 | prismHeader->setChecked( c->readBoolEntry( "prism", false ) ); | 398 | prismHeader->setChecked( c->readBoolEntry( "prism", false ) ); |
399 | hopChannels->setChecked( c->readBoolEntry( "hop", true ) ); | 399 | hopChannels->setChecked( c->readBoolEntry( "hop", true ) ); |
400 | hopInterval->setValue( c->readNumEntry( "interval", 250 ) ); | 400 | hopInterval->setValue( c->readNumEntry( "interval", 250 ) ); |
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 ) ); |
408 | openTree->setChecked( c->readBoolEntry( "openTree", true ) ); | 414 | openTree->setChecked( c->readBoolEntry( "openTree", true ) ); |
409 | disablePM->setChecked( c->readBoolEntry( "disablePM", true ) ); | 415 | disablePM->setChecked( c->readBoolEntry( "disablePM", true ) ); |
410 | newNetworkAction->setCurrentItem( c->readNumEntry( "newNetworkAction", 1 ) ); // Default: Play Alarm | 416 | newNetworkAction->setCurrentItem( c->readNumEntry( "newNetworkAction", 1 ) ); // Default: Play Alarm |
411 | newNetworkScript->setText( c->readEntry( "newNetworkScript", "" ) ); | 417 | newNetworkScript->setText( c->readEntry( "newNetworkScript", "" ) ); |
412 | newClientAction->setCurrentItem( c->readNumEntry( "newClientAction", 2 ) ); // Default: Play Click | 418 | newClientAction->setCurrentItem( c->readNumEntry( "newClientAction", 2 ) ); // Default: Play Click |
@@ -446,17 +452,20 @@ void WellenreiterConfigWindow::save() | |||
446 | c->writeEntry( "name", interfaceName->currentText() ); | 452 | c->writeEntry( "name", interfaceName->currentText() ); |
447 | c->writeEntry( "type", deviceType->currentText() ); | 453 | c->writeEntry( "type", deviceType->currentText() ); |
448 | c->writeEntry( "prism", prismHeader->isChecked() ); | 454 | c->writeEntry( "prism", prismHeader->isChecked() ); |
449 | c->writeEntry( "hop", hopChannels->isChecked() ); | 455 | c->writeEntry( "hop", hopChannels->isChecked() ); |
450 | c->writeEntry( "interval", hopInterval->value() ); | 456 | c->writeEntry( "interval", hopInterval->value() ); |
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() ); |
458 | c->writeEntry( "openTree", openTree->isChecked() ); | 467 | c->writeEntry( "openTree", openTree->isChecked() ); |
459 | c->writeEntry( "disablePM", disablePM->isChecked() ); | 468 | c->writeEntry( "disablePM", disablePM->isChecked() ); |
460 | c->writeEntry( "newNetworkAction", newNetworkAction->currentItem() ); | 469 | c->writeEntry( "newNetworkAction", newNetworkAction->currentItem() ); |
461 | c->writeEntry( "newNetworkScript", newNetworkScript->text() ); | 470 | c->writeEntry( "newNetworkScript", newNetworkScript->text() ); |
462 | c->writeEntry( "newClientAction", newClientAction->currentItem() ); | 471 | c->writeEntry( "newClientAction", newClientAction->currentItem() ); |