Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 0b54abbdf8
commit 6379d18e0e

@ -720,7 +720,7 @@ void KbStateApplet::about() {
void KbStateApplet::loadConfig()
{
KConfig *c = config();
TDEConfig *c = config();
c->setGroup("General");
size = c->readNumEntry("IconDim", 20);
fillSpace = c->readBoolEntry("fill space", true);
@ -733,7 +733,7 @@ void KbStateApplet::loadConfig()
void KbStateApplet::saveConfig()
{
KConfig *c = config();
TDEConfig *c = config();
c->setGroup("General");
c->writeEntry("IconDim", size);
c->writeEntry("fill space", fillSpace);

@ -567,7 +567,7 @@ void KmagApp::saveZoomPixmap()
KMessageBox::error(0, i18n("Unable to save temporary file (before uploading to the network file you specified)."),
i18n("Error Writing File"));
} else {
if(!KIO::NetAccess::upload(tempFile.name(), url, this)) {
if(!TDEIO::NetAccess::upload(tempFile.name(), url, this)) {
KMessageBox::error(0, i18n("Unable to upload file over the network."),
i18n("Error Writing File"));
} else {

@ -49,7 +49,7 @@
* full session management as well as using KActions.
* @see KMainWindow
* @see TDEApplication
* @see KConfig
* @see TDEConfig
*
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
* @version KDevelop version 1.2 code generation
@ -190,7 +190,7 @@ class KmagApp : public KMainWindow
int edgesize;
/// the configuration object of the application
KConfig *config;
TDEConfig *config;
// KAction pointers to enable/disable actions
KAction *fileNewWindow, *m_pSnapshot, *m_pCopy, *m_keyConf, *m_toolConf;

@ -31,7 +31,7 @@
#include "wordcompletion/wordcompletion.h"
#include "wordcompletion/dictionarycreationwizard.h"
ConfigWizard::ConfigWizard (TQWidget *parent, const char *name, KConfig *config)
ConfigWizard::ConfigWizard (TQWidget *parent, const char *name, TDEConfig *config)
: KWizard(parent, name, true)
{
setCaption (i18n("Initial Configuration - KMouth"));
@ -44,7 +44,7 @@ ConfigWizard::ConfigWizard (TQWidget *parent, const char *name, KConfig *config)
ConfigWizard::~ConfigWizard() {
}
void ConfigWizard::initCommandPage(KConfig *config) {
void ConfigWizard::initCommandPage(TDEConfig *config) {
config->setGroup("TTS System");
bool displayCommand = false;
if (!config->hasKey("Command")) displayCommand = true;
@ -78,7 +78,7 @@ void ConfigWizard::initBookPage() {
bookWidget = 0;
}
void ConfigWizard::initCompletion (KConfig *config) {
void ConfigWizard::initCompletion (TDEConfig *config) {
if (!WordCompletion::isConfigured()) {
TQString dictionaryFile = TDEApplication::kApplication()->dirs()->findResource("appdata", "dictionary.txt");
TQFile file(dictionaryFile);
@ -113,7 +113,7 @@ void ConfigWizard::initCompletion (KConfig *config) {
completionWidget = 0;
}
void ConfigWizard::saveConfig (KConfig *config) {
void ConfigWizard::saveConfig (TDEConfig *config) {
if (commandWidget != 0) {
commandWidget->ok();
commandWidget->saveOptions (config, "TTS System");

@ -23,7 +23,7 @@
#include <kwizard.h>
class KConfig;
class TDEConfig;
class TextToSpeechConfigurationWidget;
class InitialPhraseBookWidget;
class CompletionWizardWidget;
@ -37,20 +37,20 @@ class ConfigWizard : public KWizard {
Q_OBJECT
public:
ConfigWizard (TQWidget *parent, const char *name, KConfig *config);
ConfigWizard (TQWidget *parent, const char *name, TDEConfig *config);
~ConfigWizard();
bool configurationNeeded ();
bool requestConfiguration ();
void saveConfig (KConfig *config);
void saveConfig (TDEConfig *config);
protected:
void help();
private:
void initCommandPage (KConfig *config);
void initCommandPage (TDEConfig *config);
void initBookPage();
void initCompletion (KConfig *config);
void initCompletion (TDEConfig *config);
TextToSpeechConfigurationWidget *commandWidget;
InitialPhraseBookWidget *bookWidget;

@ -48,7 +48,7 @@ class PhraseBook;
* full session management as well as using KActions.
* @see KMainWindow
* @see TDEApplication
* @see KConfig
* @see TDEConfig
*
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
* @version KDevelop version 1.2 code generation
@ -151,7 +151,7 @@ class KMouthApp : public KMainWindow
private:
bool isConfigured;
/** the configuration object of the application */
KConfig *config;
TDEConfig *config;
/** The phrase list */
PhraseList *phraseList;
/** The configuration dialog */

@ -65,7 +65,7 @@ void PreferencesWidget::ok() {
save = closeCombo->currentItem ();
}
void PreferencesWidget::readOptions (KConfig *config) {
void PreferencesWidget::readOptions (TDEConfig *config) {
config->setGroup("Preferences");
if (config->hasKey("AutomaticSpeak"))
if (config->readEntry ("AutomaticSpeak") == "Yes")
@ -91,7 +91,7 @@ void PreferencesWidget::readOptions (KConfig *config) {
closeCombo->setCurrentItem (save);
}
void PreferencesWidget::saveOptions (KConfig *config) {
void PreferencesWidget::saveOptions (TDEConfig *config) {
config->setGroup("Preferences");
if (speak)
config->writeEntry ("AutomaticSpeak", "Yes");
@ -184,12 +184,12 @@ TextToSpeechSystem *OptionsDialog::getTTSSystem() const {
return commandWidget->getTTSSystem();
}
void OptionsDialog::readOptions (KConfig *config) {
void OptionsDialog::readOptions (TDEConfig *config) {
commandWidget->readOptions (config, "TTS System");
behaviourWidget->readOptions (config);
}
void OptionsDialog::saveOptions (KConfig *config) {
void OptionsDialog::saveOptions (TDEConfig *config) {
commandWidget->saveOptions (config, "TTS System");
behaviourWidget->saveOptions (config);
config->sync();
@ -199,7 +199,7 @@ bool OptionsDialog::isSpeakImmediately () {
return behaviourWidget->isSpeakImmediately ();
}
KCModule *OptionsDialog::loadKttsd () {
TDECModule *OptionsDialog::loadKttsd () {
KLibLoader *loader = KLibLoader::self();
TQString libname = "kcm_kttsd";
@ -218,7 +218,7 @@ KCModule *OptionsDialog::loadKttsd () {
// Reuse "lib" instead of letting createInstanceFromLibrary recreate it
KLibFactory *factory = lib->factory();
if (factory != 0) {
KCModule *module = KParts::ComponentFactory::createInstanceFromFactory<KCModule> (factory);
TDECModule *module = KParts::ComponentFactory::createInstanceFromFactory<TDECModule> (factory);
if (module)
return module;
}

@ -24,7 +24,7 @@
#include "preferencesui.h"
#include "texttospeechconfigurationwidget.h"
class TQTabWidget;
class KCModule;
class TDECModule;
class WordCompletionWidget;
/**This class represents a configuration widget for user preferences.
@ -38,8 +38,8 @@ public:
PreferencesWidget(TQWidget *parent, const char *name);
~PreferencesWidget();
void readOptions (KConfig *config);
void saveOptions (KConfig *config);
void readOptions (TDEConfig *config);
void saveOptions (TDEConfig *config);
void ok();
void cancel();
@ -68,8 +68,8 @@ public:
TextToSpeechSystem *getTTSSystem() const;
void readOptions (KConfig *config);
void saveOptions (KConfig *config);
void readOptions (TDEConfig *config);
void saveOptions (TDEConfig *config);
bool isSpeakImmediately();
@ -80,10 +80,10 @@ private:
TQTabWidget *tabCtl;
TextToSpeechConfigurationWidget *commandWidget;
PreferencesWidget *behaviourWidget;
KCModule *kttsd;
TDECModule *kttsd;
WordCompletionWidget *completionWidget;
KCModule *loadKttsd ();
TDECModule *loadKttsd ();
void unloadKttsd ();
};

@ -245,7 +245,7 @@ bool PhraseBook::save (const KURL &url, bool asPhrasebook) {
save (*tempFile.textStream(), asPhrasebook);
tempFile.close();
return KIO::NetAccess::upload(tempFile.name(), url);
return TDEIO::NetAccess::upload(tempFile.name(), url);
}
}
@ -273,7 +273,7 @@ int PhraseBook::save (TQWidget *parent, const TQString &title, KURL &url, bool p
return -1;
}
if (KIO::NetAccess::exists(url)) {
if (TDEIO::NetAccess::exists(url)) {
if (KMessageBox::warningContinueCancel(0,TQString("<qt>%1</qt>").arg(i18n("The file %1 already exists. "
"Do you want to overwrite it?").arg(url.url())),i18n("File Exists"),i18n("&Overwrite"))==KMessageBox::Cancel) {
return 0;
@ -334,7 +334,7 @@ bool PhraseBook::open (const KURL &url) {
fileUrl.setPath (url.url());
}
if (KIO::NetAccess::download (fileUrl, tempFile)) {
if (TDEIO::NetAccess::download (fileUrl, tempFile)) {
TQStringList list = TQStringList();
// First: try to load it as a normal phrase book
@ -362,7 +362,7 @@ bool PhraseBook::open (const KURL &url) {
else
error = true;
}
KIO::NetAccess::removeTempFile (tempFile);
TDEIO::NetAccess::removeTempFile (tempFile);
return !error;
}

@ -172,7 +172,7 @@ void PhraseList::configureCompletionCombo(const TQStringList &list) {
}
}
void PhraseList::saveCompletionOptions(KConfig *config) {
void PhraseList::saveCompletionOptions(TDEConfig *config) {
config->setGroup("General Options");
config->writeEntry("Show speak button", speakButton->isVisible() || !lineEdit->isVisible());
@ -181,7 +181,7 @@ void PhraseList::saveCompletionOptions(KConfig *config) {
config->writeEntry("List", completion->currentWordList());
}
void PhraseList::readCompletionOptions(KConfig *config) {
void PhraseList::readCompletionOptions(TDEConfig *config) {
config->setGroup("General Options");
if (!config->readBoolEntry("Show speak button", true))
speakButton->hide();

@ -80,8 +80,8 @@ public slots:
void configureCompletion();
void saveWordCompletion();
void saveCompletionOptions(KConfig *config);
void readCompletionOptions(KConfig *config);
void saveCompletionOptions(TDEConfig *config);
void readCompletionOptions(TDEConfig *config);
protected slots:
void lineEntered (const TQString &phrase);

@ -72,7 +72,7 @@ TextToSpeechSystem *TextToSpeechConfigurationWidget::getTTSSystem() const {
return ttsSystem;
}
void TextToSpeechConfigurationWidget::readOptions (KConfig *config, const TQString &langGroup) {
void TextToSpeechConfigurationWidget::readOptions (TDEConfig *config, const TQString &langGroup) {
ttsSystem->readOptions (config, langGroup);
urlReq->setURL (ttsSystem->ttsCommand);
stdInButton->setChecked (ttsSystem->stdIn);
@ -80,7 +80,7 @@ void TextToSpeechConfigurationWidget::readOptions (KConfig *config, const TQStri
useKttsd->setChecked (ttsSystem->useKttsd);
}
void TextToSpeechConfigurationWidget::saveOptions (KConfig *config, const TQString &langGroup) {
void TextToSpeechConfigurationWidget::saveOptions (TDEConfig *config, const TQString &langGroup) {
ttsSystem->saveOptions (config, langGroup);
}

@ -35,8 +35,8 @@ public:
TextToSpeechSystem *getTTSSystem() const;
void readOptions (KConfig *config, const TQString &langGroup);
void saveOptions (KConfig *config, const TQString &langGroup);
void readOptions (TDEConfig *config, const TQString &langGroup);
void saveOptions (TDEConfig *config, const TQString &langGroup);
void ok();
void cancel();

@ -66,7 +66,7 @@ void TextToSpeechSystem::speak (const TQString &text, const TQString &language)
}
}
void TextToSpeechSystem::readOptions (KConfig *config, const TQString &langGroup) {
void TextToSpeechSystem::readOptions (TDEConfig *config, const TQString &langGroup) {
config->setGroup(langGroup);
ttsCommand = config->readPathEntry("Command");
stdIn = config->readBoolEntry("StdIn", true);
@ -87,7 +87,7 @@ void TextToSpeechSystem::readOptions (KConfig *config, const TQString &langGroup
}
}
void TextToSpeechSystem::saveOptions (KConfig *config, const TQString &langGroup) {
void TextToSpeechSystem::saveOptions (TDEConfig *config, const TQString &langGroup) {
config->setGroup(langGroup);
config->writePathEntry("Command", ttsCommand);
config->writeEntry("StdIn", stdIn);

@ -23,7 +23,7 @@
#include <tqobject.h>
#include <tqptrlist.h>
class KConfig;
class TDEConfig;
/**This class represents a text-to-speech system.
*@author Gunnar Schmi Dt
@ -37,8 +37,8 @@ public:
TextToSpeechSystem();
~TextToSpeechSystem();
void readOptions (KConfig *config, const TQString &langGroup);
void saveOptions (KConfig *config, const TQString &langGroup);
void readOptions (TDEConfig *config, const TQString &langGroup);
void saveOptions (TDEConfig *config, const TQString &langGroup);
public slots:
void speak (const TQString &text, const TQString &language);

@ -347,7 +347,7 @@ CompletionWizardWidget::CompletionWizardWidget (KWizard *parent, const char *nam
CompletionWizardWidget::~CompletionWizardWidget() {
}
void CompletionWizardWidget::ok (KConfig *config) {
void CompletionWizardWidget::ok (TDEConfig *config) {
WordList::WordMap map;
KProgressDialog *pdlg = WordList::progressDialog();

@ -107,7 +107,7 @@ public:
CompletionWizardWidget(KWizard *parent, const char *name);
~CompletionWizardWidget();
void ok (KConfig *config);
void ok (TDEConfig *config);
};
#endif

@ -95,7 +95,7 @@ TQString WordCompletion::currentWordList() {
}
bool WordCompletion::isConfigured() {
KConfig *config = new KConfig("kmouthrc");
TDEConfig *config = new TDEConfig("kmouthrc");
bool result = config->hasGroup("Dictionary 0");
delete config;
@ -110,7 +110,7 @@ void WordCompletion::configure() {
d->dictionaries.clear();
d->dictDetails.clear();
KConfig *config = new KConfig("kmouthrc");
TDEConfig *config = new TDEConfig("kmouthrc");
TQStringList groups = config->groupList();
for (TQStringList::Iterator it = groups.begin(); it != groups.end(); ++it)
if ((*it).startsWith ("Dictionary ")) {

@ -106,7 +106,7 @@ WordCompletionWidget::WordCompletionWidget(TQWidget *parent, const char *name) :
connect (languageButton, TQT_SIGNAL (activated (int)), this, TQT_SLOT (languageSelected(int)) );
// Object for the KCMKTTSD configuration
config = new KConfig("kmouthrc");
config = new TDEConfig("kmouthrc");
// Load the configuration from the file
load();
@ -250,7 +250,7 @@ void WordCompletionWidget::exportDictionary() {
if (url.isEmpty() || !url.isValid())
return;
if (KIO::NetAccess::exists(url, false, this)) {
if (TDEIO::NetAccess::exists(url, false, this)) {
if (KMessageBox::warningContinueCancel(0,TQString("<qt>%1</qt>").arg(i18n("The file %1 already exists. "
"Do you want to overwrite it?").arg(url.url())),i18n("File Exists"),i18n("&Overwrite"))==KMessageBox::Cancel) {
return;
@ -258,7 +258,7 @@ void WordCompletionWidget::exportDictionary() {
}
KURL src;
src.setPath( TDEGlobal::dirs()->findResource ("appdata", item->filename()) );
KIO::NetAccess::copy (src, url, this);
TDEIO::NetAccess::copy (src, url, this);
}
}

@ -73,7 +73,7 @@ private:
/**
* Object holding all the configuration
*/
KConfig *config;
TDEConfig *config;
TQStringList newDictionaryFiles;
TQStringList removedDictionaryFiles;
};

@ -28,7 +28,7 @@ using namespace std;
// App specific includes
#include "freeverbsetupimpl.h"
FreeverbSetupImpl::FreeverbSetupImpl(TQWidget *parent, const char *name, bool modal, KConfig *config )
FreeverbSetupImpl::FreeverbSetupImpl(TQWidget *parent, const char *name, bool modal, TDEConfig *config )
: Freeverb_Setup(parent,name,modal), m_config(config) {
// initialize Widgets

@ -35,7 +35,7 @@ class FreeverbSetupImpl : public Freeverb_Setup {
Q_OBJECT
public:
FreeverbSetupImpl(TQWidget *parent=0, const char *name=0, bool modal=true, KConfig *config=0);
FreeverbSetupImpl(TQWidget *parent=0, const char *name=0, bool modal=true, TDEConfig *config=0);
~FreeverbSetupImpl();
public slots:
@ -55,7 +55,7 @@ private: // Methods
private:
KConfig *m_config;
TDEConfig *m_config;
};

@ -20,7 +20,7 @@
#include "effectstack.h"
#include "fxpluginhandler.h"
EffectStack::EffectStack(FXPluginHandler *pluginhandler, KConfig *config)
EffectStack::EffectStack(FXPluginHandler *pluginhandler, TDEConfig *config)
:
dispatcher(), server(),
m_pluginhandler(pluginhandler),

@ -35,7 +35,7 @@ class FXPluginHandler;
*/
class EffectStack{
public:
EffectStack(FXPluginHandler *pluginhandler=0, KConfig *config=0);
EffectStack(FXPluginHandler *pluginhandler=0, TDEConfig *config=0);
~EffectStack();
// KDE::PlayObject *playobj;
@ -49,7 +49,7 @@ public: //Methods
private:
FXPluginHandler *m_pluginhandler;
KConfig *m_config;
TDEConfig *m_config;
};

@ -26,7 +26,7 @@
#include "ksayit_ttsplugin.h"
FXPluginHandler::FXPluginHandler(TQObject *parent, const char *name, KConfig *config)
FXPluginHandler::FXPluginHandler(TQObject *parent, const char *name, TDEConfig *config)
: TQObject(parent, name), m_config(config)
{
m_mapPluginList.clear();

@ -49,7 +49,7 @@ class FXPluginHandler : public TQObject
Q_OBJECT
public:
FXPluginHandler(TQObject *parent = 0, const char *name = 0, KConfig *config=0);
FXPluginHandler(TQObject *parent = 0, const char *name = 0, TDEConfig *config=0);
~FXPluginHandler();
public: // Methods
@ -87,7 +87,7 @@ public: // Methods
void getPlugins(TQStringList &pluginlist);
private: // Attributes
KConfig *m_config;
TDEConfig *m_config;
TQMap<TQString, fx_struct> m_mapPluginList; // holds all plugins found on the system
// TQMap<TQString, fx_struct> m_mapActivePlugins; // holds the active effects
TQStringList m_lstActivePlugins;

@ -28,7 +28,7 @@
#include "fxpluginhandler.h"
FX_SetupImpl::FX_SetupImpl(TQWidget *parent, const char *name,
KConfig *config,
TDEConfig *config,
FXPluginHandler *fxpluginhandler )
: FX_Setup(parent,name), m_config(config), m_fxpluginhandler(fxpluginhandler)
{

@ -41,7 +41,7 @@ class FX_SetupImpl : public FX_Setup {
public:
FX_SetupImpl(TQWidget *parent=0, const char *name=0,
KConfig *config=0,
TDEConfig *config=0,
FXPluginHandler *fxpluginhandler=0);
~FX_SetupImpl();
@ -79,7 +79,7 @@ private: // Methods
void Init(TQStringList c_avail);
private:
KConfig *m_config;
TDEConfig *m_config;
FXPluginHandler *m_fxpluginhandler;
TQStringList pluginlist;

@ -61,7 +61,7 @@ class KSayItBookmarkHandler;
* full session management as well as using KActions.
* @see KMainWindow
* @see TDEApplication
* @see KConfig
* @see TDEConfig
*
* @author Robert Vogl
*/
@ -322,7 +322,7 @@ private: // Methods
private:
KConfig *config;
TDEConfig *config;
KSayItViewImpl *view;
KSayItSystemTray *tray;
EffectStack *es;

@ -41,7 +41,7 @@
VoiceSetupDlg::VoiceSetupDlg(TQWidget *parent, const char *name, const TQString &caption,
bool modal,
KConfig *config,
TDEConfig *config,
FXPluginHandler *fxpluginhandler,
KTTSDLib *ttslib)
: KDialogBase(IconList, caption, Ok|Cancel, Ok, parent, name, modal, true),

@ -38,7 +38,7 @@ class VoiceSetupDlg : public KDialogBase {
public:
VoiceSetupDlg(TQWidget *parent=0, const char *name=0, const TQString &caption=NULL,
bool modal=true,
KConfig *config=0,
TDEConfig *config=0,
FXPluginHandler *fxpluginhandler=0,
KTTSDLib *kttslib=0);
@ -81,7 +81,7 @@ private slots:
void slotOk();
private:
KConfig *m_config;
TDEConfig *m_config;
FXPluginHandler *m_fxpluginhandler;
KTTSDLib *m_kttslib;
TQFrame *m_fxPage;

@ -422,7 +422,7 @@
* Standarize the .desktop files
2004-10-20 Gary Cramblitt (PhantomsDad)
* kcm_kttsmgr and kcm_kttsd are now identical libraries/KCModules.
* kcm_kttsmgr and kcm_kttsd are now identical libraries/TDECModules.
Applications should use kcm_kttsd. When all apps have stopped
using kcm_kttsmgr, remove it.

@ -62,7 +62,7 @@ _ KTTSMgr:
_ KTTSD:
_ I am told that when kttsd crashes, it can take knotify down with it. See about
"disconnecting" knotify from kttsd (using post to Qt event queue).
_ Strange msg being produced by KIO::move, but it works fine. ??
_ Strange msg being produced by TDEIO::move, but it works fine. ??
kio (KIOJob): stat file:///home/kde-devel/.trinity/share/apps/kttsd/audio/kttsd-5-1.wav
kio (KIOJob): error 11 /home/kde-devel/.trinity/share/apps/kttsd/audio/kttsd-5-1.wav
kio (KIOJob): This seems to be a suitable case for trying to rename before stat+[list+]copy+del
@ -83,7 +83,7 @@ _ Other/General:
_ .desktop files must have a Type keyword, but what to use for kcmkttsd_testmessage.desktop?
_ Add option to kill plugin process when no longer needed so that memory can be recovered.
Or maybe some sort of "nice" setting so that process will be swapped out when no longer needed.
_ Convert to KConfig XT.
_ Convert to TDEConfig XT.
_ Add a plugin for TuxTalk, http://tuxtalk.sourceforge.net/. Since it only supports
English (at the moment) and is alpha, don't think it is worth it now.
_ Add a plugin for dhvani, an Indian and Hindi TTS engine, http://dhvani.sourceforge.net/

@ -114,7 +114,7 @@ int main(int argc, char *argv[])
TQStringList(), &errorNo);
if(plugIn)
{
KConfig* config = new KConfig("kttsdrc");
TDEConfig* config = new TDEConfig("kttsdrc");
config->setGroup( "General" );
plugIn->init( config, groupName );
TQTextStream inp ( stdin, IO_ReadOnly );

@ -112,11 +112,11 @@ SbdConf::~SbdConf(){
* loaded, so it not necessary to call it in your constructor.
* The plugin should read its configuration from the specified group
* in the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* loading your configuration.
*/
void SbdConf::load(KConfig* config, const TQString& configGroup){
void SbdConf::load(TDEConfig* config, const TQString& configGroup){
// kdDebug() << "SbdConf::load: Running" << endl;
config->setGroup( configGroup );
m_widget->nameLineEdit->setText(
@ -145,11 +145,11 @@ void SbdConf::load(KConfig* config, const TQString& configGroup){
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok". The plugin should save its configuration in the specified
* group of the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* saving your configuration.
*/
void SbdConf::save(KConfig* config, const TQString& configGroup){
void SbdConf::save(TDEConfig* config, const TQString& configGroup){
// kdDebug() << "SbdConf::save: Running" << endl;
config->setGroup( configGroup );
config->writeEntry("UserFilterName", m_widget->nameLineEdit->text() );
@ -310,7 +310,7 @@ void SbdConf::slotLoadButton_clicked()
m_widget,
"sbd_loadfile");
if ( filename.isEmpty() ) return;
KConfig* cfg = new KConfig( filename, true, false, 0 );
TDEConfig* cfg = new TDEConfig( filename, true, false, 0 );
load( cfg, "Filter" );
delete cfg;
configChanged();
@ -324,7 +324,7 @@ void SbdConf::slotSaveButton_clicked()
m_widget,
"sbd_savefile");
if ( filename.isEmpty() ) return;
KConfig* cfg = new KConfig( filename, false, false, 0 );
TDEConfig* cfg = new TDEConfig( filename, false, false, 0 );
save( cfg, "Filter" );
delete cfg;
}

@ -65,7 +65,7 @@ class SbdConf : public KttsFilterConf
* loaded, so it not necessary to call it in your constructor.
* The plugin should read its configuration from the specified group
* in the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* loading your configuration.
*
@ -74,7 +74,7 @@ class SbdConf : public KttsFilterConf
* any instance-specific parameters to load, but it may still wish
* to load parameters that apply to all instances of the plugin.
*/
virtual void load(KConfig *config, const TQString &configGroup);
virtual void load(TDEConfig *config, const TQString &configGroup);
/**
* This function gets called when the user wants to save the settings in
@ -82,11 +82,11 @@ class SbdConf : public KttsFilterConf
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok". The plugin should save its configuration in the specified
* group of the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* saving your configuration.
*/
virtual void save(KConfig *config, const TQString &configGroup);
virtual void save(TDEConfig *config, const TQString &configGroup);
/**
* This function is called to set the settings in the module to sensible

@ -596,7 +596,7 @@ SbdProc::~SbdProc()
* Note: The parameters are for reading from kttsdrc file. Plugins may wish to maintain
* separate configuration files of their own.
*/
bool SbdProc::init(KConfig* config, const TQString& configGroup){
bool SbdProc::init(TDEConfig* config, const TQString& configGroup){
// kdDebug() << "PlugInProc::init: Running" << endl;
config->setGroup( configGroup );
// m_configuredRe = config->readEntry( "SentenceDelimiterRegExp", "([\\.\\?\\!\\:\\;])\\s|(\\n *\\n)" );

@ -56,7 +56,7 @@
#include "filterproc.h"
class TalkerCode;
class KConfig;
class TDEConfig;
class TQDomElement;
class TQDomNode;
@ -263,7 +263,7 @@ class SbdProc : virtual public KttsFilterProc
* Note: The parameters are for reading from kttsdrc file. Plugins may wish to maintain
* separate configuration files of their own.
*/
virtual bool init( KConfig *config, const TQString &configGroup );
virtual bool init( TDEConfig *config, const TQString &configGroup );
/**
* Returns True if this filter is a Sentence Boundary Detector.

@ -122,11 +122,11 @@ StringReplacerConf::~StringReplacerConf(){
* loaded, so it not necessary to call it in your constructor.
* The plugin should read its configuration from the specified group
* in the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* loading your configuration.
*/
void StringReplacerConf::load(KConfig* config, const TQString& configGroup){
void StringReplacerConf::load(TDEConfig* config, const TQString& configGroup){
// kdDebug() << "StringReplacerConf::load: Running" << endl;
// See if this filter previously save its word list.
config->setGroup( configGroup );
@ -253,11 +253,11 @@ TQString StringReplacerConf::loadFromFile( const TQString& filename, bool clear)
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok". The plugin should save its configuration in the specified
* group of the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* saving your configuration.
*/
void StringReplacerConf::save(KConfig* config, const TQString& configGroup){
void StringReplacerConf::save(TDEConfig* config, const TQString& configGroup){
// kdDebug() << "StringReplacerConf::save: Running" << endl;
TQString wordsFilename =
TDEGlobal::dirs()->saveLocation( "data" ,"kttsd/stringreplacer/", true );

@ -70,7 +70,7 @@ class StringReplacerConf : public KttsFilterConf
* loaded, so it not necessary to call it in your constructor.
* The plugin should read its configuration from the specified group
* in the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* loading your configuration.
*
@ -79,7 +79,7 @@ class StringReplacerConf : public KttsFilterConf
* any instance-specific parameters to load, but it may still wish
* to load parameters that apply to all instances of the plugin.
*/
virtual void load(KConfig *config, const TQString &configGroup);
virtual void load(TDEConfig *config, const TQString &configGroup);
/**
* This function gets called when the user wants to save the settings in
@ -87,11 +87,11 @@ class StringReplacerConf : public KttsFilterConf
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok". The plugin should save its configuration in the specified
* group of the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* saving your configuration.
*/
virtual void save(KConfig *config, const TQString &configGroup);
virtual void save(TDEConfig *config, const TQString &configGroup);
/**
* This function is called to set the settings in the module to sensible

@ -68,7 +68,7 @@ StringReplacerProc::StringReplacerProc( TQObject *parent, const char *name, cons
* Note: The parameters are for reading from kttsdrc file. Plugins may wish to maintain
* separate configuration files of their own.
*/
bool StringReplacerProc::init(KConfig* config, const TQString& configGroup){
bool StringReplacerProc::init(TDEConfig* config, const TQString& configGroup){
// kdDebug() << "StringReplacerProc::init: Running" << endl;
TQString wordsFilename =
TDEGlobal::dirs()->saveLocation( "data" ,"kttsd/stringreplacer/", false );

@ -60,7 +60,7 @@ public:
* Note: The parameters are for reading from kttsdrc file. Plugins may wish to maintain
* separate configuration files of their own.
*/
virtual bool init(KConfig *config, const TQString &configGroup);
virtual bool init(TDEConfig *config, const TQString &configGroup);
/**
* Convert input, returning output.

@ -103,11 +103,11 @@ TalkerChooserConf::~TalkerChooserConf(){
* loaded, so it not necessary to call it in your constructor.
* The plugin should read its configuration from the specified group
* in the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* loading your configuration.
*/
void TalkerChooserConf::load(KConfig* config, const TQString& configGroup){
void TalkerChooserConf::load(TDEConfig* config, const TQString& configGroup){
// kdDebug() << "TalkerChooserConf::load: Running" << endl;
config->setGroup( configGroup );
m_widget->nameLineEdit->setText( config->readEntry( "UserFilterName", m_widget->nameLineEdit->text() ) );
@ -138,11 +138,11 @@ void TalkerChooserConf::load(KConfig* config, const TQString& configGroup){
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok". The plugin should save its configuration in the specified
* group of the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* saving your configuration.
*/
void TalkerChooserConf::save(KConfig* config, const TQString& configGroup){
void TalkerChooserConf::save(TDEConfig* config, const TQString& configGroup){
// kdDebug() << "TalkerChooserConf::save: Running" << endl;
config->setGroup( configGroup );
config->writeEntry( "UserFilterName", m_widget->nameLineEdit->text() );
@ -239,7 +239,7 @@ void TalkerChooserConf::slotLoadButton_clicked()
m_widget,
"talkerchooser_loadfile");
if ( filename.isEmpty() ) return;
KConfig* cfg = new KConfig( filename, true, false, 0 );
TDEConfig* cfg = new TDEConfig( filename, true, false, 0 );
load( cfg, "Filter" );
delete cfg;
configChanged();
@ -253,7 +253,7 @@ void TalkerChooserConf::slotSaveButton_clicked()
m_widget,
"talkerchooser_savefile");
if ( filename.isEmpty() ) return;
KConfig* cfg = new KConfig( filename, false, false, 0 );
TDEConfig* cfg = new TDEConfig( filename, false, false, 0 );
save( cfg, "Filter" );
delete cfg;
}

@ -67,7 +67,7 @@ class TalkerChooserConf : public KttsFilterConf
* loaded, so it not necessary to call it in your constructor.
* The plugin should read its configuration from the specified group
* in the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* loading your configuration.
*
@ -76,7 +76,7 @@ class TalkerChooserConf : public KttsFilterConf
* any instance-specific parameters to load, but it may still wish
* to load parameters that apply to all instances of the plugin.
*/
virtual void load(KConfig *config, const TQString &configGroup);
virtual void load(TDEConfig *config, const TQString &configGroup);
/**
* This function gets called when the user wants to save the settings in
@ -84,11 +84,11 @@ class TalkerChooserConf : public KttsFilterConf
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok". The plugin should save its configuration in the specified
* group of the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* saving your configuration.
*/
virtual void save(KConfig *config, const TQString &configGroup);
virtual void save(TDEConfig *config, const TQString &configGroup);
/**
* This function is called to set the settings in the module to sensible

@ -61,7 +61,7 @@ TalkerChooserProc::~TalkerChooserProc()
* Note: The parameters are for reading from kttsdrc file. Plugins may wish to maintain
* separate configuration files of their own.
*/
bool TalkerChooserProc::init(KConfig* config, const TQString& configGroup){
bool TalkerChooserProc::init(TDEConfig* config, const TQString& configGroup){
// kdDebug() << "PlugInProc::init: Running" << endl;
config->setGroup( configGroup );
m_re = config->readEntry( "MatchRegExp" );

@ -53,7 +53,7 @@ public:
* Note: The parameters are for reading from kttsdrc file. Plugins may wish to maintain
* separate configuration files of their own.
*/
virtual bool init(KConfig *config, const TQString &configGroup);
virtual bool init(TDEConfig *config, const TQString &configGroup);
/**
* Returns True if the plugin supports asynchronous processing,

@ -89,11 +89,11 @@ XmlTransformerConf::~XmlTransformerConf(){
* loaded, so it not necessary to call it in your constructor.
* The plugin should read its configuration from the specified group
* in the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* loading your configuration.
*/
void XmlTransformerConf::load(KConfig* config, const TQString& configGroup){
void XmlTransformerConf::load(TDEConfig* config, const TQString& configGroup){
// kdDebug() << "XmlTransformerConf::load: Running" << endl;
config->setGroup( configGroup );
m_widget->nameLineEdit->setText( config->readEntry( "UserFilterName", m_widget->nameLineEdit->text() ) );
@ -113,11 +113,11 @@ void XmlTransformerConf::load(KConfig* config, const TQString& configGroup){
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok". The plugin should save its configuration in the specified
* group of the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* saving your configuration.
*/
void XmlTransformerConf::save(KConfig* config, const TQString& configGroup){
void XmlTransformerConf::save(TDEConfig* config, const TQString& configGroup){
// kdDebug() << "XmlTransformerConf::save: Running" << endl;
config->setGroup( configGroup );
config->writeEntry( "UserFilterName", m_widget->nameLineEdit->text() );

@ -62,7 +62,7 @@ class XmlTransformerConf : public KttsFilterConf
* loaded, so it not necessary to call it in your constructor.
* The plugin should read its configuration from the specified group
* in the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* loading your configuration.
*
@ -71,7 +71,7 @@ class XmlTransformerConf : public KttsFilterConf
* any instance-specific parameters to load, but it may still wish
* to load parameters that apply to all instances of the plugin.
*/
virtual void load(KConfig *config, const TQString &configGroup);
virtual void load(TDEConfig *config, const TQString &configGroup);
/**
* This function gets called when the user wants to save the settings in
@ -79,11 +79,11 @@ class XmlTransformerConf : public KttsFilterConf
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok". The plugin should save its configuration in the specified
* group of the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* saving your configuration.
*/
virtual void save(KConfig *config, const TQString &configGroup);
virtual void save(TDEConfig *config, const TQString &configGroup);
/**
* This function is called to set the settings in the module to sensible

@ -69,7 +69,7 @@ XmlTransformerProc::XmlTransformerProc( TQObject *parent, const char *name, cons
* Note: The parameters are for reading from kttsdrc file. Plugins may wish to maintain
* separate configuration files of their own.
*/
bool XmlTransformerProc::init(KConfig* config, const TQString& configGroup)
bool XmlTransformerProc::init(TDEConfig* config, const TQString& configGroup)
{
// kdDebug() << "XmlTransformerProc::init: Running." << endl;
config->setGroup( configGroup );

@ -58,7 +58,7 @@ public:
* Note: The parameters are for reading from kttsdrc file. Plugins may wish to maintain
* separate configuration files of their own.
*/
virtual bool init(KConfig *config, const TQString &configGroup);
virtual bool init(TDEConfig *config, const TQString &configGroup);
/**
* Returns True if the plugin supports asynchronous processing,

@ -91,7 +91,7 @@ Comment[tr]=Metinden Konuşmaya Kontrol Modülü
Comment[uk]=Модуль керування синтезом мовлення з тексту
Comment[vi]=Mô đun Điều khiển Văn bản sang Tiếng nói
Comment[zh_TW]=文字轉語音控制模組
ServiceTypes=Application,KCModule
ServiceTypes=Application,TDECModule
DocPath=kttsd
NoDisplay=false
StartupNotify=false

@ -107,7 +107,7 @@ K_EXPORT_COMPONENT_FACTORY( kcm_kttsd, KCMKttsMgrFactory("kttsd") )
KCMKttsMgr::KCMKttsMgr(TQWidget *parent, const char *name, const TQStringList &) :
DCOPStub("kttsd", "KSpeech"),
DCOPObject("kcmkttsmgr_kspeechsink"),
KCModule(KCMKttsMgrFactory::instance(), parent, name)
TDECModule(KCMKttsMgrFactory::instance(), parent, name)
{
// kdDebug() << "KCMKttsMgr contructor running." << endl;
@ -240,7 +240,7 @@ KCMKttsMgr::KCMKttsMgr(TQWidget *parent, const char *name, const TQStringList &)
m_kttsmgrw->keepAudioPath->setURL(locateLocal("data", "kttsd/audio/"));
// Object for the KTTSD configuration.
m_config = new KConfig("kttsdrc");
m_config = new TDEConfig("kttsdrc");
// Load configuration.
load();
@ -1059,7 +1059,7 @@ void KCMKttsMgr::init(){
*/
int KCMKttsMgr::buttons() {
// kdDebug() << "KCMKttsMgr::buttons: Running"<< endl;
return KCModule::Ok|KCModule::Apply|KCModule::Help|KCModule::Default;
return TDECModule::Ok|TDECModule::Apply|TDECModule::Help|TDECModule::Default;
}
/**
@ -2707,7 +2707,7 @@ KttsCheckListItem::KttsCheckListItem( TQListView *parent,
/*virtual*/ /*void resizeEvent( TQResizeEvent ev )
{
dynamic_cast<KCModule>(resizeEvent(ev));
dynamic_cast<TDECModule>(resizeEvent(ev));
updateGeometry();
}
*/

@ -41,7 +41,7 @@ class PlugInConf;
class KttsFilterConf;
class KListViewItem;
class TDEAboutData;
class KConfig;
class TDEConfig;
class TQPopupMenu;
/**
@ -50,7 +50,7 @@ class TQPopupMenu;
*/
class KCMKttsMgr :
public KCModule,
public TDECModule,
public KSpeech_stub,
virtual public KSpeechSink
{
@ -326,7 +326,7 @@ class KCMKttsMgr :
/**
* Object holding all the configuration
*/
KConfig *m_config;
TDEConfig *m_config;
/**
* KTTS Job Manager.

@ -1,7 +1,7 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>KCMKttsMgrWidget</class>
<author>Gary Cramblitt</author>
<widget class="KCModule">
<widget class="TDECModule">
<property name="name">
<cstring>KCMKttsMgrWidget</cstring>
</property>

@ -60,7 +60,7 @@ SelectEvent::SelectEvent(TQWidget* parent, const char* name, WFlags fl, const TQ
TQString relativePath = *it;
if ( !relativePath.isEmpty() )
{
KConfig* config = new KConfig(relativePath, true, false, "data");
TDEConfig* config = new TDEConfig(relativePath, true, false, "data");
config->setGroup( TQString::fromLatin1("!Global!") );
TQString icon = config->readEntry(TQString::fromLatin1("IconName"),
TQString::fromLatin1("misc"));
@ -90,7 +90,7 @@ void SelectEvent::slotEventSrcComboBox_activated(int index)
TQListViewItem* item = 0;
TQString eventSrc = m_eventSrcNames[index];
TQString configFilename = eventSrc + TQString::fromLatin1( "/eventsrc" );
KConfig* config = new KConfig( configFilename, true, false, "data" );
TDEConfig* config = new TDEConfig( configFilename, true, false, "data" );
TQStringList eventNames = config->groupList();
uint eventNamesCount = eventNames.count();
for (uint ndx = 0; ndx < eventNamesCount; ++ndx)

@ -64,7 +64,7 @@ FilterMgr::~FilterMgr()
* @param config Settings object.
* @return False if FilterMgr is not ready to filter.
*/
bool FilterMgr::init(KConfig *config, const TQString& /*configGroup*/)
bool FilterMgr::init(TDEConfig *config, const TQString& /*configGroup*/)
{
// Load each of the filters and initialize.
config->setGroup("General");

@ -32,7 +32,7 @@
// KTTS includes.
#include "filterproc.h"
class KConfig;
class TDEConfig;
class TalkerCode;
typedef TQPtrList<KttsFilterProc> FilterList;
@ -62,7 +62,7 @@ class FilterMgr : public KttsFilterProc
* Note: The parameters are for reading from kttsdrc file. Plugins may wish to maintain
* separate configuration files of their own.
*/
virtual bool init(KConfig *config, const TQString &configGroup);
virtual bool init(TDEConfig *config, const TQString &configGroup);
/**
* Returns True if this filter is a Sentence Boundary Detector.

@ -1325,7 +1325,7 @@ uttIterator Speaker::deleteUtterance(uttIterator it)
// kio (KIOJob): stat file:///home/kde-devel/.trinity/share/apps/kttsd/audio/kttsd-5-1.wav
// kio (KIOJob): error 11 /home/kde-devel/.trinity/share/apps/kttsd/audio/kttsd-5-1.wav
// kio (KIOJob): This seems to be a suitable case for trying to rename before stat+[list+]copy+del
// KIO::move(it->audioUrl, dest, false);
// TDEIO::move(it->audioUrl, dest, false);
}
else
TQFile::remove(it->audioUrl);

@ -75,7 +75,7 @@ bool SpeechData::readConfig(){
// Load configuration
delete config;
//config = TDEGlobal::config();
config = new KConfig("kttsdrc");
config = new TDEConfig("kttsdrc");
// Set the group general for the configuration of KTTSD itself (no plug ins)
config->setGroup("General");

@ -569,7 +569,7 @@ class SpeechData : public TQObject {
/**
* Configuration
*/
KConfig *config;
TDEConfig *config;
/**
* True if at least one XML Transformer plugin for html is enabled.

@ -54,7 +54,7 @@ TalkerMgr::~TalkerMgr()
/**
* Load all the configured synth plugins, populating loadedPlugIns structure.
*/
int TalkerMgr::loadPlugIns(KConfig* config)
int TalkerMgr::loadPlugIns(TDEConfig* config)
{
// kdDebug() << "Running: TalkerMgr::loadPlugIns()" << endl;
int good = 0;
@ -298,7 +298,7 @@ bool TalkerMgr::supportsMarkup(const TQString& talker, const uint /*markupType*/
TDEGlobal::dirs()->resourceDirs("data").last() + "kttsd/xslt/SSMLtoPlainText.xsl");
}
bool TalkerMgr::autoconfigureTalker(const TQString& langCode, KConfig* config)
bool TalkerMgr::autoconfigureTalker(const TQString& langCode, TDEConfig* config)
{
// Not yet implemented.
// return false;

@ -51,7 +51,7 @@ public:
/**
* Load all the configured plug ins populating loadedPlugIns
*/
int loadPlugIns(KConfig* config);
int loadPlugIns(TDEConfig* config);
/**
* Get a list of the talkers configured in KTTS.
@ -133,12 +133,12 @@ public:
/**
* Try to automatically configure a Talker in the specified language.
* @param langCode Two-letter language code.
* @param config KConfig to be updated if successful.
* @param config TDEConfig to be updated if successful.
* @return True if successful.
*
* If successful, the KConfig rc file is updated but the talker has not been loaded.
* If successful, the TDEConfig rc file is updated but the talker has not been loaded.
*/
bool autoconfigureTalker(const TQString& langCode, KConfig* config);
bool autoconfigureTalker(const TQString& langCode, TDEConfig* config);
private:

@ -71,7 +71,7 @@ ThreadedPlugIn::~ThreadedPlugIn()
/**
* Initialize the speech plugin.
*/
bool ThreadedPlugIn::init(KConfig *config, const TQString &configGroup)
bool ThreadedPlugIn::init(TDEConfig *config, const TQString &configGroup)
{
bool stat = m_plugin->init(config, configGroup);
m_supportsSynth = m_plugin->supportsSynth();

@ -55,7 +55,7 @@ class ThreadedPlugIn : public PlugInProc, public TQThread
/**
* Initializate the speech plugin.
*/
virtual bool init(KConfig *config, const TQString &configGroup);
virtual bool init(TDEConfig *config, const TQString &configGroup);
/**
* Say a text. Synthesize and audibilize it.

@ -35,6 +35,6 @@ noinst_HEADERS =
kde_services_DATA = kttsjobmgr.desktop
# This rc file should never have been installed.
# createGUI not supported within a KCModule.
# createGUI not supported within a TDECModule.
install-data-local:
rm -f $(DESTDIR)$(kde_datadir)/kttsjobmgr/kttsjobmgrui.rc

@ -92,7 +92,7 @@ int main (int argc, char *argv[])
dlg.setIcon(TDEGlobal::iconLoader()->loadIcon("kttsd", KIcon::Small));
// Get SysTray and ShowMainWindow options.
KConfig* config = new KConfig("kttsdrc");
TDEConfig* config = new TDEConfig("kttsdrc");
config->setGroup("General");
bool embedInSysTray = config->readBoolEntry("EmbedInSysTray", true);
// Can only hide main window if we are in the system tray, otherwise, no way

@ -66,11 +66,11 @@ KttsFilterConf::~KttsFilterConf(){
* loaded, so it not necessary to call it in your constructor.
* The plugin should read its configuration from the specified group
* in the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* loading your configuration.
*/
void KttsFilterConf::load(KConfig* /*config*/, const TQString& /*configGroup*/){
void KttsFilterConf::load(TDEConfig* /*config*/, const TQString& /*configGroup*/){
// kdDebug() << "KttsFilterConf::load: Running" << endl;
}
@ -80,11 +80,11 @@ void KttsFilterConf::load(KConfig* /*config*/, const TQString& /*configGroup*/){
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok". The plugin should save its configuration in the specified
* group of the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* saving your configuration.
*/
void KttsFilterConf::save(KConfig* /*config*/, const TQString& /*configGroup*/){
void KttsFilterConf::save(TDEConfig* /*config*/, const TQString& /*configGroup*/){
// kdDebug() << "KttsFilterConf::save: Running" << endl;
}

@ -58,7 +58,7 @@ class KDE_EXPORT KttsFilterConf : public TQWidget{
* loaded, so it not necessary to call it in your constructor.
* The plugin should read its configuration from the specified group
* in the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* loading your configuration.
*
@ -67,7 +67,7 @@ class KDE_EXPORT KttsFilterConf : public TQWidget{
* any instance-specific parameters to load, but it may still wish
* to load parameters that apply to all instances of the plugin.
*/
virtual void load(KConfig *config, const TQString &configGroup);
virtual void load(TDEConfig *config, const TQString &configGroup);
/**
* This function gets called when the user wants to save the settings in
@ -75,11 +75,11 @@ class KDE_EXPORT KttsFilterConf : public TQWidget{
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok". The plugin should save its configuration in the specified
* group of the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* saving your configuration.
*/
virtual void save(KConfig *config, const TQString &configGroup);
virtual void save(TDEConfig *config, const TQString &configGroup);
/**
* This function is called to set the settings in the module to sensible

@ -54,7 +54,7 @@ KttsFilterProc::~KttsFilterProc()
* Note: The parameters are for reading from kttsdrc file. Plugins may wish to maintain
* separate configuration files of their own.
*/
bool KttsFilterProc::init(KConfig* /*config*/, const TQString& /*configGroup*/){
bool KttsFilterProc::init(TDEConfig* /*config*/, const TQString& /*configGroup*/){
// kdDebug() << "PlugInProc::init: Running" << endl;
return false;
}

@ -34,7 +34,7 @@
#include "kdeexportfix.h"
class TalkerCode;
class KConfig;
class TDEConfig;
class KDE_EXPORT KttsFilterProc : virtual public TQObject
{
@ -68,7 +68,7 @@ public:
* Note: The parameters are for reading from kttsdrc file. Plugins may wish to maintain
* separate configuration files of their own.
*/
virtual bool init(KConfig *config, const TQString &configGroup);
virtual bool init(TDEConfig *config, const TQString &configGroup);
/**
* Returns True if this filter is a Sentence Boundary Detector.

@ -149,7 +149,7 @@ static void notifypresent_init()
/*static*/ TQString NotifyEvent::getEventSrcName(const TQString& eventSrc, TQString& iconName)
{
TQString configFilename = eventSrc + TQString::fromLatin1( "/eventsrc" );
KConfig* config = new KConfig( configFilename, true, false, "data" );
TDEConfig* config = new TDEConfig( configFilename, true, false, "data" );
config->setGroup( TQString::fromLatin1( "!Global!" ) );
TQString appDesc = config->readEntry( "Comment", i18n("No description available") );
iconName = config->readEntry( "IconName" );
@ -164,7 +164,7 @@ static void notifypresent_init()
{
TQString eventName;
TQString configFilename = eventSrc + TQString::fromLatin1( "/eventsrc" );
KConfig* config = new KConfig( configFilename, true, false, "data" );
TDEConfig* config = new TDEConfig( configFilename, true, false, "data" );
if ( config->hasGroup( event ) )
{
config->setGroup( event );

@ -62,11 +62,11 @@ PlugInConf::~PlugInConf(){
* loaded, so it not necessary to call it in your constructor.
* The plugin should read its configuration from the specified group
* in the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* loading your configuration.
*/
void PlugInConf::load(KConfig* /*config*/, const TQString& /*configGroup*/){
void PlugInConf::load(TDEConfig* /*config*/, const TQString& /*configGroup*/){
kdDebug() << "PlugInConf::load: Running" << endl;
}
@ -76,11 +76,11 @@ void PlugInConf::load(KConfig* /*config*/, const TQString& /*configGroup*/){
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok". The plugin should save its configuration in the specified
* group of the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* saving your configuration.
*/
void PlugInConf::save(KConfig* /*config*/, const TQString& /*configGroup*/){
void PlugInConf::save(TDEConfig* /*config*/, const TQString& /*configGroup*/){
kdDebug() << "PlugInConf::save: Running" << endl;
}

@ -231,7 +231,7 @@ class KDE_EXPORT PlugInConf : public TQWidget{
* loaded, so it not necessary to call it in your constructor.
* The plugin should read its configuration from the specified group
* in the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* loading your configuration.
*
@ -242,7 +242,7 @@ class KDE_EXPORT PlugInConf : public TQWidget{
*
* @see loadandsavemethods
*/
virtual void load(KConfig *config, const TQString &configGroup);
virtual void load(TDEConfig *config, const TQString &configGroup);
/**
* This function gets called when the user wants to save the settings in
@ -250,7 +250,7 @@ class KDE_EXPORT PlugInConf : public TQWidget{
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok". The plugin should save its configuration in the specified
* group of the specified config file.
* @param config Pointer to a KConfig object.
* @param config Pointer to a TDEConfig object.
* @param configGroup Call config->setGroup with this argument before
* saving your configuration.
*
@ -258,7 +258,7 @@ class KDE_EXPORT PlugInConf : public TQWidget{
* it is not necessary to save the language code, unless your plugin needs it in
* order to synthesize speech.
*/
virtual void save(KConfig *config, const TQString &configGroup);
virtual void save(TDEConfig *config, const TQString &configGroup);
/**
* This function is called to set the settings in the module to sensible

@ -45,7 +45,7 @@ PlugInProc::~PlugInProc(){
/**
* Initializate the speech plugin.
*/
bool PlugInProc::init(KConfig* /*config*/, const TQString& /*configGroup*/){
bool PlugInProc::init(TDEConfig* /*config*/, const TQString& /*configGroup*/){
// kdDebug() << "PlugInProc::init: Running" << endl;
return false;
}

@ -119,7 +119,7 @@
*
* Since the KDE library is not available from the @ref sayText and @ref synthText methods,
* it is best if the plugin reads configuration settings in the @ref init method.
* The KConfig object is passed as an argument to @ref init .
* The TDEConfig object is passed as an argument to @ref init .
*
* If the synthesis engine requires a long initialization time (more than a second),
* it is best if the plugin loads the speech engine from the @ref init method.
@ -264,7 +264,7 @@ class KDE_EXPORT PlugInProc : virtual public TQObject{
config->setGroup(configGroup);
@endverbatim
*/
virtual bool init(KConfig *config, const TQString &configGroup);
virtual bool init(TDEConfig *config, const TQString &configGroup);
/**
* Say a text. Synthesize and audibilize it.

@ -317,7 +317,7 @@ void SelectTalkerDlg::loadTalkers(bool /*runningTalkers*/)
KListView* lv = m_widget->talkersListView;
lv->clear();
TQListViewItem* item;
KConfig* config = new KConfig("kttsdrc");
TDEConfig* config = new TDEConfig("kttsdrc");
config->setGroup("General");
TQStringList talkerIDsList = config->readListEntry("TalkerIDs", ',');
if (!talkerIDsList.isEmpty())

@ -206,7 +206,7 @@ void GStreamerPlayer::setSinkName(const TQString &sinkName) { m_sinkName = sinkN
void GStreamerPlayer::readConfig()
{
KConfigGroup config(TDEGlobal::config(), "GStreamerPlayer");
TDEConfigGroup config(TDEGlobal::config(), "GStreamerPlayer");
m_sinkName = config.readEntry("SinkName", TQString());
}

@ -81,7 +81,7 @@ CommandConf::~CommandConf()
delete m_progressDlg;
}
void CommandConf::load(KConfig *config, const TQString &configGroup) {
void CommandConf::load(TDEConfig *config, const TQString &configGroup) {
// kdDebug() << "CommandConf::load: Running" << endl;
config->setGroup(configGroup);
m_widget->urlReq->setURL (config->readEntry("Command", "cat -"));
@ -92,7 +92,7 @@ void CommandConf::load(KConfig *config, const TQString &configGroup) {
m_widget->characterCodingBox->setCurrentItem(codec);
}
void CommandConf::save(KConfig *config, const TQString &configGroup) {
void CommandConf::save(TDEConfig *config, const TQString &configGroup) {
// kdDebug() << "CommandConf::save: Running" << endl;
config->setGroup(configGroup);
config->writeEntry("Command", m_widget->urlReq->url());

@ -52,14 +52,14 @@ class CommandConf : public PlugInConf {
* valid settings. NOTE that this is not called after the modules is loaded,
* so you probably want to call this method in the constructor.
*/
void load(KConfig *config, const TQString &configGroup);
void load(TDEConfig *config, const TQString &configGroup);
/** This function gets called when the user wants to save the settings in
* the user interface, updating the config files or wherever the
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok".
*/
void save(KConfig *config, const TQString &configGroup);
void save(TDEConfig *config, const TQString &configGroup);
/** This function is called to set the settings in the module to sensible
* default values. It gets called when hitting the "Default" button. The

@ -64,7 +64,7 @@ CommandProc::~CommandProc()
}
/** Initialize */
bool CommandProc::init(KConfig *config, const TQString &configGroup){
bool CommandProc::init(TDEConfig *config, const TQString &configGroup){
kdDebug() << "CommandProc::init: Initializing plug in: Command " << endl;
config->setGroup(configGroup);

@ -40,7 +40,7 @@ class CommandProc : public PlugInProc{
~CommandProc();
/** Initializate the speech */
bool init (KConfig *config, const TQString &configGroup);
bool init (TDEConfig *config, const TQString &configGroup);
/**
* Say a text string.

@ -102,7 +102,7 @@ EposConf::~EposConf(){
delete m_progressDlg;
}
void EposConf::load(KConfig *config, const TQString &configGroup){
void EposConf::load(TDEConfig *config, const TQString &configGroup){
// kdDebug() << "EposConf::load: Running " << endl;
config->setGroup(configGroup);
@ -128,7 +128,7 @@ TQString EposConf::languageCodeToEposLanguage(const TQString &languageCode)
return eposLanguage;
}
void EposConf::save(KConfig *config, const TQString &configGroup){
void EposConf::save(TDEConfig *config, const TQString &configGroup){
// kdDebug() << "EposConf::save: Running" << endl;
config->setGroup("Epos");

@ -59,14 +59,14 @@ class EposConf : public PlugInConf {
* valid settings. NOTE that this is not called after the modules is loaded,
* so you probably want to call this method in the constructor.
*/
void load(KConfig *config, const TQString &configGroup);
void load(TDEConfig *config, const TQString &configGroup);
/** This function gets called when the user wants to save the settings in
* the user interface, updating the config files or wherever the
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok".
*/
void save(KConfig *config, const TQString &configGroup);
void save(TDEConfig *config, const TQString &configGroup);
/** This function is called to set the settings in the module to sensible
* default values. It gets called when hitting the "Default" button. The

@ -64,7 +64,7 @@ EposProc::~EposProc(){
}
/** Initialize the speech */
bool EposProc::init(KConfig* config, const TQString& configGroup)
bool EposProc::init(TDEConfig* config, const TQString& configGroup)
{
// kdDebug() << "EposProc::init: Running" << endl;
// kdDebug() << "Initializing plug in: Epos" << endl;

@ -55,7 +55,7 @@ class EposProc : public PlugInProc{
* @param config Settings object.
* @param configGroup Settings group.
*/
virtual bool init(KConfig *config, const TQString &configGroup);
virtual bool init(TDEConfig *config, const TQString &configGroup);
/**
* Say a text string.

@ -137,7 +137,7 @@ int FestivalIntConf::voiceCodeToListIndex(const TQString& voiceCode) const
return -1;
}
void FestivalIntConf::load(KConfig *config, const TQString &configGroup){
void FestivalIntConf::load(TDEConfig *config, const TQString &configGroup){
//kdDebug() << "FestivalIntConf::load: Running" << endl;
config->setGroup("FestivalInt");
TQString exePath = config->readEntry("FestivalExecutablePath", "festival");
@ -170,7 +170,7 @@ void FestivalIntConf::load(KConfig *config, const TQString &configGroup){
m_widget->characterCodingBox->setCurrentItem(codecNdx);
}
void FestivalIntConf::save(KConfig *config, const TQString &configGroup){
void FestivalIntConf::save(TDEConfig *config, const TQString &configGroup){
// kdDebug() << "FestivalIntConf::save: Running" << endl;
config->setGroup("FestivalInt");
config->writeEntry("FestivalExecutablePath", realFilePath(m_widget->festivalPath->url()));

@ -72,14 +72,14 @@ class FestivalIntConf : public PlugInConf {
* valid settings. NOTE that this is not called after the modules is loaded,
* so you probably want to call this method in the constructor.
*/
void load(KConfig *config, const TQString &configGroup);
void load(TDEConfig *config, const TQString &configGroup);
/** This function gets called when the user wants to save the settings in
* the user interface, updating the config files or wherever the
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok".
*/
void save(KConfig *config, const TQString &configGroup);
void save(TDEConfig *config, const TQString &configGroup);
/** This function is called to set the settings in the module to sensible
* default values. It gets called when hitting the "Default" button. The

@ -84,7 +84,7 @@ FestivalIntProc::~FestivalIntProc(){
}
/** Initialize the speech */
bool FestivalIntProc::init(KConfig *config, const TQString &configGroup)
bool FestivalIntProc::init(TDEConfig *config, const TQString &configGroup)
{
// kdDebug() << "FestivalIntProc::init: Initializing plug in: Festival" << endl;

@ -59,7 +59,7 @@ class FestivalIntProc : public PlugInProc{
* @param config Settings object.
* @param configGroup Settings group.
*/
virtual bool init(KConfig *config, const TQString &configGroup);
virtual bool init(TDEConfig *config, const TQString &configGroup);
/**
* Returns true when festival is ready to speak a sentence.

@ -70,7 +70,7 @@ FliteConf::~FliteConf(){
delete m_progressDlg;
}
void FliteConf::load(KConfig *config, const TQString &configGroup){
void FliteConf::load(TDEConfig *config, const TQString &configGroup){
// kdDebug() << "FliteConf::load: Loading configuration for language " << langGroup << " with plug in " << "Festival Lite (flite)" << endl;
config->setGroup(configGroup);
@ -83,7 +83,7 @@ void FliteConf::load(KConfig *config, const TQString &configGroup){
m_widget->flitePath->setURL(fliteExe);
}
void FliteConf::save(KConfig *config, const TQString &configGroup){
void FliteConf::save(TDEConfig *config, const TQString &configGroup){
// kdDebug() << "FliteConf::save: Saving configuration for language " << langGroup << " with plug in " << "Festival Lite (flite)" << endl;
config->setGroup("Flite");

@ -58,14 +58,14 @@ class FliteConf : public PlugInConf {
* valid settings. NOTE that this is not called after the modules is loaded,
* so you probably want to call this method in the constructor.
*/
void load(KConfig *config, const TQString &configGroup);
void load(TDEConfig *config, const TQString &configGroup);
/** This function gets called when the user wants to save the settings in
* the user interface, updating the config files or wherever the
* configuration is stored. The method is called when the user clicks "Apply"
* or "Ok".
*/
void save(KConfig *config, const TQString &configGroup);
void save(TDEConfig *config, const TQString &configGroup);
/** This function is called to set the settings in the module to sensible
* default values. It gets called when hitting the "Default" button. The

@ -55,7 +55,7 @@ FliteProc::~FliteProc(){
}
/** Initialize the speech */
bool FliteProc::init(KConfig* config, const TQString& configGroup){
bool FliteProc::init(TDEConfig* config, const TQString& configGroup){
// kdDebug() << "Running: FliteProc::init(const TQString &lang)" << endl;
// kdDebug() << "Initializing plug in: Flite" << endl;
// Retrieve path to flite executable.

@ -53,7 +53,7 @@ class FliteProc : public PlugInProc{
* @param config Settings object.
* @param configGroup Settings Group.
*/
virtual bool init(KConfig *config, const TQString &configGroup);
virtual bool init(TDEConfig *config, const TQString &configGroup);
/**
* Say a text string.

@ -68,7 +68,7 @@ FreeTTSConf::~FreeTTSConf() {
delete m_progressDlg;
}
void FreeTTSConf::load(KConfig *config, const TQString &configGroup) {
void FreeTTSConf::load(TDEConfig *config, const TQString &configGroup) {
// kdDebug() << "FreeTTSConf::load: Running" << endl;
config->setGroup(configGroup);
@ -84,7 +84,7 @@ void FreeTTSConf::load(KConfig *config, const TQString &configGroup) {
/// If freettsPath is still empty, then we couldn't find the file in the path.
}
void FreeTTSConf::save(KConfig *config, const TQString &configGroup){
void FreeTTSConf::save(TDEConfig *config, const TQString &configGroup){
// kdDebug() << "FreeTTSConf::save: Running" << endl;
config->setGroup("FreeTTS");

@ -48,13 +48,13 @@ class FreeTTSConf : public PlugInConf {
the control center, to undo all of his changes and restore the currently
valid settings. NOTE that this is not called after the modules is loaded,
so you probably want to call this method in the constructor.*/
void load(KConfig *config, const TQString &configGroup);
void load(TDEConfig *config, const TQString &configGroup);
/** This function gets called when the user wants to save the settings in
the user interface, updating the config files or wherever the
configuration is stored. The method is called when the user clicks "Apply"
or "Ok". */
void save(KConfig *config, const TQString &configGroup);
void save(TDEConfig *config, const TQString &configGroup);
/** This function is called to set the settings in the module to sensible
default values. It gets called when hitting the "Default" button. The

@ -45,7 +45,7 @@ FreeTTSProc::~FreeTTSProc() {
}
/** Initializate the speech */
bool FreeTTSProc::init(KConfig *config, const TQString &configGroup) {
bool FreeTTSProc::init(TDEConfig *config, const TQString &configGroup) {
kdDebug() << "Running: FreeTTSProc::init()" << endl;
kdDebug() << "Initializing plug in: FreeTTS" << endl;
config->setGroup(configGroup);

@ -46,7 +46,7 @@ public:
* @param config Settings object.
* @param configGroup Settings group.
*/
virtual bool init(KConfig *config, const TQString &configGroup);
virtual bool init(TDEConfig *config, const TQString &configGroup);
/**
* Say a text string.

@ -145,7 +145,7 @@ class HadifixConfPrivate {
100, 100, 100, "Local");
};
void load (KConfig *config, const TQString &configGroup) {
void load (TDEConfig *config, const TQString &configGroup) {
config->setGroup(configGroup);
TQString voice = config->readEntry("voice", configWidget->getVoiceFilename());
@ -173,7 +173,7 @@ class HadifixConfPrivate {
);
};
void save (KConfig *config, const TQString &configGroup) {
void save (TDEConfig *config, const TQString &configGroup) {
config->setGroup(configGroup);
config->writeEntry ("hadifixExec", PlugInConf::realFilePath(configWidget->hadifixURL->url()));
config->writeEntry ("mbrolaExec", PlugInConf::realFilePath(configWidget->mbrolaURL->url()));
@ -233,13 +233,13 @@ HadifixConf::~HadifixConf(){
delete d;
}
void HadifixConf::load(KConfig *config, const TQString &configGroup) {
void HadifixConf::load(TDEConfig *config, const TQString &configGroup) {
// kdDebug() << "HadifixConf::load: Running" << endl;
d->setDefaults();
d->load (config, configGroup);
}
void HadifixConf::save(KConfig *config, const TQString &configGroup) {
void HadifixConf::save(TDEConfig *config, const TQString &configGroup) {
// kdDebug() << "HadifixConf::save: Running" << endl;
d->save (config, configGroup);
}

@ -27,13 +27,13 @@ class HadifixConf : public PlugInConf {
the control center, to undo all of his changes and restore the currently
valid settings. NOTE that this is not called after the modules is loaded,
so you probably want to call this method in the constructor.*/
void load(KConfig *config, const TQString &configGroup);
void load(TDEConfig *config, const TQString &configGroup);
/** This function gets called when the user wants to save the settings in
the user interface, updating the config files or wherever the
configuration is stored. The method is called when the user clicks "Apply"
or "Ok". */
void save(KConfig *config, const TQString &configGroup);
void save(TDEConfig *config, const TQString &configGroup);
/** This function is called to set the settings in the module to sensible
default values. It gets called when hitting the "Default" button. The

@ -47,7 +47,7 @@ class HadifixProcPrivate {
delete hadifixProc;
};
void load(KConfig *config, const TQString &configGroup) {
void load(TDEConfig *config, const TQString &configGroup) {
config->setGroup(configGroup);
hadifix = config->readEntry ("hadifixExec", TQString());
mbrola = config->readEntry ("mbrolaExec", TQString());
@ -92,7 +92,7 @@ HadifixProc::~HadifixProc(){
}
/** Initializate the speech */
bool HadifixProc::init(KConfig *config, const TQString &configGroup){
bool HadifixProc::init(TDEConfig *config, const TQString &configGroup){
// kdDebug() << "HadifixProc::init: Initializing plug in: Hadifix" << endl;
if (d == 0)

@ -44,7 +44,7 @@ class HadifixProc : public PlugInProc{
~HadifixProc();
/** Initializate the speech */
virtual bool init (KConfig *config, const TQString &configGroup);
virtual bool init (TDEConfig *config, const TQString &configGroup);
/**
* Say a text. Synthesize and audibilize it.

Loading…
Cancel
Save