summaryrefslogtreecommitdiffstats
path: root/ksplashml
diff options
context:
space:
mode:
Diffstat (limited to 'ksplashml')
-rw-r--r--ksplashml/kcmksplash/installer.cpp28
-rw-r--r--ksplashml/kcmksplash/main.cpp4
-rw-r--r--ksplashml/themeengine/default/themelegacy.cpp4
-rw-r--r--ksplashml/themeengine/default/themelegacy.h4
-rw-r--r--ksplashml/themeengine/objkstheme.cpp18
-rw-r--r--ksplashml/themeengine/objkstheme.h8
-rw-r--r--ksplashml/themeengine/redmond/main.cpp2
-rw-r--r--ksplashml/themeengine/redmond/themeredmond.cpp6
-rw-r--r--ksplashml/themeengine/redmond/themeredmond.h2
-rw-r--r--ksplashml/themeengine/standard/themestandard.cpp2
-rw-r--r--ksplashml/themeengine/standard/themestandard.h2
-rw-r--r--ksplashml/themeengine/themeengine.h10
-rw-r--r--ksplashml/themeengine/unified/themeunified.cpp4
-rw-r--r--ksplashml/themeengine/unified/themeunified.h4
-rw-r--r--ksplashml/wndmain.cpp4
-rw-r--r--ksplashml/wndmain.h4
16 files changed, 53 insertions, 53 deletions
diff --git a/ksplashml/kcmksplash/installer.cpp b/ksplashml/kcmksplash/installer.cpp
index a1fa7a033..1e17a301a 100644
--- a/ksplashml/kcmksplash/installer.cpp
+++ b/ksplashml/kcmksplash/installer.cpp
@@ -171,10 +171,10 @@ void SplashInstaller::addNewTheme(const KURL &srcURL)
url.setPath(locateLocal("tmp",filename));
// Remove file from temporary directory if it aleady exists - usually the result of a failed install.
- if ( KIO::NetAccess::exists( url, true, 0 ) )
- KIO::NetAccess::del( url, 0 );
+ if ( TDEIO::NetAccess::exists( url, true, 0 ) )
+ TDEIO::NetAccess::del( url, 0 );
- bool rc = KIO::NetAccess::copy(srcURL, url, 0);
+ bool rc = TDEIO::NetAccess::copy(srcURL, url, 0);
if (!rc)
{
kdWarning() << "Failed to copy theme " << srcURL.fileName()
@@ -208,7 +208,7 @@ void SplashInstaller::addNewTheme(const KURL &srcURL)
// TODO: Warn the user if we overwrite something.
ad->copyTo(locateLocal("ksplashthemes","/"));
tarFile.close();
- KIO::NetAccess::del( url, 0 );
+ TDEIO::NetAccess::del( url, 0 );
// TODO: Update only the entries from this installation.
readThemesList();
@@ -258,7 +258,7 @@ void SplashInstaller::load()
void SplashInstaller::load( bool useDefaults )
{
- KConfig cnf("ksplashrc");
+ TDEConfig cnf("ksplashrc");
cnf.setReadDefaults( useDefaults );
cnf.setGroup("KSplash");
TQString curTheme = cnf.readEntry("Theme","Default");
@@ -269,7 +269,7 @@ void SplashInstaller::load( bool useDefaults )
//-----------------------------------------------------------------------------
void SplashInstaller::save()
{
- KConfig cnf("ksplashrc");
+ TDEConfig cnf("ksplashrc");
cnf.setGroup("KSplash");
int cur = mThemesList->currentItem();
if (cur < 0)
@@ -298,7 +298,7 @@ void SplashInstaller::slotRemove()
KURL url;
url.setPath(themeDir);
if (KMessageBox::warningContinueCancel(this,i18n("Delete folder %1 and its contents?").arg(themeDir),"",KGuiItem(i18n("&Delete"),"editdelete"))==KMessageBox::Continue)
- rc = KIO::NetAccess::del(url,this);
+ rc = TDEIO::NetAccess::del(url,this);
else
return;
}
@@ -343,19 +343,19 @@ void SplashInstaller::slotSetTheme(int id)
if (i >= 0)
themeName = path.mid(i+1);
url.setPath( path + "/Theme.rc" );
- if (!KIO::NetAccess::exists(url, true, 0))
+ if (!TDEIO::NetAccess::exists(url, true, 0))
{
url.setPath( path + "/Theme.RC" );
- if (!KIO::NetAccess::exists(url, true, 0))
+ if (!TDEIO::NetAccess::exists(url, true, 0))
{
url.setPath( path + "/theme.rc" );
- if (!KIO::NetAccess::exists(url, true, 0))
+ if (!TDEIO::NetAccess::exists(url, true, 0))
url.setPath( path + "/" + themeName + ".rc" );
}
}
- if (KIO::NetAccess::exists(url, true, 0))
+ if (TDEIO::NetAccess::exists(url, true, 0))
{
- KConfig cnf(url.path());
+ TDEConfig cnf(url.path());
cnf.setGroup( TQString("KSplash Theme: %1").arg(themeName) );
// Get theme information.
@@ -391,7 +391,7 @@ void SplashInstaller::slotSetTheme(int id)
if (!enabled)
{
url.setPath( path + "/" + "Preview.png" );
- if (KIO::NetAccess::exists(url, true, 0))
+ if (TDEIO::NetAccess::exists(url, true, 0))
mPreview->setPixmap(TQPixmap(url.path()));
else
mPreview->setText(i18n("(Could not load theme)"));
@@ -400,7 +400,7 @@ void SplashInstaller::slotSetTheme(int id)
else
{
url.setPath( path + "/" + "Preview.png" );
- if (KIO::NetAccess::exists(url, true, 0))
+ if (TDEIO::NetAccess::exists(url, true, 0))
mPreview->setPixmap(TQPixmap(url.path()));
else
mPreview->setText(i18n("No preview available."));
diff --git a/ksplashml/kcmksplash/main.cpp b/ksplashml/kcmksplash/main.cpp
index 7c062ea51..cceebc0e1 100644
--- a/ksplashml/kcmksplash/main.cpp
+++ b/ksplashml/kcmksplash/main.cpp
@@ -23,7 +23,7 @@
#include "installer.h"
-class KSplashThemeMgr : public KCModule
+class KSplashThemeMgr : public TDECModule
{
public:
KSplashThemeMgr( TQWidget *parent, const char *name, const TQStringList &/*unused*/);
@@ -46,7 +46,7 @@ K_EXPORT_COMPONENT_FACTORY( kcm_ksplashthemes, KSplashThemeMgrFactory("ksplashth
// -----------------------------------------------------------------------------------------
KSplashThemeMgr::KSplashThemeMgr( TQWidget *parent, const char *name, const TQStringList &)
- : KCModule( KSplashThemeMgrFactory::instance(), parent, name ), mInstaller(new SplashInstaller(this))
+ : TDECModule( KSplashThemeMgrFactory::instance(), parent, name ), mInstaller(new SplashInstaller(this))
{
init();
diff --git a/ksplashml/themeengine/default/themelegacy.cpp b/ksplashml/themeengine/default/themelegacy.cpp
index de8aac2b5..39839cca6 100644
--- a/ksplashml/themeengine/default/themelegacy.cpp
+++ b/ksplashml/themeengine/default/themelegacy.cpp
@@ -31,7 +31,7 @@
#include "themelegacy.h"
#include "themelegacy.moc"
-DefaultConfig::DefaultConfig( TQWidget *parent, KConfig *config )
+DefaultConfig::DefaultConfig( TQWidget *parent, TDEConfig *config )
:ThemeEngineConfig( parent, config )
{
mConfig->setGroup( TQString("KSplash Theme: Default") );
@@ -200,7 +200,7 @@ void ThemeDefault::_readSettings()
if( !mTheme )
return;
- KConfig *cfg = mTheme->themeConfig();
+ TDEConfig *cfg = mTheme->themeConfig();
if( !cfg )
return;
diff --git a/ksplashml/themeengine/default/themelegacy.h b/ksplashml/themeengine/default/themelegacy.h
index 852425414..0f73e80c1 100644
--- a/ksplashml/themeengine/default/themelegacy.h
+++ b/ksplashml/themeengine/default/themelegacy.h
@@ -28,7 +28,7 @@ class DefaultConfig: public ThemeEngineConfig
{
Q_OBJECT
public:
- DefaultConfig( TQWidget *, KConfig * );
+ DefaultConfig( TQWidget *, TDEConfig * );
void save();
protected:
TQCheckBox *mFlash, *mAlwaysShow;
@@ -45,7 +45,7 @@ public:
ThemeDefault( TQWidget *, const char *, const TQStringList& );
virtual ~ThemeDefault();
- inline const DefaultConfig *config( TQWidget *p, KConfig *c )
+ inline const DefaultConfig *config( TQWidget *p, TDEConfig *c )
{
return new DefaultConfig( p, c );
};
diff --git a/ksplashml/themeengine/objkstheme.cpp b/ksplashml/themeengine/objkstheme.cpp
index 533697dc4..df7556bac 100644
--- a/ksplashml/themeengine/objkstheme.cpp
+++ b/ksplashml/themeengine/objkstheme.cpp
@@ -32,7 +32,7 @@ ObjKsTheme::ObjKsTheme( const TQString& theme )
:mActiveTheme (theme), mThemeDir("/"), mThemeConfig (0L), mThemePrefix( "Themes/" ), d(0)
{
// Get Xinerama config.
- KConfig *config = kapp->config();
+ TDEConfig *config = kapp->config();
config->setGroup( "Xinerama" );
TQDesktopWidget *desktop = kapp->desktop();
mXineramaScreen = config->readNumEntry("KSplashScreen", desktop->primaryScreen());
@@ -63,7 +63,7 @@ bool ObjKsTheme::loadThemeRc( const TQString& activeTheme, bool force )
//kdDebug() << "ObjKsTheme::loadThemeRc: " << activeTheme << endl;
TQString prefix("Themes/");
TQString themeFile;
- KConfig *cf = 0L;
+ TDEConfig *cf = 0L;
// Try our best to find a theme file.
themeFile = locate( "appdata", prefix + activeTheme + "/" + TQString("Theme.rc") );
@@ -72,13 +72,13 @@ bool ObjKsTheme::loadThemeRc( const TQString& activeTheme, bool force )
themeFile = themeFile.isEmpty() ? locate("appdata",prefix+activeTheme+"/"+activeTheme+TQString(".rc")):themeFile;
if( !themeFile.isEmpty() )
- cf = new KConfig( themeFile );
+ cf = new TDEConfig( themeFile );
if( cf )
{
mActiveTheme = activeTheme;
mThemeDir = prefix + activeTheme+"/";
- if( loadKConfig( cf, activeTheme, force ) )
+ if( loadTDEConfig( cf, activeTheme, force ) )
{
mThemeConfig = cf;
return true;
@@ -92,14 +92,14 @@ bool ObjKsTheme::loadThemeRc( const TQString& activeTheme, bool force )
bool ObjKsTheme::loadLocalConfig( const TQString& activeTheme, bool force )
{
//kdDebug() << "ObjKsTheme::loadLocalConfig" << endl;
- KConfig *cfg = kapp->config();
- return( loadKConfig( cfg, activeTheme, force ) );
+ TDEConfig *cfg = kapp->config();
+ return( loadTDEConfig( cfg, activeTheme, force ) );
}
-// ObjKsConfig::loadKConfig(): Load our settings from a KConfig object.
-bool ObjKsTheme::loadKConfig( KConfig *cfg, const TQString& activeTheme, bool force )
+// ObjKsConfig::loadTDEConfig(): Load our settings from a TDEConfig object.
+bool ObjKsTheme::loadTDEConfig( TDEConfig *cfg, const TQString& activeTheme, bool force )
{
- //kdDebug() << "ObjKsTheme::loadKConfig" << endl;
+ //kdDebug() << "ObjKsTheme::loadTDEConfig" << endl;
if( !cfg )
return false;
diff --git a/ksplashml/themeengine/objkstheme.h b/ksplashml/themeengine/objkstheme.h
index 4d88276ba..34ea2fdf1 100644
--- a/ksplashml/themeengine/objkstheme.h
+++ b/ksplashml/themeengine/objkstheme.h
@@ -17,7 +17,7 @@
#include <tqstring.h>
#include <tqstringlist.h>
-class KConfig;
+class TDEConfig;
/**
* @short Theme reader.
* A Theme is read in from the file
@@ -37,7 +37,7 @@ public:
TQString theme() const { return( mActiveTheme ); }
TQString themeEngine() const { return( mThemeEngine ); }
- KConfig *themeConfig() const { return( mThemeConfig ); }
+ TDEConfig *themeConfig() const { return( mThemeConfig ); }
TQString themeDir() const { return( mThemeDir ); }
bool loColor() const { return( mLoColor ); }
bool testing() const { return( mTesting ); }
@@ -50,11 +50,11 @@ public:
protected:
bool loadThemeRc( const TQString&, bool );
bool loadLocalConfig( const TQString&, bool );
- bool loadKConfig( KConfig *, const TQString&, bool );
+ bool loadTDEConfig( TDEConfig *, const TQString&, bool );
private:
TQString mActiveTheme, mThemeDir;
- KConfig *mThemeConfig;
+ TDEConfig *mThemeConfig;
int mXineramaScreen;
bool mLoColor, mTesting, mManagedMode;
diff --git a/ksplashml/themeengine/redmond/main.cpp b/ksplashml/themeengine/redmond/main.cpp
index 3f4dc0124..7b4a6bb2e 100644
--- a/ksplashml/themeengine/redmond/main.cpp
+++ b/ksplashml/themeengine/redmond/main.cpp
@@ -20,7 +20,7 @@
extern "C"
{
- ThemeEngineConfig *KsThemeConfig( TQWidget *parent, KConfig *config )
+ ThemeEngineConfig *KsThemeConfig( TQWidget *parent, TDEConfig *config )
{
return new CfgRedmond( parent, config );
}
diff --git a/ksplashml/themeengine/redmond/themeredmond.cpp b/ksplashml/themeengine/redmond/themeredmond.cpp
index 5e5bf1031..0328c0365 100644
--- a/ksplashml/themeengine/redmond/themeredmond.cpp
+++ b/ksplashml/themeengine/redmond/themeredmond.cpp
@@ -41,7 +41,7 @@
K_EXPORT_COMPONENT_FACTORY( ksplashredmond, KGenericFactory<ThemeRedmond>( "ksplash" ) )
-CfgRedmond::CfgRedmond( TQWidget *p, KConfig *c )
+CfgRedmond::CfgRedmond( TQWidget *p, TDEConfig *c )
:ThemeEngineConfig( p, c )
{
TQVBox *vbox = new TQVBox( this );
@@ -195,7 +195,7 @@ void ThemeRedmond::_initUi()
const int fUserOnly = fUserFirst+1;
int faceSource = fAdminOnly;
- KConfig *tdmconfig = new KConfig("tdm/tdmrc", true);
+ TDEConfig *tdmconfig = new TDEConfig("tdm/tdmrc", true);
tdmconfig->setGroup("X-*-Greeter");
TQString userPicsDir = tdmconfig->readEntry( "FaceDir", TDEGlobal::dirs()->resourceDirs("data").last() + "tdm/faces" ) + '/';
TQString fs = tdmconfig->readEntry( "FaceSource" );
@@ -313,7 +313,7 @@ void ThemeRedmond::_readSettings()
if( !mTheme )
return;
- KConfig *cfg = mTheme->themeConfig();
+ TDEConfig *cfg = mTheme->themeConfig();
if( !cfg )
return;
diff --git a/ksplashml/themeengine/redmond/themeredmond.h b/ksplashml/themeengine/redmond/themeredmond.h
index 6f8cc1550..c2ce0a6f3 100644
--- a/ksplashml/themeengine/redmond/themeredmond.h
+++ b/ksplashml/themeengine/redmond/themeredmond.h
@@ -25,7 +25,7 @@ class CfgRedmond: public ThemeEngineConfig
{
Q_OBJECT
public:
- CfgRedmond( TQWidget *, KConfig * );
+ CfgRedmond( TQWidget *, TDEConfig * );
protected:
TQCheckBox *mShowUsername;
diff --git a/ksplashml/themeengine/standard/themestandard.cpp b/ksplashml/themeengine/standard/themestandard.cpp
index a7c41692f..26c47eea0 100644
--- a/ksplashml/themeengine/standard/themestandard.cpp
+++ b/ksplashml/themeengine/standard/themestandard.cpp
@@ -135,7 +135,7 @@ void ThemeStandard::_readSettings()
if ( !mTheme )
return;
- KConfig *cfg = mTheme->themeConfig();
+ TDEConfig *cfg = mTheme->themeConfig();
if ( !cfg )
return;
diff --git a/ksplashml/themeengine/standard/themestandard.h b/ksplashml/themeengine/standard/themestandard.h
index 2e5d1aeb0..a1fb61ccf 100644
--- a/ksplashml/themeengine/standard/themestandard.h
+++ b/ksplashml/themeengine/standard/themestandard.h
@@ -45,7 +45,7 @@ class ThemeStandard: public ThemeEngine
Q_OBJECT
public:
ThemeStandard( TQWidget *, const char*, const TQStringList& );
- //inline const ThemeEngineConfig *config( TQWidget *p, KConfig *kc ) { return 0L; }
+ //inline const ThemeEngineConfig *config( TQWidget *p, TDEConfig *kc ) { return 0L; }
public slots:
inline void slotUpdateProgress( int i )
diff --git a/ksplashml/themeengine/themeengine.h b/ksplashml/themeengine/themeengine.h
index 026351b5b..fa2f15a65 100644
--- a/ksplashml/themeengine/themeengine.h
+++ b/ksplashml/themeengine/themeengine.h
@@ -18,7 +18,7 @@
#include <kdemacros.h>
-class KConfig;
+class TDEConfig;
class ObjKsTheme;
class TQMouseEvent;
@@ -30,18 +30,18 @@ class KDE_EXPORT ThemeEngineConfig: public TQVBox
Q_OBJECT
public:
- ThemeEngineConfig( TQWidget *p, KConfig *c )
+ ThemeEngineConfig( TQWidget *p, TDEConfig *c )
:TQVBox( p ), mConfig( c )
{}
- KConfig* config()const { return mConfig; }
+ TDEConfig* config()const { return mConfig; }
public slots:
virtual void load() {}
virtual void save() {}
protected:
- KConfig *mConfig;
+ TDEConfig *mConfig;
};
/**
@@ -54,7 +54,7 @@ class KDE_EXPORT ThemeEngine: public TQVBox
public:
ThemeEngine( TQWidget *parent, const char *name, const TQStringList &args );
virtual ~ThemeEngine() = 0;
- virtual const ThemeEngineConfig *config( TQWidget *, KConfig * ) { return 0L; }
+ virtual const ThemeEngineConfig *config( TQWidget *, TDEConfig * ) { return 0L; }
virtual ObjKsTheme *ksTheme() { return mTheme; }
virtual bool eventFilter( TQObject* o, TQEvent* e );
diff --git a/ksplashml/themeengine/unified/themeunified.cpp b/ksplashml/themeengine/unified/themeunified.cpp
index 1e86054f7..21c899adc 100644
--- a/ksplashml/themeengine/unified/themeunified.cpp
+++ b/ksplashml/themeengine/unified/themeunified.cpp
@@ -32,7 +32,7 @@
#include "themeunified.h"
#include "themeunified.moc"
-UnifiedConfig::UnifiedConfig( TQWidget *parent, KConfig *config )
+UnifiedConfig::UnifiedConfig( TQWidget *parent, TDEConfig *config )
:ThemeEngineConfig( parent, config )
{
mConfig->setGroup( TQString("KSplash Theme: Default") );
@@ -91,7 +91,7 @@ void ThemeUnified::_readSettings()
if( !mTheme )
return;
- KConfig *cfg = mTheme->themeConfig();
+ TDEConfig *cfg = mTheme->themeConfig();
if( !cfg )
return;
diff --git a/ksplashml/themeengine/unified/themeunified.h b/ksplashml/themeengine/unified/themeunified.h
index a8f9e12e2..cd6a1d1ca 100644
--- a/ksplashml/themeengine/unified/themeunified.h
+++ b/ksplashml/themeengine/unified/themeunified.h
@@ -30,7 +30,7 @@ class UnifiedConfig: public ThemeEngineConfig
{
Q_OBJECT
public:
- UnifiedConfig( TQWidget *, KConfig * );
+ UnifiedConfig( TQWidget *, TDEConfig * );
void save();
protected:
TQCheckBox *mAlwaysShow;
@@ -47,7 +47,7 @@ public:
ThemeUnified( TQWidget *, const char *, const TQStringList& );
virtual ~ThemeUnified();
- inline const UnifiedConfig *config( TQWidget *p, KConfig *c )
+ inline const UnifiedConfig *config( TQWidget *p, TDEConfig *c )
{
return new UnifiedConfig( p, c );
};
diff --git a/ksplashml/wndmain.cpp b/ksplashml/wndmain.cpp
index 2efe5bb83..cb71de070 100644
--- a/ksplashml/wndmain.cpp
+++ b/ksplashml/wndmain.cpp
@@ -46,7 +46,7 @@ KSplash::KSplash(const char *name)
mSessMgrCalled = false;
mTimeToGo = false;
- KConfig * config = kapp->config();
+ TDEConfig * config = kapp->config();
slotReadProperties(config);
prepareSplashScreen();
@@ -88,7 +88,7 @@ KSplash::~KSplash()
KLibLoader::self()->unloadLibrary( mThemeLibName.latin1() );
}
-void KSplash::slotReadProperties( KConfig *config )
+void KSplash::slotReadProperties( TDEConfig *config )
{
TDECmdLineArgs *arg = TDECmdLineArgs::parsedArgs();
mTheme = arg->getOption("theme");
diff --git a/ksplashml/wndmain.h b/ksplashml/wndmain.h
index 7ece50bdd..f74f48f32 100644
--- a/ksplashml/wndmain.h
+++ b/ksplashml/wndmain.h
@@ -34,7 +34,7 @@ typedef struct
class WndStatus;
class ObjKsTheme;
class ThemeEngine;
-class KConfig;
+class TDEConfig;
class KSplash: public TQWidget, virtual public KSplashIface
{
@@ -87,7 +87,7 @@ private slots:
void slotExec();
void nextIcon();
void slotInsertAction( const TQString&, const TQString& );
- void slotReadProperties( KConfig * );
+ void slotReadProperties( TDEConfig * );
void slotSetText( const TQString& );
void slotSetTextIndex( const int );