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

void Kcpreferences::configRead (  ) 

Read the settings from our configuration file

Read the settings

Definition at line 240 of file kcpreferences.cpp.

References Fonts_Default, Is_Checkinstall, Is_Decompress, and Is_Logged.

{
      KConfig *config = KGlobal::config();

      config->setGroup("General");
      QFont defaultFont(KGlobalSettings::generalFont());
      Fonts_Default = config->readFontEntry( "Font log", &defaultFont );
      Fonts_Error = config->readFontEntry( "Font error", &defaultFont );

      config->setGroup("Compress"); 
      Is_Decompress = config->readBoolEntry( "Compress in dir", false );
      Decompress_Dir = config->readEntry("Directory", "" );

      config->setGroup("Log");      
      Is_Logged = config->readBoolEntry( "Log start", true );
      Is_LogInSources = config->readBoolEntry( "Log in sources", true );
      Is_LogInHome = config->readBoolEntry( "Log in dir", false );
      Log_Dir = config->readEntry( "Directory", "" );
      Is_LogHTML = config->readBoolEntry( "Log in html", true );

      config->setGroup("Checkinstall");
      Is_Checkinstall = config->readBoolEntry( "Enable Checkinstall", false );
      CheckInstall_Command = config->readEntry( "Checkinstall Command", "/usr/sbin/checkinstall" );
      Is_RPM = config->readBoolEntry( "RPM Package", true );
      Is_DKPG = config->readBoolEntry( "Debian Package", false );
      Is_SLK = config->readBoolEntry( "Slackware Package", false );
      Is_BackFiles = config->readBoolEntry( "Backup Overwrite Files", true );
      Is_ElfStrip = config->readBoolEntry( "Strip Elf Binaries", true );
      Comstom_Command = config->readEntry( "Custom Options", "--pkgrelease=1.kcfg" );
      
}


Generated by  Doxygen 1.6.0   Back to index