Logo Search packages:      
Sourcecode: kdar version File versions  Download package

void KDarConfig::fillInDialog (  )  [protected]

Call this method to set the dialog's graphical elements to correspond to the current state of the configuration object member variables.

Definition at line 457 of file kdarConfig.cpp.

References allowOverwrite(), archiveStorageDirectory(), compressionAlgorithm(), compressionLevel(), compressionMaskList(), compressionMaskType(), cryptoAlgorithm(), cryptoBlockSize(), executeCommand(), fileBrowserFont(), fileMaskList(), fileMaskType(), fillListView(), flatRestore(), generalFont(), hourShiftInt(), ignoreDump(), ignoreID(), keepPruned(), loadDirectoryFilters(), logFile(), logLevel(), media(), messageWindowFont(), minimumCompressionSizeInt(), noDelete(), pauseBetweenSlices(), restoreRecent(), setMediaSize(), showKDarSplashScreen(), splitArchive(), statusBarFont(), storePassword(), systemEA(), useCreateArchiveWizard(), userEA(), verbose(), and warnOnOverwrite().

Referenced by KDarConfig(), operator=(), and updateGUI().

{
    if ( m_nodialog )
    {
        return;
    }
    kdDebug() << "KDarConfig::fillinDialog" << endl;
    //Set all dialog settings here.
    useCreateArchiveWizardCheckBox->setChecked( useCreateArchiveWizard() );
    verboseOutputCheckBox->setChecked( verbose() );
    logFileKURLRequester->lineEdit()->setText( logFile() );
    logNoneRadioButton->setChecked( logLevel() == KDar::LOG_NONE );
    logBasicRadioButton->setChecked( logLevel() == KDar::LOG_BASIC );
    logFullRadioButton->setChecked( logLevel() == KDar::LOG_FULL );
    showKDarSplashCheckBox->setChecked( showKDarSplashScreen() );
    archiveStorageDirKURLRequester->lineEdit()->setText( archiveStorageDirectory() );
    userEACheckBox->setChecked( !userEA() );
    systemEACheckBox->setChecked( !systemEA() );
    ignoreIDCheckBox->setChecked( ignoreID() );
    compressionLevelSpinBox->setValue( compressionLevel() );
    noneRadioButton->setChecked( compressionAlgorithm() == libdar::none );
    gzipRadioButton->setChecked( compressionAlgorithm() == libdar::gzip );
    bzip2RadioButton->setChecked( compressionAlgorithm() == libdar::bzip2 );
    minCompressionSizeSpinBox->setValue( minimumCompressionSizeInt() );
    keepPrunedCheckBox->setChecked( keepPruned() );
    ignoreDumpCheckBox->setChecked( ignoreDump() );
    extractNoDeleteCheckBox->setChecked( noDelete() );
    extractMostRecentCheckBox->setChecked( restoreRecent() );
    extractFlatCheckBox->setChecked( flatRestore() );
    extractAllowOverwriteCheckBox->setChecked( allowOverwrite() );
    extractWarnOverwriteCheckBox->setChecked( warnOnOverwrite() );
    hourShiftBox->setValue( hourShiftInt() );
    generalKFontRequester->setFont( generalFont() );
    fileBrowserKFontRequester->setFont( fileBrowserFont() );
    messageWindowKFontRequester->setFont( messageWindowFont() );
    statusBarKFontRequester->setFont( statusBarFont() );

    //Slice sizes
    splitArchiveCheckBox->setChecked( splitArchive() );
    pauseCheckBox->setChecked( pauseBetweenSlices() );
    mediaTypeKComboBox->setCurrentItem( media() );
    setMediaSize( media() );
    commandBetweenSliceCreationKLineEdit->setText( executeCommand() );
    //Encryption
    int algo = cryptoAlgorithm();
    //Disable scrambling:
    if ( algo == KDar::CRYPTO_BLOWFISH ) algo = 1;
    cryptoAlgorithmKComboBox->setCurrentItem( algo );
    cryptoBlockSizeKIntNumInput->setValue( cryptoBlockSize() );
    cryptoStorePasswordCheckBox->setChecked( storePassword() );
    //Compression filters
    fillListView ( compressionFiltersListView, compressionMaskList() );
    compressionTypeComboBox->setCurrentItem( compressionMaskType() );
    //File filters
    fillListView ( fileFiltersListView, fileMaskList() );
    fileTypeComboBox->setCurrentItem( fileMaskType() );
    //Directories
    loadDirectoryFilters();
}


Generated by  Doxygen 1.6.0   Back to index