|
|
|
@ -55,9 +55,9 @@ int Source::getPosition() const{
|
|
|
|
|
return mPosition;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Source::setPosition(int inPosition, KConfig* inKConfig){
|
|
|
|
|
void Source::setPosition(int inPosition, TDEConfig* inTDEConfig){
|
|
|
|
|
mPosition = inPosition;
|
|
|
|
|
inKConfig->writeEntry(mID + "_position", mPosition);
|
|
|
|
|
inTDEConfig->writeEntry(mID + "_position", mPosition);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const TQString& Source::getName() const{
|
|
|
|
@ -169,24 +169,24 @@ void Source::applyPrefs(){
|
|
|
|
|
mShowOnApplet = mMaybeShowOnApplet;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Source::savePrefs(KConfig* inKConfig){
|
|
|
|
|
inKConfig->writeEntry(mID + "_position", mPosition);
|
|
|
|
|
inKConfig->writeEntry(mID + "_enabled", mEnabled);
|
|
|
|
|
inKConfig->writeEntry(mID + "_showOnApplet", mShowOnApplet);
|
|
|
|
|
inKConfig->writeEntry(mID + "_showName", mShowName);
|
|
|
|
|
inKConfig->writeEntry(mID + "_name", mName);
|
|
|
|
|
inKConfig->writeEntry(mID + "_toolTipEnabled", mToolTipEnabled);
|
|
|
|
|
void Source::savePrefs(TDEConfig* inTDEConfig){
|
|
|
|
|
inTDEConfig->writeEntry(mID + "_position", mPosition);
|
|
|
|
|
inTDEConfig->writeEntry(mID + "_enabled", mEnabled);
|
|
|
|
|
inTDEConfig->writeEntry(mID + "_showOnApplet", mShowOnApplet);
|
|
|
|
|
inTDEConfig->writeEntry(mID + "_showName", mShowName);
|
|
|
|
|
inTDEConfig->writeEntry(mID + "_name", mName);
|
|
|
|
|
inTDEConfig->writeEntry(mID + "_toolTipEnabled", mToolTipEnabled);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Source::loadPrefs(KConfig* inKConfig){
|
|
|
|
|
mPosition = inKConfig->readNumEntry(mID + "_position", mPosition);
|
|
|
|
|
mEnabled = inKConfig->readBoolEntry(mID + "_enabled", mEnabled);
|
|
|
|
|
void Source::loadPrefs(TDEConfig* inTDEConfig){
|
|
|
|
|
mPosition = inTDEConfig->readNumEntry(mID + "_position", mPosition);
|
|
|
|
|
mEnabled = inTDEConfig->readBoolEntry(mID + "_enabled", mEnabled);
|
|
|
|
|
mMaybeEnabled = mEnabled;
|
|
|
|
|
mShowOnApplet = inKConfig->readBoolEntry(mID + "_showOnApplet", mShowOnApplet);
|
|
|
|
|
mShowOnApplet = inTDEConfig->readBoolEntry(mID + "_showOnApplet", mShowOnApplet);
|
|
|
|
|
mMaybeShowOnApplet = mShowOnApplet;
|
|
|
|
|
mShowName = inKConfig->readBoolEntry(mID + "_showName", mShowName);
|
|
|
|
|
mName = inKConfig->readEntry(mID + "_name", mName);
|
|
|
|
|
mToolTipEnabled = inKConfig->readBoolEntry(mID + "_toolTipEnabled", mToolTipEnabled);
|
|
|
|
|
mShowName = inTDEConfig->readBoolEntry(mID + "_showName", mShowName);
|
|
|
|
|
mName = inTDEConfig->readEntry(mID + "_name", mName);
|
|
|
|
|
mToolTipEnabled = inTDEConfig->readBoolEntry(mID + "_toolTipEnabled", mToolTipEnabled);
|
|
|
|
|
|
|
|
|
|
// initializing
|
|
|
|
|
// this signal is usually catched by the ThreadedTrigger who enables or disables the fetch loop
|
|
|
|
|