Commit cdb2057e authored by Christian Loose's avatar Christian Loose
Browse files

* Save and read cvs client and global compression level configuration

   to/from the configuration file of the cvs DCOP service
* Added kconf_update script

svn path=/trunk/kdesdk/cervisia/; revision=196213
parent 8b79c4a7
......@@ -6,6 +6,9 @@
* Several changes to the DCOP service
* Added new parseCvsLog() method to LogDialog that
uses the new cvs DCOP service
* Save and read cvs client and global compression level configuration
to/from the configuration file of the cvs DCOP service
* Added kconf_update script
2002-12-23 Andr Wbbeking <Woebbeking@web.de>
......
......@@ -37,6 +37,9 @@ partrc_DATA = cervisiaui.rc
shellrcdir = $(kde_datadir)/cervisia
shellrc_DATA = cervisiashellui.rc
update_DATA = cervisia.upd
updatedir = $(kde_datadir)/kconf_update
messages: rc.cpp
$(EXTRACTRC) *.rc >> rc.cpp
$(XGETTEXT) -C *.cpp *.h -o $(podir)/cervisia.pot
......
#
Id=kde3.2/20021228
File=cervisiapartrc,cvsservicerc
Group=General
Options=copy
Key=CVSPath
Options=copy
Key=Compression
#
#Id=kde3.2/2
#File=cervisiapartrc,cvsservicerc
#Script=move_repositories.pl,perl
......@@ -225,11 +225,15 @@ SettingsDialog::SettingsDialog( KConfig *conf, QWidget *parent, const char *name
void SettingsDialog::readSettings()
{
// read entries from cvs DCOP service configuration
KConfig* serviceConf = new KConfig("cvsservicerc");
serviceConf->setGroup("General");
cvspathedit->setText(serviceConf->readEntry("CVSPath", "cvs"));
compressioncombo->setCurrentItem(serviceConf->readNumEntry("Compression", 0));
config->setGroup("General");
timeoutedit->setValue((int)config->readUnsignedNumEntry("Timeout", 4000));
usernameedit->setText(config->readEntry("Username", userName()));
cvspathedit->setText(config->readEntry("CVSPath", "cvs"));
compressioncombo->setCurrentItem(config->readNumEntry("Compression", 0));
contextedit->setValue((int)config->readUnsignedNumEntry("ContextLines", 65535));
tabwidthedit->setValue((int)config->readUnsignedNumEntry("TabWidth", 8));
......@@ -264,11 +268,22 @@ void SettingsDialog::readSettings()
void SettingsDialog::writeSettings()
{
// write entries to cvs DCOP service configuration
KConfig* serviceConf = new KConfig("cvsservicerc");
serviceConf->setGroup("General");
serviceConf->writeEntry("CVSPath", cvspathedit->text());
serviceConf->writeEntry("Compression", compressioncombo->currentItem());
// write to disk so other services can reparse the configuration
serviceConf->sync();
config->setGroup("General");
config->writeEntry("Timeout", (unsigned)timeoutedit->value());
config->writeEntry("Username", usernameedit->text());
// TODO: remove when move to cvs DCOP service is complete
config->writeEntry("CVSPath", cvspathedit->text());
config->writeEntry("Compression", compressioncombo->currentItem());
// END TODO
config->writeEntry("ContextLines", (unsigned)contextedit->value());
config->writeEntry("TabWidth", tabwidthedit->value());
config->writeEntry("DiffOptions", diffoptedit->text());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment