diff options
Diffstat (limited to 'src/sources')
-rw-r--r-- | src/sources/labelsource.cpp | 20 | ||||
-rw-r--r-- | src/sources/labelsource.h | 4 | ||||
-rw-r--r-- | src/sources/source.cpp | 32 | ||||
-rw-r--r-- | src/sources/source.h | 6 |
4 files changed, 31 insertions, 31 deletions
diff --git a/src/sources/labelsource.cpp b/src/sources/labelsource.cpp index ef98492..9e27985 100644 --- a/src/sources/labelsource.cpp +++ b/src/sources/labelsource.cpp @@ -99,21 +99,21 @@ void LabelSource::applyPrefs(){ updateLabel(mValue); } -void LabelSource::savePrefs(KConfig* inKConfig){ - TriggeredSource::savePrefs(inKConfig); - inKConfig->writeEntry(mID + "_color", mLabelSourcePrefs->colorButton->color()); - inKConfig->writeEntry(mID + "_font", mLabelSourcePrefs->fontRequester->font()); - inKConfig->writeEntry(mID + "_align", mLabel->alignment()); +void LabelSource::savePrefs(TDEConfig* inTDEConfig){ + TriggeredSource::savePrefs(inTDEConfig); + inTDEConfig->writeEntry(mID + "_color", mLabelSourcePrefs->colorButton->color()); + inTDEConfig->writeEntry(mID + "_font", mLabelSourcePrefs->fontRequester->font()); + inTDEConfig->writeEntry(mID + "_align", mLabel->alignment()); } -void LabelSource::loadPrefs(KConfig* inKConfig){ - TriggeredSource::loadPrefs(inKConfig); - TQColor color = inKConfig->readColorEntry(mID + "_color"); +void LabelSource::loadPrefs(TDEConfig* inTDEConfig){ + TriggeredSource::loadPrefs(inTDEConfig); + TQColor color = inTDEConfig->readColorEntry(mID + "_color"); if(!color.isValid()) color.setRgb(0,0,0); mLabel->setPaletteForegroundColor(color); - mLabel->setFont(inKConfig->readFontEntry(mID + "_font")); - mLabel->setAlignment(inKConfig->readNumEntry(mID + "_align")); + mLabel->setFont(inTDEConfig->readFontEntry(mID + "_font")); + mLabel->setAlignment(inTDEConfig->readNumEntry(mID + "_align")); } void LabelSource::updateLabel(const TQString& inValue){ diff --git a/src/sources/labelsource.h b/src/sources/labelsource.h index 1cc939e..8f711f2 100644 --- a/src/sources/labelsource.h +++ b/src/sources/labelsource.h @@ -70,12 +70,12 @@ protected slots: /** * Saves the prefs (implicit apply) */ - virtual void savePrefs(KConfig* inKConfig); + virtual void savePrefs(TDEConfig* inTDEConfig); /** * Loads the prefs */ - virtual void loadPrefs(KConfig* inKConfig); + virtual void loadPrefs(TDEConfig* inTDEConfig); /** * This method enables or disables various widgets of the preferences dialog depending on isEnabled and isShownOnApplet diff --git a/src/sources/source.cpp b/src/sources/source.cpp index b3cc680..89d0e9b 100644 --- a/src/sources/source.cpp +++ b/src/sources/source.cpp @@ -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 diff --git a/src/sources/source.h b/src/sources/source.h index e869544..b299fe8 100644 --- a/src/sources/source.h +++ b/src/sources/source.h @@ -55,7 +55,7 @@ public: /** * Sets the position of this source in the layout */ - void setPosition(int inPosition, KConfig* inKConfig); + void setPosition(int inPosition, TDEConfig* inTDEConfig); /** * Returns the Name of this source @@ -134,12 +134,12 @@ public slots: /** * Saves the preferences (implicit apply) */ - virtual void savePrefs(KConfig* inKConfig); + virtual void savePrefs(TDEConfig* inTDEConfig); /** * Loads the preferences */ - virtual void loadPrefs(KConfig* inKConfig); + virtual void loadPrefs(TDEConfig* inTDEConfig); signals: /** |