summaryrefslogtreecommitdiffstats
path: root/kttsd/filters
diff options
context:
space:
mode:
Diffstat (limited to 'kttsd/filters')
-rw-r--r--kttsd/filters/main.cpp4
-rw-r--r--kttsd/filters/sbd/sbdconf.cpp32
-rw-r--r--kttsd/filters/sbd/sbdconf.h5
-rw-r--r--kttsd/filters/sbd/sbdconfwidget.ui58
-rw-r--r--kttsd/filters/sbd/sbdproc.cpp64
-rw-r--r--kttsd/filters/sbd/sbdproc.h12
-rw-r--r--kttsd/filters/stringreplacer/editreplacementwidget.ui42
-rw-r--r--kttsd/filters/stringreplacer/stringreplacerconf.cpp34
-rw-r--r--kttsd/filters/stringreplacer/stringreplacerconf.h5
-rw-r--r--kttsd/filters/stringreplacer/stringreplacerconfwidget.ui54
-rw-r--r--kttsd/filters/stringreplacer/stringreplacerproc.cpp14
-rw-r--r--kttsd/filters/stringreplacer/stringreplacerproc.h5
-rw-r--r--kttsd/filters/talkerchooser/talkerchooserconf.cpp30
-rw-r--r--kttsd/filters/talkerchooser/talkerchooserconf.h5
-rw-r--r--kttsd/filters/talkerchooser/talkerchooserconfwidget.ui48
-rw-r--r--kttsd/filters/talkerchooser/talkerchooserproc.cpp10
-rw-r--r--kttsd/filters/talkerchooser/talkerchooserproc.h3
-rw-r--r--kttsd/filters/xhtml2ssml/Doxyfile4
-rw-r--r--kttsd/filters/xhtml2ssml/xhtml2ssml.cpp8
-rw-r--r--kttsd/filters/xhtml2ssml/xhtml2ssml.h4
-rw-r--r--kttsd/filters/xhtml2ssml/xmlelement.cpp6
-rw-r--r--kttsd/filters/xhtml2ssml/xmlelement.h4
-rw-r--r--kttsd/filters/xmltransformer/xhtml2ssml_simple.xsl8
-rw-r--r--kttsd/filters/xmltransformer/xmltransformerconf.cpp24
-rw-r--r--kttsd/filters/xmltransformer/xmltransformerconf.h5
-rw-r--r--kttsd/filters/xmltransformer/xmltransformerconfwidget.ui48
-rw-r--r--kttsd/filters/xmltransformer/xmltransformerproc.cpp18
-rw-r--r--kttsd/filters/xmltransformer/xmltransformerproc.h5
28 files changed, 284 insertions, 275 deletions
diff --git a/kttsd/filters/main.cpp b/kttsd/filters/main.cpp
index f33d771..015bed0 100644
--- a/kttsd/filters/main.cpp
+++ b/kttsd/filters/main.cpp
@@ -123,9 +123,9 @@ int main(int argc, char *argv[])
TalkerCode* talkerCode = new TalkerCode( talker );
text = plugIn->convert( text, talkerCode, appId );
if ( args->isSet("break") )
- text.replace( "\t", "\\t" );
+ text.tqreplace( "\t", "\\t" );
else
- text.replace( "\t", "" );
+ text.tqreplace( "\t", "" );
cout << text.latin1() << endl;
delete config;
delete plugIn;
diff --git a/kttsd/filters/sbd/sbdconf.cpp b/kttsd/filters/sbd/sbdconf.cpp
index 5244974..6beaba3 100644
--- a/kttsd/filters/sbd/sbdconf.cpp
+++ b/kttsd/filters/sbd/sbdconf.cpp
@@ -21,7 +21,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
******************************************************************************/
-// Qt includes.
+// TQt includes.
#include <tqfile.h>
#include <tqfileinfo.h>
#include <tqstring.h>
@@ -56,17 +56,17 @@
/**
* Constructor
*/
-SbdConf::SbdConf( TQWidget *parent, const char *name, const TQStringList& /*args*/) :
- KttsFilterConf(parent, name)
+SbdConf::SbdConf( TQWidget *tqparent, const char *name, const TQStringList& /*args*/) :
+ KttsFilterConf(tqparent, name)
{
// kdDebug() << "SbdConf::SbdConf: Running" << endl;
// Create configuration widget.
- TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(),
+ TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "SbdConfigWidgetLayout");
- layout->setAlignment (Qt::AlignTop);
+ tqlayout->tqsetAlignment (TQt::AlignTop);
m_widget = new SbdConfWidget(this, "SbdConfigWidget");
- layout->addWidget(m_widget);
+ tqlayout->addWidget(m_widget);
// Determine if kdeutils Regular Expression Editor is installed.
m_reEditorInstalled = !KTrader::self()->query("KRegExpEditor/KRegExpEditor").isEmpty();
@@ -156,7 +156,7 @@ void SbdConf::save(KConfig* config, const TQString& configGroup){
config->writeEntry("SentenceDelimiterRegExp", m_widget->reLineEdit->text() );
config->writeEntry("SentenceBoundary", m_widget->sbLineEdit->text() );
config->writeEntry("LanguageCodes", m_languageCodeList );
- config->writeEntry("AppID", m_widget->appIdLineEdit->text().replace(" ", "") );
+ config->writeEntry("AppID", m_widget->appIdLineEdit->text().tqreplace(" ", "") );
}
/**
@@ -195,7 +195,7 @@ bool SbdConf::supportsMultiInstance() { return true; }
TQString SbdConf::userPlugInName()
{
if ( m_widget->reLineEdit->text().isEmpty() )
- return TQString::null;
+ return TQString();
else
return m_widget->nameLineEdit->text();
}
@@ -257,7 +257,7 @@ void SbdConf::slotLanguageBrowseButton_clicked()
if (!countryCode.isEmpty()) language +=
" (" + KGlobal::locale()->twoAlphaToCountryName(countryCode)+")";
TQListViewItem* item = new KListViewItem(langLView, language, locale);
- if (m_languageCodeList.contains(locale)) item->setSelected(true);
+ if (m_languageCodeList.tqcontains(locale)) item->setSelected(true);
}
// Sort by language.
langLView->setSorting(0);
@@ -276,7 +276,7 @@ void SbdConf::slotLanguageBrowseButton_clicked()
dlg->setHelp("", "kttsd");
dlg->setInitialSize(TQSize(300, 500), false);
int dlgResult = dlg->exec();
- languageCode = TQString::null;
+ languageCode = TQString();
if (dlgResult == TQDialog::Accepted)
{
m_languageCodeList.clear();
@@ -288,7 +288,7 @@ void SbdConf::slotLanguageBrowseButton_clicked()
}
}
delete dlg;
- // TODO: Also delete KListView and QHBox?
+ // TODO: Also delete KListView and TQHBox?
if (dlgResult != TQDialog::Accepted) return;
language = "";
for ( uint ndx=0; ndx < m_languageCodeList.count(); ++ndx)
@@ -331,11 +331,11 @@ void SbdConf::slotSaveButton_clicked()
void SbdConf::slotClearButton_clicked()
{
- m_widget->nameLineEdit->setText( TQString::null );
- m_widget->reLineEdit->setText( TQString::null );
- m_widget->sbLineEdit->setText( TQString::null );
+ m_widget->nameLineEdit->setText( TQString() );
+ m_widget->reLineEdit->setText( TQString() );
+ m_widget->sbLineEdit->setText( TQString() );
m_languageCodeList.clear();
- m_widget->languageLineEdit->setText( TQString::null );
- m_widget->appIdLineEdit->setText( TQString::null );
+ m_widget->languageLineEdit->setText( TQString() );
+ m_widget->appIdLineEdit->setText( TQString() );
configChanged();
}
diff --git a/kttsd/filters/sbd/sbdconf.h b/kttsd/filters/sbd/sbdconf.h
index eb1b817..f2610c4 100644
--- a/kttsd/filters/sbd/sbdconf.h
+++ b/kttsd/filters/sbd/sbdconf.h
@@ -24,7 +24,7 @@
#ifndef _SBDCONF_H_
#define _SBDCONF_H_
-// Qt includes.
+// TQt includes.
#include <tqwidget.h>
// KDE includes.
@@ -43,12 +43,13 @@ class EditReplacementWidget;
class SbdConf : public KttsFilterConf
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor
*/
- SbdConf( TQWidget *parent, const char *name, const TQStringList &args = TQStringList() );
+ SbdConf( TQWidget *tqparent, const char *name, const TQStringList &args = TQStringList() );
/**
* Destructor
diff --git a/kttsd/filters/sbd/sbdconfwidget.ui b/kttsd/filters/sbd/sbdconfwidget.ui
index 17cd525..c094a52 100644
--- a/kttsd/filters/sbd/sbdconfwidget.ui
+++ b/kttsd/filters/sbd/sbdconfwidget.ui
@@ -1,7 +1,7 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>SbdConfWidget</class>
<author>Gary Cramblitt &lt;garycramblitt@comcast.net&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>SbdConfWidget</cstring>
</property>
@@ -25,7 +25,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -33,22 +33,22 @@
<string>&lt;b&gt;WARNING: This filter is a key component of the KTTS system. Please read the KTTS Handbook before modifying these settings.&lt;/b&gt;</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="1" column="0">
+ <widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>nameLabel</cstring>
</property>
<property name="text">
<string>&amp;Name:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -72,22 +72,22 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="2" column="0">
+ <widget class="TQLayoutWidget" row="2" column="0">
<property name="name">
- <cstring>layout17</cstring>
+ <cstring>tqlayout17</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>reLabel</cstring>
</property>
<property name="text">
<string>&amp;Sentence boundary regular expression:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -116,22 +116,22 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="3" column="0">
+ <widget class="TQLayoutWidget" row="3" column="0">
<property name="name">
- <cstring>layout17_2</cstring>
+ <cstring>tqlayout17_2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>sbLabel</cstring>
</property>
<property name="text">
<string>&amp;Replacement sentence boundary:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -152,7 +152,7 @@
</widget>
</hbox>
</widget>
- <widget class="QGroupBox" row="4" column="0">
+ <widget class="TQGroupBox" row="4" column="0">
<property name="name">
<cstring>applyGroupBox</cstring>
</property>
@@ -166,22 +166,22 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout11</cstring>
+ <cstring>tqlayout11</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>languageLabel</cstring>
</property>
<property name="text">
<string>&amp;Language is:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -192,14 +192,14 @@
<comment>What's this text</comment>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>appIdLabel</cstring>
</property>
<property name="text">
- <string>Application &amp;ID contains:</string>
+ <string>Application &amp;ID tqcontains:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -211,17 +211,17 @@
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget" row="0" column="1">
+ <widget class="TQLayoutWidget" row="0" column="1">
<property name="name">
- <cstring>layout13</cstring>
+ <cstring>tqlayout13</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout12</cstring>
+ <cstring>tqlayout12</cstring>
</property>
<hbox>
<property name="name">
@@ -263,9 +263,9 @@
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget" row="5" column="0">
+ <widget class="TQLayoutWidget" row="5" column="0">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<hbox>
<property name="name">
@@ -347,7 +347,7 @@
<tabstop>languageBrowseButton</tabstop>
<tabstop>appIdLineEdit</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/kttsd/filters/sbd/sbdproc.cpp b/kttsd/filters/sbd/sbdproc.cpp
index 6117b11..6b0a1a4 100644
--- a/kttsd/filters/sbd/sbdproc.cpp
+++ b/kttsd/filters/sbd/sbdproc.cpp
@@ -21,7 +21,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
******************************************************************************/
-// Qt includes.
+// TQt includes.
#include <tqregexp.h>
#include <tqdom.h>
#include <tqapplication.h>
@@ -41,8 +41,8 @@
/**
* Constructor.
*/
-SbdThread::SbdThread( TQObject *parent, const char *name ) :
- TQObject( parent, name ),
+SbdThread::SbdThread( TQObject *tqparent, const char *name ) :
+ TQObject( tqparent, name ),
TQThread()
{
}
@@ -175,7 +175,7 @@ void SbdThread::pushSsmlElem( SsmlElemType et, const TQDomElement& elem )
// i.e., name="value".
TQString SbdThread::makeAttr( const TQString& name, const TQString& value )
{
- if ( value.isEmpty() ) return TQString::null;
+ if ( value.isEmpty() ) return TQString();
return " " + name + "=\"" + value + "\"";
}
@@ -277,8 +277,8 @@ TQString SbdThread::makeSentence( const TQString& text )
if ( !e.isEmpty() ) s += e;
// Escape ampersands and less thans.
TQString newText = text;
- newText.replace(TQRegExp("&(?!amp;)"), "&amp;");
- newText.replace(TQRegExp("<(?!lt;)"), "&lt;");
+ newText.tqreplace(TQRegExp("&(?!amp;)"), "&amp;");
+ newText.tqreplace(TQRegExp("<(?!lt;)"), "&lt;");
s += newText;
if ( !e.isEmpty() ) s += "</emphasis>";
if ( !p.isEmpty() ) s += "</prosody>";
@@ -289,7 +289,7 @@ TQString SbdThread::makeSentence( const TQString& text )
// Starts a sentence by returning a speak tag.
TQString SbdThread::startSentence()
{
- if ( m_sentenceStarted ) return TQString::null;
+ if ( m_sentenceStarted ) return TQString();
TQString s;
s += makeSsmlElem( etSpeak );
m_sentenceStarted = true;
@@ -299,14 +299,14 @@ TQString SbdThread::startSentence()
// Ends a sentence and appends a Tab.
TQString SbdThread::endSentence()
{
- if ( !m_sentenceStarted ) return TQString::null;
+ if ( !m_sentenceStarted ) return TQString();
TQString s = "</speak>";
s += "\t";
m_sentenceStarted = false;
return s;
}
-// Parses a node of the SSML tree and recursively parses its children.
+// Parses a node of the SSML tree and recursively parses its tqchildren.
// Returns the filtered text with each sentence a complete ssml tree.
TQString SbdThread::parseSsmlNode( TQDomNode& n, const TQString& re )
{
@@ -351,7 +351,7 @@ TQString SbdThread::parseSsmlNode( TQDomNode& n, const TQString& re )
case TQDomNode::TextNode: { // = 3
TQString s = parsePlainText( n.toText().data(), re );
// TQString d = s;
- // d.replace("\t", "\\t");
+ // d.tqreplace("\t", "\\t");
// kdDebug() << "SbdThread::parseSsmlNode: parsedPlainText = [" << d << "]" << endl;
TQStringList sentenceList = TQStringList::split( '\t', s, false );
int lastNdx = sentenceList.count() - 1;
@@ -441,7 +441,7 @@ TQString SbdThread::parseSsml( const TQString& inputText, const TQString& re )
// This flag is used to close out a previous sentence.
m_sentenceStarted = false;
- // Get the root element (speak) and recursively process its children.
+ // Get the root element (speak) and recursively process its tqchildren.
TQDomElement docElem = doc.documentElement();
TQDomNode n = docElem.firstChild();
TQString ssml = parseSsmlNode( docElem, re );
@@ -457,13 +457,13 @@ TQString SbdThread::parseCode( const TQString& inputText )
{
TQString temp = inputText;
// Replace newlines with tabs.
- temp.replace("\n","\t");
+ temp.tqreplace("\n","\t");
// Remove leading spaces.
- temp.replace(TQRegExp("\\t +"), "\t");
+ temp.tqreplace(TQRegExp("\\t +"), "\t");
// Remove trailing spaces.
- temp.replace(TQRegExp(" +\\t"), "\t");
+ temp.tqreplace(TQRegExp(" +\\t"), "\t");
// Remove blank lines.
- temp.replace(TQRegExp("\t\t+"),"\t");
+ temp.tqreplace(TQRegExp("\t\t+"),"\t");
return temp;
}
@@ -474,16 +474,16 @@ TQString SbdThread::parsePlainText( const TQString& inputText, const TQString& r
TQRegExp sentenceDelimiter = TQRegExp( re );
TQString temp = inputText;
// Replace sentence delimiters with tab.
- temp.replace(sentenceDelimiter, m_configuredSentenceBoundary);
+ temp.tqreplace(sentenceDelimiter, m_configuredSentenceBoundary);
// Replace remaining newlines with spaces.
- temp.replace("\n"," ");
- temp.replace("\r"," ");
+ temp.tqreplace("\n"," ");
+ temp.tqreplace("\r"," ");
// Remove leading spaces.
- temp.replace(TQRegExp("\\t +"), "\t");
+ temp.tqreplace(TQRegExp("\\t +"), "\t");
// Remove trailing spaces.
- temp.replace(TQRegExp(" +\\t"), "\t");
+ temp.tqreplace(TQRegExp(" +\\t"), "\t");
// Remove blank lines.
- temp.replace(TQRegExp("\t\t+"),"\t");
+ temp.tqreplace(TQRegExp("\t\t+"),"\t");
return temp;
}
@@ -503,7 +503,7 @@ TQString SbdThread::parsePlainText( const TQString& inputText, const TQString& r
{
// Examine just the first 500 chars to see if it is code.
TQString p = m_text.left( 500 );
- if ( p.contains( TQRegExp( "(/\\*)|(if\\b\\()|(^#include\\b)" ) ) )
+ if ( p.tqcontains( TQRegExp( "(/\\*)|(if\\b\\()|(^#include\\b)" ) ) )
textType = ttCode;
else
textType = ttPlain;
@@ -515,7 +515,7 @@ TQString SbdThread::parsePlainText( const TQString& inputText, const TQString& r
if ( re.isEmpty() ) re = m_configuredRe;
// Replace spaces, tabs, and formfeeds with a single space.
- m_text.replace(TQRegExp("[ \\t\\f]+"), " ");
+ m_text.tqreplace(TQRegExp("[ \\t\\f]+"), " ");
// Perform the filtering based on type of text.
switch ( textType )
@@ -534,7 +534,7 @@ TQString SbdThread::parsePlainText( const TQString& inputText, const TQString& r
}
// Clear app-specified sentence delimiter. App must call setSbRegExp for each conversion.
- m_re = TQString::null;
+ m_re = TQString();
// kdDebug() << "SbdThread::run: filtered text = " << m_text << endl;
@@ -562,11 +562,11 @@ bool SbdThread::event ( TQEvent * e )
/**
* Constructor.
*/
-SbdProc::SbdProc( TQObject *parent, const char *name, const TQStringList& /*args*/) :
- KttsFilterProc(parent, name)
+SbdProc::SbdProc( TQObject *tqparent, const char *name, const TQStringList& /*args*/) :
+ KttsFilterProc(tqparent, name)
{
// kdDebug() << "SbdProc::SbdProc: Running" << endl;
- m_sbdThread = new SbdThread( parent, *name + "_thread" );
+ m_sbdThread = new SbdThread( tqparent, *name + "_thread" );
connect( m_sbdThread, TQT_SIGNAL(filteringFinished()), this, TQT_SLOT(slotSbdThreadFilteringFinished()) );
}
@@ -603,7 +603,7 @@ bool SbdProc::init(KConfig* config, const TQString& configGroup){
m_configuredRe = config->readEntry( "SentenceDelimiterRegExp", "([\\.\\?\\!\\:\\;])(\\s|$|(\\n *\\n))" );
m_sbdThread->setConfiguredSbRegExp( m_configuredRe );
TQString sb = config->readEntry( "SentenceBoundary", "\\1\t" );
- sb.replace( "\\t", "\t" );
+ sb.tqreplace( "\\t", "\t" );
m_sbdThread->setConfiguredSentenceBoundary( sb );
m_appIdList = config->readListEntry( "AppID" );
m_languageCodeList = config->readListEntry( "LanguageCodes" );
@@ -672,14 +672,14 @@ bool SbdProc::init(KConfig* config, const TQString& configGroup){
TQString languageCode = talkerCode->languageCode();
// kdDebug() << "StringReplacerProc::convert: converting " << inputText <<
// " if language code " << languageCode << " matches " << m_languageCodeList << endl;
- if ( !m_languageCodeList.contains( languageCode ) )
+ if ( !m_languageCodeList.tqcontains( languageCode ) )
{
if ( !talkerCode->countryCode().isEmpty() )
{
languageCode += '_' + talkerCode->countryCode();
// kdDebug() << "StringReplacerProc::convert: converting " << inputText <<
// " if language code " << languageCode << " matches " << m_languageCodeList << endl;
- if ( !m_languageCodeList.contains( languageCode ) ) return false;
+ if ( !m_languageCodeList.tqcontains( languageCode ) ) return false;
} else return false;
}
}
@@ -692,7 +692,7 @@ bool SbdProc::init(KConfig* config, const TQString& configGroup){
TQString appIdStr = appId;
for ( uint ndx=0; ndx < m_appIdList.count(); ++ndx )
{
- if ( appIdStr.contains(m_appIdList[ndx]) )
+ if ( appIdStr.tqcontains(m_appIdList[ndx]) )
{
found = true;
break;
@@ -737,7 +737,7 @@ bool SbdProc::init(KConfig* config, const TQString& configGroup){
/*virtual*/ void SbdProc::ackFinished()
{
m_state = fsIdle;
- m_sbdThread->setText( TQString::null );
+ m_sbdThread->setText( TQString() );
}
/**
diff --git a/kttsd/filters/sbd/sbdproc.h b/kttsd/filters/sbd/sbdproc.h
index 4592c29..49f7b09 100644
--- a/kttsd/filters/sbd/sbdproc.h
+++ b/kttsd/filters/sbd/sbdproc.h
@@ -45,7 +45,7 @@
#ifndef _SBDPROC_H_
#define _SBDPROC_H_
-// Qt includes.
+// TQt includes.
#include <tqobject.h>
#include <tqstringlist.h>
#include <tqthread.h>
@@ -60,15 +60,16 @@ class KConfig;
class TQDomElement;
class TQDomNode;
-class SbdThread: public TQObject, public QThread
+class SbdThread: public TQObject, public TQThread
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor.
*/
- SbdThread( TQObject *parent = 0, const char *name = 0);
+ SbdThread( TQObject *tqparent = 0, const char *name = 0);
/**
* Destructor.
@@ -203,7 +204,7 @@ class SbdThread: public TQObject, public QThread
TQString startSentence();
// Ends a sentence and appends a Tab.
TQString endSentence();
- // Parses a node of the SSML tree and recursively parses its children.
+ // Parses a node of the SSML tree and recursively parses its tqchildren.
// Returns the filtered text with each sentence a complete ssml tree.
TQString parseSsmlNode( TQDomNode& n, const TQString& re );
@@ -240,12 +241,13 @@ class SbdThread: public TQObject, public QThread
class SbdProc : virtual public KttsFilterProc
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor.
*/
- SbdProc( TQObject *parent, const char *name, const TQStringList &args = TQStringList() );
+ SbdProc( TQObject *tqparent, const char *name, const TQStringList &args = TQStringList() );
/**
* Destructor.
diff --git a/kttsd/filters/stringreplacer/editreplacementwidget.ui b/kttsd/filters/stringreplacer/editreplacementwidget.ui
index 917cdf8..6046580 100644
--- a/kttsd/filters/stringreplacer/editreplacementwidget.ui
+++ b/kttsd/filters/stringreplacer/editreplacementwidget.ui
@@ -1,7 +1,7 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>EditReplacementWidget</class>
<author>Gary Cramblitt &lt;garycramblitt@comcast.net&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>EditReplacementWidget</cstring>
</property>
@@ -21,7 +21,7 @@
<verstretch>255</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -31,15 +31,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>typeButtonGroup</cstring>
</property>
@@ -61,15 +61,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>wordRadioButton</cstring>
</property>
@@ -88,7 +88,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>regexpRadioButton</cstring>
</property>
@@ -108,7 +108,7 @@
</widget>
</grid>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>caseCheckBox</cstring>
</property>
@@ -126,23 +126,23 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>substLabel</cstring>
</property>
@@ -157,14 +157,14 @@
<property name="text">
<string>&amp;Replace with:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
<cstring>matchLineEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>matchLabel</cstring>
</property>
@@ -179,7 +179,7 @@
<property name="text">
<string>&amp;Match:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -188,9 +188,9 @@
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<grid>
<property name="name">
@@ -254,7 +254,7 @@
<tabstop>matchButton</tabstop>
<tabstop>substLineEdit</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>kpushbutton.h</includehint>
diff --git a/kttsd/filters/stringreplacer/stringreplacerconf.cpp b/kttsd/filters/stringreplacer/stringreplacerconf.cpp
index 72f50d8..8bce00d 100644
--- a/kttsd/filters/stringreplacer/stringreplacerconf.cpp
+++ b/kttsd/filters/stringreplacer/stringreplacerconf.cpp
@@ -21,7 +21,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
******************************************************************************/
-// Qt includes.
+// TQt includes.
#include <tqfile.h>
#include <tqfileinfo.h>
#include <tqstring.h>
@@ -59,19 +59,19 @@
/**
* Constructor
*/
-StringReplacerConf::StringReplacerConf( TQWidget *parent, const char *name, const TQStringList& /*args*/) :
- KttsFilterConf(parent, name),
+StringReplacerConf::StringReplacerConf( TQWidget *tqparent, const char *name, const TQStringList& /*args*/) :
+ KttsFilterConf(tqparent, name),
m_editDlg(0),
m_editWidget(0)
{
// kdDebug() << "StringReplacerConf::StringReplacerConf: Running" << endl;
// Create configuration widget.
- TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(),
+ TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "StringReplacerConfigWidgetLayout");
- layout->setAlignment (Qt::AlignTop);
+ tqlayout->tqsetAlignment (TQt::AlignTop);
m_widget = new StringReplacerConfWidget(this, "StringReplacerConfigWidget");
- layout->addWidget(m_widget);
+ tqlayout->addWidget(m_widget);
m_widget->substLView->setSortColumn(-1);
connect(m_widget->nameLineEdit, TQT_SIGNAL(textChanged(const TQString&)),
@@ -244,7 +244,7 @@ TQString StringReplacerConf::loadFromFile( const TQString& filename, bool clear)
item = new KListViewItem(m_widget->substLView, item, wordTypeStr, matchCaseStr, match, subst);
}
- return TQString::null;
+ return TQString();
}
/**
@@ -308,7 +308,7 @@ TQString StringReplacerConf::saveToFile(const TQString& filename)
}
// Application ID
- TQString appId = m_widget->appIdLineEdit->text().replace(" ", "");
+ TQString appId = m_widget->appIdLineEdit->text().tqreplace(" ", "");
if ( !appId.isEmpty() )
{
TQStringList appIdList = TQStringList::split(",", appId);
@@ -359,7 +359,7 @@ TQString StringReplacerConf::saveToFile(const TQString& filename)
// kdDebug() << "StringReplacerConf::saveToFile: writing out " << doc.toString() << endl;
file.close();
- return TQString::null;
+ return TQString();
}
/**
@@ -400,7 +400,7 @@ bool StringReplacerConf::supportsMultiInstance() { return true; }
*/
TQString StringReplacerConf::userPlugInName()
{
- if ( m_widget->substLView->childCount() == 0 ) return TQString::null;
+ if ( m_widget->substLView->childCount() == 0 ) return TQString();
TQString instName = m_widget->nameLineEdit->text();
if ( instName.isEmpty() )
{
@@ -442,7 +442,7 @@ void StringReplacerConf::slotLanguageBrowseButton_clicked()
if (!countryCode.isEmpty()) language +=
" (" + KGlobal::locale()->twoAlphaToCountryName(countryCode)+")";
item = new KListViewItem(langLView, language, locale);
- if (m_languageCodeList.contains(locale)) item->setSelected(true);
+ if (m_languageCodeList.tqcontains(locale)) item->setSelected(true);
}
// Sort by language.
langLView->setSorting(0);
@@ -461,7 +461,7 @@ void StringReplacerConf::slotLanguageBrowseButton_clicked()
dlg->setHelp("", "kttsd");
dlg->setInitialSize(TQSize(300, 500), false);
int dlgResult = dlg->exec();
- languageCode = TQString::null;
+ languageCode = TQString();
if (dlgResult == TQDialog::Accepted)
{
m_languageCodeList.clear();
@@ -473,7 +473,7 @@ void StringReplacerConf::slotLanguageBrowseButton_clicked()
}
}
delete dlg;
- // TODO: Also delete KListView and QHBox?
+ // TODO: Also delete KListView and TQHBox?
if (dlgResult != TQDialog::Accepted) return;
language = "";
for ( uint ndx=0; ndx < m_languageCodeList.count(); ++ndx)
@@ -488,11 +488,11 @@ void StringReplacerConf::slotLanguageBrowseButton_clicked()
if (m_languageCodeList.count() > 1) language = i18n("Multiple Languages");
if ( !s1.isEmpty() )
{
- s2.replace( s1, language );
- s2.replace( i18n("Multiple Languages"), language );
+ s2.tqreplace( s1, language );
+ s2.tqreplace( i18n("Multiple Languages"), language );
}
- s2.replace(" ()", "");
- if ( !s2.contains("(") && !language.isEmpty() ) s2 += " (" + language + ")";
+ s2.tqreplace(" ()", "");
+ if ( !s2.tqcontains("(") && !language.isEmpty() ) s2 += " (" + language + ")";
m_widget->nameLineEdit->setText(s2);
configChanged();
}
diff --git a/kttsd/filters/stringreplacer/stringreplacerconf.h b/kttsd/filters/stringreplacer/stringreplacerconf.h
index 1606390..4de870c 100644
--- a/kttsd/filters/stringreplacer/stringreplacerconf.h
+++ b/kttsd/filters/stringreplacer/stringreplacerconf.h
@@ -24,7 +24,7 @@
#ifndef _STRINGREPLACERCONF_H_
#define _STRINGREPLACERCONF_H_
-// Qt includes.
+// TQt includes.
#include <tqwidget.h>
// KDE includes.
@@ -43,12 +43,13 @@ class EditReplacementWidget;
class StringReplacerConf : public KttsFilterConf
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor
*/
- StringReplacerConf( TQWidget *parent, const char *name, const TQStringList &args = TQStringList() );
+ StringReplacerConf( TQWidget *tqparent, const char *name, const TQStringList &args = TQStringList() );
/**
* Destructor
diff --git a/kttsd/filters/stringreplacer/stringreplacerconfwidget.ui b/kttsd/filters/stringreplacer/stringreplacerconfwidget.ui
index e88307f..c1882a0 100644
--- a/kttsd/filters/stringreplacer/stringreplacerconfwidget.ui
+++ b/kttsd/filters/stringreplacer/stringreplacerconfwidget.ui
@@ -2,7 +2,7 @@
<class>StringReplacerConfWidget</class>
<comment>Widget for configuring String Replacer Filter for KTTSD.</comment>
<author>Gary Cramblitt &lt;garycramblitt@comcast.net&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>StringReplacerConfWidget</cstring>
</property>
@@ -21,22 +21,22 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>nameLabel</cstring>
</property>
<property name="text">
<string>&amp;Name:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -57,7 +57,7 @@
</widget>
</hbox>
</widget>
- <widget class="QGroupBox" row="3" column="0">
+ <widget class="TQGroupBox" row="3" column="0">
<property name="name">
<cstring>applyGroupBox</cstring>
</property>
@@ -71,22 +71,22 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout11</cstring>
+ <cstring>tqlayout11</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>languageLabel</cstring>
</property>
<property name="text">
<string>Lan&amp;guage is:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -97,14 +97,14 @@
<comment>What's this text</comment>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>appIdLabel</cstring>
</property>
<property name="text">
- <string>Application &amp;ID contains:</string>
+ <string>Application &amp;ID tqcontains:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -116,17 +116,17 @@
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget" row="0" column="1">
+ <widget class="TQLayoutWidget" row="0" column="1">
<property name="name">
- <cstring>layout13</cstring>
+ <cstring>tqlayout13</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout12</cstring>
+ <cstring>tqlayout12</cstring>
</property>
<hbox>
<property name="name">
@@ -168,9 +168,9 @@
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget" row="2" column="0">
+ <widget class="TQLayoutWidget" row="2" column="0">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<hbox>
<property name="name">
@@ -241,9 +241,9 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="1" column="0">
+ <widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
- <cstring>layout24</cstring>
+ <cstring>tqlayout24</cstring>
</property>
<grid>
<property name="name">
@@ -301,9 +301,9 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLayoutWidget" row="0" column="1">
+ <widget class="TQLayoutWidget" row="0" column="1">
<property name="name">
- <cstring>layout23</cstring>
+ <cstring>tqlayout23</cstring>
</property>
<vbox>
<property name="name">
@@ -329,7 +329,7 @@
<comment>What's this text</comment>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>upButton</cstring>
</property>
@@ -348,7 +348,7 @@
<string>Click to move selected word up in the list. Words higher in the list are applied first.</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>downButton</cstring>
</property>
@@ -427,7 +427,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -457,7 +457,7 @@
<tabstop>languageBrowseButton</tabstop>
<tabstop>appIdLineEdit</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/kttsd/filters/stringreplacer/stringreplacerproc.cpp b/kttsd/filters/stringreplacer/stringreplacerproc.cpp
index 8987d79..4cee1e7 100644
--- a/kttsd/filters/stringreplacer/stringreplacerproc.cpp
+++ b/kttsd/filters/stringreplacer/stringreplacerproc.cpp
@@ -21,7 +21,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
******************************************************************************/
-// Qt includes.
+// TQt includes.
#include <tqdom.h>
#include <tqfile.h>
#include <tqlistview.h>
@@ -44,8 +44,8 @@
/**
* Constructor.
*/
-StringReplacerProc::StringReplacerProc( TQObject *parent, const char *name, const TQStringList& ) :
- KttsFilterProc(parent, name)
+StringReplacerProc::StringReplacerProc( TQObject *tqparent, const char *name, const TQStringList& ) :
+ KttsFilterProc(tqparent, name)
{
}
@@ -180,14 +180,14 @@ bool StringReplacerProc::init(KConfig* config, const TQString& configGroup){
TQString languageCode = talkerCode->languageCode();
// kdDebug() << "StringReplacerProc::convert: converting " << inputText <<
// " if language code " << languageCode << " matches " << m_languageCodeList << endl;
- if ( !m_languageCodeList.contains( languageCode ) )
+ if ( !m_languageCodeList.tqcontains( languageCode ) )
{
if ( !talkerCode->countryCode().isEmpty() )
{
languageCode += '_' + talkerCode->countryCode();
// kdDebug() << "StringReplacerProc::convert: converting " << inputText <<
// " if language code " << languageCode << " matches " << m_languageCodeList << endl;
- if ( !m_languageCodeList.contains( languageCode ) ) return inputText;
+ if ( !m_languageCodeList.tqcontains( languageCode ) ) return inputText;
} else return inputText;
}
}
@@ -200,7 +200,7 @@ bool StringReplacerProc::init(KConfig* config, const TQString& configGroup){
TQString appIdStr = appId;
for ( uint ndx=0; ndx < m_appIdList.count(); ++ndx )
{
- if ( appIdStr.contains(m_appIdList[ndx]) )
+ if ( appIdStr.tqcontains(m_appIdList[ndx]) )
{
found = true;
break;
@@ -217,7 +217,7 @@ bool StringReplacerProc::init(KConfig* config, const TQString& configGroup){
for ( int index = 0; index < listCount; ++index )
{
//kdDebug() << "newtext = " << newText << " matching " << m_matchList[index].pattern() << " replacing with " << m_substList[index] << endl;
- newText.replace( m_matchList[index], m_substList[index] );
+ newText.tqreplace( m_matchList[index], m_substList[index] );
}
m_wasModified = true;
return newText;
diff --git a/kttsd/filters/stringreplacer/stringreplacerproc.h b/kttsd/filters/stringreplacer/stringreplacerproc.h
index b679113..175bda8 100644
--- a/kttsd/filters/stringreplacer/stringreplacerproc.h
+++ b/kttsd/filters/stringreplacer/stringreplacerproc.h
@@ -25,7 +25,7 @@
#ifndef _STRINGREPLACERPROC_H_
#define _STRINGREPLACERPROC_H_
-// Qt includes.
+// TQt includes.
#include <tqobject.h>
#include <tqtextstream.h>
#include <tqvaluelist.h>
@@ -38,12 +38,13 @@
class StringReplacerProc : virtual public KttsFilterProc
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor.
*/
- StringReplacerProc( TQObject *parent, const char *name, const TQStringList &args = TQStringList() );
+ StringReplacerProc( TQObject *tqparent, const char *name, const TQStringList &args = TQStringList() );
/**
* Destructor.
diff --git a/kttsd/filters/talkerchooser/talkerchooserconf.cpp b/kttsd/filters/talkerchooser/talkerchooserconf.cpp
index cc811a3..b351df9 100644
--- a/kttsd/filters/talkerchooser/talkerchooserconf.cpp
+++ b/kttsd/filters/talkerchooser/talkerchooserconf.cpp
@@ -21,7 +21,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
******************************************************************************/
-// Qt includes.
+// TQt includes.
#include <tqstring.h>
#include <tqhbox.h>
#include <tqlayout.h>
@@ -49,17 +49,17 @@
/**
* Constructor
*/
-TalkerChooserConf::TalkerChooserConf( TQWidget *parent, const char *name, const TQStringList& /*args*/) :
- KttsFilterConf(parent, name)
+TalkerChooserConf::TalkerChooserConf( TQWidget *tqparent, const char *name, const TQStringList& /*args*/) :
+ KttsFilterConf(tqparent, name)
{
// kdDebug() << "TalkerChooserConf::TalkerChooserConf: Running" << endl;
// Create configuration widget.
- TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(),
+ TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "TalkerChooserConfigWidgetLayout");
- layout->setAlignment (Qt::AlignTop);
+ tqlayout->tqsetAlignment (TQt::AlignTop);
m_widget = new TalkerChooserConfWidget(this, "TalkerChooserConfigWidget");
- layout->addWidget(m_widget);
+ tqlayout->addWidget(m_widget);
// Determine if kdeutils Regular Expression Editor is installed.
m_reEditorInstalled = !KTrader::self()->query("KRegExpEditor/KRegExpEditor").isEmpty();
@@ -147,7 +147,7 @@ void TalkerChooserConf::save(KConfig* config, const TQString& configGroup){
config->setGroup( configGroup );
config->writeEntry( "UserFilterName", m_widget->nameLineEdit->text() );
config->writeEntry( "MatchRegExp", m_widget->reLineEdit->text() );
- config->writeEntry( "AppIDs", m_widget->appIdLineEdit->text().replace(" ", "") );
+ config->writeEntry( "AppIDs", m_widget->appIdLineEdit->text().tqreplace(" ", "") );
config->writeEntry( "TalkerCode", m_talkerCode.getTalkerCode());
}
@@ -167,7 +167,7 @@ void TalkerChooserConf::defaults(){
// Default App ID is blank.
m_widget->appIdLineEdit->setText( "" );
// Default to using default Talker.
- m_talkerCode = TalkerCode( TQString::null, false );
+ m_talkerCode = TalkerCode( TQString(), false );
m_widget->talkerLineEdit->setText( m_talkerCode.getTranslatedDescription() );
}
@@ -188,11 +188,11 @@ bool TalkerChooserConf::supportsMultiInstance() { return true; }
*/
TQString TalkerChooserConf::userPlugInName()
{
- if (m_widget->talkerLineEdit->text().isEmpty()) return TQString::null;
+ if (m_widget->talkerLineEdit->text().isEmpty()) return TQString();
if (m_widget->appIdLineEdit->text().isEmpty() &&
- m_widget->reLineEdit->text().isEmpty()) return TQString::null;
+ m_widget->reLineEdit->text().isEmpty()) return TQString();
TQString instName = m_widget->nameLineEdit->text();
- if (instName.isEmpty()) return TQString::null;
+ if (instName.isEmpty()) return TQString();
return instName;
}
@@ -260,10 +260,10 @@ void TalkerChooserConf::slotSaveButton_clicked()
void TalkerChooserConf::slotClearButton_clicked()
{
- m_widget->nameLineEdit->setText( TQString::null );
- m_widget->reLineEdit->setText( TQString::null );
- m_widget->appIdLineEdit->setText( TQString::null );
- m_talkerCode = TalkerCode( TQString::null, false );
+ m_widget->nameLineEdit->setText( TQString() );
+ m_widget->reLineEdit->setText( TQString() );
+ m_widget->appIdLineEdit->setText( TQString() );
+ m_talkerCode = TalkerCode( TQString(), false );
m_widget->talkerLineEdit->setText( m_talkerCode.getTranslatedDescription() );
configChanged();
}
diff --git a/kttsd/filters/talkerchooser/talkerchooserconf.h b/kttsd/filters/talkerchooser/talkerchooserconf.h
index 38a6c49..be501a2 100644
--- a/kttsd/filters/talkerchooser/talkerchooserconf.h
+++ b/kttsd/filters/talkerchooser/talkerchooserconf.h
@@ -24,7 +24,7 @@
#ifndef _TALKERCHOOSERCONF_H_
#define _TALKERCHOOSERCONF_H_
-// Qt includes.
+// TQt includes.
#include <tqwidget.h>
// KDE includes.
@@ -45,12 +45,13 @@ class EditReplacementWidget;
class TalkerChooserConf : public KttsFilterConf
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor
*/
- TalkerChooserConf( TQWidget *parent, const char *name, const TQStringList &args = TQStringList() );
+ TalkerChooserConf( TQWidget *tqparent, const char *name, const TQStringList &args = TQStringList() );
/**
* Destructor
diff --git a/kttsd/filters/talkerchooser/talkerchooserconfwidget.ui b/kttsd/filters/talkerchooser/talkerchooserconfwidget.ui
index 3cdee2e..3ee9947 100644
--- a/kttsd/filters/talkerchooser/talkerchooserconfwidget.ui
+++ b/kttsd/filters/talkerchooser/talkerchooserconfwidget.ui
@@ -2,7 +2,7 @@
<class>TalkerChooserConfWidget</class>
<comment>Widget for configuring Talker Chooser Filter for KTTSD.</comment>
<author>Gary Cramblitt &lt;garycramblitt@comcast.net&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>TalkerChooserConfWidget</cstring>
</property>
@@ -21,22 +21,22 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>nameLabel</cstring>
</property>
<property name="text">
<string>&amp;Name:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -57,7 +57,7 @@
</widget>
</hbox>
</widget>
- <widget class="QGroupBox" row="1" column="0">
+ <widget class="TQGroupBox" row="1" column="0">
<property name="name">
<cstring>applyGroupBox</cstring>
</property>
@@ -71,22 +71,22 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout11</cstring>
+ <cstring>tqlayout11</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>reLabel</cstring>
</property>
<property name="text">
- <string>Te&amp;xt contains:</string>
+ <string>Te&amp;xt tqcontains:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -97,14 +97,14 @@
<comment>What's this text</comment>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>appIdLabel</cstring>
</property>
<property name="text">
- <string>Application &amp;ID contains:</string>
+ <string>Application &amp;ID tqcontains:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -116,17 +116,17 @@
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget" row="0" column="1">
+ <widget class="TQLayoutWidget" row="0" column="1">
<property name="name">
- <cstring>layout13</cstring>
+ <cstring>tqlayout13</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout12</cstring>
+ <cstring>tqlayout12</cstring>
</property>
<hbox>
<property name="name">
@@ -165,15 +165,15 @@
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget" row="2" column="0">
+ <widget class="TQLayoutWidget" row="2" column="0">
<property name="name">
- <cstring>layout19_2</cstring>
+ <cstring>tqlayout19_2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>talkerLabel</cstring>
</property>
@@ -226,9 +226,9 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="3" column="0">
+ <widget class="TQLayoutWidget" row="3" column="0">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<hbox>
<property name="name">
@@ -304,7 +304,7 @@
<tabstop>reEditorButton</tabstop>
<tabstop>appIdLineEdit</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/kttsd/filters/talkerchooser/talkerchooserproc.cpp b/kttsd/filters/talkerchooser/talkerchooserproc.cpp
index 5758df2..8d4aeb0 100644
--- a/kttsd/filters/talkerchooser/talkerchooserproc.cpp
+++ b/kttsd/filters/talkerchooser/talkerchooserproc.cpp
@@ -21,7 +21,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
******************************************************************************/
-// Qt includes.
+// TQt includes.
#include <tqregexp.h>
// KDE includes.
@@ -38,8 +38,8 @@
/**
* Constructor.
*/
-TalkerChooserProc::TalkerChooserProc( TQObject *parent, const char *name, const TQStringList& /*args*/ ) :
- KttsFilterProc(parent, name)
+TalkerChooserProc::TalkerChooserProc( TQObject *tqparent, const char *name, const TQStringList& /*args*/ ) :
+ KttsFilterProc(tqparent, name)
{
// kdDebug() << "TalkerChooserProc::TalkerChooserProc: Running" << endl;
}
@@ -107,7 +107,7 @@ bool TalkerChooserProc::init(KConfig* config, const TQString& configGroup){
{
if ( !m_re.isEmpty() )
{
- int pos = inputText.find( TQRegExp(m_re) );
+ int pos = inputText.tqfind( TQRegExp(m_re) );
if ( pos < 0 ) return inputText;
}
// If appId doesn't match, return input unmolested.
@@ -119,7 +119,7 @@ bool TalkerChooserProc::init(KConfig* config, const TQString& configGroup){
TQString appIdStr = appId;
for ( uint ndx=0; ndx < m_appIdList.count(); ++ndx )
{
- if ( appIdStr.contains(m_appIdList[ndx]) )
+ if ( appIdStr.tqcontains(m_appIdList[ndx]) )
{
found = true;
break;
diff --git a/kttsd/filters/talkerchooser/talkerchooserproc.h b/kttsd/filters/talkerchooser/talkerchooserproc.h
index 8c9ab01..a422000 100644
--- a/kttsd/filters/talkerchooser/talkerchooserproc.h
+++ b/kttsd/filters/talkerchooser/talkerchooserproc.h
@@ -31,12 +31,13 @@
class TalkerChooserProc : virtual public KttsFilterProc
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor.
*/
- TalkerChooserProc( TQObject *parent, const char *name, const TQStringList &args = TQStringList() );
+ TalkerChooserProc( TQObject *tqparent, const char *name, const TQStringList &args = TQStringList() );
/**
* Destructor.
diff --git a/kttsd/filters/xhtml2ssml/Doxyfile b/kttsd/filters/xhtml2ssml/Doxyfile
index 0061358..6313df1 100644
--- a/kttsd/filters/xhtml2ssml/Doxyfile
+++ b/kttsd/filters/xhtml2ssml/Doxyfile
@@ -17,7 +17,7 @@ ABBREVIATE_BRIEF = "The $name class" \
is \
provides \
specifies \
- contains \
+ tqcontains \
represents \
a \
an \
@@ -120,7 +120,7 @@ FILE_PATTERNS = *.c \
*.tlh \
*.diff \
*.patch \
- *.moc \
+ *.tqmoc \
*.xpm \
*.dox
RECURSIVE = yes
diff --git a/kttsd/filters/xhtml2ssml/xhtml2ssml.cpp b/kttsd/filters/xhtml2ssml/xhtml2ssml.cpp
index 5649cc9..916ec48 100644
--- a/kttsd/filters/xhtml2ssml/xhtml2ssml.cpp
+++ b/kttsd/filters/xhtml2ssml/xhtml2ssml.cpp
@@ -63,7 +63,7 @@ bool XHTMLToSSMLParser::startElement(const TQString &, const TQString &, const T
// append to the output string.
TQString toelement = m_xhtml2ssml[fromelement];
if(toelement)
- m_output.append(XMLElement::fromQString(toelement).startTag());
+ m_output.append(XMLElement::fromTQString(toelement).startTag());
return true;
}
@@ -71,7 +71,7 @@ bool XHTMLToSSMLParser::endElement(const TQString &, const TQString &, const TQS
TQString fromelement = qName;
TQString toelement = m_xhtml2ssml[fromelement];
if(toelement)
- m_output.append(XMLElement::fromQString(toelement).endTag());
+ m_output.append(XMLElement::fromTQString(toelement).endTag());
return true;
}
@@ -94,10 +94,10 @@ bool XHTMLToSSMLParser::readFileConfigEntry(const TQString &line) {
if(line.stripWhiteSpace().startsWith("#")) {
return true;
}
- // break into QStringList
+ // break into TQStringList
// the second parameter to split is the string, with all space simplified and all space around the : removed, i.e
// "something : somethingelse" -> "something:somethingelse"
- TQStringList keyvalue = TQStringList::split(":", line.simplifyWhiteSpace().replace(" :", ":").replace(": ", ":"));
+ TQStringList keyvalue = TQStringList::split(":", line.simplifyWhiteSpace().tqreplace(" :", ":").tqreplace(": ", ":"));
if(keyvalue.count() != 2)
return false;
m_xhtml2ssml[keyvalue[0]] = keyvalue[1];
diff --git a/kttsd/filters/xhtml2ssml/xhtml2ssml.h b/kttsd/filters/xhtml2ssml/xhtml2ssml.h
index 4668d90..a4eae56 100644
--- a/kttsd/filters/xhtml2ssml/xhtml2ssml.h
+++ b/kttsd/filters/xhtml2ssml/xhtml2ssml.h
@@ -25,7 +25,7 @@
#include <tqxml.h>
#include <tqmap.h>
-typedef TQMap<TQString, TQString> QStringMap;
+typedef TQMap<TQString, TQString> TQStringMap;
class TQString;
class XHTMLToSSMLParser : public TQXmlDefaultHandler {
@@ -53,7 +53,7 @@ public:
private:
/// Dict of xhtml tags -> ssml tags
- QStringMap m_xhtml2ssml;
+ TQStringMap m_xhtml2ssml;
/// The output of the conversion
TQString m_output;
};
diff --git a/kttsd/filters/xhtml2ssml/xmlelement.cpp b/kttsd/filters/xhtml2ssml/xmlelement.cpp
index 920fd57..45952ae 100644
--- a/kttsd/filters/xhtml2ssml/xmlelement.cpp
+++ b/kttsd/filters/xhtml2ssml/xmlelement.cpp
@@ -74,12 +74,12 @@ TQString XMLElement::attribute(const TQString &attr) {
return m_attrmapper[attr];
}
-TQString XMLElement::toQString() {
+TQString XMLElement::toTQString() {
TQString tag = startTag();
return tag.left(tag.length() - 1).right(tag.length() - 2);
}
-XMLElement XMLElement::fromQString(const TQString &str) {
+XMLElement XMLElement::fromTQString(const TQString &str) {
TQStringList sections = TQStringList::split(" ", str);
TQString tagname = sections[0];
XMLElement e(tagname.latin1());
@@ -91,7 +91,7 @@ XMLElement XMLElement::fromQString(const TQString &str) {
for(int i = 0; i < sectionsCount; ++i) {
TQStringList list = TQStringList::split("=", sections[i]);
if(list.count() != 2) {
- std::cerr << "XMLElement::fromQString: Cannot convert list: " << list.join("|") << ". `" << str << "' is not in valid format.\n";
+ std::cerr << "XMLElement::fromTQString: Cannot convert list: " << list.join("|") << ". `" << str << "' is not in valid format.\n";
return XMLElement(" ");
}
e.setAttribute(list[0], list[1].left(list[1].length() - 1).right(list[1].length() -2));
diff --git a/kttsd/filters/xhtml2ssml/xmlelement.h b/kttsd/filters/xhtml2ssml/xmlelement.h
index f92e933..11c7cef 100644
--- a/kttsd/filters/xhtml2ssml/xmlelement.h
+++ b/kttsd/filters/xhtml2ssml/xmlelement.h
@@ -75,11 +75,11 @@ public:
/// Had issues with TQMap and custom classes. For now you can just convert to/from TQString and use
/// That as the key/value pair.
/// @returns A TQString representation of the XMLAttribute.
- TQString toQString();
+ TQString toTQString();
/// Create an XMLElement from a TQString.
/// @param str The TQString to convert from. Must be of the following syntax- "foo name=\"bar\""
- static XMLElement fromQString(const TQString &str);
+ static XMLElement fromTQString(const TQString &str);
private:
/// The name of the tag.
diff --git a/kttsd/filters/xmltransformer/xhtml2ssml_simple.xsl b/kttsd/filters/xmltransformer/xhtml2ssml_simple.xsl
index 2c1f3be..f289252 100644
--- a/kttsd/filters/xmltransformer/xhtml2ssml_simple.xsl
+++ b/kttsd/filters/xmltransformer/xhtml2ssml_simple.xsl
@@ -52,22 +52,22 @@
</xsl:template>
<!-- H1, H2, H3, H4, H5, H6: ignore tag, speak content as sentence. -->
-<xsl:template match="*[contains('h1|h2|h3|h4|h5|h6|H1|H2|H3|H4|H5|H6|',concat(local-name(),'|'))]">
+<xsl:template match="*[tqcontains('h1|h2|h3|h4|h5|h6|H1|H2|H3|H4|H5|H6|',concat(local-name(),'|'))]">
<xsl:apply-templates/>
</xsl:template>
<!-- DFN, LI, DD, DT: ignore tag, speak content. -->
-<xsl:template match="*[contains('dfn|li|dd|dt|DFN|LI|DD|DT|',concat(local-name(),'|'))]">
+<xsl:template match="*[tqcontains('dfn|li|dd|dt|DFN|LI|DD|DT|',concat(local-name(),'|'))]">
<xsl:apply-templates/>
</xsl:template>
<!-- PRE, CODE, TT; ignore tag, speak content. -->
-<xsl:template match="*[contains('pre|code|tt|PRE|CODE|TT|',concat(local-name(),'|'))]">
+<xsl:template match="*[tqcontains('pre|code|tt|PRE|CODE|TT|',concat(local-name(),'|'))]">
<xsl:apply-templates/>
</xsl:template>
<!-- EM, STRONG, I, B, S, STRIKE, U: speak emphasized. -->
-<xsl:template match="*[contains('em|strong|i|b|s|strike|EM|STRONG|I|B|S|STRIKE|',concat(local-name(),'|'))]">
+<xsl:template match="*[tqcontains('em|strong|i|b|s|strike|EM|STRONG|I|B|S|STRIKE|',concat(local-name(),'|'))]">
<emphasis level="strong">
<xsl:apply-templates/>
</emphasis>
diff --git a/kttsd/filters/xmltransformer/xmltransformerconf.cpp b/kttsd/filters/xmltransformer/xmltransformerconf.cpp
index c70c449..dd4bb54 100644
--- a/kttsd/filters/xmltransformer/xmltransformerconf.cpp
+++ b/kttsd/filters/xmltransformer/xmltransformerconf.cpp
@@ -21,7 +21,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
******************************************************************************/
-// Qt includes.
+// TQt includes.
#include <tqstring.h>
#include <tqlayout.h>
@@ -43,17 +43,17 @@
/**
* Constructor
*/
-XmlTransformerConf::XmlTransformerConf( TQWidget *parent, const char *name, const TQStringList& /*args*/) :
- KttsFilterConf(parent, name)
+XmlTransformerConf::XmlTransformerConf( TQWidget *tqparent, const char *name, const TQStringList& /*args*/) :
+ KttsFilterConf(tqparent, name)
{
// kdDebug() << "XmlTransformerConf::XmlTransformerConf: Running" << endl;
// Create configuration widget.
- TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(),
+ TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "XmlTransformerConfWidgetLayout");
- layout->setAlignment (Qt::AlignTop);
+ tqlayout->tqsetAlignment (TQt::AlignTop);
m_widget = new XmlTransformerConfWidget(this, "XmlTransformerConfigWidget");
- layout->addWidget(m_widget);
+ tqlayout->addWidget(m_widget);
// Set up defaults.
defaults();
@@ -125,7 +125,7 @@ void XmlTransformerConf::save(KConfig* config, const TQString& configGroup){
config->writeEntry( "XsltprocPath", realFilePath( m_widget->xsltprocPath->url() ) );
config->writeEntry( "RootElement", m_widget->rootElementLineEdit->text() );
config->writeEntry( "DocType", m_widget->doctypeLineEdit->text() );
- config->writeEntry( "AppID", m_widget->appIdLineEdit->text().replace(" ", "") );
+ config->writeEntry( "AppID", m_widget->appIdLineEdit->text().tqreplace(" ", "") );
}
/**
@@ -170,13 +170,13 @@ bool XmlTransformerConf::supportsMultiInstance() { return true; }
TQString XmlTransformerConf::userPlugInName()
{
TQString filePath = realFilePath(m_widget->xsltprocPath->url());
- if (filePath.isEmpty()) return TQString::null;
- if (getLocation(filePath).isEmpty()) return TQString::null;
+ if (filePath.isEmpty()) return TQString();
+ if (getLocation(filePath).isEmpty()) return TQString();
filePath = realFilePath(m_widget->xsltPath->url());
- if (filePath.isEmpty()) return TQString::null;
- if (getLocation(filePath).isEmpty()) return TQString::null;
- if (!TQFileInfo(filePath).isFile()) return TQString::null;
+ if (filePath.isEmpty()) return TQString();
+ if (getLocation(filePath).isEmpty()) return TQString();
+ if (!TQFileInfo(filePath).isFile()) return TQString();
return m_widget->nameLineEdit->text();
}
diff --git a/kttsd/filters/xmltransformer/xmltransformerconf.h b/kttsd/filters/xmltransformer/xmltransformerconf.h
index caec175..c10b90b 100644
--- a/kttsd/filters/xmltransformer/xmltransformerconf.h
+++ b/kttsd/filters/xmltransformer/xmltransformerconf.h
@@ -24,7 +24,7 @@
#ifndef _XMLTRANSFORMERCONF_H_
#define _XMLTRANSFORMERCONF_H_
-// Qt includes.
+// TQt includes.
#include <tqwidget.h>
// KDE includes.
@@ -40,12 +40,13 @@
class XmlTransformerConf : public KttsFilterConf
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor
*/
- XmlTransformerConf( TQWidget *parent, const char *name, const TQStringList &args = TQStringList() );
+ XmlTransformerConf( TQWidget *tqparent, const char *name, const TQStringList &args = TQStringList() );
/**
* Destructor
diff --git a/kttsd/filters/xmltransformer/xmltransformerconfwidget.ui b/kttsd/filters/xmltransformer/xmltransformerconfwidget.ui
index 4975d9c..cd00de3 100644
--- a/kttsd/filters/xmltransformer/xmltransformerconfwidget.ui
+++ b/kttsd/filters/xmltransformer/xmltransformerconfwidget.ui
@@ -1,7 +1,7 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>XmlTransformerConfWidget</class>
<author>Gary Cramblitt &lt;garycramblitt@comcast.net&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>XmlTransformerConfWidget</cstring>
</property>
@@ -20,9 +20,9 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="0" column="1">
+ <widget class="TQLayoutWidget" row="0" column="1">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<vbox>
<property name="name">
@@ -57,22 +57,22 @@
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>nameLabel</cstring>
</property>
<property name="text">
<string>&amp;Name:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -83,14 +83,14 @@
<comment>What's this text</comment>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>xsltLabel</cstring>
</property>
<property name="text">
<string>&amp;XSLT file:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -100,14 +100,14 @@
<string>Enter the full path to an XML Style Language - Transforms (XSLT) stylesheet file. XSLT files usually end with extension .xsl.</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>xsltprocLabel</cstring>
</property>
<property name="text">
<string>xsltproc &amp;executable:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -119,7 +119,7 @@
</widget>
</vbox>
</widget>
- <widget class="QGroupBox" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQGroupBox" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>applyGroupBox</cstring>
</property>
@@ -133,9 +133,9 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="0" column="1">
+ <widget class="TQLayoutWidget" row="0" column="1">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<vbox>
<property name="name">
@@ -167,22 +167,22 @@
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>rootElementLabel</cstring>
</property>
<property name="text">
<string>&amp;Root element is:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -193,14 +193,14 @@
<comment>What's this text</comment>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>doctypeLabel</cstring>
</property>
<property name="text">
<string>or DOC&amp;TYPE is:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -210,14 +210,14 @@
<string>This filter will be applied only to text having the specified DOCTYPE specification. If blank, applies to all text. You may enter more than one DOCTYPE separated by commas. Example: "xhtml".</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>appIdLabel</cstring>
</property>
<property name="text">
- <string>and Application &amp;ID contains:</string>
+ <string>and Application &amp;ID tqcontains:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -233,7 +233,7 @@
</widget>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>kurlrequester.h</includehint>
diff --git a/kttsd/filters/xmltransformer/xmltransformerproc.cpp b/kttsd/filters/xmltransformer/xmltransformerproc.cpp
index b4b9f71..f9fc2e6 100644
--- a/kttsd/filters/xmltransformer/xmltransformerproc.cpp
+++ b/kttsd/filters/xmltransformer/xmltransformerproc.cpp
@@ -21,7 +21,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
******************************************************************************/
-// Qt includes.
+// TQt includes.
#include <tqfile.h>
#include <tqregexp.h>
@@ -44,8 +44,8 @@
/**
* Constructor.
*/
-XmlTransformerProc::XmlTransformerProc( TQObject *parent, const char *name, const TQStringList& ) :
- KttsFilterProc(parent, name)
+XmlTransformerProc::XmlTransformerProc( TQObject *tqparent, const char *name, const TQStringList& ) :
+ KttsFilterProc(tqparent, name)
{
m_xsltProc = 0;
}
@@ -198,7 +198,7 @@ bool XmlTransformerProc::init(KConfig* config, const TQString& configGroup)
found = false;
for ( uint ndx=0; ndx < m_appIdList.count(); ++ndx )
{
- if ( appIdStr.contains(m_appIdList[ndx]) )
+ if ( appIdStr.tqcontains(m_appIdList[ndx]) )
{
found = true;
break;
@@ -227,7 +227,7 @@ bool XmlTransformerProc::init(KConfig* config, const TQString& configGroup)
// This will change & inside a CDATA section, which is not good, and also within comments and
// processing instructions, which is OK because we don't speak those anyway.
TQString text = inputText;
- text.replace(TQRegExp("&(?!amp;)"),"&amp;");
+ text.tqreplace(TQRegExp("&(?!amp;)"),"&amp;");
*wstream << text;
inFile.close();
#if KDE_VERSION >= KDE_MAKE_VERSION (3,3,0)
@@ -282,7 +282,7 @@ void XmlTransformerProc::processOutput()
if (exitStatus != 0)
{
- kdDebug() << "XmlTransformerProc::processOutput: xsltproc abnormal exit. Status = " << exitStatus << endl;
+ kdDebug() << "XmlTransformerProc::processOutput: xsltproc abnormal exit. tqStatus = " << exitStatus << endl;
m_state = fsFinished;
TQFile::remove(m_outFilename);
emit filteringFinished();
@@ -346,7 +346,7 @@ void XmlTransformerProc::processOutput()
/*virtual*/ void XmlTransformerProc::ackFinished()
{
m_state = fsIdle;
- m_text = TQString::null;
+ m_text = TQString();
}
/**
@@ -373,13 +373,13 @@ void XmlTransformerProc::slotProcessExited(KProcess*)
void XmlTransformerProc::slotReceivedStdout(KProcess*, char* /*buffer*/, int /*buflen*/)
{
- // TQString buf = TQString::fromLatin1(buffer, buflen);
+ // TQString buf = TQString::tqfromLatin1(buffer, buflen);
// kdDebug() << "XmlTransformerProc::slotReceivedStdout: Received from xsltproc: " << buf << endl;
}
void XmlTransformerProc::slotReceivedStderr(KProcess*, char* buffer, int buflen)
{
- TQString buf = TQString::fromLatin1(buffer, buflen);
+ TQString buf = TQString::tqfromLatin1(buffer, buflen);
kdDebug() << "XmlTransformerProc::slotReceivedStderr: Received error from xsltproc: " << buf << endl;
}
diff --git a/kttsd/filters/xmltransformer/xmltransformerproc.h b/kttsd/filters/xmltransformer/xmltransformerproc.h
index d50adeb..4f8b82b 100644
--- a/kttsd/filters/xmltransformer/xmltransformerproc.h
+++ b/kttsd/filters/xmltransformer/xmltransformerproc.h
@@ -24,7 +24,7 @@
#ifndef _XMLTRANSFORMERPROC_H_
#define _XMLTRANSFORMERPROC_H_
-// Qt includes.
+// TQt includes.
#include <tqobject.h>
#include <tqstringlist.h>
@@ -36,12 +36,13 @@ class KProcess;
class XmlTransformerProc : virtual public KttsFilterProc
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor.
*/
- XmlTransformerProc( TQObject *parent, const char *name, const TQStringList &args = TQStringList() );
+ XmlTransformerProc( TQObject *tqparent, const char *name, const TQStringList &args = TQStringList() );
/**
* Destructor.