diff options
Diffstat (limited to 'kttsd/filters/sbd')
-rw-r--r-- | kttsd/filters/sbd/sbdconf.cpp | 12 | ||||
-rw-r--r-- | kttsd/filters/sbd/sbdconf.h | 8 | ||||
-rw-r--r-- | kttsd/filters/sbd/sbdproc.cpp | 2 | ||||
-rw-r--r-- | kttsd/filters/sbd/sbdproc.h | 4 |
4 files changed, 13 insertions, 13 deletions
diff --git a/kttsd/filters/sbd/sbdconf.cpp b/kttsd/filters/sbd/sbdconf.cpp index 0a7ddb9..4fe3c9d 100644 --- a/kttsd/filters/sbd/sbdconf.cpp +++ b/kttsd/filters/sbd/sbdconf.cpp @@ -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; } diff --git a/kttsd/filters/sbd/sbdconf.h b/kttsd/filters/sbd/sbdconf.h index 58f7e6d..8bcd34b 100644 --- a/kttsd/filters/sbd/sbdconf.h +++ b/kttsd/filters/sbd/sbdconf.h @@ -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 diff --git a/kttsd/filters/sbd/sbdproc.cpp b/kttsd/filters/sbd/sbdproc.cpp index 98eec0d..f817147 100644 --- a/kttsd/filters/sbd/sbdproc.cpp +++ b/kttsd/filters/sbd/sbdproc.cpp @@ -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)" ); diff --git a/kttsd/filters/sbd/sbdproc.h b/kttsd/filters/sbd/sbdproc.h index 089e664..d0d8f86 100644 --- a/kttsd/filters/sbd/sbdproc.h +++ b/kttsd/filters/sbd/sbdproc.h @@ -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. |