summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings/kconfig_imp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/bindings/kconfig_imp.cpp')
-rw-r--r--kjsembed/bindings/kconfig_imp.cpp112
1 files changed, 56 insertions, 56 deletions
diff --git a/kjsembed/bindings/kconfig_imp.cpp b/kjsembed/bindings/kconfig_imp.cpp
index c669663f..3cf6e532 100644
--- a/kjsembed/bindings/kconfig_imp.cpp
+++ b/kjsembed/bindings/kconfig_imp.cpp
@@ -32,7 +32,7 @@
namespace KJSEmbed {
namespace Bindings {
-Config::Config( TTQObject *parent, const char *name)
+Config::Config( TQObject *parent, const char *name)
: BindingObject(parent, name)
{
@@ -46,21 +46,21 @@ Config::Config( TTQObject *parent, const char *name)
kdWarning( 80001 ) << "Could not write to config file." << endl;
}
#else
- m_config = new TTQSettings();
+ m_config = new TQSettings();
if( name == 0)
m_name = "qjcmd";
else
m_name = name;
- m_config->setPath( "TQJSEmbed",m_name, TTQSettings::User );
+ m_config->setPath( "TQJSEmbed",m_name, TQSettings::User );
m_forceGlobal = false;
#endif
}
/*
-Config::Config( TTQObject *parent, const char *name , const TTQString& confName)
+Config::Config( TQObject *parent, const char *name , const TQString& confName)
: BindingObject(parent, name)
{
- TTQString fileName = ::locate("kde_config", confName);
+ TQString fileName = ::locate("kde_config", confName);
m_config = new KConfig(fileName);
}
*/
@@ -82,7 +82,7 @@ void Config::setDesktopGroup()
#endif
}
-void Config::setGroup(const TTQString& group)
+void Config::setGroup(const TQString& group)
{
#ifndef QT_ONLY
m_config->setGroup(group);
@@ -92,12 +92,12 @@ void Config::setGroup(const TTQString& group)
#endif
}
-TTQString Config::group()
+TQString Config::group()
{
return m_config->group();
}
-TTQStringList Config::groupList()
+TQStringList Config::groupList()
{
#ifndef QT_ONLY
return m_config->groupList();
@@ -107,7 +107,7 @@ TTQStringList Config::groupList()
#endif
}
-TTQString Config::locale()
+TQString Config::locale()
{
#ifndef QT_ONLY
return m_config->locale();
@@ -122,7 +122,7 @@ void Config::setForceGlobal( bool force )
m_config->setForceGlobal(force);
#else
m_forceGlobal = force;
- m_config->setPath( "TQJSEmbed",m_name, (force)?TTQSettings::Global:TTQSettings::User );
+ m_config->setPath( "TQJSEmbed",m_name, (force)?TQSettings::Global:TQSettings::User );
#endif
}
@@ -203,7 +203,7 @@ void Config::sync()
m_config->sync();
}
-bool Config::hasKey( const TTQString& key ) const
+bool Config::hasKey( const TQString& key ) const
{
#ifndef QT_ONLY
return m_config->hasKey(key);
@@ -212,7 +212,7 @@ bool Config::hasKey( const TTQString& key ) const
#endif
}
-bool Config::entryIsImmutable(const TTQString &key) const
+bool Config::entryIsImmutable(const TQString &key) const
{
#ifndef QT_ONLY
return m_config->entryIsImmutable(key);
@@ -222,7 +222,7 @@ bool Config::entryIsImmutable(const TTQString &key) const
#endif
}
-void Config::revertToDefault(const TTQString &key)
+void Config::revertToDefault(const TQString &key)
{
#ifndef QT_ONLY
m_config->revertToDefault(key);
@@ -231,7 +231,7 @@ void Config::revertToDefault(const TTQString &key)
#endif
}
-bool Config::hasDefault(const TTQString &key) const
+bool Config::hasDefault(const TQString &key) const
{
#ifndef QT_ONLY
return m_config->hasDefault(key);
@@ -250,28 +250,28 @@ void Config::setFileWriteMode(int mode)
#endif
}
-TTQString Config::readEntry(const TTQString& pKey, const TTQString& aDefault ) const
+TQString Config::readEntry(const TQString& pKey, const TQString& aDefault ) const
{
return m_config->readEntry(pKey,aDefault);
}
-TTQVariant Config::readPropertyEntry( const TTQString& pKey, const TTQVariant &pDefault) const
+TQVariant Config::readPropertyEntry( const TQString& pKey, const TQVariant &pDefault) const
{
#ifndef QT_ONLY
return m_config->readPropertyEntry(pKey,pDefault);
#else
- TTQVariant returnVariant;
+ TQVariant returnVariant;
returnVariant = m_config->readEntry(pKey, pDefault.toString());
return returnVariant;
#endif
}
-TTQStringList Config::readListEntry( const TTQString& pKey ) const
+TQStringList Config::readListEntry( const TQString& pKey ) const
{
return m_config->readListEntry(pKey);
}
-TTQString Config::readPathEntry( const TTQString& pKey, const TTQString & aDefault ) const
+TQString Config::readPathEntry( const TQString& pKey, const TQString & aDefault ) const
{
#ifndef QT_ONLY
return m_config->readPathEntry(pKey,aDefault);
@@ -280,7 +280,7 @@ TTQString Config::readPathEntry( const TTQString& pKey, const TTQString & aDefau
#endif
}
-TTQStringList Config::readPathListEntry( const TTQString& pKey ) const
+TQStringList Config::readPathListEntry( const TQString& pKey ) const
{
#ifndef QT_ONLY
return m_config->readPathListEntry(pKey);
@@ -290,12 +290,12 @@ TTQStringList Config::readPathListEntry( const TTQString& pKey ) const
}
-int Config::readNumEntry( const TTQString& pKey, int nDefault) const
+int Config::readNumEntry( const TQString& pKey, int nDefault) const
{
return m_config->readNumEntry(pKey,nDefault);
}
-uint Config::readUnsignedNumEntry( const TTQString& pKey, uint nDefault) const
+uint Config::readUnsignedNumEntry( const TQString& pKey, uint nDefault) const
{
#ifndef QT_ONLY
return m_config->readUnsignedNumEntry(pKey,nDefault);
@@ -304,7 +304,7 @@ uint Config::readUnsignedNumEntry( const TTQString& pKey, uint nDefault) const
#endif
}
-long Config::readLongNumEntry( const TTQString& pKey, long nDefault) const
+long Config::readLongNumEntry( const TQString& pKey, long nDefault) const
{
#ifndef QT_ONLY
return m_config->readLongNumEntry(pKey,nDefault);
@@ -313,7 +313,7 @@ long Config::readLongNumEntry( const TTQString& pKey, long nDefault) const
#endif
}
-double Config::readDoubleNumEntry( const TTQString& pKey, double nDefault ) const
+double Config::readDoubleNumEntry( const TQString& pKey, double nDefault ) const
{
#ifndef QT_ONLY
return m_config->readDoubleNumEntry(pKey,nDefault);
@@ -322,66 +322,66 @@ double Config::readDoubleNumEntry( const TTQString& pKey, double nDefault ) cons
#endif
}
-TTQFont Config::readFontEntry( const TTQString& pKey, const TTQFont* pDefault ) const
+TQFont Config::readFontEntry( const TQString& pKey, const TQFont* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readFontEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TTQVariant(*pDefault)).toFont();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toFont();
#endif
}
-bool Config::readBoolEntry( const TTQString& pKey, const bool bDefault ) const
+bool Config::readBoolEntry( const TQString& pKey, const bool bDefault ) const
{
return m_config->readBoolEntry(pKey,bDefault);
}
-TTQRect Config::readRectEntry( const TTQString& pKey, const TTQRect* pDefault ) const
+TQRect Config::readRectEntry( const TQString& pKey, const TQRect* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readRectEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TTQVariant(*pDefault)).toRect();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toRect();
#endif
}
-TTQPoint Config::readPointEntry( const TTQString& pKey, const TTQPoint* pDefault ) const
+TQPoint Config::readPointEntry( const TQString& pKey, const TQPoint* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readPointEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TTQVariant(*pDefault)).toPoint();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toPoint();
#endif
}
-TTQSize Config::readSizeEntry( const TTQString& pKey, const TTQSize* pDefault ) const
+TQSize Config::readSizeEntry( const TQString& pKey, const TQSize* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readSizeEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TTQVariant(*pDefault)).toSize();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toSize();
#endif
}
-TTQColor Config::readColorEntry( const TTQString& pKey, const TTQColor* pDefault ) const
+TQColor Config::readColorEntry( const TQString& pKey, const TQColor* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readColorEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TTQVariant(*pDefault)).toColor();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toColor();
#endif
}
-TTQDateTime Config::readDateTimeEntry( const TTQString& pKey, const TTQDateTime* pDefault) const
+TQDateTime Config::readDateTimeEntry( const TQString& pKey, const TQDateTime* pDefault) const
{
#ifndef QT_ONLY
return m_config->readDateTimeEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TTQVariant(*pDefault)).toDateTime();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toDateTime();
#endif
}
-TTQString Config::readEntryUntranslated( const TTQString& pKey, const TTQString& aDefault ) const
+TQString Config::readEntryUntranslated( const TQString& pKey, const TQString& aDefault ) const
{
#ifndef QT_ONLY
return m_config->readEntryUntranslated(pKey,aDefault);
@@ -389,12 +389,12 @@ TTQString Config::readEntryUntranslated( const TTQString& pKey, const TTQString&
return m_config->readEntry(pKey,aDefault);
#endif
}
-void Config::writeEntry( const TTQString& pKey, const TTQString& pValue )
+void Config::writeEntry( const TQString& pKey, const TQString& pValue )
{
m_config->writeEntry(pKey,pValue);
}
-void Config::writePropertyEntry( const TTQString& pKey, const TTQVariant& pValue )
+void Config::writePropertyEntry( const TQString& pKey, const TQVariant& pValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, pValue );
@@ -403,7 +403,7 @@ void Config::writePropertyEntry( const TTQString& pKey, const TTQVariant& pValue
#endif
}
-void Config::writeListEntry( const TTQString& pKey, const TTQStringList &rValue )
+void Config::writeListEntry( const TQString& pKey, const TQStringList &rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -412,7 +412,7 @@ void Config::writeListEntry( const TTQString& pKey, const TTQStringList &rValue
#endif
}
-void Config::writeNumEntry( const TTQString& pKey, int nValue )
+void Config::writeNumEntry( const TQString& pKey, int nValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, nValue );
@@ -420,7 +420,7 @@ void Config::writeNumEntry( const TTQString& pKey, int nValue )
m_config->writeEntry(pKey,nValue);
#endif
}
-void Config::writeUnsignedNumEntry( const TTQString& pKey, uint nValue )
+void Config::writeUnsignedNumEntry( const TQString& pKey, uint nValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, nValue );
@@ -428,7 +428,7 @@ void Config::writeUnsignedNumEntry( const TTQString& pKey, uint nValue )
writeNumEntry(pKey, (int)nValue );
#endif
}
-void Config::writeLongNumEntry( const TTQString& pKey, unsigned long nValue )
+void Config::writeLongNumEntry( const TQString& pKey, unsigned long nValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, nValue );
@@ -436,15 +436,15 @@ void Config::writeLongNumEntry( const TTQString& pKey, unsigned long nValue )
writeNumEntry(pKey, (int)nValue);
#endif
}
-void Config::writeDoubleNumEntry( const TTQString& pKey, double nValue )
+void Config::writeDoubleNumEntry( const TQString& pKey, double nValue )
{
m_config->writeEntry(pKey,nValue);
}
-void Config::writeBoolEntry( const TTQString& pKey, bool bValue )
+void Config::writeBoolEntry( const TQString& pKey, bool bValue )
{
m_config->writeEntry(pKey,bValue);
}
-void Config::writeFontEntry( const TTQString& pKey, const TTQFont& rFont )
+void Config::writeFontEntry( const TQString& pKey, const TQFont& rFont )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rFont );
@@ -453,7 +453,7 @@ void Config::writeFontEntry( const TTQString& pKey, const TTQFont& rFont )
#endif
}
-void Config::writeColorEntry( const TTQString& pKey, const TTQColor& rColor )
+void Config::writeColorEntry( const TQString& pKey, const TQColor& rColor )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rColor );
@@ -462,7 +462,7 @@ void Config::writeColorEntry( const TTQString& pKey, const TTQColor& rColor )
#endif
}
-void Config::writeDateTimeEntry( const TTQString& pKey, const TTQDateTime& rDateTime )
+void Config::writeDateTimeEntry( const TQString& pKey, const TQDateTime& rDateTime )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rDateTime );
@@ -471,7 +471,7 @@ void Config::writeDateTimeEntry( const TTQString& pKey, const TTQDateTime& rDate
#endif
}
-void Config::writeRectEntry( const TTQString& pKey, const TTQRect& rValue )
+void Config::writeRectEntry( const TQString& pKey, const TQRect& rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -480,7 +480,7 @@ void Config::writeRectEntry( const TTQString& pKey, const TTQRect& rValue )
#endif
}
-void Config::writePointEntry( const TTQString& pKey, const TTQPoint& rValue )
+void Config::writePointEntry( const TQString& pKey, const TQPoint& rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -489,7 +489,7 @@ void Config::writePointEntry( const TTQString& pKey, const TTQPoint& rValue )
#endif
}
-void Config::writeSizeEntry( const TTQString& pKey, const TTQSize& rValue )
+void Config::writeSizeEntry( const TQString& pKey, const TQSize& rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -497,7 +497,7 @@ void Config::writeSizeEntry( const TTQString& pKey, const TTQSize& rValue )
writePropertyEntry(pKey,rValue);
#endif
}
-void Config::writePathEntry( const TTQString& pKey, const TTQString & path )
+void Config::writePathEntry( const TQString& pKey, const TQString & path )
{
#ifndef QT_ONLY
m_config->writePathEntry(pKey,path);
@@ -505,7 +505,7 @@ void Config::writePathEntry( const TTQString& pKey, const TTQString & path )
writeEntry(pKey,path);
#endif
}
-void Config::writePathListEntry( const TTQString& pKey, const TTQStringList &rValue )
+void Config::writePathListEntry( const TQString& pKey, const TQStringList &rValue )
{
#ifndef QT_ONLY
m_config->writePathEntry(pKey,rValue);
@@ -513,7 +513,7 @@ void Config::writePathListEntry( const TTQString& pKey, const TTQStringList &rVa
writeListEntry(pKey,rValue);
#endif
}
-void Config::deleteEntry( const TTQString& pKey, bool bNLS , bool bGlobal )
+void Config::deleteEntry( const TQString& pKey, bool bNLS , bool bGlobal )
{
#ifndef QT_ONLY
m_config->deleteEntry(pKey,bNLS,bGlobal);
@@ -523,7 +523,7 @@ void Config::deleteEntry( const TTQString& pKey, bool bNLS , bool bGlobal )
m_config->removeEntry(pKey);
#endif
}
-bool Config::deleteGroup( const TTQString& group, bool bDeep , bool bGlobal )
+bool Config::deleteGroup( const TQString& group, bool bDeep , bool bGlobal )
{
#ifndef QT_ONLY
return m_config->deleteGroup(group,bDeep,bGlobal);