summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:20:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:20:30 +0000
commit28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c (patch)
treea2f011f22aa31d0839c6e2118501b7a6d2f2ae96
parent0285229d858c8f03cde7354c679a752598cf4515 (diff)
downloadtdeaccessibility-28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c.tar.gz
tdeaccessibility-28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1157633 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--kbstateapplet/kbstate.cpp148
-rw-r--r--kbstateapplet/kbstate.h86
-rw-r--r--kmag/kmag.cpp150
-rw-r--r--kmag/kmag.h12
-rw-r--r--kmag/kmagselrect.cpp158
-rw-r--r--kmag/kmagselrect.h56
-rw-r--r--kmag/kmagzoomview.cpp202
-rw-r--r--kmag/kmagzoomview.h74
-rw-r--r--kmousetool/kmousetool/kmousetool.cpp92
-rw-r--r--kmousetool/kmousetool/kmousetool.h16
-rw-r--r--kmousetool/kmousetool/main.cpp8
-rw-r--r--kmousetool/kmousetool/mtstroke.cpp6
-rw-r--r--kmouth/configwizard.cpp16
-rw-r--r--kmouth/configwizard.h4
-rw-r--r--kmouth/kmouth.cpp80
-rw-r--r--kmouth/kmouth.h6
-rw-r--r--kmouth/optionsdialog.cpp48
-rw-r--r--kmouth/optionsdialog.h8
-rw-r--r--kmouth/phrasebook/phrasebook.cpp146
-rw-r--r--kmouth/phrasebook/phrasebook.h72
-rw-r--r--kmouth/phrasebook/phrasebookdialog.cpp226
-rw-r--r--kmouth/phrasebook/phrasebookdialog.h58
-rw-r--r--kmouth/phrasebook/phrasebookparser.cpp22
-rw-r--r--kmouth/phrasebook/phrasebookparser.h24
-rw-r--r--kmouth/phrasebook/phrasetree.cpp126
-rw-r--r--kmouth/phrasebook/phrasetree.h40
-rw-r--r--kmouth/phraseedit.cpp4
-rw-r--r--kmouth/phraseedit.h4
-rw-r--r--kmouth/phraselist.cpp124
-rw-r--r--kmouth/phraselist.h32
-rw-r--r--kmouth/phraselistitem.cpp20
-rw-r--r--kmouth/phraselistitem.h10
-rw-r--r--kmouth/speech.cpp66
-rw-r--r--kmouth/speech.h14
-rw-r--r--kmouth/texttospeechconfigurationwidget.cpp26
-rw-r--r--kmouth/texttospeechconfigurationwidget.h6
-rw-r--r--kmouth/texttospeechsystem.cpp32
-rw-r--r--kmouth/texttospeechsystem.h16
-rw-r--r--kmouth/wordcompletion/creationsourcedetailsui.ui.h10
-rw-r--r--kmouth/wordcompletion/creationsourceui.ui.h4
-rw-r--r--kmouth/wordcompletion/dictionarycreationwizard.cpp132
-rw-r--r--kmouth/wordcompletion/dictionarycreationwizard.h40
-rw-r--r--kmouth/wordcompletion/kdedocsourceui.ui.h2
-rw-r--r--kmouth/wordcompletion/klanguagebutton.cpp96
-rw-r--r--kmouth/wordcompletion/klanguagebutton.h38
-rw-r--r--kmouth/wordcompletion/klanguagebuttonhelper.cpp26
-rw-r--r--kmouth/wordcompletion/klanguagebuttonhelper.h2
-rw-r--r--kmouth/wordcompletion/wordcompletion.cpp94
-rw-r--r--kmouth/wordcompletion/wordcompletion.h18
-rw-r--r--kmouth/wordcompletion/wordcompletionui.ui.h10
-rw-r--r--kmouth/wordcompletion/wordcompletionwidget.cpp120
-rw-r--r--kmouth/wordcompletion/wordcompletionwidget.h8
-rw-r--r--kmouth/wordcompletion/wordlist.cpp170
-rw-r--r--kmouth/wordcompletion/wordlist.h46
-rw-r--r--ksayit/Freeverb_plugin/freeverbsetupimpl.cpp6
-rw-r--r--ksayit/Freeverb_plugin/freeverbsetupimpl.h4
-rw-r--r--ksayit/Freeverb_plugin/ksayitfreeverblib.cpp18
-rw-r--r--ksayit/Freeverb_plugin/ksayitfreeverblib.h18
-rw-r--r--ksayit/KTTSD_Lib/kttsdlib.cpp32
-rw-r--r--ksayit/KTTSD_Lib/kttsdlib.h16
-rw-r--r--ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp12
-rw-r--r--ksayit/KTTSD_Lib/kttsdlibsetupimpl.h2
-rw-r--r--ksayit/KTTSD_Lib/kttsdlibtalker2.cpp30
-rw-r--r--ksayit/KTTSD_Lib/kttsdlibtalker2.h18
-rw-r--r--ksayit/src/DocTreeView.ui.h4
-rw-r--r--ksayit/src/Types.h22
-rw-r--r--ksayit/src/contextmenuhandler.cpp88
-rw-r--r--ksayit/src/contextmenuhandler.h46
-rw-r--r--ksayit/src/docbookclasses.cpp444
-rw-r--r--ksayit/src/docbookclasses.h136
-rw-r--r--ksayit/src/docbookgenerator.cpp120
-rw-r--r--ksayit/src/docbookgenerator.h36
-rw-r--r--ksayit/src/docbookparser.cpp132
-rw-r--r--ksayit/src/docbookparser.h30
-rw-r--r--ksayit/src/doctreeviewimpl.cpp268
-rw-r--r--ksayit/src/doctreeviewimpl.h30
-rw-r--r--ksayit/src/effectstack.cpp6
-rw-r--r--ksayit/src/fxpluginhandler.cpp46
-rw-r--r--ksayit/src/fxpluginhandler.h34
-rw-r--r--ksayit/src/fxsetupimpl.cpp20
-rw-r--r--ksayit/src/fxsetupimpl.h12
-rw-r--r--ksayit/src/ksayit.cpp196
-rw-r--r--ksayit/src/ksayit.h42
-rw-r--r--ksayit/src/ksayit_fxplugin.h10
-rw-r--r--ksayit/src/ksayit_ttsplugin.h22
-rw-r--r--ksayit/src/ksayitbookmarkhandler.cpp48
-rw-r--r--ksayit/src/ksayitbookmarkhandler.h20
-rw-r--r--ksayit/src/ksayitsystemtray.cpp58
-rw-r--r--ksayit/src/ksayitsystemtray.h40
-rw-r--r--ksayit/src/ksayitviewimpl.cpp12
-rw-r--r--ksayit/src/ksayitviewimpl.h16
-rw-r--r--ksayit/src/main.cpp2
-rw-r--r--ksayit/src/parasaxparser.cpp22
-rw-r--r--ksayit/src/parasaxparser.h18
-rw-r--r--ksayit/src/saxhandler.cpp56
-rw-r--r--ksayit/src/saxhandler.h46
-rw-r--r--ksayit/src/voicesetupdlg.cpp44
-rw-r--r--ksayit/src/voicesetupdlg.h8
-rw-r--r--kttsd/app-plugins/kate/katekttsd.cpp36
-rw-r--r--kttsd/app-plugins/kate/katekttsd.h10
-rw-r--r--kttsd/compat/interfaces/kspeech/kspeech.h102
-rw-r--r--kttsd/compat/interfaces/kspeech/kspeechsink.h22
-rw-r--r--kttsd/filters/main.cpp20
-rw-r--r--kttsd/filters/sbd/sbdconf.cpp124
-rw-r--r--kttsd/filters/sbd/sbdconf.h12
-rw-r--r--kttsd/filters/sbd/sbdproc.cpp214
-rw-r--r--kttsd/filters/sbd/sbdproc.h118
-rw-r--r--kttsd/filters/stringreplacer/stringreplacerconf.cpp282
-rw-r--r--kttsd/filters/stringreplacer/stringreplacerconf.h18
-rw-r--r--kttsd/filters/stringreplacer/stringreplacerproc.cpp60
-rw-r--r--kttsd/filters/stringreplacer/stringreplacerproc.h26
-rw-r--r--kttsd/filters/talkerchooser/talkerchooserconf.cpp84
-rw-r--r--kttsd/filters/talkerchooser/talkerchooserconf.h10
-rw-r--r--kttsd/filters/talkerchooser/talkerchooserproc.cpp16
-rw-r--r--kttsd/filters/talkerchooser/talkerchooserproc.h10
-rw-r--r--kttsd/filters/xhtml2ssml/main.cpp16
-rw-r--r--kttsd/filters/xhtml2ssml/xhtml2ssml.cpp34
-rw-r--r--kttsd/filters/xhtml2ssml/xhtml2ssml.h20
-rw-r--r--kttsd/filters/xhtml2ssml/xmlelement.cpp28
-rw-r--r--kttsd/filters/xhtml2ssml/xmlelement.h34
-rw-r--r--kttsd/filters/xmltransformer/xmltransformerconf.cpp50
-rw-r--r--kttsd/filters/xmltransformer/xmltransformerconf.h10
-rw-r--r--kttsd/filters/xmltransformer/xmltransformerproc.cpp58
-rw-r--r--kttsd/filters/xmltransformer/xmltransformerproc.h32
-rw-r--r--kttsd/kcmkttsmgr/addtalker.cpp76
-rw-r--r--kttsd/kcmkttsmgr/addtalker.h26
-rw-r--r--kttsd/kcmkttsmgr/kcmkttsmgr.cpp700
-rw-r--r--kttsd/kcmkttsmgr/kcmkttsmgr.h58
-rw-r--r--kttsd/kcmkttsmgr/selectevent.cpp54
-rw-r--r--kttsd/kcmkttsmgr/selectevent.h12
-rw-r--r--kttsd/kttsd/filtermgr.cpp74
-rw-r--r--kttsd/kttsd/filtermgr.h30
-rw-r--r--kttsd/kttsd/kttsd.cpp224
-rw-r--r--kttsd/kttsd/kttsd.h132
-rw-r--r--kttsd/kttsd/speaker.cpp156
-rw-r--r--kttsd/kttsd/speaker.h52
-rw-r--r--kttsd/kttsd/speechdata.cpp180
-rw-r--r--kttsd/kttsd/speechdata.h128
-rw-r--r--kttsd/kttsd/ssmlconvert.cpp68
-rw-r--r--kttsd/kttsd/ssmlconvert.h30
-rw-r--r--kttsd/kttsd/talkermgr.cpp72
-rw-r--r--kttsd/kttsd/talkermgr.h36
-rw-r--r--kttsd/kttsd/threadedplugin.cpp24
-rw-r--r--kttsd/kttsd/threadedplugin.h28
-rw-r--r--kttsd/kttsjobmgr/kttsjobmgr.cpp382
-rw-r--r--kttsd/kttsjobmgr/kttsjobmgr.h44
-rw-r--r--kttsd/kttsmgr/kttsmgr.cpp56
-rw-r--r--kttsd/kttsmgr/kttsmgr.h20
-rw-r--r--kttsd/libkttsd/filterconf.cpp38
-rw-r--r--kttsd/libkttsd/filterconf.h18
-rw-r--r--kttsd/libkttsd/filterproc.cpp18
-rw-r--r--kttsd/libkttsd/filterproc.h18
-rw-r--r--kttsd/libkttsd/notify.cpp62
-rw-r--r--kttsd/libkttsd/notify.h20
-rw-r--r--kttsd/libkttsd/player.h16
-rw-r--r--kttsd/libkttsd/pluginconf.cpp76
-rw-r--r--kttsd/libkttsd/pluginconf.h36
-rw-r--r--kttsd/libkttsd/pluginproc.cpp72
-rw-r--r--kttsd/libkttsd/pluginproc.h40
-rw-r--r--kttsd/libkttsd/selecttalkerdlg.cpp146
-rw-r--r--kttsd/libkttsd/selecttalkerdlg.h14
-rw-r--r--kttsd/libkttsd/stretcher.cpp14
-rw-r--r--kttsd/libkttsd/stretcher.h8
-rw-r--r--kttsd/libkttsd/talkercode.cpp112
-rw-r--r--kttsd/libkttsd/talkercode.h90
-rw-r--r--kttsd/libkttsd/testplayer.cpp28
-rw-r--r--kttsd/libkttsd/testplayer.h12
-rw-r--r--kttsd/libkttsd/utils.cpp20
-rw-r--r--kttsd/libkttsd/utils.h12
-rw-r--r--kttsd/players/akodeplayer/akodeplayer.cpp16
-rw-r--r--kttsd/players/akodeplayer/akodeplayer.h12
-rw-r--r--kttsd/players/alsaplayer/alsaplayer.cpp74
-rw-r--r--kttsd/players/alsaplayer/alsaplayer.h32
-rw-r--r--kttsd/players/artsplayer/artsplayer.cpp12
-rw-r--r--kttsd/players/artsplayer/artsplayer.h8
-rw-r--r--kttsd/players/gstplayer/gstreamerplayer.cpp22
-rw-r--r--kttsd/players/gstplayer/gstreamerplayer.h12
-rw-r--r--kttsd/plugins/command/commandconf.cpp70
-rw-r--r--kttsd/plugins/command/commandconf.h24
-rw-r--r--kttsd/plugins/command/commandproc.cpp92
-rw-r--r--kttsd/plugins/command/commandproc.h30
-rw-r--r--kttsd/plugins/epos/eposconf.cpp108
-rw-r--r--kttsd/plugins/epos/eposconf.h24
-rw-r--r--kttsd/plugins/epos/eposproc.cpp98
-rw-r--r--kttsd/plugins/epos/eposproc.h46
-rw-r--r--kttsd/plugins/festivalint/festivalintconf.cpp218
-rw-r--r--kttsd/plugins/festivalint/festivalintconf.h48
-rw-r--r--kttsd/plugins/festivalint/festivalintproc.cpp100
-rw-r--r--kttsd/plugins/festivalint/festivalintproc.h50
-rw-r--r--kttsd/plugins/flite/fliteconf.cpp52
-rw-r--r--kttsd/plugins/flite/fliteconf.h20
-rw-r--r--kttsd/plugins/flite/fliteproc.cpp50
-rw-r--r--kttsd/plugins/flite/fliteproc.h24
-rw-r--r--kttsd/plugins/freetts/freettsconf.cpp72
-rw-r--r--kttsd/plugins/freetts/freettsconf.h24
-rw-r--r--kttsd/plugins/freetts/freettsproc.cpp60
-rw-r--r--kttsd/plugins/freetts/freettsproc.h24
-rw-r--r--kttsd/plugins/hadifix/hadifixconf.cpp128
-rw-r--r--kttsd/plugins/hadifix/hadifixconf.h16
-rw-r--r--kttsd/plugins/hadifix/hadifixconfigui.ui.h14
-rw-r--r--kttsd/plugins/hadifix/hadifixproc.cpp94
-rw-r--r--kttsd/plugins/hadifix/hadifixproc.h32
-rw-r--r--kttsd/plugins/hadifix/initialconfig.h86
-rw-r--r--kttsd/plugins/hadifix/voicefileui.ui.h2
204 files changed, 6058 insertions, 6058 deletions
diff --git a/kbstateapplet/kbstate.cpp b/kbstateapplet/kbstate.cpp
index 05ee26a..09f6846 100644
--- a/kbstateapplet/kbstate.cpp
+++ b/kbstateapplet/kbstate.cpp
@@ -15,12 +15,12 @@
* along with this program; if not, write to the Free Software
*/
-#include <qpainter.h>
-#include <qtooltip.h>
-#include <qdrawutil.h>
-#include <qcursor.h>
-#include <qimage.h>
-#include <qpopupmenu.h>
+#include <tqpainter.h>
+#include <tqtooltip.h>
+#include <tqdrawutil.h>
+#include <tqcursor.h>
+#include <tqimage.h>
+#include <tqpopupmenu.h>
#include <kaboutapplication.h>
#include <kpopupmenu.h>
@@ -50,7 +50,7 @@ extern "C"
#include <X11/keysymdef.h>
#include <X11/extensions/XKB.h>
- KDE_EXPORT KPanelApplet* init(QWidget *parent, const QString& configFile)
+ KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("kbstateapplet");
KbStateApplet *applet = new KbStateApplet(configFile, KPanelApplet::Normal, KPanelApplet::About, parent, "kbstateapplet");
@@ -85,8 +85,8 @@ static ModifierKey modifierKeys[] = {
/********************************************************************/
-KbStateApplet::KbStateApplet(const QString& configFile, Type t, int actions,
- QWidget *parent, const char *name)
+KbStateApplet::KbStateApplet(const TQString& configFile, Type t, int actions,
+ TQWidget *parent, const char *name)
: KPanelApplet( configFile, t, actions, parent, name )
{
for (int i = 0; i < 8; i++) {
@@ -113,7 +113,7 @@ KbStateApplet::KbStateApplet(const QString& configFile, Type t, int actions,
accessxFeatures = 0;
//startTimer(100); // ten times a second
- connect(kapp, SIGNAL(kdisplayPaletteChanged()), SLOT(paletteChanged()));
+ connect(kapp, TQT_SIGNAL(kdisplayPaletteChanged()), TQT_SLOT(paletteChanged()));
kapp->installX11EventFilter (this);
int opcode_rtn, error_rtn;
@@ -139,27 +139,27 @@ void KbStateApplet::buildPopupMenu()
sizePopup->insertItem(i18n("Small"), 13);
sizePopup->insertItem(i18n("Medium"), 20);
sizePopup->insertItem(i18n("Large"), 26);
- connect(sizePopup,SIGNAL(activated(int)), this, SLOT(setIconDim(int)));
+ connect(sizePopup,TQT_SIGNAL(activated(int)), this, TQT_SLOT(setIconDim(int)));
showPopup=new KPopupMenu(this);
showPopup->setCheckable( true );
- modifierItem=showPopup->insertItem(i18n("Modifier Keys"), this, SLOT(toggleModifier()));
- lockkeysItem=showPopup->insertItem(i18n("Lock Keys"), this, SLOT(toggleLockkeys()));
- mouseItem=showPopup->insertItem(i18n("Mouse Status"), this, SLOT(toggleMouse()));
- accessxItem=showPopup->insertItem(i18n("AccessX Status"), this, SLOT(toggleAccessX()));
+ modifierItem=showPopup->insertItem(i18n("Modifier Keys"), this, TQT_SLOT(toggleModifier()));
+ lockkeysItem=showPopup->insertItem(i18n("Lock Keys"), this, TQT_SLOT(toggleLockkeys()));
+ mouseItem=showPopup->insertItem(i18n("Mouse Status"), this, TQT_SLOT(toggleMouse()));
+ accessxItem=showPopup->insertItem(i18n("AccessX Status"), this, TQT_SLOT(toggleAccessX()));
popup = new KPopupMenu(this);
popup->setCheckable( true );
popup->insertTitle(0, i18n("Keyboard Status Applet"));
popup->insertItem(i18n("Set Icon Size"),sizePopup);
fillSpaceItem = popup->insertItem(i18n("Fill Available Space"),
- this, SLOT(toggleFillSpace()));
+ this, TQT_SLOT(toggleFillSpace()));
popup->insertItem(i18n("Show"),showPopup);
- popup->insertItem(i18n("Configure AccessX Features..."), this, SLOT(configureAccessX()));
- popup->insertItem(i18n("Configure Keyboard..."), this, SLOT(configureKeyboard()));
- popup->insertItem(i18n("Configure Mouse..."), this, SLOT(configureMouse()));
+ popup->insertItem(i18n("Configure AccessX Features..."), this, TQT_SLOT(configureAccessX()));
+ popup->insertItem(i18n("Configure Keyboard..."), this, TQT_SLOT(configureKeyboard()));
+ popup->insertItem(i18n("Configure Mouse..."), this, TQT_SLOT(configureMouse()));
popup->insertSeparator();
- popup->insertItem(i18n("About"), this, SLOT(about()));
+ popup->insertItem(i18n("About"), this, TQT_SLOT(about()));
setCustomMenu(popup);
updateMenu();
}
@@ -263,7 +263,7 @@ int KbStateApplet::heightForWidth(int w) const {
return length*size;
}
-void KbStateApplet::mousePressEvent(QMouseEvent *e) {
+void KbStateApplet::mousePressEvent(TQMouseEvent *e) {
if (e->button() == RightButton)
popup->popup(e->globalPos());
}
@@ -286,8 +286,8 @@ void KbStateApplet::toggleFillSpace() {
emit updateLayout();
}
-void KbStateApplet::resizeEvent( QResizeEvent*e ) {
- QWidget::resizeEvent(e);
+void KbStateApplet::resizeEvent( TQResizeEvent*e ) {
+ TQWidget::resizeEvent(e);
layout();
}
@@ -546,9 +546,9 @@ void KbStateApplet::initMasks() {
}
if ((map <= 7) && !(icons[map])) {
icons[map] = new KeyIcon (i, instance, this, modifierKeys[i].name);
- QToolTip::add (icons[map], i18n (modifierKeys[i].name));
- connect (icons[map], SIGNAL(stateChangeRequest (KeyIcon*,bool,bool)),
- SLOT(stateChangeRequest (KeyIcon*,bool,bool)));
+ TQToolTip::add (icons[map], i18n (modifierKeys[i].name));
+ connect (icons[map], TQT_SIGNAL(stateChangeRequest (KeyIcon*,bool,bool)),
+ TQT_SLOT(stateChangeRequest (KeyIcon*,bool,bool)));
if (modifierKeys[i].isModifier)
modifiers.append(icons[map]);
else
@@ -623,7 +623,7 @@ bool KbStateApplet::x11Event (XEvent *evt) {
return false;
}
-void KbStateApplet::timerEvent(QTimerEvent*) {
+void KbStateApplet::timerEvent(TQTimerEvent*) {
XkbStateRec state_return;
XkbGetState (this->x11Display(), XkbUseCoreKbd, &state_return);
unsigned char latched = XkbStateMods (&state_return);
@@ -747,7 +747,7 @@ void KbStateApplet::saveConfig()
/********************************************************************/
KeyIcon::KeyIcon (int keyId, KInstance *instance,
- QWidget *parent, const char *name)
+ TQWidget *parent, const char *name)
: StatusIcon (modifierKeys[keyId].name, parent, name) {
this->instance = instance;
this->keyId = keyId;
@@ -755,7 +755,7 @@ KeyIcon::KeyIcon (int keyId, KInstance *instance,
isLocked = false;
isLatched = false;
updateImages ();
- connect (this, SIGNAL(clicked()), SLOT(clickedSlot()));
+ connect (this, TQT_SIGNAL(clicked()), TQT_SLOT(clickedSlot()));
}
KeyIcon::~KeyIcon () {
@@ -777,9 +777,9 @@ void KeyIcon::clickedSlot () {
}
-void KeyIcon::resizeEvent( QResizeEvent*e )
+void KeyIcon::resizeEvent( TQResizeEvent*e )
{
- QWidget::resizeEvent(e);
+ TQWidget::resizeEvent(e);
updateImages();
}
@@ -791,7 +791,7 @@ void KeyIcon::updateImages () {
latched = instance->iconLoader()->loadIcon(modifierKeys[keyId].icon, KIcon::NoGroup, size-4);
unlatched = instance->iconLoader()->loadIcon(modifierKeys[keyId].icon, KIcon::NoGroup, size-4);
- QImage img = latched.convertToImage();
+ TQImage img = latched.convertToImage();
KIconEffect::colorize(img, KGlobalSettings::highlightedTextColor(), 1.0);
latched.convertFromImage (img);
@@ -803,8 +803,8 @@ void KeyIcon::updateImages () {
update();
}
-void KeyIcon::drawButton (QPainter *p) {
- QColor black;
+void KeyIcon::drawButton (TQPainter *p) {
+ TQColor black;
int x = (width()-locked.width())/2;
int y = (height()-locked.height())/2;
@@ -824,12 +824,12 @@ void KeyIcon::drawButton (QPainter *p) {
black = KGlobalSettings::textColor();
}
- QString text = i18n(modifierKeys[keyId].text);
+ TQString text = i18n(modifierKeys[keyId].text);
if (!text.isEmpty() && !text.isNull()) {
- QFont font = KGlobalSettings::generalFont();
- font.setWeight(QFont::Black);
- QFontMetrics metrics(font);
- QRect rect = metrics.boundingRect (text);
+ TQFont font = KGlobalSettings::generalFont();
+ font.setWeight(TQFont::Black);
+ TQFontMetrics metrics(font);
+ TQRect rect = metrics.boundingRect (text);
int size;
if (!strcmp(modifierKeys[keyId].name, "Alt Graph"))
size = rect.width()>rect.height()?rect.width():rect.height();
@@ -855,14 +855,14 @@ void KeyIcon::drawButton (QPainter *p) {
/********************************************************************/
-MouseIcon::MouseIcon (KInstance *instance, QWidget *parent, const char *name)
+MouseIcon::MouseIcon (KInstance *instance, TQWidget *parent, const char *name)
: StatusIcon ("", parent, name)
{
this->instance = instance;
state = 0;
activekey = 0;
updateImages ();
- connect (this, SIGNAL(clicked()), SLOT(clickedSlot()));
+ connect (this, TQT_SIGNAL(clicked()), TQT_SLOT(clickedSlot()));
}
MouseIcon::~MouseIcon () {
@@ -880,17 +880,17 @@ void MouseIcon::setActiveKey (int activekey) {
update();
}
-void MouseIcon::resizeEvent( QResizeEvent*e )
+void MouseIcon::resizeEvent( TQResizeEvent*e )
{
- QWidget::resizeEvent(e);
+ TQWidget::resizeEvent(e);
updateImages();
}
-QPixmap loadIcon(KInstance *instance, int size, QColor color, QString name) {
+TQPixmap loadIcon(KInstance *instance, int size, TQColor color, TQString name) {
KIconLoader *loader = instance->iconLoader();
- QPixmap result = loader->loadIcon(name, KIcon::NoGroup, size);
+ TQPixmap result = loader->loadIcon(name, KIcon::NoGroup, size);
- QImage img = result.convertToImage();
+ TQImage img = result.convertToImage();
KIconEffect::colorize(img, color, 1.0);
result.convertFromImage (img);
@@ -900,8 +900,8 @@ QPixmap loadIcon(KInstance *instance, int size, QColor color, QString name) {
void MouseIcon::updateImages () {
int size = width()<height() ? width() : height();
- QColor textcolor = KGlobalSettings::textColor();
- QColor basecolor = KGlobalSettings::baseColor();
+ TQColor textcolor = KGlobalSettings::textColor();
+ TQColor basecolor = KGlobalSettings::baseColor();
mouse = loadIcon (instance, size, textcolor, "kbstate_mouse");
leftSelected = loadIcon (instance, size, textcolor,
"kbstate_mouse_left_selected");
@@ -922,7 +922,7 @@ void MouseIcon::updateImages () {
update();
}
-void MouseIcon::drawButton (QPainter *p) {
+void MouseIcon::drawButton (TQPainter *p) {
p->drawPixmap(0,0, mouse);
if ((state & Button1Mask) != 0)
p->drawPixmap(0,0, leftSelected);
@@ -956,15 +956,15 @@ void MouseIcon::drawButton (QPainter *p) {
/********************************************************************/
-TimeoutIcon::TimeoutIcon (KInstance *instance, const QString &text,
- const QString &featurename,
- QWidget *parent, const char *name)
+TimeoutIcon::TimeoutIcon (KInstance *instance, const TQString &text,
+ const TQString &featurename,
+ TQWidget *parent, const char *name)
: StatusIcon (text, parent, name) {
this->instance = instance;
this->featurename = featurename;
glyth = " ";
setImage (featurename);
- connect (&timer, SIGNAL(timeout()), this, SLOT(timeout()));
+ connect (&timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout()));
}
TimeoutIcon::~TimeoutIcon () {
@@ -975,19 +975,19 @@ void TimeoutIcon::update () {
if (pixmap.width() != size)
pixmap = instance->iconLoader()->loadIcon(iconname, KIcon::NoGroup, size);
- QImage img = pixmap.convertToImage();
+ TQImage img = pixmap.convertToImage();
KIconEffect::colorize(img, KGlobalSettings::textColor(), 1.0);
pixmap.convertFromImage (img);
image = pixmap;
- QWidget::update();
+ TQWidget::update();
}
-void TimeoutIcon::setGlyth (const QString &glyth) {
+void TimeoutIcon::setGlyth (const TQString &glyth) {
timer.stop();
this->glyth = glyth;
- QImage img = pixmap.convertToImage();
+ TQImage img = pixmap.convertToImage();
KIconEffect::colorize(img, KGlobalSettings::textColor(), 1.0);
pixmap.convertFromImage (img);
@@ -995,14 +995,14 @@ void TimeoutIcon::setGlyth (const QString &glyth) {
update();
}
-void TimeoutIcon::setImage (const QString &name, int timeout) {
+void TimeoutIcon::setImage (const TQString &name, int timeout) {
timer.stop();
iconname = name;
if (!name.isNull() && !name.isEmpty()) {
int size = width()<height() ? width() : height();
pixmap = instance->iconLoader()->loadIcon(iconname, KIcon::NoGroup, size);
- QImage img = pixmap.convertToImage();
+ TQImage img = pixmap.convertToImage();
KIconEffect::colorize(img, KGlobalSettings::textColor(), 1.0);
pixmap.convertFromImage (img);
@@ -1019,8 +1019,8 @@ void TimeoutIcon::timeout () {
}
-void TimeoutIcon::drawButton (QPainter *p) {
- QString text = glyth;
+void TimeoutIcon::drawButton (TQPainter *p) {
+ TQString text = glyth;
int count = 1;
int factor = 19;
@@ -1032,10 +1032,10 @@ void TimeoutIcon::drawButton (QPainter *p) {
factor = 64;
}
- QFont font = KGlobalSettings::generalFont();
- font.setWeight(QFont::Black);
- QFontMetrics metrics(font);
- QRect rect = metrics.boundingRect (text);
+ TQFont font = KGlobalSettings::generalFont();
+ font.setWeight(TQFont::Black);
+ TQFontMetrics metrics(font);
+ TQRect rect = metrics.boundingRect (text);
int size = count*rect.width() > rect.height()
? count*rect.width() : rect.height();
if (font.pixelSize() != -1)
@@ -1049,13 +1049,13 @@ void TimeoutIcon::drawButton (QPainter *p) {
p->drawText (0,0, width()/2, height()/2, Qt::AlignCenter, text);
}
else {
- QColor t = KGlobalSettings::textColor();
- QColor b = KGlobalSettings::baseColor();
- p->setPen (QColor ((2*t.red()+3*b.red())/5,
+ TQColor t = KGlobalSettings::textColor();
+ TQColor b = KGlobalSettings::baseColor();
+ p->setPen (TQColor ((2*t.red()+3*b.red())/5,
(2*t.green()+3*b.green())/5,
(2*t.blue()+3*b.blue())/5));
p->drawText (width()/2,0, width()/2, height(), Qt::AlignCenter, text);
- p->setPen (QColor ((2*t.red()+b.red())/3,
+ p->setPen (TQColor ((2*t.red()+b.red())/3,
(2*t.green()+b.green())/3,
(2*t.blue()+b.blue())/3));
p->drawText (0,0, width(), height(), Qt::AlignCenter, text);
@@ -1066,14 +1066,14 @@ void TimeoutIcon::drawButton (QPainter *p) {
/********************************************************************/
-StatusIcon::StatusIcon (const QString &text, QWidget *parent, const char *name)
- : QPushButton (text, parent, name) {
- setSizePolicy(QSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored));
+StatusIcon::StatusIcon (const TQString &text, TQWidget *parent, const char *name)
+ : TQPushButton (text, parent, name) {
+ setSizePolicy(TQSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Ignored));
}
StatusIcon::~StatusIcon () {
}
-QSize StatusIcon::minimumSizeHint () const {
- return QSize (0,0);
+TQSize StatusIcon::minimumSizeHint () const {
+ return TQSize (0,0);
}
diff --git a/kbstateapplet/kbstate.h b/kbstateapplet/kbstate.h
index edcd3dc..5cf74ca 100644
--- a/kbstateapplet/kbstate.h
+++ b/kbstateapplet/kbstate.h
@@ -19,9 +19,9 @@
#define __kbstate_h__
#include <kpanelapplet.h>
-#include <qpushbutton.h>
-#include <qptrlist.h>
-#include <qtimer.h>
+#include <tqpushbutton.h>
+#include <tqptrlist.h>
+#include <tqtimer.h>
extern "C"
{
@@ -33,37 +33,37 @@ class QLabel;
class QGridLayout;
class KPopupMenu;
-class StatusIcon : public QPushButton {
+class StatusIcon : public TQPushButton {
Q_OBJECT
public:
- StatusIcon (const QString &text, QWidget *parent, const char *name=0);
+ StatusIcon (const TQString &text, TQWidget *parent, const char *name=0);
~StatusIcon ();
- QSize minimumSizeHint () const;
+ TQSize minimumSizeHint () const;
};
-typedef QPtrList<StatusIcon> IconList;
+typedef TQPtrList<StatusIcon> IconList;
class TimeoutIcon : public StatusIcon {
Q_OBJECT
public:
- TimeoutIcon (KInstance *instance, const QString &text,
- const QString &featurename,
- QWidget *parent, const char *name=0);
+ TimeoutIcon (KInstance *instance, const TQString &text,
+ const TQString &featurename,
+ TQWidget *parent, const char *name=0);
~TimeoutIcon ();
void update ();
- void setGlyth (const QString &glyth);
- void setImage (const QString &name, int timeout = 0);
+ void setGlyth (const TQString &glyth);
+ void setImage (const TQString &name, int timeout = 0);
- void drawButton (QPainter *p);
+ void drawButton (TQPainter *p);
private:
- QString glyth;
- QString iconname;
- QString featurename;
- QPixmap pixmap;
- QPixmap image;
- QTimer timer;
+ TQString glyth;
+ TQString iconname;
+ TQString featurename;
+ TQPixmap pixmap;
+ TQPixmap image;
+ TQTimer timer;
KInstance *instance;
private slots:
@@ -74,25 +74,25 @@ class KeyIcon : public StatusIcon {
Q_OBJECT
public:
KeyIcon (int keyId, KInstance *instance,
- QWidget *parent, const char *name=0);
+ TQWidget *parent, const char *name=0);
~KeyIcon ();
void setState (bool latched, bool locked);
- void drawButton (QPainter *p);
+ void drawButton (TQPainter *p);
void updateImages ();
signals:
void stateChangeRequest (KeyIcon *source, bool latched, bool locked);
protected:
- void resizeEvent(QResizeEvent*);
+ void resizeEvent(TQResizeEvent*);
private slots:
void clickedSlot();
private:
- QPixmap locked;
- QPixmap latched;
- QPixmap unlatched;
+ TQPixmap locked;
+ TQPixmap latched;
+ TQPixmap unlatched;
bool isLatched;
bool isLocked;
bool tristate;
@@ -103,27 +103,27 @@ private:
class MouseIcon : public StatusIcon {
Q_OBJECT
public:
- MouseIcon (KInstance *instance, QWidget *parent, const char *name=0);
+ MouseIcon (KInstance *instance, TQWidget *parent, const char *name=0);
~MouseIcon ();
void setState (int state);
void setActiveKey (int activekey);
- void drawButton (QPainter *p);
+ void drawButton (TQPainter *p);
void updateImages ();
protected:
- void resizeEvent(QResizeEvent*);
+ void resizeEvent(TQResizeEvent*);
private:
- QPixmap mouse;
- QPixmap leftSelected;
- QPixmap middleSelected;
- QPixmap rightSelected;
- QPixmap leftDot;
- QPixmap middleDot;
- QPixmap rightDot;
- QPixmap leftDotSelected;
- QPixmap middleDotSelected;
- QPixmap rightDotSelected;
+ TQPixmap mouse;
+ TQPixmap leftSelected;
+ TQPixmap middleSelected;
+ TQPixmap rightSelected;
+ TQPixmap leftDot;
+ TQPixmap middleDot;
+ TQPixmap rightDot;
+ TQPixmap leftDotSelected;
+ TQPixmap middleDotSelected;
+ TQPixmap rightDotSelected;
int state, activekey;
KInstance *instance;
};
@@ -132,17 +132,17 @@ class KbStateApplet : public KPanelApplet {
Q_OBJECT
public:
- KbStateApplet(const QString& configFile, Type t = Normal, int actions = 0,
- QWidget *parent = 0, const char *name = 0);
+ KbStateApplet(const TQString& configFile, Type t = Normal, int actions = 0,
+ TQWidget *parent = 0, const char *name = 0);
~KbStateApplet();
int widthForHeight(int height) const;
int heightForWidth(int width) const;
protected:
- void mousePressEvent(QMouseEvent *e);
- void timerEvent(QTimerEvent*);
- void resizeEvent(QResizeEvent*);
+ void mousePressEvent(TQMouseEvent *e);
+ void timerEvent(TQTimerEvent*);
+ void resizeEvent(TQResizeEvent*);
bool x11Event (XEvent *);
public slots:
diff --git a/kmag/kmag.cpp b/kmag/kmag.cpp
index f385c13..12d660c 100644
--- a/kmag/kmag.cpp
+++ b/kmag/kmag.cpp
@@ -18,15 +18,15 @@
***************************************************************************/
// include files for QT
-#include <qdir.h>
-#include <qprinter.h>
-#include <qpainter.h>
-#include <qlayout.h>
-#include <qclipboard.h>
-#include <qdragobject.h>
-#include <qwhatsthis.h>
-#include <qtooltip.h>
-#include <qpopupmenu.h>
+#include <tqdir.h>
+#include <tqprinter.h>
+#include <tqpainter.h>
+#include <tqlayout.h>
+#include <tqclipboard.h>
+#include <tqdragobject.h>
+#include <tqwhatsthis.h>
+#include <tqtooltip.h>
+#include <tqpopupmenu.h>
#include <kdeversion.h>
@@ -57,7 +57,7 @@
#include <kwin.h>
#if KDE_VERSION < 220
-#include <qprinter.h>
+#include <tqprinter.h>
#else
#include <kprinter.h>
#endif
@@ -74,7 +74,7 @@
#endif
#endif
-KmagApp::KmagApp(QWidget* , const char* name)
+KmagApp::KmagApp(TQWidget* , const char* name)
: KMainWindow(0, name, WStyle_MinMax | WType_TopLevel | WStyle_StaysOnTop | WDestructiveClose | WStyle_ContextHelp),
m_defaultMouseCursorType(2)
{
@@ -127,91 +127,91 @@ KmagApp::~KmagApp()
void KmagApp::initActions()
{
fileNewWindow = new KAction(i18n("New &Window"), "window_new", KStdAccel::openNew(), this,
- SLOT(slotFileNewWindow()), actionCollection(),"new_window");
+ TQT_SLOT(slotFileNewWindow()), actionCollection(),"new_window");
fileNewWindow->setToolTip(i18n("Open a new KMagnifier window"));
refreshSwitch = new KAction(i18n("&Stop"), "stop", KStdAccel::reload(), this,
- SLOT(slotToggleRefresh()), actionCollection(), "start_stop_refresh");
+ TQT_SLOT(slotToggleRefresh()), actionCollection(), "start_stop_refresh");
refreshSwitch->setToolTip(i18n("Click to stop window refresh"));
refreshSwitch->setWhatsThis(i18n("Clicking on this icon will <b>start</b> / <b>stop</b>\
updating of the display. Stopping the update will zero the processing power\
required (CPU usage)"));
m_pSnapshot = new KAction(i18n("&Save Snapshot As..."), "ksnapshot", KStdAccel::save(), this,
- SLOT(saveZoomPixmap()), actionCollection(),"snapshot");
+ TQT_SLOT(saveZoomPixmap()), actionCollection(),"snapshot");
m_pSnapshot->setWhatsThis(i18n("Saves the zoomed view to an image file."));
m_pSnapshot->setToolTip(i18n("Save image to a file"));
- m_pPrint = KStdAction::print(this, SLOT(slotFilePrint()), actionCollection(), "print");
+ m_pPrint = KStdAction::print(this, TQT_SLOT(slotFilePrint()), actionCollection(), "print");
m_pPrint->setWhatsThis(i18n("Click on this button to print the current zoomed view."));
- m_pQuit = KStdAction::quit(this, SLOT(slotFileQuit()), actionCollection(), "quit");
+ m_pQuit = KStdAction::quit(this, TQT_SLOT(slotFileQuit()), actionCollection(), "quit");
m_pQuit->setStatusText(i18n("Quits the application"));
m_pQuit->setWhatsThis (i18n("Quits the application"));
- m_pCopy = KStdAction::copy(this, SLOT(copyToClipBoard()), actionCollection(), "copy");
+ m_pCopy = KStdAction::copy(this, TQT_SLOT(copyToClipBoard()), actionCollection(), "copy");
m_pCopy->setWhatsThis(i18n("Click on this button to copy the current zoomed view to the clipboard which you can paste in other applications."));
m_pCopy->setToolTip(i18n("Copy zoomed image to clipboard"));
m_pShowMenu = new KToggleAction(i18n("Show &Menu"), "showmenu", CTRL+Key_M, this,
- SLOT(slotShowMenu()), actionCollection(),"show_menu");
+ TQT_SLOT(slotShowMenu()), actionCollection(),"show_menu");
#ifdef havesetCheckedState
m_pShowMenu->setCheckedState(i18n("Hide &Menu"));
#endif
m_pShowMainToolBar = new KToggleAction(i18n("Show Main &Toolbar"), 0, 0, this,
- SLOT(slotShowMainToolBar()), actionCollection(),"show_mainToolBar");
+ TQT_SLOT(slotShowMainToolBar()), actionCollection(),"show_mainToolBar");
#ifdef havesetCheckedState
m_pShowMainToolBar->setCheckedState(i18n("Hide Main &Toolbar"));
#endif
m_pShowViewToolBar = new KToggleAction(i18n("Show &View Toolbar"), 0, 0, this,
- SLOT(slotShowViewToolBar()), actionCollection(),"show_viewToolBar");
+ TQT_SLOT(slotShowViewToolBar()), actionCollection(),"show_viewToolBar");
#ifdef havesetCheckedState
m_pShowViewToolBar->setCheckedState(i18n("Hide &View Toolbar"));
#endif
m_pShowSettingsToolBar = new KToggleAction(i18n("Show &Settings Toolbar"), 0, 0, this,
- SLOT(slotShowSettingsToolBar()), actionCollection(),"show_settingsToolBar");
+ TQT_SLOT(slotShowSettingsToolBar()), actionCollection(),"show_settingsToolBar");
#ifdef havesetCheckedState
m_pShowSettingsToolBar->setCheckedState(i18n("Hide &Settings Toolbar"));
#endif
m_modeFollowMouse = new KRadioAction(i18n("&Follow Mouse Mode"), "followmouse", Key_F1, this,
- SLOT(slotModeFollowMouse()), actionCollection(), "mode_followmouse");
+ TQT_SLOT(slotModeFollowMouse()), actionCollection(), "mode_followmouse");
m_modeFollowMouse->setToolTip(i18n("Magnify mouse area into window"));
m_modeFollowMouse->setWhatsThis(i18n("In this mode the area around the mouse cursor is shown in a normal window."));
m_modeSelWin = new KRadioAction(i18n("S&election Window Mode"), "window", Key_F2, this,
- SLOT(slotModeSelWin()), actionCollection(), "mode_selectionwindow");
+ TQT_SLOT(slotModeSelWin()), actionCollection(), "mode_selectionwindow");
m_modeSelWin->setToolTip(i18n("Magnify selected area into window"));
m_modeSelWin->setWhatsThis(i18n("In this mode a selection window is opened. The selected area is shown in a normal window."));
m_modeEdgeTop = new KRadioAction(i18n("&Top Screen Edge Mode"), 0, 0, this,
- SLOT(slotModeEdgeTop()), actionCollection(),"mode_edgetop");
+ TQT_SLOT(slotModeEdgeTop()), actionCollection(),"mode_edgetop");
m_modeEdgeTop->setToolTip(i18n("Magnify mouse area to top screen edge"));
m_modeEdgeTop->setWhatsThis(i18n("In this mode the area around the mouse is magnified to the top screen edge."));
m_modeEdgeLeft = new KRadioAction(i18n("&Left Screen Edge Mode"), 0, 0, this,
- SLOT(slotModeEdgeLeft()), actionCollection(),"mode_edgeleft");
+ TQT_SLOT(slotModeEdgeLeft()), actionCollection(),"mode_edgeleft");
m_modeEdgeLeft->setToolTip(i18n("Magnify mouse area to left screen edge"));
m_modeEdgeLeft->setWhatsThis(i18n("In this mode the area around the mouse is magnified to the left screen edge."));
m_modeEdgeRight = new KRadioAction(i18n("&Right Screen Edge Mode"), 0, 0, this,
- SLOT(slotModeEdgeRight()), actionCollection(),"mode_edgeright");
+ TQT_SLOT(slotModeEdgeRight()), actionCollection(),"mode_edgeright");
m_modeEdgeRight->setToolTip(i18n("Magnify mouse area to right screen edge"));
m_modeEdgeRight->setWhatsThis(i18n("In this mode the area around the mouse is magnified to the right screen edge."));
m_modeEdgeBottom = new KRadioAction(i18n("&Bottom Screen Edge Mode"), 0, 0, this,
- SLOT(slotModeEdgeBottom()), actionCollection(),"mode_edgebottom");
+ TQT_SLOT(slotModeEdgeBottom()), actionCollection(),"mode_edgebottom");
m_modeEdgeBottom->setToolTip(i18n("Magnify mouse area to bottom screen edge"));
m_modeEdgeBottom->setWhatsThis(i18n("In this mode the area around the mouse is magnified to the bottom screen edge."));
m_hideCursor = new KToggleAction(i18n("Hide Mouse &Cursor"), "hidemouse", Key_F4, this,
- SLOT(slotToggleHideCursor()), actionCollection(), "hidecursor");
+ TQT_SLOT(slotToggleHideCursor()), actionCollection(), "hidecursor");
#ifdef havesetCheckedState
m_hideCursor->setCheckedState(i18n("Show Mouse &Cursor"));
#endif
m_hideCursor->setToolTip(i18n("Hide the mouse cursor"));
- m_pZoomIn = KStdAction::zoomIn(this, SLOT(zoomIn()), actionCollection(), "zoom_in");
+ m_pZoomIn = KStdAction::zoomIn(this, TQT_SLOT(zoomIn()), actionCollection(), "zoom_in");
m_pZoomIn->setWhatsThis(i18n("Click on this button to <b>zoom-in</b> on the selected region."));
m_pZoomBox = new KSelectAction(i18n("&Zoom"),0,actionCollection(),"zoom");
@@ -219,11 +219,11 @@ void KmagApp::initActions()
m_pZoomBox->setWhatsThis(i18n("Select the zoom factor."));
m_pZoomBox->setToolTip(i18n("Zoom factor"));
- m_pZoomOut = KStdAction::zoomOut(this, SLOT(zoomOut()), actionCollection(), "zoom_out");
+ m_pZoomOut = KStdAction::zoomOut(this, TQT_SLOT(zoomOut()), actionCollection(), "zoom_out");
m_pZoomOut->setWhatsThis(i18n("Click on this button to <b>zoom-out</b> on the selected region."));
m_pInvert = new KToggleAction(i18n("&Invert Colors"), 0, Key_F6, this,
- SLOT(slotToggleInvert()), actionCollection(), "invert");
+ TQT_SLOT(slotToggleInvert()), actionCollection(), "invert");
m_pRotationBox = new KSelectAction(i18n("&Rotation"),0,actionCollection(),"rotation");
m_pRotationBox->setItems(rotationArrayString);
@@ -232,8 +232,8 @@ void KmagApp::initActions()
// KHelpMenu *newHelpMenu = new KHelpMenu(this, KGlobal::instance()->aboutData());
- m_keyConf = KStdAction::keyBindings( this, SLOT( slotConfKeys() ), actionCollection(), "key_conf");
- m_toolConf = KStdAction::configureToolbars( this, SLOT( slotEditToolbars() ),
+ m_keyConf = KStdAction::keyBindings( this, TQT_SLOT( slotConfKeys() ), actionCollection(), "key_conf");
+ m_toolConf = KStdAction::configureToolbars( this, TQT_SLOT( slotEditToolbars() ),
actionCollection(), "toolbar_conf");
m_pFPSBox = new KSelectAction(i18n("Re&fresh"),0,actionCollection(),"fps_selector");
@@ -247,9 +247,9 @@ void KmagApp::initActions()
void KmagApp::initView()
{
m_zoomView = new KMagZoomView( this, "ZoomView" );
- m_zoomView->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, m_zoomView->sizePolicy().hasHeightForWidth() ) );
- m_zoomView->setFrameShape( QFrame::StyledPanel );
- m_zoomView->setFrameShadow( QFrame::Raised );
+ m_zoomView->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, m_zoomView->sizePolicy().hasHeightForWidth() ) );
+ m_zoomView->setFrameShape( TQFrame::StyledPanel );
+ m_zoomView->setFrameShadow( TQFrame::Raised );
setCentralWidget(m_zoomView);
}
@@ -260,21 +260,21 @@ void KmagApp::initView()
void KmagApp::initConnections()
{
// change in zoom value -> update the view
- connect(this, SIGNAL(updateZoomValue(float)), m_zoomView, SLOT(setZoom(float)));
- connect(this, SIGNAL(updateRotationValue(int)), m_zoomView, SLOT(setRotation(int)));
- connect(this, SIGNAL(updateFPSValue(float)), m_zoomView, SLOT(setRefreshRate(float)));
+ connect(this, TQT_SIGNAL(updateZoomValue(float)), m_zoomView, TQT_SLOT(setZoom(float)));
+ connect(this, TQT_SIGNAL(updateRotationValue(int)), m_zoomView, TQT_SLOT(setRotation(int)));
+ connect(this, TQT_SIGNAL(updateFPSValue(float)), m_zoomView, TQT_SLOT(setRefreshRate(float)));
// change in zoom index -> update the selector
- connect(this, SIGNAL(updateZoomIndex(int)), m_pZoomBox, SLOT(setCurrentItem(int)));
- connect(this, SIGNAL(updateRotationIndex(int)), m_pRotationBox, SLOT(setCurrentItem(int)));
- connect(this, SIGNAL(updateFPSIndex(int)), m_pFPSBox, SLOT(setCurrentItem(int)));
+ connect(this, TQT_SIGNAL(updateZoomIndex(int)), m_pZoomBox, TQT_SLOT(setCurrentItem(int)));
+ connect(this, TQT_SIGNAL(updateRotationIndex(int)), m_pRotationBox, TQT_SLOT(setCurrentItem(int)));
+ connect(this, TQT_SIGNAL(updateFPSIndex(int)), m_pFPSBox, TQT_SLOT(setCurrentItem(int)));
// selector selects a zoom index -> set the zoom index
- connect(m_pZoomBox, SIGNAL(activated(int)), this, SLOT(setZoomIndex(int)));
- connect(m_pRotationBox, SIGNAL(activated(int)), this, SLOT(setRotationIndex(int)));
- connect(m_pFPSBox, SIGNAL(activated(int)), this, SLOT(setFPSIndex(int)));
+ connect(m_pZoomBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setZoomIndex(int)));
+ connect(m_pRotationBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setRotationIndex(int)));
+ connect(m_pFPSBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setFPSIndex(int)));
- connect(m_zoomView, SIGNAL(contextMenu(QPoint)), this, SLOT(contextMenu(QPoint)));
+ connect(m_zoomView, TQT_SIGNAL(contextMenu(TQPoint)), this, TQT_SLOT(contextMenu(TQPoint)));
}
/**
@@ -322,9 +322,9 @@ void KmagApp::saveOptions()
*/
void KmagApp::readOptions()
{
- QColor blue (0,0,128);
- QColor yellow (255,255,0);
- QColor white (255,255,255);
+ TQColor blue (0,0,128);
+ TQColor yellow (255,255,0);
+ TQColor white (255,255,255);
config->setGroup ("WM");
setTitleColors (
@@ -334,8 +334,8 @@ void KmagApp::readOptions()
config->setGroup("General Options");
- QSize defSize(460,390);
- QSize size=config->readSizeEntry("Geometry", &defSize);
+ TQSize defSize(460,390);
+ TQSize size=config->readSizeEntry("Geometry", &defSize);
if(!size.isEmpty())
{
resize(size);
@@ -357,7 +357,7 @@ void KmagApp::readOptions()
setFPSIndex(fpsIndex);
emit updateFPSIndex(m_fpsIndex);
- QRect defaultRect(0,0,211,164);
+ TQRect defaultRect(0,0,211,164);
m_zoomView->setSelRectPos(config->readRectEntry("SelRect", &defaultRect));
m_mouseCursorType = config->readUnsignedNumEntry("ShowMouse", m_defaultMouseCursorType);
@@ -391,7 +391,7 @@ void KmagApp::readOptions()
config->setGroup("General Options");
edgesize = config->readNumEntry("EdgeSize", 0);
- QString mode = config->readEntry("Mode", "followmouse");
+ TQString mode = config->readEntry("Mode", "followmouse");
if (mode == "selectionwindow")
slotModeSelWin();
else if (mode == "edgetop")
@@ -419,7 +419,7 @@ bool KmagApp::queryExit()
/////////////////////////////////////////////////////////////////////
-// SLOT IMPLEMENTATION
+// TQT_SLOT IMPLEMENTATION
/////////////////////////////////////////////////////////////////////
/**
@@ -555,7 +555,7 @@ void KmagApp::saveZoomPixmap()
toggled = true;
}
- KURL url = KFileDialog::getSaveURL(QString::null,
+ KURL url = KFileDialog::getSaveURL(TQString::null,
KImageIO::pattern(KImageIO::Writing),
0,i18n("Save Snapshot As"));
@@ -636,7 +636,7 @@ void KmagApp::slotModeEdgeTop()
int newedgesize; bool ok;
newedgesize = KInputDialog::getInteger (i18n ("Magnify to Screen Edge - Select Size"),
i18n ("Size:"), edgesize > 0 ? edgesize : 300, 200,
- QApplication::desktop()->screenGeometry( this ).height()/2,
+ TQApplication::desktop()->screenGeometry( this ).height()/2,
25, 10, &ok, 0, "getedgesize");
if (ok) {
@@ -652,7 +652,7 @@ void KmagApp::slotModeEdgeLeft()
int newedgesize; bool ok;
newedgesize = KInputDialog::getInteger (i18n ("Magnify to Left Screen Edge - Select Size"),
i18n ("Size:"), edgesize > 0 ? edgesize : 300, 200,
- QApplication::desktop()->screenGeometry( this ).width()/2,
+ TQApplication::desktop()->screenGeometry( this ).width()/2,
25, 10, &ok, 0, "getedgesize");
if (ok) {
@@ -668,7 +668,7 @@ void KmagApp::slotModeEdgeRight()
int newedgesize; bool ok;
newedgesize = KInputDialog::getInteger (i18n ("Magnify to Right Screen Edge - Select Size"),
i18n ("Size:"), edgesize > 0 ? edgesize : 300, 200,
- QApplication::desktop()->screenGeometry( this ).width()/2,
+ TQApplication::desktop()->screenGeometry( this ).width()/2,
25, 10, &ok, 0, "getedgesize");
if (ok) {
@@ -684,7 +684,7 @@ void KmagApp::slotModeEdgeBottom()
int newedgesize; bool ok;
newedgesize = KInputDialog::getInteger (i18n ("Magnify to Bottom Screen Edge - Select Size"),
i18n ("Size:"), edgesize > 0 ? edgesize : 300, 200,
- QApplication::desktop()->screenGeometry( this ).height()/2,
+ TQApplication::desktop()->screenGeometry( this ).height()/2,
25, 10, &ok, 0, "getedgesize");
if (ok) {
@@ -697,11 +697,11 @@ void KmagApp::slotModeEdgeBottom()
void KmagApp::setEdgeMode (KToggleAction *mode)
{
if (m_modeEdgeLeft || mode == m_modeEdgeRight) {
- if (edgesize < 200 || edgesize > QApplication::desktop()->screenGeometry( this ).width()/2)
- edgesize = QApplication::desktop()->screenGeometry( this ).width()/4;
+ if (edgesize < 200 || edgesize > TQApplication::desktop()->screenGeometry( this ).width()/2)
+ edgesize = TQApplication::desktop()->screenGeometry( this ).width()/4;
} else {
- if (edgesize < 200 || edgesize > QApplication::desktop()->screenGeometry( this ).height()/2)
- edgesize = QApplication::desktop()->screenGeometry( this ).height()/4;
+ if (edgesize < 200 || edgesize > TQApplication::desktop()->screenGeometry( this ).height()/2)
+ edgesize = TQApplication::desktop()->screenGeometry( this ).height()/4;
}
m_modeFollowMouse->setChecked(false);
@@ -716,7 +716,7 @@ void KmagApp::setEdgeMode (KToggleAction *mode)
m_zoomView->followMouse(true);
m_zoomView->showSelRect(false);
- m_zoomView->reparent (0, QPoint(), false);
+ m_zoomView->reparent (0, TQPoint(), false);
KWin::setType(m_zoomView->winId(), NET::Dock);
KWin::setState(m_zoomView->winId(), NET::Sticky | NET::KeepBelow | NET::SkipTaskbar | NET::SkipPager);
KWin::setOnAllDesktops(m_zoomView->winId(), true);
@@ -729,27 +729,27 @@ void KmagApp::setEdgeMode (KToggleAction *mode)
hide();
if (mode == m_modeEdgeTop) {
- QRect r = QApplication::desktop()->screenGeometry( this );
+ TQRect r = TQApplication::desktop()->screenGeometry( this );
r.setBottom( r.top() + edgesize );
m_zoomView->setGeometry ( r );
KWin::setExtendedStrut (m_zoomView->winId(), 0, 0, 0, 0, 0, 0,
edgesize, r.left(), r.right(), 0, 0, 0);
} else if (mode == m_modeEdgeLeft) {
- QRect r = QApplication::desktop()->screenGeometry( this );
+ TQRect r = TQApplication::desktop()->screenGeometry( this );
r.setRight( r.left() + edgesize );
m_zoomView->setGeometry ( r );
KWin::setExtendedStrut (m_zoomView->winId(),
edgesize, r.top(), r.bottom(),
0, 0, 0, 0, 0, 0, 0, 0, 0);
} else if (mode == m_modeEdgeRight) {
- QRect r = QApplication::desktop()->screenGeometry( this );
+ TQRect r = TQApplication::desktop()->screenGeometry( this );
r.setLeft( r.right() - edgesize );
m_zoomView->setGeometry ( r );
KWin::setExtendedStrut (m_zoomView->winId(), 0, 0, 0,
edgesize, r.top(), r.bottom(),
0, 0, 0, 0, 0, 0);
} else {
- QRect r = QApplication::desktop()->screenGeometry( this );
+ TQRect r = TQApplication::desktop()->screenGeometry( this );
r.setTop( r.bottom() - edgesize );
m_zoomView->setGeometry ( r );
KWin::setExtendedStrut (m_zoomView->winId(), 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -771,7 +771,7 @@ void KmagApp::unsetEdgeMode (KToggleAction *mode)
m_modeEdgeBottom->setChecked(false);
mode->setChecked (true);
- m_zoomView->reparent (this, QPoint(), true);
+ m_zoomView->reparent (this, TQPoint(), true);
setCentralWidget(m_zoomView);
KWin::setExtendedStrut (winId(), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
@@ -804,7 +804,7 @@ void KmagApp::slotFilePrint()
bool toggled(false);
#if KDE_VERSION < 220
- QPrinter printer;
+ TQPrinter printer;
#else
KPrinter printer;
#endif
@@ -815,7 +815,7 @@ void KmagApp::slotFilePrint()
toggled = true;
}
- const QPixmap pixmap(m_zoomView->getPixmap());
+ const TQPixmap pixmap(m_zoomView->getPixmap());
#if KDE_VERSION >= 220
// use some AI to get the best orientation
@@ -827,7 +827,7 @@ void KmagApp::slotFilePrint()
#endif
if (printer.setup(this)) {
- QPainter paint;
+ TQPainter paint;
if(!paint.begin(&printer))
return;
@@ -935,17 +935,17 @@ void KmagApp::slotEditToolbars()
{
saveMainWindowSettings( KGlobal::config(), "MainWindow" );
KEditToolbar dlg( actionCollection() );
- connect( &dlg, SIGNAL( newToolbarConfig() ), this, SLOT( slotNewToolbarConfig() ) );
+ connect( &dlg, TQT_SIGNAL( newToolbarConfig() ), this, TQT_SLOT( slotNewToolbarConfig() ) );
if ( dlg.exec() )
createGUI();
}
-void KmagApp::contextMenu (QPoint pos)
+void KmagApp::contextMenu (TQPoint pos)
{
// show popup
KXMLGUIFactory *factory = this->factory();
- QPopupMenu *popup = (QPopupMenu *)factory->container("mainPopUp",this);
+ TQPopupMenu *popup = (TQPopupMenu *)factory->container("mainPopUp",this);
if (popup != 0)
popup->popup(pos, 0);
}
diff --git a/kmag/kmag.h b/kmag/kmag.h
index bfd2e31..6a27f03 100644
--- a/kmag/kmag.h
+++ b/kmag/kmag.h
@@ -30,7 +30,7 @@
#include <vector>
// include files for Qt
-#include <qstringlist.h>
+#include <tqstringlist.h>
// include files for KDE
#include <kapplication.h>
@@ -62,7 +62,7 @@ class KmagApp : public KMainWindow
/**
* Construtor of KmagApp, calls all init functions to create the application.
*/
- KmagApp(QWidget* parent=0, const char* name=0);
+ KmagApp(TQWidget* parent=0, const char* name=0);
/// Default destructor
~KmagApp();
@@ -160,7 +160,7 @@ class KmagApp : public KMainWindow
/// Called when "configure toolbar" is clicked
void slotEditToolbars();
- void contextMenu(QPoint pos);
+ void contextMenu(TQPoint pos);
signals:
/// This signal is raised whenever the index into the zoom array is changed
@@ -213,13 +213,13 @@ class KmagApp : public KMainWindow
/// Current index into the fpsArray
unsigned int m_fpsIndex;
- QStringList zoomArrayString;
+ TQStringList zoomArrayString;
std::vector<float> zoomArray;
- QStringList rotationArrayString;
+ TQStringList rotationArrayString;
std::vector<int> rotationArray;
- QStringList fpsArrayString;
+ TQStringList fpsArrayString;
std::vector<float> fpsArray;
KMagZoomView* m_zoomView;
diff --git a/kmag/kmagselrect.cpp b/kmag/kmagselrect.cpp
index 4347d96..68e09b0 100644
--- a/kmag/kmagselrect.cpp
+++ b/kmag/kmagselrect.cpp
@@ -20,25 +20,25 @@
#include "kmagselrect.h"
#include "kmagselrect.moc"
-#include <qapplication.h>
-#include <qcursor.h>
-#include <qdesktopwidget.h>
-#include <qpixmap.h>
-#include <qbitmap.h>
+#include <tqapplication.h>
+#include <tqcursor.h>
+#include <tqdesktopwidget.h>
+#include <tqpixmap.h>
+#include <tqbitmap.h>
#include <kapplication.h>
#include <klocale.h>
static uchar line_bits[] = {0x2d, 0x96, 0x4b, 0xa5, 0xd2, 0x69, 0xb4, 0x5a};
-static QColor titleColor = QColor (0,0,128);
-static QColor titleBtnColor = QColor (255,255,0);
-static QColor textColor = QColor (255,255,255);
+static TQColor titleColor = TQColor (0,0,128);
+static TQColor titleBtnColor = TQColor (255,255,0);
+static TQColor textColor = TQColor (255,255,255);
static int frameSize = 10;
static int titleSize = 24;
-void setTitleColors (QColor title, QColor text, QColor titleBtn)
+void setTitleColors (TQColor title, TQColor text, TQColor titleBtn)
{
titleColor = title;
titleBtnColor = titleBtn;
@@ -55,17 +55,17 @@ void setTitleSize (int size)
titleSize = size;
}
-QColor getTitleColor ()
+TQColor getTitleColor ()
{
return titleColor;
}
-QColor getTitleBtnColor ()
+TQColor getTitleBtnColor ()
{
return titleBtnColor;
}
-QColor getTextColor ()
+TQColor getTextColor ()
{
return textColor;
}
@@ -87,34 +87,34 @@ int getTitleSize ()
// Construction
//--------------------------------------------------------------------------
-KMagSelRect::KMagSelRect(QWidget *parent) :
- QRect()
+KMagSelRect::KMagSelRect(TQWidget *parent) :
+ TQRect()
{
init(parent);
}
-KMagSelRect::KMagSelRect(const QPoint &topLeft, const QPoint &bottomRight,
- QWidget *parent) :
-QRect(topLeft, bottomRight)
+KMagSelRect::KMagSelRect(const TQPoint &topLeft, const TQPoint &bottomRight,
+ TQWidget *parent) :
+TQRect(topLeft, bottomRight)
{
init(parent);
}
-KMagSelRect::KMagSelRect(const QPoint &topLeft, const QSize &size,
- QWidget *parent) :
-QRect(topLeft, size)
+KMagSelRect::KMagSelRect(const TQPoint &topLeft, const TQSize &size,
+ TQWidget *parent) :
+TQRect(topLeft, size)
{
init(parent);
}
KMagSelRect::KMagSelRect(int left, int top, int width, int height,
- QWidget *parent) :
-QRect(left, top, width, height)
+ TQWidget *parent) :
+TQRect(left, top, width, height)
{
init(parent);
}
-void KMagSelRect::init(QWidget *parent)
+void KMagSelRect::init(TQWidget *parent)
{
// Make sure parent is the window itself, not a widget within the window
if (parent != 0)
@@ -162,7 +162,7 @@ void KMagSelRect::show()
{
if (selectionwindow == 0) {
selectionwindow = new KMagSelWin (selWindowParent, "selectionwindow");
- connect (selectionwindow, SIGNAL (resized ()), this, SLOT (selWinResized ()));
+ connect (selectionwindow, TQT_SIGNAL (resized ()), this, TQT_SLOT (selWinResized ()));
update();
selectionwindow->show();
@@ -184,29 +184,29 @@ void KMagSelRect::hide()
void KMagSelRect::update()
{
// make sure the selection window does not go outside of the display
- if (height() > QApplication::desktop()->geometry().height())
- setHeight (QApplication::desktop()->geometry().height());
- if (width() > QApplication::desktop()->geometry().width())
- setWidth (QApplication::desktop()->geometry().width());
+ if (height() > TQApplication::desktop()->geometry().height())
+ setHeight (TQApplication::desktop()->geometry().height());
+ if (width() > TQApplication::desktop()->geometry().width())
+ setWidth (TQApplication::desktop()->geometry().width());
if (top() < 0)
moveTop (0);
if (left() < 0)
moveLeft (0);
- if (bottom() > QApplication::desktop()->geometry().bottom())
- moveBottom (QApplication::desktop()->geometry().bottom());
- if (right() > QApplication::desktop()->geometry().right())
- moveRight (QApplication::desktop()->geometry().right());
+ if (bottom() > TQApplication::desktop()->geometry().bottom())
+ moveBottom (TQApplication::desktop()->geometry().bottom());
+ if (right() > TQApplication::desktop()->geometry().right())
+ moveRight (TQApplication::desktop()->geometry().right());
if (selectionwindow != 0)
- selectionwindow->setSelRect (QRect (topLeft(), bottomRight()));
+ selectionwindow->setSelRect (TQRect (topLeft(), bottomRight()));
}
void KMagSelRect::selWinResized()
{
if (selectionwindow != 0)
{
- QRect newRect = selectionwindow->getSelRect();
+ TQRect newRect = selectionwindow->getSelRect();
setRect (newRect.x(), newRect.y(), newRect.width(), newRect.height());
}
}
@@ -215,43 +215,43 @@ void KMagSelRect::selWinResized()
// KMagSelWin
//--------------------------------------------------------------------------
-KMagSelWin::KMagSelWin ( QWidget * parent, const char * name, WFlags ) :
- QWidget (parent, name, WStyle_Customize | WStyle_NoBorder | WStyle_StaysOnTop | WType_TopLevel | WX11BypassWM)
+KMagSelWin::KMagSelWin ( TQWidget * parent, const char * name, WFlags ) :
+ TQWidget (parent, name, WStyle_Customize | WStyle_NoBorder | WStyle_StaysOnTop | WType_TopLevel | WX11BypassWM)
{
- QBitmap line (8, 8, line_bits, true);
+ TQBitmap line (8, 8, line_bits, true);
setPaletteBackgroundPixmap (line);
- setBackgroundOrigin (QWidget::WindowOrigin);
+ setBackgroundOrigin (TQWidget::WindowOrigin);
titleBar = new KMagSelWinCorner (this, "titlebar");
titleBar->setPaletteBackgroundColor (getTitleColor ());
titleBar->setPaletteForegroundColor (getTextColor ());
titleBar->setText(i18n("Selection Window")+" - "+i18n("KMagnifier"));
- connect (titleBar, SIGNAL (startResizing ()), this, SLOT (startResizing ()));
- connect (titleBar, SIGNAL (resized (QPoint)), this, SLOT (titleMoved (QPoint)));
+ connect (titleBar, TQT_SIGNAL (startResizing ()), this, TQT_SLOT (startResizing ()));
+ connect (titleBar, TQT_SIGNAL (resized (TQPoint)), this, TQT_SLOT (titleMoved (TQPoint)));
topLeftCorner = new KMagSelWinCorner (this, "topleft");
topLeftCorner->setCursor (Qt::SizeFDiagCursor);
topLeftCorner->setPaletteBackgroundColor (getTitleBtnColor ());
- connect (topLeftCorner, SIGNAL (startResizing ()), this, SLOT (startResizing ()));
- connect (topLeftCorner, SIGNAL (resized (QPoint)), this, SLOT (topLeftResized (QPoint)));
+ connect (topLeftCorner, TQT_SIGNAL (startResizing ()), this, TQT_SLOT (startResizing ()));
+ connect (topLeftCorner, TQT_SIGNAL (resized (TQPoint)), this, TQT_SLOT (topLeftResized (TQPoint)));
topRightCorner = new KMagSelWinCorner (this, "topright");
topRightCorner->setCursor (Qt::SizeBDiagCursor);
topRightCorner->setPaletteBackgroundColor (getTitleBtnColor ());
- connect (topRightCorner, SIGNAL (startResizing ()), this, SLOT (startResizing ()));
- connect (topRightCorner, SIGNAL (resized (QPoint)), this, SLOT (topRightResized (QPoint)));
+ connect (topRightCorner, TQT_SIGNAL (startResizing ()), this, TQT_SLOT (startResizing ()));
+ connect (topRightCorner, TQT_SIGNAL (resized (TQPoint)), this, TQT_SLOT (topRightResized (TQPoint)));
bottomLeftCorner = new KMagSelWinCorner (this, "bottomleft");
bottomLeftCorner->setCursor (Qt::SizeBDiagCursor);
bottomLeftCorner->setPaletteBackgroundColor (getTitleBtnColor ());
- connect (bottomLeftCorner, SIGNAL (startResizing ()), this, SLOT (startResizing ()));
- connect (bottomLeftCorner, SIGNAL (resized (QPoint)), this, SLOT (bottomLeftResized (QPoint)));
+ connect (bottomLeftCorner, TQT_SIGNAL (startResizing ()), this, TQT_SLOT (startResizing ()));
+ connect (bottomLeftCorner, TQT_SIGNAL (resized (TQPoint)), this, TQT_SLOT (bottomLeftResized (TQPoint)));
bottomRightCorner = new KMagSelWinCorner (this, "bottomright");
bottomRightCorner->setCursor (Qt::SizeFDiagCursor);
bottomRightCorner->setPaletteBackgroundColor (getTitleBtnColor ());
- connect (bottomRightCorner, SIGNAL (startResizing ()), this, SLOT (startResizing ()));
- connect (bottomRightCorner, SIGNAL (resized (QPoint)), this, SLOT (bottomRightResized (QPoint)));
+ connect (bottomRightCorner, TQT_SIGNAL (startResizing ()), this, TQT_SLOT (startResizing ()));
+ connect (bottomRightCorner, TQT_SIGNAL (resized (TQPoint)), this, TQT_SLOT (bottomRightResized (TQPoint)));
}
KMagSelWin::~KMagSelWin()
@@ -263,7 +263,7 @@ KMagSelWin::~KMagSelWin()
delete bottomRightCorner;
}
-void KMagSelWin::setSelRect (QRect selRect)
+void KMagSelWin::setSelRect (TQRect selRect)
{
selRect = selRect.normalize();
@@ -271,10 +271,10 @@ void KMagSelWin::setSelRect (QRect selRect)
selRect.setLeft (0);
if (selRect.top() < 0)
selRect.setTop (0);
- if (selRect.right() > QApplication::desktop()->width())
- selRect.setRight (QApplication::desktop()->width());
- if (selRect.bottom() > QApplication::desktop()->height())
- selRect.setBottom (QApplication::desktop()->height());
+ if (selRect.right() > TQApplication::desktop()->width())
+ selRect.setRight (TQApplication::desktop()->width());
+ if (selRect.bottom() > TQApplication::desktop()->height())
+ selRect.setBottom (TQApplication::desktop()->height());
setGeometry (
selRect.left() - getFrameSize(),
@@ -290,13 +290,13 @@ void KMagSelWin::setSelRect (QRect selRect)
if (selRect.height() < h+h)
h = static_cast<int>(selRect.height()/2);
- setMask (QRegion (QRect (0, 0, width(), height ()))
- - QRegion (QRect (getFrameSize(), getTitleSize()+2, selRect.width(), selRect.height()))
- - QRegion (QRect (0, 0, getFrameSize()+w, getTitleSize()+2-getFrameSize()))
- - QRegion (QRect (width()-getFrameSize()-w, 0, getFrameSize()+w, getTitleSize()+2-getFrameSize()))
- - QRegion (QRect (0, getTitleSize()+2+h, getFrameSize()-2, selRect.height()-h-h))
- - QRegion (QRect (width()-getFrameSize()+2, getTitleSize()+2+h, getFrameSize()-2, selRect.height()-h-h))
- - QRegion (QRect (getFrameSize()+w, height()-getFrameSize()+2, selRect.width()-w-w, getFrameSize()-2)));
+ setMask (TQRegion (TQRect (0, 0, width(), height ()))
+ - TQRegion (TQRect (getFrameSize(), getTitleSize()+2, selRect.width(), selRect.height()))
+ - TQRegion (TQRect (0, 0, getFrameSize()+w, getTitleSize()+2-getFrameSize()))
+ - TQRegion (TQRect (width()-getFrameSize()-w, 0, getFrameSize()+w, getTitleSize()+2-getFrameSize()))
+ - TQRegion (TQRect (0, getTitleSize()+2+h, getFrameSize()-2, selRect.height()-h-h))
+ - TQRegion (TQRect (width()-getFrameSize()+2, getTitleSize()+2+h, getFrameSize()-2, selRect.height()-h-h))
+ - TQRegion (TQRect (getFrameSize()+w, height()-getFrameSize()+2, selRect.width()-w-w, getFrameSize()-2)));
titleBar->setGeometry (getFrameSize()+w, 0, selRect.width()-h-h, getTitleSize());
topLeftCorner->setGeometry (0, getTitleSize()+2-getFrameSize(), getFrameSize()+w, getFrameSize()+h);
@@ -305,9 +305,9 @@ void KMagSelWin::setSelRect (QRect selRect)
bottomRightCorner->setGeometry (width()-getFrameSize()-w, height()-getFrameSize()-h, getFrameSize()+w, getFrameSize()+h);
}
-QRect KMagSelWin::getSelRect ()
+TQRect KMagSelWin::getSelRect ()
{
- return QRect (
+ return TQRect (
x() + getFrameSize(),
y() + getTitleSize()+2,
width() - getFrameSize() - getFrameSize(),
@@ -319,35 +319,35 @@ void KMagSelWin::startResizing ()
oldSelRect = getSelRect();
}
-void KMagSelWin::titleMoved ( QPoint offset )
+void KMagSelWin::titleMoved ( TQPoint offset )
{
- QRect selRect = oldSelRect;
+ TQRect selRect = oldSelRect;
selRect.moveBy (offset.x(), offset.y());
setSelRect (selRect);
emit resized ();
}
-void KMagSelWin::topLeftResized ( QPoint offset )
+void KMagSelWin::topLeftResized ( TQPoint offset )
{
- setSelRect (QRect(oldSelRect.topLeft() + offset, oldSelRect.bottomRight ()));
+ setSelRect (TQRect(oldSelRect.topLeft() + offset, oldSelRect.bottomRight ()));
emit resized();
}
-void KMagSelWin::topRightResized ( QPoint offset )
+void KMagSelWin::topRightResized ( TQPoint offset )
{
- setSelRect (QRect(oldSelRect.topRight() + offset, oldSelRect.bottomLeft ()));
+ setSelRect (TQRect(oldSelRect.topRight() + offset, oldSelRect.bottomLeft ()));
emit resized();
}
-void KMagSelWin::bottomLeftResized ( QPoint offset )
+void KMagSelWin::bottomLeftResized ( TQPoint offset )
{
- setSelRect (QRect(oldSelRect.bottomLeft() + offset, oldSelRect.topRight ()));
+ setSelRect (TQRect(oldSelRect.bottomLeft() + offset, oldSelRect.topRight ()));
emit resized();
}
-void KMagSelWin::bottomRightResized ( QPoint offset )
+void KMagSelWin::bottomRightResized ( TQPoint offset )
{
- setSelRect (QRect(oldSelRect.bottomRight() + offset, oldSelRect.topLeft()));
+ setSelRect (TQRect(oldSelRect.bottomRight() + offset, oldSelRect.topLeft()));
emit resized();
}
@@ -356,10 +356,10 @@ void KMagSelWin::bottomRightResized ( QPoint offset )
// KMagSelWinCorner
//--------------------------------------------------------------------------
-KMagSelWinCorner::KMagSelWinCorner ( QWidget * parent, const char * name, WFlags f ) :
- QLabel (parent, name, f)
+KMagSelWinCorner::KMagSelWinCorner ( TQWidget * parent, const char * name, WFlags f ) :
+ TQLabel (parent, name, f)
{
- setFrameStyle (QFrame::WinPanel | QFrame::Raised);
+ setFrameStyle (TQFrame::WinPanel | TQFrame::Raised);
setLineWidth (1);
}
@@ -367,19 +367,19 @@ KMagSelWinCorner::~KMagSelWinCorner()
{
}
-void KMagSelWinCorner::mousePressEvent ( QMouseEvent * e )
+void KMagSelWinCorner::mousePressEvent ( TQMouseEvent * e )
{
oldPos = e->globalPos ();
emit startResizing ();
}
-void KMagSelWinCorner::mouseReleaseEvent ( QMouseEvent * e )
+void KMagSelWinCorner::mouseReleaseEvent ( TQMouseEvent * e )
{
- setFrameShadow (QFrame::Raised);
+ setFrameShadow (TQFrame::Raised);
emit resized (e->globalPos () - oldPos);
}
-void KMagSelWinCorner::mouseMoveEvent ( QMouseEvent * e )
+void KMagSelWinCorner::mouseMoveEvent ( TQMouseEvent * e )
{
emit resized (e->globalPos () - oldPos);
}
diff --git a/kmag/kmagselrect.h b/kmag/kmagselrect.h
index 675954c..e0e8348 100644
--- a/kmag/kmagselrect.h
+++ b/kmag/kmagselrect.h
@@ -23,9 +23,9 @@
#include <stdlib.h>
// Qt includes
-#include <qrect.h>
-#include <qwidget.h>
-#include <qlabel.h>
+#include <tqrect.h>
+#include <tqwidget.h>
+#include <tqlabel.h>
class KMagSelWinCorner : public QLabel
{
@@ -33,22 +33,22 @@ class KMagSelWinCorner : public QLabel
public:
- KMagSelWinCorner ( QWidget * parent = 0, const char * name = 0, WFlags f = 0 );
+ KMagSelWinCorner ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 );
virtual ~KMagSelWinCorner();
signals:
void startResizing ();
- void resized ( QPoint offset );
+ void resized ( TQPoint offset );
protected:
- QPoint oldPos;
+ TQPoint oldPos;
- virtual void mousePressEvent ( QMouseEvent * e );
- virtual void mouseReleaseEvent ( QMouseEvent * e );
- virtual void mouseMoveEvent ( QMouseEvent * e );
+ virtual void mousePressEvent ( TQMouseEvent * e );
+ virtual void mouseReleaseEvent ( TQMouseEvent * e );
+ virtual void mouseMoveEvent ( TQMouseEvent * e );
};
class KMagSelWin : public QWidget
@@ -57,21 +57,21 @@ class KMagSelWin : public QWidget
public:
- KMagSelWin ( QWidget * parent = 0, const char * name = 0, WFlags f = 0 );
+ KMagSelWin ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 );
virtual ~KMagSelWin();
- void setSelRect ( QRect selRect );
- QRect getSelRect ();
+ void setSelRect ( TQRect selRect );
+ TQRect getSelRect ();
public slots:
void startResizing ();
- void titleMoved ( QPoint offset );
- void topLeftResized ( QPoint offset );
- void topRightResized ( QPoint offset );
- void bottomLeftResized ( QPoint offset );
- void bottomRightResized ( QPoint offset );
+ void titleMoved ( TQPoint offset );
+ void topLeftResized ( TQPoint offset );
+ void topRightResized ( TQPoint offset );
+ void bottomLeftResized ( TQPoint offset );
+ void bottomRightResized ( TQPoint offset );
signals:
@@ -79,7 +79,7 @@ signals:
protected:
- QRect oldSelRect;
+ TQRect oldSelRect;
KMagSelWinCorner *titleBar;
KMagSelWinCorner *topLeftCorner;
@@ -95,18 +95,18 @@ protected:
* @author Original : Michael Forster
* @author Current : Sarang Lakare
*/
-class KMagSelRect : public QObject, public QRect
+class KMagSelRect : public TQObject, public QRect
{
Q_OBJECT
public:
- KMagSelRect(QWidget *parent=0);
- KMagSelRect(const QPoint &topLeft, const QPoint &bottomRight,
- QWidget *parent=0);
- KMagSelRect(const QPoint &topLeft, const QSize &size,
- QWidget *parent=0);
+ KMagSelRect(TQWidget *parent=0);
+ KMagSelRect(const TQPoint &topLeft, const TQPoint &bottomRight,
+ TQWidget *parent=0);
+ KMagSelRect(const TQPoint &topLeft, const TQSize &size,
+ TQWidget *parent=0);
KMagSelRect(int left, int top, int width, int height,
- QWidget *selWindowParent=0);
+ TQWidget *selWindowParent=0);
virtual ~KMagSelRect();
@@ -132,15 +132,15 @@ public slots:
protected:
- void init(QWidget *);
+ void init(TQWidget *);
- QWidget *selWindowParent;
+ TQWidget *selWindowParent;
KMagSelWin *selectionwindow;
bool m_alwaysVisible;
};
-void setTitleColors (QColor title, QColor text, QColor titleBtn);
+void setTitleColors (TQColor title, TQColor text, TQColor titleBtn);
void setFrameSize (int size);
#endif // KMAGSELRECT_H
diff --git a/kmag/kmagzoomview.cpp b/kmag/kmagzoomview.cpp
index a38c21c..4010fce 100644
--- a/kmag/kmagzoomview.cpp
+++ b/kmag/kmagzoomview.cpp
@@ -23,14 +23,14 @@
#include "kmagzoomview.moc"
// include files for Qt
-#include <qbitmap.h>
-#include <qpixmap.h>
-#include <qimage.h>
-#include <qcursor.h>
-#include <qglobal.h>
-#include <qpainter.h>
-#include <qwhatsthis.h>
-#include <qwidget.h>
+#include <tqbitmap.h>
+#include <tqpixmap.h>
+#include <tqimage.h>
+#include <tqcursor.h>
+#include <tqglobal.h>
+#include <tqpainter.h>
+#include <tqwhatsthis.h>
+#include <tqwidget.h>
// include files for KDE
#include <kapplication.h>
@@ -79,7 +79,7 @@ static uchar phand_bits[] = {
-static bool obscuredRegion (QRegion &region, Window winId, Window ignoreId, Window start = 0, int level = -1) {
+static bool obscuredRegion (TQRegion &region, Window winId, Window ignoreId, Window start = 0, int level = -1) {
Window root, parent, *children; uint nchildren;
if (0 == start)
start = qt_xrootwin();
@@ -92,7 +92,7 @@ static bool obscuredRegion (QRegion &region, Window winId, Window ignoreId, Wind
XWindowAttributes atts;
XGetWindowAttributes (qt_xdisplay(), children [i], &atts);
if (atts.map_state == IsViewable)
- region -= QRegion (atts.x, atts.y, atts.width, atts.height, QRegion::Rectangle);
+ region -= TQRegion (atts.x, atts.y, atts.width, atts.height, TQRegion::Rectangle);
}
}
else if (winId == children [i])
@@ -120,8 +120,8 @@ static bool obscuredRegion (QRegion &region, Window winId, Window ignoreId, Wind
-KMagZoomView::KMagZoomView(QWidget *parent, const char *name)
- : QScrollView(parent, name),
+KMagZoomView::KMagZoomView(TQWidget *parent, const char *name)
+ : TQScrollView(parent, name),
m_selRect(0, 0, 128, 128, this),
m_grabTimer(0),
m_mouseViewTimer(0),
@@ -136,7 +136,7 @@ KMagZoomView::KMagZoomView(QWidget *parent, const char *name)
KApplication::setGlobalMouseTracking(TRUE);
viewport()->setMouseTracking(TRUE);
viewport()->setBackgroundMode (NoBackground);
- viewport()->setFocusPolicy(QWidget::StrongFocus);
+ viewport()->setFocusPolicy(TQWidget::StrongFocus);
m_ctrlKeyPressed = false;
m_shiftKeyPressed = false;
@@ -147,16 +147,16 @@ KMagZoomView::KMagZoomView(QWidget *parent, const char *name)
setRefreshRate(10);
// connect it to grabFrame()
- connect(&m_grabTimer, SIGNAL(timeout()), SLOT(grabFrame()));
+ connect(&m_grabTimer, TQT_SIGNAL(timeout()), TQT_SLOT(grabFrame()));
// start the grabTimer
m_grabTimer.start(static_cast<int>(1000.0/m_fps));
// connect it to updateMouseView()
- connect(&m_mouseViewTimer, SIGNAL(timeout()), SLOT(updateMouseView()));
+ connect(&m_mouseViewTimer, TQT_SIGNAL(timeout()), TQT_SLOT(updateMouseView()));
// start the grabTimer @ 25 frames per second!
m_mouseViewTimer.start(25);
- QWhatsThis::add(this, i18n("This is the main window which shows the contents of the\
+ TQWhatsThis::add(this, i18n("This is the main window which shows the contents of the\
selected region. The contents will be magnified according to the zoom level that is set."));
// different ways to show the cursor.
@@ -178,20 +178,20 @@ void KMagZoomView::followMouse(bool follow)
if(follow) {
m_followMouse = true;
m_mouseMode = Normal;
- setVScrollBarMode (QScrollView::AlwaysOff);
- setHScrollBarMode (QScrollView::AlwaysOff);
+ setVScrollBarMode (TQScrollView::AlwaysOff);
+ setHScrollBarMode (TQScrollView::AlwaysOff);
} else {
m_followMouse = false;
m_mouseMode = Normal;
- setVScrollBarMode (QScrollView::AlwaysOn);
- setHScrollBarMode (QScrollView::AlwaysOn);
+ setVScrollBarMode (TQScrollView::AlwaysOn);
+ setHScrollBarMode (TQScrollView::AlwaysOn);
}
}
/**
* Called when the widget is hidden. Stop refresh when this happens.
*/
-void KMagZoomView::hideEvent( QHideEvent* )
+void KMagZoomView::hideEvent( TQHideEvent* )
{
// Save the state of the refresh switch.. the state will be restored
// when showEvent is called
@@ -207,7 +207,7 @@ void KMagZoomView::hideEvent( QHideEvent* )
/**
* Called when the widget is shown. Start refresh when this happens.
*/
-void KMagZoomView::showEvent( QShowEvent* )
+void KMagZoomView::showEvent( TQShowEvent* )
{
// Check if refresh switch was ON when hide was called and if currently it is OFF
if(m_refreshSwitchStateOnHide && !m_refreshSwitch) {
@@ -219,9 +219,9 @@ void KMagZoomView::showEvent( QShowEvent* )
/**
* Called when the widget is resized. Check if fitToWindow is active when this happens.
*/
-void KMagZoomView::resizeEvent( QResizeEvent * e )
+void KMagZoomView::resizeEvent( TQResizeEvent * e )
{
- QScrollView::resizeEvent (e);
+ TQScrollView::resizeEvent (e);
if(m_fitToWindow)
fitToWindow();
}
@@ -231,35 +231,35 @@ void KMagZoomView::resizeEvent( QResizeEvent * e )
*
* @param p
*/
-void KMagZoomView::drawContents ( QPainter * p, int clipx, int clipy, int clipw, int cliph )
+void KMagZoomView::drawContents ( TQPainter * p, int clipx, int clipy, int clipw, int cliph )
{
if(m_grabbedPixmap.isNull())
return;
// A pixmap which will be eventually displayed
- QRect areaToPaint = m_invertedMatrix.mapRect (QRect(clipx, clipy, clipw, cliph));
- QPixmap clippedPixmap (areaToPaint.size());
- clippedPixmap.fill (QColor (128, 128, 128));
- areaToPaint &= QRect (QPoint (0,0), m_selRect.size());
- bitBlt(&clippedPixmap, QPoint (0,0), &m_grabbedPixmap, areaToPaint);
+ TQRect areaToPaint = m_invertedMatrix.mapRect (TQRect(clipx, clipy, clipw, cliph));
+ TQPixmap clippedPixmap (areaToPaint.size());
+ clippedPixmap.fill (TQColor (128, 128, 128));
+ areaToPaint &= TQRect (TQPoint (0,0), m_selRect.size());
+ bitBlt(&clippedPixmap, TQPoint (0,0), &m_grabbedPixmap, areaToPaint);
// show the pixel under mouse cursor
if(m_showMouse) {
// paint the mouse cursor
- paintMouseCursor(&clippedPixmap, calcMousePos (m_refreshSwitch)-QPoint (areaToPaint.x(), areaToPaint.y()));
+ paintMouseCursor(&clippedPixmap, calcMousePos (m_refreshSwitch)-TQPoint (areaToPaint.x(), areaToPaint.y()));
}
- QPixmap zoomedPixmap;
+ TQPixmap zoomedPixmap;
zoomedPixmap = clippedPixmap.xForm (m_zoomMatrix);
if (m_invert) {
- QImage zoomedImage;
+ TQImage zoomedImage;
zoomedImage = zoomedPixmap.convertToImage();
zoomedImage.invertPixels (false);
- p->drawImage (QPoint (clipx-contentsX(), clipy-contentsY()), zoomedImage, zoomedImage.rect(),
+ p->drawImage (TQPoint (clipx-contentsX(), clipy-contentsY()), zoomedImage, zoomedImage.rect(),
Qt::ThresholdDither | Qt::ThresholdAlphaDither | Qt::AvoidDither);
} else {
- p->drawPixmap (QPoint (clipx, clipy), zoomedPixmap, zoomedPixmap.rect());
+ p->drawPixmap (TQPoint (clipx, clipy), zoomedPixmap, zoomedPixmap.rect());
}
}
@@ -267,12 +267,12 @@ void KMagZoomView::drawContents ( QPainter * p, int clipx, int clipy, int clipw,
* Draws the mouse cursor according to the current selection of the type of
* mouse cursor to draw.
*/
-void KMagZoomView::paintMouseCursor(QPaintDevice *dev, QPoint mousePos)
+void KMagZoomView::paintMouseCursor(TQPaintDevice *dev, TQPoint mousePos)
{
if(!dev)
return;
- QPainter pz(dev);
+ TQPainter pz(dev);
if(m_latestCursorPos.x() >= 0 && m_latestCursorPos.x() < m_selRect.width() &&
m_latestCursorPos.y() >= 0 && m_latestCursorPos.y() < m_selRect.height() ) {
@@ -294,8 +294,8 @@ void KMagZoomView::paintMouseCursor(QPaintDevice *dev, QPoint mousePos)
pz.setPen(Qt::black);
pz.setBackgroundColor(Qt::white);
- QBitmap sCursor( 16, 16, left_ptr_bits, TRUE );
- QBitmap mask( 16, 16, left_ptrmsk_bits, TRUE );
+ TQBitmap sCursor( 16, 16, left_ptr_bits, TRUE );
+ TQBitmap mask( 16, 16, left_ptrmsk_bits, TRUE );
sCursor.setMask(mask);
// since hot spot is at 3,1
@@ -307,7 +307,7 @@ void KMagZoomView::paintMouseCursor(QPaintDevice *dev, QPoint mousePos)
{
// 3. Actual cursor
// Get the current cursor type
- QWidget *dummy = KApplication::widgetAt(QCursor::pos(), FALSE);
+ TQWidget *dummy = KApplication::widgetAt(TQCursor::pos(), FALSE);
if(!dummy)
break;
kdDebug() << ">" << dummy->name() << ":" << dummy->cursor().shape() << "-" << endl;
@@ -318,8 +318,8 @@ void KMagZoomView::paintMouseCursor(QPaintDevice *dev, QPoint mousePos)
pz.setPen(Qt::black);
pz.setBackgroundColor(Qt::white);
- QBitmap sCursor( 16, 16, left_ptr_bits, TRUE );
- QBitmap mask( 16, 16, left_ptrmsk_bits, TRUE );
+ TQBitmap sCursor( 16, 16, left_ptr_bits, TRUE );
+ TQBitmap mask( 16, 16, left_ptrmsk_bits, TRUE );
sCursor.setMask(mask);
// since hot spot is at 3,1
@@ -327,8 +327,8 @@ void KMagZoomView::paintMouseCursor(QPaintDevice *dev, QPoint mousePos)
}
break;
default:
- QBitmap sCursor( 32, 32, phand_bits, TRUE );
- QBitmap mask( 32, 32, phandm_bits, TRUE );
+ TQBitmap sCursor( 32, 32, phand_bits, TRUE );
+ TQBitmap mask( 32, 32, phandm_bits, TRUE );
sCursor.setMask(mask);
pz.drawPixmap(mousePos.x(), mousePos.y(), sCursor);
@@ -347,16 +347,16 @@ void KMagZoomView::paintMouseCursor(QPaintDevice *dev, QPoint mousePos)
}
-QPoint KMagZoomView::calcMousePos(bool updateMousePos)
+TQPoint KMagZoomView::calcMousePos(bool updateMousePos)
{
// get position of mouse wrt selRect
if(updateMousePos) { // get a new position only if asked
- m_latestCursorPos = QCursor::pos();
- m_latestCursorPos -= QPoint(m_selRect.x(), m_selRect.y());
+ m_latestCursorPos = TQCursor::pos();
+ m_latestCursorPos -= TQPoint(m_selRect.x(), m_selRect.y());
}
// get coordinates of the pixel w.r.t. the pixmap
- return QPoint (m_latestCursorPos.x(), m_latestCursorPos.y());
+ return TQPoint (m_latestCursorPos.x(), m_latestCursorPos.y());
}
@@ -367,10 +367,10 @@ QPoint KMagZoomView::calcMousePos(bool updateMousePos)
*
* @param e
*/
-void KMagZoomView::mousePressEvent(QMouseEvent *e)
+void KMagZoomView::mousePressEvent(TQMouseEvent *e)
{
switch(e->button()) {
- case QMouseEvent::LeftButton :
+ case TQMouseEvent::LeftButton :
if(m_ctrlKeyPressed) {
// check if currently in resize mode
// don't do anything if fitToWindow is enabled
@@ -386,7 +386,7 @@ void KMagZoomView::mousePressEvent(QMouseEvent *e)
m_oldMousePos.setY(e->globalY());
// set the cursor position to the bottom-right of the selected region
- QCursor::setPos(m_selRect.bottomRight());
+ TQCursor::setPos(m_selRect.bottomRight());
// show the selection rectangle
m_selRect.show();
@@ -411,7 +411,7 @@ void KMagZoomView::mousePressEvent(QMouseEvent *e)
m_oldMousePos.setY(e->globalY());
// set the cursor position to the center of the selected region
- QCursor::setPos(m_selRect.center());
+ TQCursor::setPos(m_selRect.center());
// show the selected rectangle
m_selRect.show();
@@ -449,7 +449,7 @@ void KMagZoomView::mousePressEvent(QMouseEvent *e)
}
break;
- case QMouseEvent::MidButton :
+ case TQMouseEvent::MidButton :
// check if currently in move mode
// don't do anything if follow mouse is enabled
if ((m_mouseMode != MoveSelection) && !m_followMouse) {
@@ -463,7 +463,7 @@ void KMagZoomView::mousePressEvent(QMouseEvent *e)
m_oldMousePos.setY(e->globalY());
// set the cursor position to the center of the selected region
- QCursor::setPos(m_selRect.center());
+ TQCursor::setPos(m_selRect.center());
// show the selected rectangle
m_selRect.show();
@@ -491,11 +491,11 @@ void KMagZoomView::mousePressEvent(QMouseEvent *e)
*
* @param e
*/
-void KMagZoomView::mouseReleaseEvent(QMouseEvent *e)
+void KMagZoomView::mouseReleaseEvent(TQMouseEvent *e)
{
switch(e->button()) {
- case QMouseEvent::LeftButton :
- case QMouseEvent::MidButton :
+ case TQMouseEvent::LeftButton :
+ case TQMouseEvent::MidButton :
// check if currently in move mode
if(m_mouseMode == MoveSelection) {
// hide the selection window
@@ -507,7 +507,7 @@ void KMagZoomView::mouseReleaseEvent(QMouseEvent *e)
setCursor(arrowCursor);
// restore the cursor position
- QCursor::setPos(m_oldMousePos);
+ TQCursor::setPos(m_oldMousePos);
} else if(m_mouseMode == ResizeSelection) {
// hide the selection window
m_selRect.hide();
@@ -518,7 +518,7 @@ void KMagZoomView::mouseReleaseEvent(QMouseEvent *e)
setCursor(arrowCursor);
// restore the cursor position
- QCursor::setPos(m_oldMousePos);
+ TQCursor::setPos(m_oldMousePos);
} else if(m_mouseMode == GrabSelection) {
// hide the selection window
m_selRect.hide();
@@ -531,9 +531,9 @@ void KMagZoomView::mouseReleaseEvent(QMouseEvent *e)
}
break;
- case QMouseEvent::RightButton :
+ case TQMouseEvent::RightButton :
break;
- case QMouseEvent::NoButton :
+ case TQMouseEvent::NoButton :
break;
// do nothing
@@ -548,7 +548,7 @@ void KMagZoomView::mouseReleaseEvent(QMouseEvent *e)
*
* @param e
*/
-void KMagZoomView::mouseMoveEvent(QMouseEvent *e)
+void KMagZoomView::mouseMoveEvent(TQMouseEvent *e)
{
if(m_mouseMode == ResizeSelection) {
// In resize selection mode
@@ -559,7 +559,7 @@ void KMagZoomView::mouseMoveEvent(QMouseEvent *e)
grabFrame();
} else if(m_mouseMode == MoveSelection) {
- QPoint newCenter;
+ TQPoint newCenter;
// set new center to be the current mouse position
m_selRect.moveCenter(e->globalPos());
@@ -567,11 +567,11 @@ void KMagZoomView::mouseMoveEvent(QMouseEvent *e)
grabFrame();
} else if(m_mouseMode == GrabSelection) {
- QPoint newPos;
+ TQPoint newPos;
// get new position
newPos = e->globalPos();
- QPoint delta = (newPos - m_oldMousePos)/m_zoom;
+ TQPoint delta = (newPos - m_oldMousePos)/m_zoom;
m_selRect.moveCenter(m_oldCenter-delta);
m_selRect.update();
@@ -579,19 +579,19 @@ void KMagZoomView::mouseMoveEvent(QMouseEvent *e)
}
}
-void KMagZoomView::keyPressEvent(QKeyEvent *e)
+void KMagZoomView::keyPressEvent(TQKeyEvent *e)
{
int offset = 16;
- if (e->state() & QKeyEvent::ShiftButton)
+ if (e->state() & TQKeyEvent::ShiftButton)
offset = 1;
- if (e->key() == QKeyEvent::Key_Control)
+ if (e->key() == TQKeyEvent::Key_Control)
m_ctrlKeyPressed = true;
- else if (e->key() == QKeyEvent::Key_Shift)
+ else if (e->key() == TQKeyEvent::Key_Shift)
m_shiftKeyPressed = true;
- else if (e->key() == QKeyEvent::Key_Left)
+ else if (e->key() == TQKeyEvent::Key_Left)
{
- if (e->state() & QKeyEvent::ControlButton)
+ if (e->state() & TQKeyEvent::ControlButton)
{
if (offset >= m_selRect.width())
m_selRect.setWidth (1);
@@ -615,9 +615,9 @@ void KMagZoomView::keyPressEvent(QKeyEvent *e)
}
m_selRect.update();
}
- else if (e->key() == QKeyEvent::Key_Right)
+ else if (e->key() == TQKeyEvent::Key_Right)
{
- if (e->state() & QKeyEvent::ControlButton)
+ if (e->state() & TQKeyEvent::ControlButton)
m_selRect.setRight (m_selRect.right()+offset);
else if (contentsX() < contentsWidth()-visibleWidth())
{
@@ -632,9 +632,9 @@ void KMagZoomView::keyPressEvent(QKeyEvent *e)
m_selRect.update();
}
- else if (e->key() == QKeyEvent::Key_Up)
+ else if (e->key() == TQKeyEvent::Key_Up)
{
- if (e->state() & QKeyEvent::ControlButton)
+ if (e->state() & TQKeyEvent::ControlButton)
{
if (offset >= m_selRect.height())
m_selRect.setHeight (1);
@@ -658,9 +658,9 @@ void KMagZoomView::keyPressEvent(QKeyEvent *e)
}
m_selRect.update();
}
- else if (e->key() == QKeyEvent::Key_Down)
+ else if (e->key() == TQKeyEvent::Key_Down)
{
- if (e->state() & QKeyEvent::ControlButton)
+ if (e->state() & TQKeyEvent::ControlButton)
m_selRect.setBottom (m_selRect.bottom()+offset);
else if (contentsY() < contentsHeight()-visibleHeight())
{
@@ -678,23 +678,23 @@ void KMagZoomView::keyPressEvent(QKeyEvent *e)
e->ignore();
}
-void KMagZoomView::keyReleaseEvent(QKeyEvent *e)
+void KMagZoomView::keyReleaseEvent(TQKeyEvent *e)
{
- if (e->key() == QKeyEvent::Key_Control)
+ if (e->key() == TQKeyEvent::Key_Control)
m_ctrlKeyPressed = false;
- else if (e->key() == QKeyEvent::Key_Shift)
+ else if (e->key() == TQKeyEvent::Key_Shift)
m_shiftKeyPressed = false;
else
e->ignore();
}
-void KMagZoomView::contextMenuEvent (QContextMenuEvent *e)
+void KMagZoomView::contextMenuEvent (TQContextMenuEvent *e)
{
emit contextMenu(e->globalPos());
e->accept();
}
-void KMagZoomView::focusOutEvent(QFocusEvent *e)
+void KMagZoomView::focusOutEvent(TQFocusEvent *e)
{
if(e->lostFocus() == TRUE) {
m_ctrlKeyPressed = false;
@@ -710,8 +710,8 @@ void KMagZoomView::focusOutEvent(QFocusEvent *e)
*/
void KMagZoomView::fitToWindow()
{
- QPoint currCenter = m_selRect.center();
- QRect newRect = m_invertedMatrix.mapRect (QRect(0, 0, visibleWidth(), visibleHeight()));
+ TQPoint currCenter = m_selRect.center();
+ TQRect newRect = m_invertedMatrix.mapRect (TQRect(0, 0, visibleWidth(), visibleHeight()));
m_selRect.setSize (newRect.size());
m_selRect.moveCenter(currCenter);
m_selRect.update();
@@ -739,38 +739,38 @@ void KMagZoomView::grabFrame()
// check if follow-mouse is enabled
if(m_followMouse && (m_mouseMode != ResizeSelection)) {
// in this case grab w.r.t the current mouse position
- QPoint newCenter;
+ TQPoint newCenter;
// set new center to be the current mouse position
- m_selRect.moveCenter(QCursor::pos());
+ m_selRect.moveCenter(TQCursor::pos());
m_selRect.update();
}
- //QRect r = pixmapRect();
+ //TQRect r = pixmapRect();
// define a normalized rectangle
- QRect selRect = m_selRect.normalize();
+ TQRect selRect = m_selRect.normalize();
// grab screenshot from the screen and put it in the pixmap
- m_grabbedPixmap = QPixmap::grabWindow(QApplication::desktop()->winId(), selRect.x(), selRect.y(),
+ m_grabbedPixmap = TQPixmap::grabWindow(TQApplication::desktop()->winId(), selRect.x(), selRect.y(),
selRect.width(), selRect.height());
// If the KMag window itself is in the screenshot, then it need to be filled with gray to avoid recursion
- QPoint globalPos = viewport()->mapToGlobal (viewport()->rect().topLeft());
- QRegion intersection (globalPos.x(), globalPos.y(), viewport()->width(), viewport()->height(), QRegion::Rectangle);
- intersection &= QRegion (selRect, QRegion::Rectangle);
+ TQPoint globalPos = viewport()->mapToGlobal (viewport()->rect().topLeft());
+ TQRegion intersection (globalPos.x(), globalPos.y(), viewport()->width(), viewport()->height(), TQRegion::Rectangle);
+ intersection &= TQRegion (selRect, TQRegion::Rectangle);
// We don't want to overpaint other windows that happen to be on top
obscuredRegion (intersection, topLevelWidget()->winId(), m_selRect.winId());
intersection.translate (-selRect.x(), -selRect.y());
- QPainter painter (&m_grabbedPixmap, true);
- QMemArray<QRect> rects (intersection.rects());
+ TQPainter painter (&m_grabbedPixmap, true);
+ TQMemArray<TQRect> rects (intersection.rects());
for (uint i = 0; i < rects.size(); i++)
- painter.fillRect (rects[i], QBrush (QColor (128, 128, 128)));
+ painter.fillRect (rects[i], TQBrush (TQColor (128, 128, 128)));
// call repaint to display the newly grabbed image
- QRect newSize = m_zoomMatrix.mapRect (m_grabbedPixmap.rect());
+ TQRect newSize = m_zoomMatrix.mapRect (m_grabbedPixmap.rect());
resizeContents (newSize.width(), newSize.height());
viewport()->repaint(false);
}
@@ -781,7 +781,7 @@ void KMagZoomView::grabFrame()
*/
void KMagZoomView::updateMouseView()
{
- QPoint pos(QCursor::pos());
+ TQPoint pos(TQCursor::pos());
if(m_selRect.left() <= pos.x() && pos.x() <= m_selRect.right() &&
m_selRect.top() <= pos.y() && pos.y() <= m_selRect.bottom() &&
m_refreshSwitch)
@@ -859,7 +859,7 @@ void KMagZoomView::showSelRect(bool show)
/**
* Sets the selection rectangle to the given position.
*/
-void KMagZoomView::setSelRectPos(const QRect & rect)
+void KMagZoomView::setSelRectPos(const TQRect & rect)
{
m_selRect.setRect(rect.x(), rect.y(), rect.width(), rect.height());
m_selRect.update();
@@ -881,7 +881,7 @@ unsigned int KMagZoomView::getShowMouseType() const
return (m_showMouse);
}
-QStringList KMagZoomView::getShowMouseStringList() const
+TQStringList KMagZoomView::getShowMouseStringList() const
{
return (m_showMouseTypes);
}
@@ -891,12 +891,12 @@ QStringList KMagZoomView::getShowMouseStringList() const
* Returns the image which is being displayed. Its again drawn by adding
* the mouse cursor if needed.
*/
-QPixmap KMagZoomView::getPixmap()
+TQPixmap KMagZoomView::getPixmap()
{
// show the pixel under mouse cursor
if(m_showMouse && !m_grabbedPixmap.isNull()) {
// Pixmap which will have the pixmap + mouse
- QPixmap mousePixmap(m_grabbedPixmap);
+ TQPixmap mousePixmap(m_grabbedPixmap);
// paint the mouse cursor w/o updating to a newer position
paintMouseCursor(&mousePixmap, calcMousePos(false));
diff --git a/kmag/kmagzoomview.h b/kmag/kmagzoomview.h
index a863ad6..7b631ae 100644
--- a/kmag/kmagzoomview.h
+++ b/kmag/kmagzoomview.h
@@ -25,14 +25,14 @@
#endif
// include files for Qt
-#include <qwidget.h>
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qtimer.h>
-#include <qscrollview.h>
-#include <qstringlist.h>
-#include <qrect.h>
-#include <qcursor.h>
+#include <tqwidget.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
+#include <tqtimer.h>
+#include <tqscrollview.h>
+#include <tqstringlist.h>
+#include <tqrect.h>
+#include <tqcursor.h>
//class KMagSelRect;
#include "kmagselrect.h"
@@ -48,7 +48,7 @@ class KMagZoomView : public QScrollView
Q_OBJECT
public:
/// Constructor for the main view
- KMagZoomView(QWidget *parent = 0, const char *name=0);
+ KMagZoomView(TQWidget *parent = 0, const char *name=0);
/// Destructor for the main view
~KMagZoomView();
@@ -57,7 +57,7 @@ class KMagZoomView : public QScrollView
void toggleRefresh();
/// Returns the currently displayed zoomed view
- QPixmap getPixmap();
+ TQPixmap getPixmap();
/// Returns the state of the refresh switch
bool getRefreshStatus() const { return m_refreshSwitch; };
@@ -69,13 +69,13 @@ class KMagZoomView : public QScrollView
bool getShowSelRect() const { return (m_selRect.getAlwaysVisible()); };
/// Get the coordinates of the selection rectangle
- QRect getSelRectPos() const { return static_cast<QRect>(m_selRect); };
+ TQRect getSelRectPos() const { return static_cast<TQRect>(m_selRect); };
/// Returns the current state of show mouse
unsigned int getShowMouseType() const;
/// Returns the different ways of showing mouse cursor
- QStringList getShowMouseStringList() const;
+ TQStringList getShowMouseStringList() const;
/// Returns the status of "fit to window" option
bool getFitToWindow() const { return (m_fitToWindow); };
@@ -104,7 +104,7 @@ class KMagZoomView : public QScrollView
void showSelRect(bool show=true);
/// Set the position of the selection region to the given pos
- void setSelRectPos(const QRect & rect);
+ void setSelRectPos(const TQRect & rect);
/// Set the refresh rate in fps (frames per second)
void setRefreshRate(float fps);
@@ -119,75 +119,75 @@ class KMagZoomView : public QScrollView
void fitToWindow();
signals:
- void contextMenu(QPoint pos);
+ void contextMenu(TQPoint pos);
protected:
/// Called when the widget is hidden
- void hideEvent( QHideEvent * e);
+ void hideEvent( TQHideEvent * e);
/// Called when the widget is shown
- void showEvent( QShowEvent * e);
+ void showEvent( TQShowEvent * e);
/// Called when the widget has been resized
- void resizeEvent(QResizeEvent *e);
+ void resizeEvent(TQResizeEvent *e);
/// Called when the widget is to be repainted
- void drawContents ( QPainter * p, int clipx, int clipy, int clipw, int cliph );
+ void drawContents ( TQPainter * p, int clipx, int clipy, int clipw, int cliph );
/// This function calculates the mouse position relative to the image
- QPoint calcMousePos(bool updateMousePos=true);
+ TQPoint calcMousePos(bool updateMousePos=true);
/// This function draws the mouse cursor
- void paintMouseCursor(QPaintDevice *dev, QPoint mousePos);
+ void paintMouseCursor(TQPaintDevice *dev, TQPoint mousePos);
/// Called when mouse click is detected
- void mousePressEvent (QMouseEvent *e);
+ void mousePressEvent (TQMouseEvent *e);
/// Called when mouse is moved
- void mouseMoveEvent(QMouseEvent *e);
+ void mouseMoveEvent(TQMouseEvent *e);
/// Mouse button release event handler
- void mouseReleaseEvent(QMouseEvent *e);
+ void mouseReleaseEvent(TQMouseEvent *e);
/// Mouse button release event handler
- void keyPressEvent(QKeyEvent *e);
+ void keyPressEvent(TQKeyEvent *e);
/// Mouse button release event handler
- void keyReleaseEvent(QKeyEvent *e);
+ void keyReleaseEvent(TQKeyEvent *e);
/// Catch context menu events
- void contextMenuEvent (QContextMenuEvent *e);
+ void contextMenuEvent (TQContextMenuEvent *e);
/// Mouse button release event handler
- void focusOutEvent(QFocusEvent *e);
+ void focusOutEvent(TQFocusEvent *e);
/// Returns the rectangle where the pixmap will be drawn
- QRect pixmapRect();
+ TQRect pixmapRect();
private:
/// Stores the pixmap grabbed from the screen - to be zoomed
- QPixmap m_grabbedPixmap;
+ TQPixmap m_grabbedPixmap;
/// The selected rectangle which is to be grabbed
KMagSelRect m_selRect;
/// Grabs a window when the timer goes off
- QTimer m_grabTimer;
+ TQTimer m_grabTimer;
/// Updates the mouse view
- QTimer m_mouseViewTimer;
+ TQTimer m_mouseViewTimer;
/// Zoom matrix
- QWMatrix m_zoomMatrix;
+ TQWMatrix m_zoomMatrix;
/// Inverted zoom matrix
- QWMatrix m_invertedMatrix;
+ TQWMatrix m_invertedMatrix;
/// Saves the mouse position when a button is clicked and b4 the cursor is moved to new position
- QPoint m_oldMousePos;
+ TQPoint m_oldMousePos;
/// Saves the center of the grab window
- QPoint m_oldCenter;
+ TQPoint m_oldCenter;
/// Possible modes for the mouse to be in
enum KMagMouseMode {
@@ -208,10 +208,10 @@ class KMagZoomView : public QScrollView
bool m_shiftKeyPressed;
/// Store the more recent updated cursor position
- QPoint m_latestCursorPos;
+ TQPoint m_latestCursorPos;
/// Various ways of showing mouse cursor
- QStringList m_showMouseTypes;
+ TQStringList m_showMouseTypes;
// configuration options:
diff --git a/kmousetool/kmousetool/kmousetool.cpp b/kmousetool/kmousetool/kmousetool.cpp
index ee27ba4..c54da8a 100644
--- a/kmousetool/kmousetool/kmousetool.cpp
+++ b/kmousetool/kmousetool/kmousetool.cpp
@@ -30,18 +30,18 @@
#include <X11/extensions/XTest.h> /* Standard Name-String definitions*/
#include <kdialog.h>
#include <klocale.h>
-#include <qpushbutton.h>
-#include <qpoint.h>
-#include <qnamespace.h>
+#include <tqpushbutton.h>
+#include <tqpoint.h>
+#include <tqnamespace.h>
#include <kmessagebox.h>
#include <kaudioplayer.h>
#include <kstandarddirs.h>
-#include <qsound.h>
+#include <tqsound.h>
#include <kglobalsettings.h>
#include <kdebug.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qcheckbox.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
#include <ksystemtray.h>
#include <kiconloader.h>
#include <kpushbutton.h>
@@ -93,7 +93,7 @@ void KMouseTool::init_vars()
loadOptions();
// If the ~/.mousetool directory doesn't exist, create it
-// mSoundFileName = QDir::homeDirPath();
+// mSoundFileName = TQDir::homeDirPath();
mSoundFileName = locate("appdata", "sounds/mousetool_tap.wav");
mplayer = new KAudioPlayer(mSoundFileName);
@@ -107,7 +107,7 @@ void KMouseTool::init_vars()
// SimpleSoundServer server(Reference("global:Arts_SimpleSoundServer"));
// sound_server(Reference("global:Arts_SimpleSoundServer"));
- QDesktopWidget *d = QApplication::desktop();
+ TQDesktopWidget *d = TQApplication::desktop();
int w = d->width();
int h = d->height();
MTStroke::setUpperLeft(0,0);
@@ -141,7 +141,7 @@ void KMouseTool::setDefaultSettings()
}
-void KMouseTool::timerEvent( QTimerEvent * )
+void KMouseTool::timerEvent( TQTimerEvent * )
{
if (!mousetool_is_running)
return;
@@ -244,39 +244,39 @@ void KMouseTool::playTickSound()
// return;
// sound_server.play(mSoundFileName.latin1());
- // Another approach is to try using QSound.
- // QSound depends on Network Audio Server, which doesn't seem to work on my Debian Woody system.
+ // Another approach is to try using TQSound.
+ // TQSound depends on Network Audio Server, which doesn't seem to work on my Debian Woody system.
// I haven't spent much time working on it, though.
-// QSound::play(mSoundFileName);
+// TQSound::play(mSoundFileName);
}
-KMouseTool::KMouseTool(QWidget *parent, const char *name) : KMouseToolUI(parent, name)
+KMouseTool::KMouseTool(TQWidget *parent, const char *name) : KMouseToolUI(parent, name)
{
init_vars();
resetSettings();
- connect(movementEdit, SIGNAL(valueChanged(int)), this, SLOT(settingsChanged()));
- connect(dwellTimeEdit, SIGNAL(valueChanged(int)), this, SLOT(settingsChanged()));
- connect(dragTimeEdit, SIGNAL(valueChanged(int)), this, SLOT(settingsChanged()));
- connect(cbDrag, SIGNAL(stateChanged(int)), this, SLOT(settingsChanged()));
- connect(cbStroke, SIGNAL(stateChanged(int)), this, SLOT(settingsChanged()));
- connect(cbClick, SIGNAL(stateChanged(int)), this, SLOT(settingsChanged()));
- connect(cbStart, SIGNAL(stateChanged(int)), this, SLOT(settingsChanged()));
+ connect(movementEdit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(settingsChanged()));
+ connect(dwellTimeEdit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(settingsChanged()));
+ connect(dragTimeEdit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(settingsChanged()));
+ connect(cbDrag, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(settingsChanged()));
+ connect(cbStroke, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(settingsChanged()));
+ connect(cbClick, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(settingsChanged()));
+ connect(cbStart, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(settingsChanged()));
- connect(buttonStartStop, SIGNAL(clicked()), this, SLOT(startStopSelected()));
+ connect(buttonStartStop, TQT_SIGNAL(clicked()), this, TQT_SLOT(startStopSelected()));
buttonDefault->setGuiItem(KStdGuiItem::defaults());
- connect(buttonDefault, SIGNAL(clicked()), this, SLOT(defaultSelected()));
- connect(buttonReset, SIGNAL(clicked()), this, SLOT(resetSelected()));
+ connect(buttonDefault, TQT_SIGNAL(clicked()), this, TQT_SLOT(defaultSelected()));
+ connect(buttonReset, TQT_SIGNAL(clicked()), this, TQT_SLOT(resetSelected()));
buttonApply->setGuiItem(KStdGuiItem::apply());
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(applySelected()));
+ connect(buttonApply, TQT_SIGNAL(clicked()), this, TQT_SLOT(applySelected()));
buttonHelp->setGuiItem(KStdGuiItem::help());
- connect(buttonHelp, SIGNAL(clicked()), this, SLOT(helpSelected()));
+ connect(buttonHelp, TQT_SIGNAL(clicked()), this, TQT_SLOT(helpSelected()));
buttonClose->setGuiItem(KStdGuiItem::close());
- connect(buttonClose, SIGNAL(clicked()), this, SLOT(closeSelected()));
+ connect(buttonClose, TQT_SIGNAL(clicked()), this, TQT_SLOT(closeSelected()));
#if KDE_VERSION >= KDE_MAKE_VERSION (3,1,90)
buttonQuit->setGuiItem(KStdGuiItem::quit());
#endif // KDE 3.2
- connect(buttonQuit, SIGNAL(clicked()), this, SLOT(quitSelected()));
+ connect(buttonQuit, TQT_SIGNAL(clicked()), this, TQT_SLOT(quitSelected()));
// When we first start, it's nice to not click immediately.
// So, tell MT we're just starting
@@ -285,11 +285,11 @@ KMouseTool::KMouseTool(QWidget *parent, const char *name) : KMouseToolUI(parent,
startTimer(100);
trayIcon = new KMouseToolTray (this, "systemTrayIcon");
updateStartStopText ();
- connect(trayIcon, SIGNAL(startStopSelected()), this, SLOT(startStopSelected()));
- connect(trayIcon, SIGNAL(configureSelected()), this, SLOT(configureSelected()));
- connect(trayIcon, SIGNAL(aboutSelected()), this, SLOT(aboutSelected()));
- connect(trayIcon, SIGNAL(helpSelected()), this, SLOT(helpSelected()));
- connect(trayIcon, SIGNAL(quitSelected()), this, SLOT(quitSelected()));
+ connect(trayIcon, TQT_SIGNAL(startStopSelected()), this, TQT_SLOT(startStopSelected()));
+ connect(trayIcon, TQT_SIGNAL(configureSelected()), this, TQT_SLOT(configureSelected()));
+ connect(trayIcon, TQT_SIGNAL(aboutSelected()), this, TQT_SLOT(aboutSelected()));
+ connect(trayIcon, TQT_SIGNAL(helpSelected()), this, TQT_SLOT(helpSelected()));
+ connect(trayIcon, TQT_SIGNAL(quitSelected()), this, TQT_SLOT(quitSelected()));
aboutDlg = new KAboutApplication (0, "KMouseToolDlg", false);
}
@@ -381,19 +381,19 @@ int CursorHasMoved (int minMovement)
bool KMouseTool::isAutostart()
{
- QString sym = autostartdirname;
+ TQString sym = autostartdirname;
sym += "kmousetool"; // sym is now full path to symlink
- QFileInfo fi(sym);
+ TQFileInfo fi(sym);
return fi.exists();
}
void KMouseTool::setAutostart (bool start)
{
- QString sym = autostartdirname;
+ TQString sym = autostartdirname;
sym += "kmousetool"; // sym is now full path to symlink
- QFileInfo fi(sym);
- QString cmd;
+ TQFileInfo fi(sym);
+ TQString cmd;
if (start) {
if (!fi.exists()) // if it doesn't exist, make it
@@ -448,7 +448,7 @@ void KMouseTool::loadOptions()
min_movement = kapp->config()->readNumEntry("Movement",5);
strokesEnabled = kapp->config()->readBoolEntry("strokesEnabled",false);
- QPoint p;
+ TQPoint p;
int x = kapp->config()->readNumEntry("x",0);
int y = kapp->config()->readNumEntry("y",0);
p.setX(x);
@@ -462,7 +462,7 @@ void KMouseTool::loadOptions()
// Save options to kmousetoolrc file
void KMouseTool::saveOptions()
{
- QPoint p = pos();
+ TQPoint p = pos();
int x = p.x();
int y = p.y();
@@ -608,17 +608,17 @@ void KMouseTool::aboutSelected()
-KMouseToolTray::KMouseToolTray (QWidget *parent, const char *name) : KSystemTray (parent, name)
+KMouseToolTray::KMouseToolTray (TQWidget *parent, const char *name) : KSystemTray (parent, name)
{
- startStopId = contextMenu()->insertItem (i18n("&Start"), this, SIGNAL(startStopSelected()));
+ startStopId = contextMenu()->insertItem (i18n("&Start"), this, TQT_SIGNAL(startStopSelected()));
contextMenu()->insertSeparator();
contextMenu()->insertItem (KGlobal::iconLoader()->loadIcon("configure", KIcon::Small),
- i18n("&Configure KMouseTool..."), this, SIGNAL(configureSelected()));
+ i18n("&Configure KMouseTool..."), this, TQT_SIGNAL(configureSelected()));
contextMenu()->insertSeparator();
contextMenu()->insertItem (KGlobal::iconLoader()->loadIcon("contents", KIcon::Small),
- i18n("KMousetool &Handbook"), this, SIGNAL(helpSelected()));
+ i18n("KMousetool &Handbook"), this, TQT_SIGNAL(helpSelected()));
contextMenu()->insertItem (KGlobal::iconLoader()->loadIcon("kmousetool", KIcon::Small),
- i18n("&About KMouseTool"), this, SIGNAL(aboutSelected()));
+ i18n("&About KMouseTool"), this, TQT_SIGNAL(aboutSelected()));
}
KMouseToolTray::~KMouseToolTray() {
@@ -626,7 +626,7 @@ KMouseToolTray::~KMouseToolTray() {
void KMouseToolTray::updateStartStopText(bool mousetool_is_running)
{
- QPixmap icon;
+ TQPixmap icon;
if (mousetool_is_running) {
contextMenu()->changeItem (startStopId, i18n("&Stop"));
diff --git a/kmousetool/kmousetool/kmousetool.h b/kmousetool/kmousetool/kmousetool.h
index 88a05ec..add8f08 100644
--- a/kmousetool/kmousetool/kmousetool.h
+++ b/kmousetool/kmousetool/kmousetool.h
@@ -22,7 +22,7 @@
#ifndef KMOUSETOOL_H
#define KMOUSETOOL_H
-#include <qdir.h>
+#include <tqdir.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -32,7 +32,7 @@
#include <kapplication.h>
#include <ksystemtray.h>
-#include <qwidget.h>
+#include <tqwidget.h>
#include "mtstroke.h"
#include "kmousetoolui.h"
@@ -74,9 +74,9 @@ private:
bool moving;
bool strokesEnabled;
- QString autostartdirname;
- QString rcfilename;
- QString appfilename;
+ TQString autostartdirname;
+ TQString rcfilename;
+ TQString appfilename;
QString mSoundFileName;
KAudioPlayer *mplayer;
KMouseToolTray *trayIcon;
@@ -175,7 +175,7 @@ public:
* current mouse position to its previous position to see
* whether to send a down click, and up click, or wait.
*/
- void timerEvent (QTimerEvent *e);
+ void timerEvent (TQTimerEvent *e);
/**
* This generates a normal click event --
@@ -186,7 +186,7 @@ public:
/**
* construtor
*/
- KMouseTool(QWidget* parent=0, const char *name=0);
+ KMouseTool(TQWidget* parent=0, const char *name=0);
/** destructor */
~KMouseTool();
@@ -196,7 +196,7 @@ class KMouseToolTray : public KSystemTray {
Q_OBJECT
int startStopId;
public:
- KMouseToolTray (QWidget *parent=0, const char *name=0);
+ KMouseToolTray (TQWidget *parent=0, const char *name=0);
~KMouseToolTray();
void updateStartStopText (bool mousetool_is_running);
diff --git a/kmousetool/kmousetool/main.cpp b/kmousetool/kmousetool/main.cpp
index 29c5e30..6267d57 100644
--- a/kmousetool/kmousetool/main.cpp
+++ b/kmousetool/kmousetool/main.cpp
@@ -23,7 +23,7 @@
#include <kstandarddirs.h>
#include <kuniqueapplication.h>
#include <dcopclient.h>
-#include <qmessagebox.h>
+#include <tqmessagebox.h>
#include <kconfig.h>
#include "kmousetool.h"
@@ -57,9 +57,9 @@ int main(int argc, char *argv[])
if (!KUniqueApplication::start()) {
DCOPClient *client = new DCOPClient();
client->attach();
- QByteArray data;
- QCString replyType;
- QByteArray replyData;
+ TQByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
if ( !client->call("kmousetool", "qt/KMouseToolUI", "show()",
data, replyType, replyData, true) ||
!client->call("kmousetool", "qt/KMouseToolUI", "raise()",
diff --git a/kmousetool/kmousetool/mtstroke.cpp b/kmousetool/kmousetool/mtstroke.cpp
index 16b1078..d4ec242 100644
--- a/kmousetool/kmousetool/mtstroke.cpp
+++ b/kmousetool/kmousetool/mtstroke.cpp
@@ -23,7 +23,7 @@
// these are for locating the stroke information file
#include <kstandarddirs.h>
-#include <qstring.h>
+#include <tqstring.h>
// #include <string>
@@ -186,7 +186,7 @@ void MTStroke::getExtent()
// if unable to create it,
bool MTStroke::readSequence()
{
- QString strokefilename;
+ TQString strokefilename;
strokefilename = locate("config", "kmousetool_strokes.txt");
if (strokefilename.isEmpty()) {
// make default
@@ -222,7 +222,7 @@ bool MTStroke::readSequence()
bool MTStroke::writeSequence()
{
- QString strokefilename;
+ TQString strokefilename;
strokefilename = locateLocal("config", "kmousetool_strokes.txt");
ofstream outfile (strokefilename.ascii(), ios::out);
diff --git a/kmouth/configwizard.cpp b/kmouth/configwizard.cpp
index d22c463..3d99005 100644
--- a/kmouth/configwizard.cpp
+++ b/kmouth/configwizard.cpp
@@ -17,8 +17,8 @@
#include "configwizard.h"
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klistview.h>
#include <klocale.h>
#include <kapplication.h>
@@ -31,7 +31,7 @@
#include "wordcompletion/wordcompletion.h"
#include "wordcompletion/dictionarycreationwizard.h"
-ConfigWizard::ConfigWizard (QWidget *parent, const char *name, KConfig *config)
+ConfigWizard::ConfigWizard (TQWidget *parent, const char *name, KConfig *config)
: KWizard(parent, name, true)
{
setCaption (i18n("Initial Configuration - KMouth"));
@@ -63,7 +63,7 @@ void ConfigWizard::initCommandPage(KConfig *config) {
}
void ConfigWizard::initBookPage() {
- QString standardBook = KApplication::kApplication()->dirs()->findResource("appdata", "standard.phrasebook");
+ TQString standardBook = KApplication::kApplication()->dirs()->findResource("appdata", "standard.phrasebook");
bool displayBook = (standardBook.isNull() || standardBook.isEmpty());
if (displayBook) {
@@ -80,15 +80,15 @@ void ConfigWizard::initBookPage() {
void ConfigWizard::initCompletion (KConfig *config) {
if (!WordCompletion::isConfigured()) {
- QString dictionaryFile = KApplication::kApplication()->dirs()->findResource("appdata", "dictionary.txt");
- QFile file(dictionaryFile);
+ TQString dictionaryFile = KApplication::kApplication()->dirs()->findResource("appdata", "dictionary.txt");
+ TQFile file(dictionaryFile);
if (file.exists()) {
// If there is a word completion dictionary but no entry in the
// configuration file, we need to add it there.
config->setGroup("Dictionary 0");
config->writeEntry ("Filename", "dictionary.txt");
config->writeEntry ("Name", "Default");
- config->writeEntry ("Language", QString::null);
+ config->writeEntry ("Language", TQString::null);
config->sync();
}
}
@@ -128,7 +128,7 @@ void ConfigWizard::saveConfig (KConfig *config) {
bool ConfigWizard::requestConfiguration () {
if (commandWidget != 0 || bookWidget != 0 || completionWidget != 0)
- return (exec() == QDialog::Accepted);
+ return (exec() == TQDialog::Accepted);
else
return false;
}
diff --git a/kmouth/configwizard.h b/kmouth/configwizard.h
index 8ddcb60..112e25a 100644
--- a/kmouth/configwizard.h
+++ b/kmouth/configwizard.h
@@ -19,7 +19,7 @@
#ifndef CONFIGWIZARD_H
#define CONFIGWIZARD_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kwizard.h>
@@ -36,7 +36,7 @@ class CompletionWizardWidget;
class ConfigWizard : public KWizard {
Q_OBJECT
public:
- ConfigWizard (QWidget *parent, const char *name, KConfig *config);
+ ConfigWizard (TQWidget *parent, const char *name, KConfig *config);
~ConfigWizard();
bool configurationNeeded ();
diff --git a/kmouth/kmouth.cpp b/kmouth/kmouth.cpp
index c78a010..76c715f 100644
--- a/kmouth/kmouth.cpp
+++ b/kmouth/kmouth.cpp
@@ -16,8 +16,8 @@
***************************************************************************/
// include files for QT
-#include <qdir.h>
-#include <qpainter.h>
+#include <tqdir.h>
+#include <tqpainter.h>
// include files for KDE
#include <kiconloader.h>
@@ -40,7 +40,7 @@
#define ID_STATUS_MSG 1
-KMouthApp::KMouthApp(QWidget* , const char* name):KMainWindow(0, name)
+KMouthApp::KMouthApp(TQWidget* , const char* name):KMainWindow(0, name)
{
isConfigured = false;
config=kapp->config();
@@ -51,10 +51,10 @@ KMouthApp::KMouthApp(QWidget* , const char* name):KMainWindow(0, name)
initPhraseList();
initActions();
optionsDialog = new OptionsDialog(this);
- connect (optionsDialog, SIGNAL(configurationChanged ()),
- this, SLOT(slotConfigurationChanged ()));
- connect (optionsDialog, SIGNAL(configurationChanged ()),
- phraseList, SLOT(configureCompletion ()));
+ connect (optionsDialog, TQT_SIGNAL(configurationChanged ()),
+ this, TQT_SLOT(slotConfigurationChanged ()));
+ connect (optionsDialog, TQT_SIGNAL(configurationChanged ()),
+ phraseList, TQT_SLOT(configureCompletion ()));
phrases = new KActionCollection (this);
@@ -95,57 +95,57 @@ bool KMouthApp::configured() {
void KMouthApp::initActions() {
// The "File" menu
- fileOpen = new KAction(i18n("&Open as History..."), "phrasehistory_open", KStdAccel::open(), this, SLOT(slotFileOpen()), actionCollection(),"file_open");
+ fileOpen = new KAction(i18n("&Open as History..."), "phrasehistory_open", KStdAccel::open(), this, TQT_SLOT(slotFileOpen()), actionCollection(),"file_open");
fileOpen->setStatusText(i18n("Opens an existing file as history"));
fileOpen->setWhatsThis (i18n("Opens an existing file as history"));
- fileSaveAs = new KAction(i18n("Save &History As..."), "phrasehistory_save", KStdAccel::save(), this, SLOT(slotFileSaveAs()), actionCollection(),"file_save_as");
+ fileSaveAs = new KAction(i18n("Save &History As..."), "phrasehistory_save", KStdAccel::save(), this, TQT_SLOT(slotFileSaveAs()), actionCollection(),"file_save_as");
fileSaveAs->setStatusText(i18n("Saves the actual history as..."));
fileSaveAs->setWhatsThis (i18n("Saves the actual history as..."));
- filePrint = new KAction(i18n("&Print History..."), "phrasehistory_print", KStdAccel::print(), this, SLOT(slotFilePrint()), actionCollection(),"file_print");
+ filePrint = new KAction(i18n("&Print History..."), "phrasehistory_print", KStdAccel::print(), this, TQT_SLOT(slotFilePrint()), actionCollection(),"file_print");
filePrint->setStatusText(i18n("Prints out the actual history"));
filePrint->setWhatsThis (i18n("Prints out the actual history"));
- fileQuit = KStdAction::quit(this, SLOT(slotFileQuit()), actionCollection());
+ fileQuit = KStdAction::quit(this, TQT_SLOT(slotFileQuit()), actionCollection());
fileQuit->setStatusText(i18n("Quits the application"));
fileQuit->setWhatsThis (i18n("Quits the application"));
// The "Edit" menu
- editCut = KStdAction::cut(phraseList, SLOT(cut()), actionCollection());
+ editCut = KStdAction::cut(phraseList, TQT_SLOT(cut()), actionCollection());
editCut->setStatusText(i18n("Cuts the selected section and puts it to the clipboard"));
editCut->setWhatsThis (i18n("Cuts the selected section and puts it to the clipboard. If there is some text selected in the edit field it is placed it on the clipboard. Otherwise the selected sentences in the history (if any) are placed on the clipboard."));
- editCopy = KStdAction::copy(phraseList, SLOT(copy()), actionCollection());
+ editCopy = KStdAction::copy(phraseList, TQT_SLOT(copy()), actionCollection());
editCopy->setStatusText(i18n("Copies the selected section to the clipboard"));
editCopy->setWhatsThis (i18n("Copies the selected section to the clipboard. If there is some text selected in the edit field it is copied to the clipboard. Otherwise the selected sentences in the history (if any) are copied to the clipboard."));
- editPaste = KStdAction::paste(phraseList, SLOT(paste()), actionCollection());
+ editPaste = KStdAction::paste(phraseList, TQT_SLOT(paste()), actionCollection());
editPaste->setStatusText(i18n("Pastes the clipboard contents to actual position"));
editPaste->setWhatsThis (i18n("Pastes the clipboard contents at the current cursor position into the edit field."));
- editSpeak = new KAction (i18n("&Speak"), "speak", 0, phraseList, SLOT(speak()), actionCollection(),"edit_speak");
+ editSpeak = new KAction (i18n("&Speak"), "speak", 0, phraseList, TQT_SLOT(speak()), actionCollection(),"edit_speak");
editSpeak->setStatusText(i18n("Speaks the currently active sentence(s)"));
editSpeak->setWhatsThis (i18n("Speaks the currently active sentence(s). If there is some text in the edit field it is spoken. Otherwise the selected sentences in the history (if any) are spoken."));
// The "Phrase book" menu
- phrasebookEdit = new KAction(i18n("&Edit..."), 0, 0, this, SLOT(slotEditPhrasebook()), actionCollection(),"phrasebook_edit");
+ phrasebookEdit = new KAction(i18n("&Edit..."), 0, 0, this, TQT_SLOT(slotEditPhrasebook()), actionCollection(),"phrasebook_edit");
// The "Options" menu
- viewMenuBar = KStdAction::showMenubar(this, SLOT(slotViewMenuBar()), actionCollection());
- viewToolBar = KStdAction::showToolbar(this, SLOT(slotViewToolBar()), actionCollection());
+ viewMenuBar = KStdAction::showMenubar(this, TQT_SLOT(slotViewMenuBar()), actionCollection());
+ viewToolBar = KStdAction::showToolbar(this, TQT_SLOT(slotViewToolBar()), actionCollection());
viewToolBar->setStatusText(i18n("Enables/disables the toolbar"));
viewToolBar->setWhatsThis (i18n("Enables/disables the toolbar"));
- viewPhrasebookBar = new KToggleAction (i18n("Show P&hrasebook Bar"), 0, 0, this, SLOT(slotViewPhrasebookBar()), actionCollection(), "showPhrasebookBar");
+ viewPhrasebookBar = new KToggleAction (i18n("Show P&hrasebook Bar"), 0, 0, this, TQT_SLOT(slotViewPhrasebookBar()), actionCollection(), "showPhrasebookBar");
viewPhrasebookBar->setStatusText(i18n("Enables/disables the phrasebook bar"));
viewPhrasebookBar->setWhatsThis (i18n("Enables/disables the phrasebook bar"));
- viewStatusBar = KStdAction::showStatusbar(this, SLOT(slotViewStatusBar()), actionCollection());
+ viewStatusBar = KStdAction::showStatusbar(this, TQT_SLOT(slotViewStatusBar()), actionCollection());
viewStatusBar->setStatusText(i18n("Enables/disables the statusbar"));
viewStatusBar->setWhatsThis (i18n("Enables/disables the statusbar"));
- configureTTS = new KAction (i18n("&Configure KMouth..."), "configure", 0, this, SLOT(slotConfigureTTS()), actionCollection(), "configureTTS");
+ configureTTS = new KAction (i18n("&Configure KMouth..."), "configure", 0, this, TQT_SLOT(slotConfigureTTS()), actionCollection(), "configureTTS");
configureTTS->setStatusText(i18n("Opens the configuration dialog"));
configureTTS->setWhatsThis (i18n("Opens the configuration dialog"));
@@ -153,27 +153,27 @@ void KMouthApp::initActions() {
// The "Help" menu will automatically get created.
// The popup menu of the list of spoken sentences
- phraseListSpeak = new KAction (i18n("&Speak"), "speak", 0, phraseList, SLOT(speakListSelection()), actionCollection(), "phraselist_speak");
+ phraseListSpeak = new KAction (i18n("&Speak"), "speak", 0, phraseList, TQT_SLOT(speakListSelection()), actionCollection(), "phraselist_speak");
phraseListSpeak->setStatusText(i18n("Speaks the currently selected phrases in the history"));
phraseListSpeak->setWhatsThis (i18n("Speaks the currently selected phrases in the history"));
- phraseListRemove = new KAction (i18n("&Delete"), "editdelete", 0, phraseList, SLOT(removeListSelection()), actionCollection(), "phraselist_remove");
+ phraseListRemove = new KAction (i18n("&Delete"), "editdelete", 0, phraseList, TQT_SLOT(removeListSelection()), actionCollection(), "phraselist_remove");
phraseListRemove->setStatusText(i18n("Deletes the currently selected phrases from the history"));
phraseListRemove->setWhatsThis (i18n("Deletes the currently selected phrases from the history"));
- phraseListCut = new KAction (i18n("Cu&t"), "editcut", 0, phraseList, SLOT(cutListSelection()), actionCollection(), "phraselist_cut");
+ phraseListCut = new KAction (i18n("Cu&t"), "editcut", 0, phraseList, TQT_SLOT(cutListSelection()), actionCollection(), "phraselist_cut");
phraseListCut->setStatusText(i18n("Cuts the currently selected phrases from the history and puts them to the clipboard"));
phraseListCut->setWhatsThis (i18n("Cuts the currently selected phrases from the history and puts them to the clipboard"));
- phraseListCopy = new KAction (i18n("&Copy"), "editcopy", 0, phraseList, SLOT(copyListSelection()), actionCollection(), "phraselist_copy");
+ phraseListCopy = new KAction (i18n("&Copy"), "editcopy", 0, phraseList, TQT_SLOT(copyListSelection()), actionCollection(), "phraselist_copy");
phraseListCut->setStatusText(i18n("Copies the currently selected phrases from the history to the clipboard"));
phraseListCut->setWhatsThis (i18n("Copies the currently selected phrases from the history to the clipboard"));
- phraselistSelectAll = new KAction (i18n("Select &All Entries"), 0, 0, phraseList, SLOT(selectAllEntries()), actionCollection(),"phraselist_select_all");
+ phraselistSelectAll = new KAction (i18n("Select &All Entries"), 0, 0, phraseList, TQT_SLOT(selectAllEntries()), actionCollection(),"phraselist_select_all");
phraselistSelectAll->setStatusText(i18n("Selects all phrases in the history"));
phraselistSelectAll->setWhatsThis (i18n("Selects all phrases in the history"));
- phraselistDeselectAll = new KAction (i18n("D&eselect All Entries"), 0, 0, phraseList, SLOT(deselectAllEntries()), actionCollection(),"phraselist_deselect_all");
+ phraselistDeselectAll = new KAction (i18n("D&eselect All Entries"), 0, 0, phraseList, TQT_SLOT(deselectAllEntries()), actionCollection(),"phraselist_deselect_all");
phraselistDeselectAll->setStatusText(i18n("Deselects all phrases in the history"));
phraselistDeselectAll->setWhatsThis (i18n("Deselects all phrases in the history"));
@@ -255,7 +255,7 @@ void KMouthApp::readOptions()
toolBarPos=(KToolBar::BarPosition) config->readNumEntry("ToolBarPos", KToolBar::Top);
toolBar("mainToolBar")->setBarPos(toolBarPos);
- QSize size=config->readSizeEntry("Geometry");
+ TQSize size=config->readSizeEntry("Geometry");
if(!size.isEmpty())
{
resize(size);
@@ -266,7 +266,7 @@ void KMouthApp::readOptions()
toolBar("mainToolBar")->applySettings (config, "mainToolBar");
toolBar("phrasebookBar")->applySettings (config, "phrasebookBar");
- QString standardBook = KApplication::kApplication()->dirs()->findResource("appdata", "standard.phrasebook");
+ TQString standardBook = KApplication::kApplication()->dirs()->findResource("appdata", "standard.phrasebook");
if (!standardBook.isEmpty()) {
PhraseBook book;
book.open(KURL::fromPathOrURL( standardBook ));
@@ -302,7 +302,7 @@ void KMouthApp::enableMenuEntries(bool existSelectedEntries, bool existDeselecte
}
/////////////////////////////////////////////////////////////////////
-// SLOT IMPLEMENTATION
+// TQT_SLOT IMPLEMENTATION
/////////////////////////////////////////////////////////////////////
void KMouthApp::slotFileOpen() {
@@ -358,10 +358,10 @@ void KMouthApp::slotEditPhrasebook () {
PhraseBookDialog *phraseBookDialog = PhraseBookDialog::get();
// As we do not know whether the we are already connected to the slot,
// we first disconnect and then connect again.
- disconnect (phraseBookDialog, SIGNAL(phrasebookConfirmed (PhraseBook &)),
- this, SLOT(slotPhrasebookConfirmed (PhraseBook &)));
- connect (phraseBookDialog, SIGNAL(phrasebookConfirmed (PhraseBook &)),
- this, SLOT(slotPhrasebookConfirmed (PhraseBook &)));
+ disconnect (phraseBookDialog, TQT_SIGNAL(phrasebookConfirmed (PhraseBook &)),
+ this, TQT_SLOT(slotPhrasebookConfirmed (PhraseBook &)));
+ connect (phraseBookDialog, TQT_SIGNAL(phrasebookConfirmed (PhraseBook &)),
+ this, TQT_SLOT(slotPhrasebookConfirmed (PhraseBook &)));
// As we do not know whether the phrase book edit window is already open,
// we first open and then raise it, so that it is surely the top window.
@@ -437,7 +437,7 @@ void KMouthApp::slotConfigureTTS() {
}
-void KMouthApp::slotStatusMsg(const QString &text)
+void KMouthApp::slotStatusMsg(const TQString &text)
{
///////////////////////////////////////////////////////////////////
// change status message permanently
@@ -446,8 +446,8 @@ void KMouthApp::slotStatusMsg(const QString &text)
}
void KMouthApp::slotPhrasebookConfirmed (PhraseBook &book) {
- QString name = "phrasebooks";
- QPopupMenu *popup = (QPopupMenu *)factory()->container(name, this);
+ TQString name = "phrasebooks";
+ TQPopupMenu *popup = (TQPopupMenu *)factory()->container(name, this);
KToolBar *toolbar = toolBar ("phrasebookBar");
KActionPtrList actions = phrases->actions ();
@@ -458,9 +458,9 @@ void KMouthApp::slotPhrasebookConfirmed (PhraseBook &book) {
delete phrases;
phrases = new KActionCollection (this, actionCollection());
- book.addToGUI (popup, toolbar, phrases, this, SLOT(slotPhraseSelected (const QString &)));
+ book.addToGUI (popup, toolbar, phrases, this, TQT_SLOT(slotPhraseSelected (const TQString &)));
- QString bookLocation = KApplication::kApplication()->dirs()->saveLocation ("appdata", "/");
+ TQString bookLocation = KApplication::kApplication()->dirs()->saveLocation ("appdata", "/");
if (!bookLocation.isNull() && !bookLocation.isEmpty()) {
book.save (KURL::fromPathOrURL( bookLocation + "standard.phrasebook" ));
}
@@ -471,7 +471,7 @@ void KMouthApp::slotConfigurationChanged()
optionsDialog->saveOptions (config);
}
-void KMouthApp::slotPhraseSelected (const QString &phrase) {
+void KMouthApp::slotPhraseSelected (const TQString &phrase) {
phraseList->insert (phrase);
if (optionsDialog->isSpeakImmediately())
phraseList->speak ();
diff --git a/kmouth/kmouth.h b/kmouth/kmouth.h
index 6ff6bad..ba7756d 100644
--- a/kmouth/kmouth.h
+++ b/kmouth/kmouth.h
@@ -60,7 +60,7 @@ class KMouthApp : public KMainWindow
public:
/** construtor of KMouthApp, calls all init functions to create the application.
*/
- KMouthApp(QWidget* parent=0, const char* name=0);
+ KMouthApp(TQWidget* parent=0, const char* name=0);
~KMouthApp();
/** Returns true if the configuration wizard was not needed or when it
* was successfully completed.
@@ -139,13 +139,13 @@ class KMouthApp : public KMainWindow
/** changes the statusbar contents for the standard label permanently, used to indicate current actions.
* @param text the text that is displayed in the statusbar
*/
- void slotStatusMsg(const QString &text);
+ void slotStatusMsg(const TQString &text);
void slotPhrasebookConfirmed (PhraseBook &book);
void slotConfigurationChanged();
- void slotPhraseSelected (const QString &phrase);
+ void slotPhraseSelected (const TQString &phrase);
private:
bool isConfigured;
diff --git a/kmouth/optionsdialog.cpp b/kmouth/optionsdialog.cpp
index 4873167..a16e1e4 100644
--- a/kmouth/optionsdialog.cpp
+++ b/kmouth/optionsdialog.cpp
@@ -16,13 +16,13 @@
***************************************************************************/
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qwhatsthis.h>
-#include <qgrid.h>
-#include <qtabwidget.h>
-#include <qpixmap.h>
-#include <qfile.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqwhatsthis.h>
+#include <tqgrid.h>
+#include <tqtabwidget.h>
+#include <tqpixmap.h>
+#include <tqfile.h>
#include <kcombobox.h>
#include <klocale.h>
@@ -39,7 +39,7 @@
#include "texttospeechconfigurationwidget.h"
#include "speech.h"
-PreferencesWidget::PreferencesWidget (QWidget *parent, const char *name)
+PreferencesWidget::PreferencesWidget (TQWidget *parent, const char *name)
: PreferencesUI (parent, name)
{
speakCombo->setCurrentItem (1);
@@ -113,16 +113,16 @@ bool PreferencesWidget::isSpeakImmediately () {
/***************************************************************************/
-OptionsDialog::OptionsDialog (QWidget *parent)
+OptionsDialog::OptionsDialog (TQWidget *parent)
: KDialogBase(IconList, i18n("Configuration"), Ok|Apply|Cancel|Help, Ok,
parent, "configuration", false, true)
{
setHelp ("config-dialog");
- QPixmap iconGeneral = KGlobal::iconLoader()->loadIcon("configure", KIcon::NoGroup, KIcon::SizeMedium);
- QGrid *pageGeneral = addGridPage (1, Qt::Horizontal, i18n("General Options"), QString::null, iconGeneral);
+ TQPixmap iconGeneral = KGlobal::iconLoader()->loadIcon("configure", KIcon::NoGroup, KIcon::SizeMedium);
+ TQGrid *pageGeneral = addGridPage (1, Qt::Horizontal, i18n("General Options"), TQString::null, iconGeneral);
- tabCtl = new QTabWidget (pageGeneral, "general");
+ tabCtl = new TQTabWidget (pageGeneral, "general");
behaviourWidget = new PreferencesWidget (tabCtl, "prefPage");
behaviourWidget->layout()->setMargin(KDialog::marginHint());
@@ -132,17 +132,17 @@ OptionsDialog::OptionsDialog (QWidget *parent)
commandWidget->layout()->setMargin(KDialog::marginHint());
tabCtl->addTab (commandWidget, i18n("&Text-to-Speech"));
- QPixmap iconCompletion = KGlobal::iconLoader()->loadIcon("keyboard", KIcon::NoGroup, KIcon::SizeMedium);
- QGrid *pageCompletion = addGridPage (1, Qt::Horizontal, i18n("Word Completion"), QString::null, iconCompletion);
+ TQPixmap iconCompletion = KGlobal::iconLoader()->loadIcon("keyboard", KIcon::NoGroup, KIcon::SizeMedium);
+ TQGrid *pageCompletion = addGridPage (1, Qt::Horizontal, i18n("Word Completion"), TQString::null, iconCompletion);
completionWidget = new WordCompletionWidget(pageCompletion, "Word Completion widget");
kttsd = loadKttsd();
if (kttsd != 0) {
- QPixmap iconKttsd = KGlobal::iconLoader()->loadIcon("multimedia", KIcon::NoGroup, KIcon::SizeMedium);
- QGrid *pageKttsd = addGridPage (1, Qt::Horizontal, i18n("KTTSD Speech Service"),
+ TQPixmap iconKttsd = KGlobal::iconLoader()->loadIcon("multimedia", KIcon::NoGroup, KIcon::SizeMedium);
+ TQGrid *pageKttsd = addGridPage (1, Qt::Horizontal, i18n("KTTSD Speech Service"),
i18n("KDE Text-to-Speech Daemon Configuration"), iconKttsd);
- kttsd->reparent(pageKttsd,0,QPoint(0,0),true);
+ kttsd->reparent(pageKttsd,0,TQPoint(0,0),true);
}
}
@@ -202,19 +202,19 @@ bool OptionsDialog::isSpeakImmediately () {
KCModule *OptionsDialog::loadKttsd () {
KLibLoader *loader = KLibLoader::self();
- QString libname = "kcm_kttsd";
- KLibrary *lib = loader->library(QFile::encodeName(libname));
+ TQString libname = "kcm_kttsd";
+ KLibrary *lib = loader->library(TQFile::encodeName(libname));
if (lib == 0) {
libname = "libkcm_kttsd";
- lib = loader->library(QFile::encodeName("libkcm_kttsd"));
+ lib = loader->library(TQFile::encodeName("libkcm_kttsd"));
}
if (lib != 0) {
- QString initSym("init_");
+ TQString initSym("init_");
initSym += libname;
- if (lib->hasSymbol(QFile::encodeName(initSym))) {
+ if (lib->hasSymbol(TQFile::encodeName(initSym))) {
// Reuse "lib" instead of letting createInstanceFromLibrary recreate it
KLibFactory *factory = lib->factory();
if (factory != 0) {
@@ -231,8 +231,8 @@ KCModule *OptionsDialog::loadKttsd () {
void OptionsDialog::unloadKttsd () {
KLibLoader *loader = KLibLoader::self();
- loader->unloadLibrary(QFile::encodeName("libkcm_kttsd"));
- loader->unloadLibrary(QFile::encodeName("kcm_kttsd"));
+ loader->unloadLibrary(TQFile::encodeName("libkcm_kttsd"));
+ loader->unloadLibrary(TQFile::encodeName("kcm_kttsd"));
}
#include "optionsdialog.moc"
diff --git a/kmouth/optionsdialog.h b/kmouth/optionsdialog.h
index 8597e70..b9b796f 100644
--- a/kmouth/optionsdialog.h
+++ b/kmouth/optionsdialog.h
@@ -20,7 +20,7 @@
#ifndef OPTIONSDIALOG_H
#define OPTIONSDIALOG_H
-#include <qobject.h>
+#include <tqobject.h>
#include "preferencesui.h"
#include "texttospeechconfigurationwidget.h"
class QTabWidget;
@@ -34,7 +34,7 @@ class WordCompletionWidget;
class PreferencesWidget : public PreferencesUI {
Q_OBJECT
public:
- PreferencesWidget(QWidget *parent, const char *name);
+ PreferencesWidget(TQWidget *parent, const char *name);
~PreferencesWidget();
void readOptions (KConfig *config);
@@ -57,7 +57,7 @@ private:
class OptionsDialog : public KDialogBase {
Q_OBJECT
public:
- OptionsDialog(QWidget *parent);
+ OptionsDialog(TQWidget *parent);
~OptionsDialog();
void slotCancel();
@@ -75,7 +75,7 @@ signals:
void configurationChanged ();
private:
- QTabWidget *tabCtl;
+ TQTabWidget *tabCtl;
TextToSpeechConfigurationWidget *commandWidget;
PreferencesWidget *behaviourWidget;
KCModule *kttsd;
diff --git a/kmouth/phrasebook/phrasebook.cpp b/kmouth/phrasebook/phrasebook.cpp
index 0ec8da3..cc5d900 100644
--- a/kmouth/phrasebook/phrasebook.cpp
+++ b/kmouth/phrasebook/phrasebook.cpp
@@ -15,12 +15,12 @@
* *
***************************************************************************/
-#include <qprinter.h>
-#include <qpainter.h>
-#include <qfile.h>
-#include <qxml.h>
-#include <qregexp.h>
-#include <qptrstack.h>
+#include <tqprinter.h>
+#include <tqpainter.h>
+#include <tqfile.h>
+#include <tqxml.h>
+#include <tqregexp.h>
+#include <tqptrstack.h>
#include <klocale.h>
#include <kaction.h>
@@ -40,29 +40,29 @@ Phrase::Phrase() {
this->shortcut = "";
}
-Phrase::Phrase (const QString &phrase) {
+Phrase::Phrase (const TQString &phrase) {
this->phrase = phrase;
this->shortcut = "";
}
-Phrase::Phrase (const QString &phrase, const QString &shortcut) {
+Phrase::Phrase (const TQString &phrase, const TQString &shortcut) {
this->phrase = phrase;
this->shortcut = shortcut;
}
-QString Phrase::getPhrase() const {
+TQString Phrase::getPhrase() const {
return phrase;
}
-QString Phrase::getShortcut() const {
+TQString Phrase::getShortcut() const {
return shortcut;
}
-void Phrase::setPhrase (const QString &phrase) {
+void Phrase::setPhrase (const TQString &phrase) {
this->phrase = phrase;
}
-void Phrase::setShortcut (const QString &shortcut) {
+void Phrase::setShortcut (const TQString &shortcut) {
this->shortcut = shortcut;
}
@@ -95,19 +95,19 @@ int PhraseBookEntry::getLevel() const {
// ***************************************************************************
void PhraseBook::print(KPrinter *pPrinter) {
- QPainter printpainter;
+ TQPainter printpainter;
printpainter.begin(pPrinter);
- QRect size = printpainter.viewport ();
+ TQRect size = printpainter.viewport ();
int x = size.x();
int y = size.y();
int w = size.width();
- printpainter.setFont (QFont (KGlobalSettings::generalFont().family(), 12));
- QFontMetrics metrics = printpainter.fontMetrics();
+ printpainter.setFont (TQFont (KGlobalSettings::generalFont().family(), 12));
+ TQFontMetrics metrics = printpainter.fontMetrics();
PhraseBookEntryList::iterator it;
for (it = begin(); it != end(); ++it) {
- QRect rect = metrics.boundingRect (x+16*(*it).getLevel(), y,
+ TQRect rect = metrics.boundingRect (x+16*(*it).getLevel(), y,
w-16*(*it).getLevel(), 0,
Qt::AlignJustify | Qt::WordBreak,
(*it).getPhrase().getPhrase());
@@ -126,15 +126,15 @@ void PhraseBook::print(KPrinter *pPrinter) {
printpainter.end();
}
-bool PhraseBook::decode (const QString &xml) {
- QXmlInputSource source;
+bool PhraseBook::decode (const TQString &xml) {
+ TQXmlInputSource source;
source.setData (xml);
return decode (source);
}
-bool PhraseBook::decode (QXmlInputSource &source) {
+bool PhraseBook::decode (TQXmlInputSource &source) {
PhraseBookParser parser;
- QXmlSimpleReader reader;
+ TQXmlSimpleReader reader;
reader.setFeature ("http://trolltech.com/xml/features/report-start-end-entity", true);
reader.setContentHandler (&parser);
@@ -147,12 +147,12 @@ bool PhraseBook::decode (QXmlInputSource &source) {
return false;
}
-QCString encodeString (const QString str) {
- QCString res = "";
+TQCString encodeString (const TQString str) {
+ TQCString res = "";
for (int i = 0; i < (int)str.length(); i++) {
- QChar ch = str.at(i);
+ TQChar ch = str.at(i);
ushort uc = ch.unicode();
- QCString number; number.setNum(uc);
+ TQCString number; number.setNum(uc);
if ((uc>127) || (uc<32) || (ch=='<') || (ch=='>') || (ch=='&') || (ch==';'))
res = res + "&#" + number + ";";
else
@@ -161,8 +161,8 @@ QCString encodeString (const QString str) {
return res;
}
-QString PhraseBook::encode () {
- QString result;
+TQString PhraseBook::encode () {
+ TQString result;
result = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
result += "<!DOCTYPE phrasebook>\n";
result += "<phrasebook>\n";
@@ -199,8 +199,8 @@ QString PhraseBook::encode () {
return result;
}
-QStringList PhraseBook::toStringList () {
- QStringList result;
+TQStringList PhraseBook::toStringList () {
+ TQStringList result;
PhraseBook::iterator it;
for (it = begin(); it != end(); ++it) {
@@ -211,12 +211,12 @@ QStringList PhraseBook::toStringList () {
}
bool PhraseBook::save (const KURL &url) {
- QRegExp pattern("*.phrasebook",true,true);
+ TQRegExp pattern("*.phrasebook",true,true);
return save (url, pattern.exactMatch(url.filename()));
}
-void PhraseBook::save (QTextStream &stream, bool asPhrasebook) {
+void PhraseBook::save (TQTextStream &stream, bool asPhrasebook) {
if (asPhrasebook)
stream << encode();
else
@@ -225,11 +225,11 @@ void PhraseBook::save (QTextStream &stream, bool asPhrasebook) {
bool PhraseBook::save (const KURL &url, bool asPhrasebook) {
if (url.isLocalFile()) {
- QFile file(url.path());
+ TQFile file(url.path());
if(!file.open(IO_WriteOnly))
return false;
- QTextStream stream(&file);
+ TQTextStream stream(&file);
save (stream, asPhrasebook);
file.close();
@@ -249,21 +249,21 @@ bool PhraseBook::save (const KURL &url, bool asPhrasebook) {
}
}
-int PhraseBook::save (QWidget *parent, const QString &title, KURL &url, bool phrasebookFirst) {
+int PhraseBook::save (TQWidget *parent, const TQString &title, KURL &url, bool phrasebookFirst) {
// KFileDialog::getSaveURL(...) is not useful here as we need
// to know the requested file type.
- QString filters;
+ TQString filters;
if (phrasebookFirst)
filters = i18n("*.phrasebook|Phrase Books (*.phrasebook)\n*.txt|Plain Text Files (*.txt)\n*|All Files");
else
filters = i18n("*.txt|Plain Text Files (*.txt)\n*.phrasebook|Phrase Books (*.phrasebook)\n*|All Files");
- KFileDialog fdlg(QString::null,filters, parent, "filedialog", true);
+ KFileDialog fdlg(TQString::null,filters, parent, "filedialog", true);
fdlg.setCaption(title);
fdlg.setOperationMode( KFileDialog::Saving );
- if (fdlg.exec() != QDialog::Accepted) {
+ if (fdlg.exec() != TQDialog::Accepted) {
return 0;
}
@@ -274,7 +274,7 @@ int PhraseBook::save (QWidget *parent, const QString &title, KURL &url, bool phr
}
if (KIO::NetAccess::exists(url)) {
- if (KMessageBox::warningContinueCancel(0,QString("<qt>%1</qt>").arg(i18n("The file %1 already exists. "
+ 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;
}
@@ -286,7 +286,7 @@ int PhraseBook::save (QWidget *parent, const QString &title, KURL &url, bool phr
url.setFileName (url.fileName(false) + ".phrasebook");
}
else if (url.fileName (false).right (11).contains (".phrasebook", false) == 0) {
- int filetype = KMessageBox::questionYesNoCancel (0,QString("<qt>%1</qt>").arg(i18n("Your chosen filename <i>%1</i> has a different extension than <i>.phrasebook</i>. "
+ int filetype = KMessageBox::questionYesNoCancel (0,TQString("<qt>%1</qt>").arg(i18n("Your chosen filename <i>%1</i> has a different extension than <i>.phrasebook</i>. "
"Do you wish to add <i>.phrasebook</i> to the filename?").arg(url.filename())),i18n("File Extension"),i18n("Add"),i18n("Do Not Add"));
if (filetype == KMessageBox::Cancel) {
return 0;
@@ -302,7 +302,7 @@ int PhraseBook::save (QWidget *parent, const QString &title, KURL &url, bool phr
result = save (url, false);
}
else {
- int filetype = KMessageBox::questionYesNoCancel (0,QString("<qt>%1</qt>").arg(i18n("Your chosen filename <i>%1</i> has the extension <i>.phrasebook</i>. "
+ int filetype = KMessageBox::questionYesNoCancel (0,TQString("<qt>%1</qt>").arg(i18n("Your chosen filename <i>%1</i> has the extension <i>.phrasebook</i>. "
"Do you wish to save in phrasebook format?").arg(url.filename())),i18n("File Extension"),i18n("As Phrasebook"),i18n("As Plain Text"));
if (filetype == KMessageBox::Cancel) {
return 0;
@@ -325,21 +325,21 @@ int PhraseBook::save (QWidget *parent, const QString &title, KURL &url, bool phr
}
bool PhraseBook::open (const KURL &url) {
- QString tempFile;
+ TQString tempFile;
KURL fileUrl = url;
- QString protocol = fileUrl.protocol();
+ TQString protocol = fileUrl.protocol();
if (protocol.isEmpty() || protocol.isNull()) {
fileUrl.setProtocol ("file");
fileUrl.setPath (url.url());
}
if (KIO::NetAccess::download (fileUrl, tempFile)) {
- QStringList list = QStringList();
+ TQStringList list = TQStringList();
// First: try to load it as a normal phrase book
- QFile file(tempFile);
- QXmlInputSource source (&file);
+ TQFile file(tempFile);
+ TQXmlInputSource source (&file);
bool error = !decode (source);
// Second: if the file does not contain a phrase book, load it as
@@ -347,12 +347,12 @@ bool PhraseBook::open (const KURL &url) {
if (error) {
// Load each line of the plain text file as a new phrase
- QFile file(tempFile);
+ TQFile file(tempFile);
if (file.open(IO_ReadOnly)) {
- QTextStream stream(&file);
+ TQTextStream stream(&file);
while (!stream.atEnd()) {
- QString s = stream.readLine();
+ TQString s = stream.readLine();
if (!(s.isNull() || s.isEmpty()))
*this += PhraseBookEntry(Phrase(s, ""), 0, true);
}
@@ -370,14 +370,14 @@ bool PhraseBook::open (const KURL &url) {
return false;
}
-void PhraseBook::addToGUI (QPopupMenu *popup, KToolBar *toolbar, KActionCollection *phrases,
- QObject *receiver, const char *slot) const {
+void PhraseBook::addToGUI (TQPopupMenu *popup, KToolBar *toolbar, KActionCollection *phrases,
+ TQObject *receiver, const char *slot) const {
if ((popup != 0) || (toolbar != 0)) {
- QPtrStack<QWidget> stack;
- QWidget *parent = popup;
+ TQPtrStack<TQWidget> stack;
+ TQWidget *parent = popup;
int level = 0;
- QValueListConstIterator<PhraseBookEntry> it;
+ TQValueListConstIterator<PhraseBookEntry> it;
for (it = begin(); it != end(); ++it) {
int newLevel = (*it).getLevel();
while (newLevel > level) {
@@ -422,10 +422,10 @@ void PhraseBook::addToGUI (QPopupMenu *popup, KToolBar *toolbar, KActionCollecti
}
}
-void PhraseBook::insert (const QString &name, const PhraseBook &book) {
+void PhraseBook::insert (const TQString &name, const PhraseBook &book) {
*this += PhraseBookEntry(Phrase(name), 0, false);
- QValueListConstIterator<PhraseBookEntry> it;
+ TQValueListConstIterator<PhraseBookEntry> it;
for (it = book.begin(); it != book.end(); ++it) {
*this += PhraseBookEntry ((*it).getPhrase(), (*it).getLevel()+1, (*it).isPhrase());
}
@@ -433,14 +433,14 @@ void PhraseBook::insert (const QString &name, const PhraseBook &book) {
// ***************************************************************************
-PhraseBookDrag::PhraseBookDrag (PhraseBook *book, QWidget *dragSource, const char *name)
- : QDragObject (dragSource, name)
+PhraseBookDrag::PhraseBookDrag (PhraseBook *book, TQWidget *dragSource, const char *name)
+ : TQDragObject (dragSource, name)
{
setBook (book);
}
-PhraseBookDrag::PhraseBookDrag (QWidget *dragSource, const char *name)
- : QDragObject (dragSource, name)
+PhraseBookDrag::PhraseBookDrag (TQWidget *dragSource, const char *name)
+ : TQDragObject (dragSource, name)
{
setBook (0);
}
@@ -451,9 +451,9 @@ PhraseBookDrag::~PhraseBookDrag () {
void PhraseBookDrag::setBook (PhraseBook *book) {
if (book == 0) {
isEmpty = true;
- xmlphrasebook.setText(QString::null);
- xml.setText(QString::null);
- plain.setText(QString::null);
+ xmlphrasebook.setText(TQString::null);
+ xml.setText(TQString::null);
+ plain.setText(TQString::null);
}
else {
isEmpty = false;
@@ -477,8 +477,8 @@ const char *PhraseBookDrag::format (int i) const {
return xmlphrasebook.format(i/3);
}
-QByteArray PhraseBookDrag::encodedData (const char* mime) const {
- QCString m(mime);
+TQByteArray PhraseBookDrag::encodedData (const char* mime) const {
+ TQCString m(mime);
m = m.lower();
if (m.contains("xml-phrasebook"))
return xmlphrasebook.encodedData(mime);
@@ -488,18 +488,18 @@ QByteArray PhraseBookDrag::encodedData (const char* mime) const {
return plain.encodedData(mime);
}
-bool PhraseBookDrag::canDecode (const QMimeSource* e) {
- return QTextDrag::canDecode(e);
+bool PhraseBookDrag::canDecode (const TQMimeSource* e) {
+ return TQTextDrag::canDecode(e);
}
-bool PhraseBookDrag::decode (const QMimeSource *e, PhraseBook *book) {
- QString string;
- QCString subtype1 = "x-xml-phrasebook";
- QCString subtype2 = "xml";
+bool PhraseBookDrag::decode (const TQMimeSource *e, PhraseBook *book) {
+ TQString string;
+ TQCString subtype1 = "x-xml-phrasebook";
+ TQCString subtype2 = "xml";
- if (!QTextDrag::decode(e, string, subtype1))
- if (!QTextDrag::decode(e, string, subtype2)) {
- if (QTextDrag::decode(e, string)) {
+ if (!TQTextDrag::decode(e, string, subtype1))
+ if (!TQTextDrag::decode(e, string, subtype2)) {
+ if (TQTextDrag::decode(e, string)) {
*book += PhraseBookEntry(Phrase(string, ""), 0, true);
return true;
}
diff --git a/kmouth/phrasebook/phrasebook.h b/kmouth/phrasebook/phrasebook.h
index 83cb3a9..b0133b1 100644
--- a/kmouth/phrasebook/phrasebook.h
+++ b/kmouth/phrasebook/phrasebook.h
@@ -18,9 +18,9 @@
#ifndef PHRASEBOOK_H
#define PHRASEBOOK_H
-#include <qobject.h>
-#include <qdragobject.h>
-#include <qxml.h>
+#include <tqobject.h>
+#include <tqdragobject.h>
+#include <tqxml.h>
#include <kaction.h>
#include <kprinter.h>
@@ -35,18 +35,18 @@ class Phrase {
friend class PhraseBookParser;
public:
Phrase();
- Phrase (const QString &phrase);
- Phrase (const QString &phrase, const QString &shortcut);
+ Phrase (const TQString &phrase);
+ Phrase (const TQString &phrase, const TQString &shortcut);
- QString getPhrase() const;
- QString getShortcut() const;
+ TQString getPhrase() const;
+ TQString getShortcut() const;
- void setPhrase (const QString &phrase);
- void setShortcut (const QString &shortcut);
+ void setPhrase (const TQString &phrase);
+ void setShortcut (const TQString &shortcut);
private:
- QString phrase;
- QString shortcut;
+ TQString phrase;
+ TQString shortcut;
};
/**
@@ -72,7 +72,7 @@ private:
int level;
};
-typedef QValueList<PhraseBookEntry> PhraseBookEntryList;
+typedef TQValueList<PhraseBookEntry> PhraseBookEntryList;
/**
* The class PhraseBook implements a phrase book. It mainly stores a
@@ -96,10 +96,10 @@ public:
bool open (const KURL &url);
/** decodes a phrase book. Returns true if successful. */
- bool decode (const QString &xml);
+ bool decode (const TQString &xml);
/** decodes a phrase book. Returns true if successful. */
- bool decode (QXmlInputSource &source);
+ bool decode (TQXmlInputSource &source);
/** Writes the phrases to a file. Returns true if successful. */
bool save (const KURL &url);
@@ -107,8 +107,8 @@ public:
/** Writes the phrases to a file. Returns true if successful. */
bool save (const KURL &url, bool asPhrasebook);
- /** Writes the phrases to a QTextStream. */
- void save (QTextStream &stream, bool asPhrasebook);
+ /** Writes the phrases to a TQTextStream. */
+ void save (TQTextStream &stream, bool asPhrasebook);
/** Prints the phrases. */
void print (KPrinter *pPrinter);
@@ -118,63 +118,63 @@ public:
* 0, if the user canceled the operation,
* -1, if there was an error when saving the file.
*/
- int save (QWidget *parent, const QString &title, KURL &url, bool phrasebookFirst = true);
+ int save (TQWidget *parent, const TQString &title, KURL &url, bool phrasebookFirst = true);
/** encodes the phrase book. Returns the encoded xml code. */
- QString encode ();
+ TQString encode ();
- /** Stores all entries in a QStringList. All hierarchy information and all
+ /** Stores all entries in a TQStringList. All hierarchy information and all
* shortcuts are ignored during this operation.
*/
- QStringList toStringList();
+ TQStringList toStringList();
/** Adds the entries of the book to both the given popup menu and the given
* toolbar. The corresponding actions will be inserted into phrases.
*/
- void addToGUI (QPopupMenu *popup, KToolBar *toolbar,
+ void addToGUI (TQPopupMenu *popup, KToolBar *toolbar,
KActionCollection *phrases,
- QObject *receiver, const char *slot) const;
+ TQObject *receiver, const char *slot) const;
/** Inserts book into a new sub phrase book.
* @param name the name of the new sub phrase book.
* @param book the phrase book to insert.
*/
- void insert (const QString &name, const PhraseBook &book);
+ void insert (const TQString &name, const PhraseBook &book);
};
/**
* The class PhraseBookDrag implements drag and drop support for phrase books.
* @author Gunnar Schmi Dt
*/
-class PhraseBookDrag: public QDragObject {
+class PhraseBookDrag: public TQDragObject {
Q_OBJECT
public:
- PhraseBookDrag (PhraseBook *book, QWidget *dragSource = 0, const char *name = 0);
- PhraseBookDrag (QWidget *dragSource = 0, const char *name = 0);
+ PhraseBookDrag (PhraseBook *book, TQWidget *dragSource = 0, const char *name = 0);
+ PhraseBookDrag (TQWidget *dragSource = 0, const char *name = 0);
~PhraseBookDrag ();
virtual void setBook (PhraseBook *book);
const char *format (int i) const;
- virtual QByteArray encodedData (const char *) const;
+ virtual TQByteArray encodedData (const char *) const;
- static bool canDecode (const QMimeSource *e);
- static bool decode (const QMimeSource *e, PhraseBook *book);
+ static bool canDecode (const TQMimeSource *e);
+ static bool decode (const TQMimeSource *e, PhraseBook *book);
private:
bool isEmpty;
- QTextDrag xmlphrasebook;
- QTextDrag xml;
- QTextDrag plain;
+ TQTextDrag xmlphrasebook;
+ TQTextDrag xml;
+ TQTextDrag plain;
};
class PhraseAction : public KAction {
Q_OBJECT
public:
- PhraseAction (const QString& phrase, const QString& cut, const QObject* receiver, const char* slot, KActionCollection* parent)
+ PhraseAction (const TQString& phrase, const TQString& cut, const TQObject* receiver, const char* slot, KActionCollection* parent)
: KAction (phrase, "phrase", KShortcut(cut), 0, 0, parent, phrase.latin1()) {
this->phrase = phrase;
- connect (this, SIGNAL(slotActivated (const QString &)), receiver, slot);
+ connect (this, TQT_SIGNAL(slotActivated (const TQString &)), receiver, slot);
};
~PhraseAction () {
}
@@ -186,10 +186,10 @@ public slots:
}
signals:
- void slotActivated (const QString &phrase);
+ void slotActivated (const TQString &phrase);
private:
- QString phrase;
+ TQString phrase;
};
#endif
diff --git a/kmouth/phrasebook/phrasebookdialog.cpp b/kmouth/phrasebook/phrasebookdialog.cpp
index cc79d2f..2abe3d0 100644
--- a/kmouth/phrasebook/phrasebookdialog.cpp
+++ b/kmouth/phrasebook/phrasebookdialog.cpp
@@ -16,18 +16,18 @@
***************************************************************************/
// include files for QT
-#include <qapplication.h>
-#include <qlayout.h>
-#include <qclipboard.h>
-#include <qradiobutton.h>
-#include <qevent.h>
-#include <qpainter.h>
-#include <qstyle.h>
-#include <qgroupbox.h>
-#include <qpopupmenu.h>
-#include <qvaluestack.h>
-#include <qptrstack.h>
-#include <qwhatsthis.h>
+#include <tqapplication.h>
+#include <tqlayout.h>
+#include <tqclipboard.h>
+#include <tqradiobutton.h>
+#include <tqevent.h>
+#include <tqpainter.h>
+#include <tqstyle.h>
+#include <tqgroupbox.h>
+#include <tqpopupmenu.h>
+#include <tqvaluestack.h>
+#include <tqptrstack.h>
+#include <tqwhatsthis.h>
// include files for KDE
#include <kpopupmenu.h>
@@ -53,9 +53,9 @@ namespace PhraseBookPrivate {
};
}
-CheckBookItem::CheckBookItem (QListViewItem *parent, QListViewItem *last,
- const QString &text, const QString &name, const QString &filename)
- : QCheckListItem (parent, text, QCheckListItem::CheckBox)
+CheckBookItem::CheckBookItem (TQListViewItem *parent, TQListViewItem *last,
+ const TQString &text, const TQString &name, const TQString &filename)
+ : TQCheckListItem (parent, text, TQCheckListItem::CheckBox)
{
moveItem (last);
setText(PhraseBookPrivate::name, name);
@@ -70,9 +70,9 @@ CheckBookItem::CheckBookItem (QListViewItem *parent, QListViewItem *last,
((CheckBookItem*)parent)->childChange (numberOfBooks, selectedBooks);
}
-CheckBookItem::CheckBookItem (QListView *parent, QListViewItem *last,
- const QString &text, const QString &name, const QString &filename)
- : QCheckListItem (parent, text, QCheckListItem::CheckBox)
+CheckBookItem::CheckBookItem (TQListView *parent, TQListViewItem *last,
+ const TQString &text, const TQString &name, const TQString &filename)
+ : TQCheckListItem (parent, text, TQCheckListItem::CheckBox)
{
moveItem (last);
setText(PhraseBookPrivate::name, name);
@@ -90,7 +90,7 @@ CheckBookItem::~CheckBookItem () {
}
void CheckBookItem::activate() {
- QListView *lv = listView();
+ TQListView *lv = listView();
if ((lv != 0) && (!lv->isEnabled()) || (!isEnabled()))
return;
@@ -100,9 +100,9 @@ void CheckBookItem::activate() {
}
void CheckBookItem::stateChange (bool on) {
- QListViewItem *item = firstChild();
+ TQListViewItem *item = firstChild();
if (item == 0) {
- QListViewItem *parent = this->parent();
+ TQListViewItem *parent = this->parent();
if (parent != 0) {
if (on)
((CheckBookItem*)parent)->childChange (0, 1);
@@ -114,10 +114,10 @@ void CheckBookItem::stateChange (bool on) {
}
void CheckBookItem::propagateStateChange () {
- QListViewItem *item = firstChild();
+ TQListViewItem *item = firstChild();
while (item != 0) {
- if (isOn() != ((QCheckListItem*)item)->isOn())
- ((QCheckListItem*)item)->setOn (isOn());
+ if (isOn() != ((TQCheckListItem*)item)->isOn())
+ ((TQCheckListItem*)item)->setOn (isOn());
else
((CheckBookItem*)item)->propagateStateChange ();
item = item->nextSibling();
@@ -127,22 +127,22 @@ void CheckBookItem::propagateStateChange () {
void CheckBookItem::childChange (int numberDiff, int selDiff) {
numberOfBooks += numberDiff;
selectedBooks += selDiff;
- QListViewItem *parent = this->parent();
+ TQListViewItem *parent = this->parent();
if (parent != 0)
((CheckBookItem*)parent)->childChange (numberDiff, selDiff);
- QString text = i18n(" (%1 of %2 books selected)");
+ TQString text = i18n(" (%1 of %2 books selected)");
text = text.arg(selectedBooks).arg(numberOfBooks);
setText(0, this->text(PhraseBookPrivate::name)+text);
}
/***************************************************************************/
-InitialPhraseBookWidget::InitialPhraseBookWidget (QWidget *parent, const char *name)
- : QWidget(parent, name)
+InitialPhraseBookWidget::InitialPhraseBookWidget (TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
- QVBoxLayout *mainLayout = new QVBoxLayout (this, 0, KDialog::spacingHint());
- QLabel *label = new QLabel (i18n("Please decide which phrase books you need:"), this, "booksTitle");
+ TQVBoxLayout *mainLayout = new TQVBoxLayout (this, 0, KDialog::spacingHint());
+ TQLabel *label = new TQLabel (i18n("Please decide which phrase books you need:"), this, "booksTitle");
mainLayout->add (label);
books = new KListView (this, "books");
@@ -153,7 +153,7 @@ InitialPhraseBookWidget::InitialPhraseBookWidget (QWidget *parent, const char *n
books->addColumn (i18n("Book"));
books->setRootIsDecorated (true);
books->setAllColumnsShowFocus (true);
- books->setSelectionMode (QListView::Multi);
+ books->setSelectionMode (TQListView::Multi);
mainLayout->add (books);
initStandardPhraseBooks();
@@ -165,17 +165,17 @@ InitialPhraseBookWidget::~InitialPhraseBookWidget () {
void InitialPhraseBookWidget::initStandardPhraseBooks() {
StandardBookList bookPaths = PhraseBookDialog::standardPhraseBooks();
- QListViewItem *parent = 0;
- QListViewItem *last = 0;
- QStringList currentNamePath = "";
- QPtrStack<QListViewItem> stack;
+ TQListViewItem *parent = 0;
+ TQListViewItem *last = 0;
+ TQStringList currentNamePath = "";
+ TQPtrStack<TQListViewItem> stack;
StandardBookList::iterator it;
for (it = bookPaths.begin(); it != bookPaths.end(); ++it) {
- QString namePath = (*it).path;
- QStringList dirs = QStringList::split("/", namePath);
+ TQString namePath = (*it).path;
+ TQStringList dirs = TQStringList::split("/", namePath);
- QStringList::iterator it1=currentNamePath.begin();
- QStringList::iterator it2=dirs.begin();
+ TQStringList::iterator it1=currentNamePath.begin();
+ TQStringList::iterator it2=dirs.begin();
for (; (it1 != currentNamePath.end())
&& (it1 != dirs.end()) && (*it1 == *it2); ++it1, ++it2);
for (; it1 != currentNamePath.end(); ++it1) {
@@ -184,17 +184,17 @@ void InitialPhraseBookWidget::initStandardPhraseBooks() {
}
for (; it2 != dirs.end(); ++it2) {
stack.push (parent);
- QListViewItem *newParent;
+ TQListViewItem *newParent;
if (parent == 0)
- newParent = new CheckBookItem (books, last, *it2, *it2, QString::null);
+ newParent = new CheckBookItem (books, last, *it2, *it2, TQString::null);
else
- newParent = new CheckBookItem (parent, last, *it2, *it2, QString::null);
+ newParent = new CheckBookItem (parent, last, *it2, *it2, TQString::null);
parent = newParent;
last = 0;
}
currentNamePath = dirs;
- QListViewItem *book;
+ TQListViewItem *book;
if (parent == 0)
book = new CheckBookItem (books, last, (*it).name, (*it).name, (*it).filename);
else
@@ -205,13 +205,13 @@ void InitialPhraseBookWidget::initStandardPhraseBooks() {
void InitialPhraseBookWidget::createBook () {
PhraseBook book;
- QListViewItem *item = books->firstChild();
+ TQListViewItem *item = books->firstChild();
while (item != 0) {
if (item->firstChild() != 0) {
item = item->firstChild();
}
else {
- if (((QCheckListItem*)item)->isOn()) {
+ if (((TQCheckListItem*)item)->isOn()) {
PhraseBook localBook;
localBook.open(KURL( item->text(PhraseBookPrivate::filename )));
book += localBook;
@@ -225,7 +225,7 @@ void InitialPhraseBookWidget::createBook () {
}
}
- QString bookLocation = KApplication::kApplication()->dirs()->saveLocation ("appdata", "/");
+ TQString bookLocation = KApplication::kApplication()->dirs()->saveLocation ("appdata", "/");
if (!bookLocation.isNull() && !bookLocation.isEmpty()) {
book.save (KURL( bookLocation + "standard.phrasebook" ));
}
@@ -233,15 +233,15 @@ void InitialPhraseBookWidget::createBook () {
/***************************************************************************/
-ButtonBoxWidget::ButtonBoxWidget (QWidget *parent, const char *name)
+ButtonBoxWidget::ButtonBoxWidget (TQWidget *parent, const char *name)
: ButtonBoxUI (parent, name) {
- keyButtonPlaceLayout = new QGridLayout (keyButtonPlace, 1, 1, 0, 0, "keyButtonPlaceLayout");
+ keyButtonPlaceLayout = new TQGridLayout (keyButtonPlace, 1, 1, 0, 0, "keyButtonPlaceLayout");
keyButton = new KKeyButton (keyButtonPlace, "key");
keyButtonPlaceLayout->addWidget (keyButton, 1,1);
- QWhatsThis::add (keyButton, i18n("By clicking on this button you can select the keyboard shortcut associated with the selected phrase."));
+ TQWhatsThis::add (keyButton, i18n("By clicking on this button you can select the keyboard shortcut associated with the selected phrase."));
- group = new QButtonGroup (phrasebox);
+ group = new TQButtonGroup (phrasebox);
group->hide();
group->setExclusive (true);
group->insert (noKey);
@@ -264,7 +264,7 @@ PhraseBookDialog::PhraseBookDialog ()
initGUI();
initActions();
initStandardPhraseBooks();
- QString standardBook = KApplication::kApplication()->dirs()->findResource("appdata", "standard.phrasebook");
+ TQString standardBook = KApplication::kApplication()->dirs()->findResource("appdata", "standard.phrasebook");
if (!standardBook.isNull() && !standardBook.isEmpty()) {
PhraseBook book;
book.open(KURL( standardBook ));
@@ -288,9 +288,9 @@ PhraseBookDialog::~PhraseBookDialog() {
}
void PhraseBookDialog::initGUI () {
- QWidget *page = new QWidget( this );
+ TQWidget *page = new TQWidget( this );
setCentralWidget(page);
- QVBoxLayout *mainLayout = new QVBoxLayout (page, 0);
+ TQVBoxLayout *mainLayout = new TQVBoxLayout (page, 0);
treeView = new PhraseTree (page, "phrasetree");
treeView->setSorting (-1);
@@ -301,19 +301,19 @@ void PhraseBookDialog::initGUI () {
treeView->addColumn (i18n("Shortcut"));
treeView->setRootIsDecorated (true);
treeView->setAllColumnsShowFocus (true);
- treeView->setSelectionMode (QListView::Extended);
- QWhatsThis::add (treeView, i18n("This list contains the current phrase book in a tree structure. You can select and modify individual phrases and sub phrase books"));
- connect (treeView, SIGNAL(selectionChanged()), this, SLOT(selectionChanged()));
- connect (treeView, SIGNAL(contextMenuRequested (QListViewItem *, const QPoint &, int)), this, SLOT(contextMenuRequested (QListViewItem *, const QPoint &, int)));
- connect (treeView, SIGNAL(dropped (QDropEvent *, QListViewItem *, QListViewItem *)), this, SLOT(slotDropped (QDropEvent *, QListViewItem *, QListViewItem *)));
- connect (treeView, SIGNAL(moved (QListViewItem *, QListViewItem *, QListViewItem *)), this, SLOT(slotMoved (QListViewItem *, QListViewItem *, QListViewItem *)));
+ treeView->setSelectionMode (TQListView::Extended);
+ TQWhatsThis::add (treeView, i18n("This list contains the current phrase book in a tree structure. You can select and modify individual phrases and sub phrase books"));
+ connect (treeView, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(selectionChanged()));
+ connect (treeView, TQT_SIGNAL(contextMenuRequested (TQListViewItem *, const TQPoint &, int)), this, TQT_SLOT(contextMenuRequested (TQListViewItem *, const TQPoint &, int)));
+ connect (treeView, TQT_SIGNAL(dropped (TQDropEvent *, TQListViewItem *, TQListViewItem *)), this, TQT_SLOT(slotDropped (TQDropEvent *, TQListViewItem *, TQListViewItem *)));
+ connect (treeView, TQT_SIGNAL(moved (TQListViewItem *, TQListViewItem *, TQListViewItem *)), this, TQT_SLOT(slotMoved (TQListViewItem *, TQListViewItem *, TQListViewItem *)));
mainLayout->addWidget (treeView);
buttonBox = new ButtonBoxWidget (page, "buttonbox");
- connect (buttonBox->lineEdit, SIGNAL(textChanged(const QString &)), SLOT(slotTextChanged(const QString &)));
- connect (buttonBox->noKey, SIGNAL(clicked()), SLOT(slotNoKey()));
- connect (buttonBox->customKey, SIGNAL(clicked()), SLOT(slotCustomKey()));
- connect (buttonBox->keyButton, SIGNAL(capturedShortcut(const KShortcut&)), SLOT(capturedShortcut(const KShortcut&)));
+ connect (buttonBox->lineEdit, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(slotTextChanged(const TQString &)));
+ connect (buttonBox->noKey, TQT_SIGNAL(clicked()), TQT_SLOT(slotNoKey()));
+ connect (buttonBox->customKey, TQT_SIGNAL(clicked()), TQT_SLOT(slotCustomKey()));
+ connect (buttonBox->keyButton, TQT_SIGNAL(capturedShortcut(const KShortcut&)), TQT_SLOT(capturedShortcut(const KShortcut&)));
mainLayout->addWidget (buttonBox);
treeView->setFocus();
@@ -322,23 +322,23 @@ void PhraseBookDialog::initGUI () {
void PhraseBookDialog::initActions() {
// The file menu
- fileNewPhrase = new KAction (i18n("&New Phrase"), "phrase_new", 0, this, SLOT(slotAddPhrase()), actionCollection(),"file_new_phrase");
+ fileNewPhrase = new KAction (i18n("&New Phrase"), "phrase_new", 0, this, TQT_SLOT(slotAddPhrase()), actionCollection(),"file_new_phrase");
fileNewPhrase->setStatusText(i18n("Adds a new phrase"));
fileNewPhrase->setWhatsThis (i18n("Adds a new phrase"));
- fileNewBook = new KAction (i18n("New Phrase &Book"), "phrasebook_new", 0, this, SLOT(slotAddPhrasebook()), actionCollection(),"file_new_book");
+ fileNewBook = new KAction (i18n("New Phrase &Book"), "phrasebook_new", 0, this, TQT_SLOT(slotAddPhrasebook()), actionCollection(),"file_new_book");
fileNewBook->setStatusText(i18n("Adds a new phrase book into which other books and phrases can be placed"));
fileNewBook->setWhatsThis (i18n("Adds a new phrase book into which other books and phrases can be placed"));
- fileSave = KStdAction::save(this, SLOT(slotSave()), actionCollection());
+ fileSave = KStdAction::save(this, TQT_SLOT(slotSave()), actionCollection());
fileSave->setStatusText(i18n("Saves the phrase book onto the hard disk"));
fileSave->setWhatsThis (i18n("Saves the phrase book onto the hard disk"));
- fileImport = new KAction (i18n("&Import..."), "phrasebook_open", 0, this, SLOT(slotImportPhrasebook()), actionCollection(),"file_import");
+ fileImport = new KAction (i18n("&Import..."), "phrasebook_open", 0, this, TQT_SLOT(slotImportPhrasebook()), actionCollection(),"file_import");
fileImport->setStatusText(i18n("Imports a file and adds its contents to the phrase book"));
fileImport->setWhatsThis (i18n("Imports a file and adds its contents to the phrase book"));
- toolbarImport = new KToolBarPopupAction (i18n("&Import..."), "phrasebook_open", 0, this, SLOT(slotImportPhrasebook()), actionCollection(),"toolbar_import");
+ toolbarImport = new KToolBarPopupAction (i18n("&Import..."), "phrasebook_open", 0, this, TQT_SLOT(slotImportPhrasebook()), actionCollection(),"toolbar_import");
toolbarImport->setStatusText(i18n("Imports a file and adds its contents to the phrase book"));
toolbarImport->setWhatsThis (i18n("Imports a file and adds its contents to the phrase book"));
@@ -346,32 +346,32 @@ void PhraseBookDialog::initActions() {
fileImportStandardBook->setStatusText(i18n("Imports a standard phrase book and adds its contents to the phrase book"));
fileImportStandardBook->setWhatsThis (i18n("Imports a standard phrase book and adds its contents to the phrase book"));
- fileExport = new KAction (i18n("&Export..."), "phrasebook_save", 0, this, SLOT(slotExportPhrasebook()), actionCollection(),"file_export");
+ fileExport = new KAction (i18n("&Export..."), "phrasebook_save", 0, this, TQT_SLOT(slotExportPhrasebook()), actionCollection(),"file_export");
fileExport->setStatusText(i18n("Exports the currently selected phrase(s) or phrase book(s) into a file"));
fileExport->setWhatsThis (i18n("Exports the currently selected phrase(s) or phrase book(s) into a file"));
- filePrint = KStdAction::print(this, SLOT(slotPrint()), actionCollection());
+ filePrint = KStdAction::print(this, TQT_SLOT(slotPrint()), actionCollection());
filePrint->setStatusText(i18n("Prints the currently selected phrase(s) or phrase book(s)"));
filePrint->setWhatsThis (i18n("Prints the currently selected phrase(s) or phrase book(s)"));
- fileClose = KStdAction::close(this, SLOT(close()), actionCollection());
+ fileClose = KStdAction::close(this, TQT_SLOT(close()), actionCollection());
fileClose->setStatusText(i18n("Closes the window"));
fileClose->setWhatsThis (i18n("Closes the window"));
// The edit menu
- editCut = KStdAction::cut(this, SLOT(slotCut()), actionCollection());
+ editCut = KStdAction::cut(this, TQT_SLOT(slotCut()), actionCollection());
editCut->setStatusText(i18n("Cuts the currently selected entries from the phrase book and puts it to the clipboard"));
editCut->setWhatsThis (i18n("Cuts the currently selected entries from the phrase book and puts it to the clipboard"));
- editCopy = KStdAction::copy(this, SLOT(slotCopy()), actionCollection());
+ editCopy = KStdAction::copy(this, TQT_SLOT(slotCopy()), actionCollection());
editCopy->setStatusText(i18n("Copies the currently selected entry from the phrase book to the clipboard"));
editCopy->setWhatsThis (i18n("Copies the currently selected entry from the phrase book to the clipboard"));
- editPaste = KStdAction::paste(this, SLOT(slotPaste()), actionCollection());
+ editPaste = KStdAction::paste(this, TQT_SLOT(slotPaste()), actionCollection());
editPaste->setStatusText(i18n("Pastes the clipboard contents to actual position"));
editPaste->setWhatsThis (i18n("Pastes the clipboard contents to actual position"));
- editDelete = new KAction (i18n("&Delete"), "editdelete", 0, this, SLOT(slotRemove()), actionCollection(),"edit_delete");
+ editDelete = new KAction (i18n("&Delete"), "editdelete", 0, this, TQT_SLOT(slotRemove()), actionCollection(),"edit_delete");
editDelete->setStatusText(i18n("Deletes the selected entries from the phrase book"));
editDelete->setWhatsThis (i18n("Deletes the selected entries from the phrase book"));
@@ -379,17 +379,17 @@ void PhraseBookDialog::initActions() {
createGUI("phrasebookdialogui.rc");
}
-QString PhraseBookDialog::displayPath (QString filename) {
- QFileInfo file(filename);
- QString path = file.dirPath();
- QString dispPath = "";
- uint position = path.find("/kmouth/books/")+QString("/kmouth/books/").length();
+TQString PhraseBookDialog::displayPath (TQString filename) {
+ TQFileInfo file(filename);
+ TQString path = file.dirPath();
+ TQString dispPath = "";
+ uint position = path.find("/kmouth/books/")+TQString("/kmouth/books/").length();
while (path.length() > position) {
file.setFile(path);
KDesktopFile *dirDesc = new KDesktopFile(path+"/.directory", true, "data");
- QString name = dirDesc->readName();
+ TQString name = dirDesc->readName();
delete dirDesc;
if (name.isNull() || name.isEmpty())
@@ -403,11 +403,11 @@ QString PhraseBookDialog::displayPath (QString filename) {
}
StandardBookList PhraseBookDialog::standardPhraseBooks() {
- QStringList bookPaths = KGlobal::instance()->dirs()->findAllResources (
+ TQStringList bookPaths = KGlobal::instance()->dirs()->findAllResources (
"data", "kmouth/books/*.phrasebook", true, true);
- QStringList bookNames;
- QMap<QString,StandardBook> bookMap;
- QStringList::iterator it;
+ TQStringList bookNames;
+ TQMap<TQString,StandardBook> bookMap;
+ TQStringList::iterator it;
for (it = bookPaths.begin(); it != bookPaths.end(); ++it) {
PhraseBook pbook;
if (pbook.open (KURL( *it ))) {
@@ -435,18 +435,18 @@ void PhraseBookDialog::initStandardPhraseBooks () {
StandardBookList bookPaths = standardPhraseBooks();
KActionMenu *parent = fileImportStandardBook;
- QStringList currentNamePath = "x";
- QPtrStack<KActionMenu> stack;
+ TQStringList currentNamePath = "x";
+ TQPtrStack<KActionMenu> stack;
StandardBookList::iterator it;
for (it = bookPaths.begin(); it != bookPaths.end(); ++it) {
KURL url;
url.setPath((*it).filename);
- QString namePath = "x/"+(*it).path;
- QStringList dirs = QStringList::split("/", namePath);
+ TQString namePath = "x/"+(*it).path;
+ TQStringList dirs = TQStringList::split("/", namePath);
- QStringList::iterator it1=currentNamePath.begin();
- QStringList::iterator it2=dirs.begin();
+ TQStringList::iterator it1=currentNamePath.begin();
+ TQStringList::iterator it2=dirs.begin();
for (; (it1 != currentNamePath.end())
&& (it1 != dirs.end()) && (*it1 == *it2); ++it1, ++it2);
for (; it1 != currentNamePath.end(); ++it1)
@@ -462,21 +462,21 @@ void PhraseBookDialog::initStandardPhraseBooks () {
currentNamePath = dirs;
KAction *book = new StandardPhraseBookInsertAction (
- url, (*it).name, this, SLOT(slotImportPhrasebook (const KURL &)), actionCollection());
+ url, (*it).name, this, TQT_SLOT(slotImportPhrasebook (const KURL &)), actionCollection());
parent->insert(book);
if (parent == fileImportStandardBook)
book->plug(toolbarImport->popupMenu());
}
}
-PhraseTreeItem *selectedItem (QListView *treeView) {
+PhraseTreeItem *selectedItem (TQListView *treeView) {
PhraseTreeItem *currentItem = (PhraseTreeItem *)treeView->currentItem();
if ((currentItem == 0) || (!currentItem->isSelected()))
return 0;
- QListViewItemIterator it(treeView);
+ TQListViewItemIterator it(treeView);
while (it.current()) {
- QListViewItem *item = it.current();
+ TQListViewItem *item = it.current();
if (item->isSelected() && (item != currentItem))
return 0;
++it;
@@ -508,7 +508,7 @@ void PhraseBookDialog::selectionChanged () {
buttonBox->lineEdit->setText(currentItem->text(0));
buttonBox->lineEdit->setEnabled(true);
buttonBox->shortcutLabel->setEnabled(true);
- QString shortcut = currentItem->text(1);
+ TQString shortcut = currentItem->text(1);
buttonBox->keyButton->setShortcut(currentItem->cut(), false);
if (shortcut.isEmpty() || shortcut.isNull()) {
buttonBox->noKey->setChecked (true);
@@ -554,7 +554,7 @@ bool PhraseBookDialog::queryClose() {
return true;
}
-void PhraseBookDialog::slotTextChanged (const QString &s) {
+void PhraseBookDialog::slotTextChanged (const TQString &s) {
PhraseTreeItem *currentItem = selectedItem (treeView);
if (currentItem != 0)
currentItem->setText(0, s);
@@ -567,7 +567,7 @@ void PhraseBookDialog::slotNoKey() {
PhraseTreeItem *currentItem = selectedItem (treeView);
if (currentItem != 0) {
- currentItem->setCut (KShortcut(QString::null));
+ currentItem->setCut (KShortcut(TQString::null));
buttonBox->keyButton->setShortcut(currentItem->cut(), false);
}
phrasebookChanged = true;
@@ -593,11 +593,11 @@ void PhraseBookDialog::setShortcut( const KShortcut& cut ) {
const KKey& key = seq.key(0);
if (key.modFlags() == 0 && key.sym() < 0x3000
- && QChar(key.sym()).isLetterOrNumber())
+ && TQChar(key.sym()).isLetterOrNumber())
{
- QString s = i18n("In order to use the '%1' key as a shortcut, "
+ TQString s = i18n("In order to use the '%1' key as a shortcut, "
"it must be combined with the "
- "Win, Alt, Ctrl, and/or Shift keys.").arg(QChar(key.sym()));
+ "Win, Alt, Ctrl, and/or Shift keys.").arg(TQChar(key.sym()));
KMessageBox::sorry( this, s, i18n("Invalid Shortcut Key") );
return;
}
@@ -615,8 +615,8 @@ void PhraseBookDialog::setShortcut( const KShortcut& cut ) {
}
}
-QListViewItem *PhraseBookDialog::addBook (QListViewItem *parent, QListViewItem *after, PhraseBook *book) {
- QListViewItem *newItem = treeView->addBook(parent, after, book);
+TQListViewItem *PhraseBookDialog::addBook (TQListViewItem *parent, TQListViewItem *after, PhraseBook *book) {
+ TQListViewItem *newItem = treeView->addBook(parent, after, book);
if (newItem != 0) {
treeView->clearSelection();
treeView->ensureItemVisible(newItem);
@@ -627,7 +627,7 @@ QListViewItem *PhraseBookDialog::addBook (QListViewItem *parent, QListViewItem *
return newItem;
}
-QListViewItem *PhraseBookDialog::addBook (QListViewItem *item, PhraseBook *book) {
+TQListViewItem *PhraseBookDialog::addBook (TQListViewItem *item, PhraseBook *book) {
if (item == 0)
return addBook(0, 0, book);
else if (((PhraseTreeItem *)item)->isPhrase() || !item->isOpen())
@@ -639,14 +639,14 @@ QListViewItem *PhraseBookDialog::addBook (QListViewItem *item, PhraseBook *book)
return addBook(item, 0, book);
}
-void PhraseBookDialog::contextMenuRequested(QListViewItem *, const QPoint &pos, int) {
- QString name;
+void PhraseBookDialog::contextMenuRequested(TQListViewItem *, const TQPoint &pos, int) {
+ TQString name;
if (treeView->hasSelectedItems())
name = "phrasebook_popup_sel";
else
name = "phrasebook_popup_nosel";
- QPopupMenu *popup = (QPopupMenu *)factory()->container(name,this);
+ TQPopupMenu *popup = (TQPopupMenu *)factory()->container(name,this);
if (popup != 0) {
popup->popup(pos, 0);
}
@@ -667,24 +667,24 @@ void PhraseBookDialog::slotCut () {
void PhraseBookDialog::slotCopy () {
PhraseBook book;
treeView->fillBook (&book, true);
- QApplication::clipboard()->setData(new PhraseBookDrag(&book));
+ TQApplication::clipboard()->setData(new PhraseBookDrag(&book));
}
void PhraseBookDialog::slotPaste () {
PhraseBook book;
- if (PhraseBookDrag::decode(QApplication::clipboard()->data(), &book)) {
+ if (PhraseBookDrag::decode(TQApplication::clipboard()->data(), &book)) {
addBook (treeView->currentItem(), &book);
}
}
-void PhraseBookDialog::slotDropped (QDropEvent *e, QListViewItem *parent, QListViewItem *after) {
+void PhraseBookDialog::slotDropped (TQDropEvent *e, TQListViewItem *parent, TQListViewItem *after) {
PhraseBook book;
if (PhraseBookDrag::decode(e, &book)) {
addBook(parent, after, &book);
}
}
-void PhraseBookDialog::slotMoved (QListViewItem *item, QListViewItem *, QListViewItem *) {
+void PhraseBookDialog::slotMoved (TQListViewItem *item, TQListViewItem *, TQListViewItem *) {
treeView->ensureItemVisible(item);
treeView->setSelected (item, true);
phrasebookChanged = true;
@@ -695,7 +695,7 @@ void PhraseBookDialog::slotAddPhrasebook () {
Phrase phrase(i18n("(New Phrase Book)"), "");
book += PhraseBookEntry(phrase, 0, false);
- QListViewItem *item = addBook (treeView->currentItem(), &book);
+ TQListViewItem *item = addBook (treeView->currentItem(), &book);
item->setOpen (true);
buttonBox->lineEdit->selectAll();
buttonBox->lineEdit->setFocus();
@@ -719,7 +719,7 @@ void PhraseBookDialog::slotSave () {
}
void PhraseBookDialog::slotImportPhrasebook () {
- KURL url=KFileDialog::getOpenURL(QString::null,
+ KURL url=KFileDialog::getOpenURL(TQString::null,
i18n("*.phrasebook|Phrase Books (*.phrasebook)\n*.txt|Plain Text Files (*.txt)\n*|All Files"), this, i18n("Import Phrasebook"));
slotImportPhrasebook (url);
diff --git a/kmouth/phrasebook/phrasebookdialog.h b/kmouth/phrasebook/phrasebookdialog.h
index 774387f..d086299 100644
--- a/kmouth/phrasebook/phrasebookdialog.h
+++ b/kmouth/phrasebook/phrasebookdialog.h
@@ -18,11 +18,11 @@
#ifndef PHRASEBOOKDIALOG_H
#define PHRASEBOOKDIALOG_H
-#include <qbutton.h>
-#include <qradiobutton.h>
-#include <qbuttongroup.h>
-#include <qlabel.h>
-#include <qlistview.h>
+#include <tqbutton.h>
+#include <tqradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqlabel.h>
+#include <tqlistview.h>
#include <kmainwindow.h>
#include <klineedit.h>
#include <kkeybutton.h>
@@ -38,22 +38,22 @@ class QString;
class KListView;
struct StandardBook {
- QString name;
- QString path;
- QString filename;
+ TQString name;
+ TQString path;
+ TQString filename;
};
-typedef QValueList<StandardBook> StandardBookList;
+typedef TQValueList<StandardBook> StandardBookList;
/**The class PhraseTreeItem is an ListViewItem for either a phrase or a phrase book.
*@author Gunnar Schmi Dt
*/
-class CheckBookItem : public QCheckListItem {
+class CheckBookItem : public TQCheckListItem {
public:
- CheckBookItem (QListViewItem *parent, QListViewItem *last,
- const QString &text, const QString &name, const QString &filename);
- CheckBookItem (QListView *parent, QListViewItem *last,
- const QString &text, const QString &name, const QString &filename);
+ CheckBookItem (TQListViewItem *parent, TQListViewItem *last,
+ const TQString &text, const TQString &name, const TQString &filename);
+ CheckBookItem (TQListView *parent, TQListViewItem *last,
+ const TQString &text, const TQString &name, const TQString &filename);
~CheckBookItem();
protected:
@@ -72,10 +72,10 @@ private:
* @author Gunnar Schmi Dt
*/
-class InitialPhraseBookWidget : public QWidget {
+class InitialPhraseBookWidget : public TQWidget {
Q_OBJECT
public:
- InitialPhraseBookWidget(QWidget *parent, const char *name);
+ InitialPhraseBookWidget(TQWidget *parent, const char *name);
~InitialPhraseBookWidget();
void createBook();
@@ -95,10 +95,10 @@ private:
class StandardPhraseBookInsertAction : public KAction {
Q_OBJECT
public:
- StandardPhraseBookInsertAction (const KURL &url, const QString& name, const QObject* receiver, const char* slot, KActionCollection* parent)
+ StandardPhraseBookInsertAction (const KURL &url, const TQString& name, const TQObject* receiver, const char* slot, KActionCollection* parent)
: KAction (name, "phrasebook", 0, 0, 0, parent, 0) {
this->url = url;
- connect (this, SIGNAL(slotActivated (const KURL &)), receiver, slot);
+ connect (this, TQT_SIGNAL(slotActivated (const KURL &)), receiver, slot);
};
~StandardPhraseBookInsertAction () {
};
@@ -123,14 +123,14 @@ private:
*/
class ButtonBoxWidget : public ButtonBoxUI {
public:
- ButtonBoxWidget (QWidget *parent = 0, const char *name = 0);
+ ButtonBoxWidget (TQWidget *parent = 0, const char *name = 0);
~ButtonBoxWidget ();
KKeyButton *keyButton;
- QButtonGroup *group;
+ TQButtonGroup *group;
protected:
- QGridLayout *keyButtonPlaceLayout;
+ TQGridLayout *keyButtonPlaceLayout;
};
/**
@@ -147,7 +147,7 @@ private:
*/
PhraseBookDialog ();
- static QString displayPath (QString path);
+ static TQString displayPath (TQString path);
public:
/** Returns a pointer to the instance of this dialog. As a part off the
@@ -162,13 +162,13 @@ public:
bool queryClose ();
public slots:
- void slotTextChanged (const QString &s);
+ void slotTextChanged (const TQString &s);
void slotNoKey();
void slotCustomKey();
void capturedShortcut (const KShortcut& cut);
void selectionChanged ();
- void contextMenuRequested(QListViewItem *, const QPoint &pos, int);
+ void contextMenuRequested(TQListViewItem *, const TQPoint &pos, int);
void slotRemove ();
void slotCut ();
@@ -184,8 +184,8 @@ public slots:
void slotExportPhrasebook ();
void slotPrint ();
- void slotDropped (QDropEvent *e, QListViewItem *parent, QListViewItem *after);
- void slotMoved (QListViewItem *item, QListViewItem *, QListViewItem *);
+ void slotDropped (TQDropEvent *e, TQListViewItem *parent, TQListViewItem *after);
+ void slotMoved (TQListViewItem *item, TQListViewItem *, TQListViewItem *);
signals:
void phrasebookConfirmed (PhraseBook &book);
@@ -199,12 +199,12 @@ private:
/** initializes the list of standard phrase books */
void initStandardPhraseBooks ();
- QListViewItem *addBook (QListViewItem *parent, QListViewItem *after, PhraseBook *book);
- QListViewItem *addBook (QListViewItem *item, PhraseBook *book);
+ TQListViewItem *addBook (TQListViewItem *parent, TQListViewItem *after, PhraseBook *book);
+ TQListViewItem *addBook (TQListViewItem *item, PhraseBook *book);
void setShortcut (const KShortcut &cut);
- void _warning (const KKeySequence &cut, QString sAction, QString sTitle);
+ void _warning (const KKeySequence &cut, TQString sAction, TQString sTitle);
bool isGlobalKeyPresent (const KShortcut& cut, bool warnUser);
bool isPhraseKeyPresent (const KShortcut& cut, bool warnUser);
diff --git a/kmouth/phrasebook/phrasebookparser.cpp b/kmouth/phrasebook/phrasebookparser.cpp
index 9883e49..441ab55 100644
--- a/kmouth/phrasebook/phrasebookparser.cpp
+++ b/kmouth/phrasebook/phrasebookparser.cpp
@@ -23,19 +23,19 @@ PhraseBookParser::PhraseBookParser() {
PhraseBookParser::~PhraseBookParser() {
}
-bool PhraseBookParser::warning (const QXmlParseException &) {
+bool PhraseBookParser::warning (const TQXmlParseException &) {
return false;
}
-bool PhraseBookParser::error (const QXmlParseException &) {
+bool PhraseBookParser::error (const TQXmlParseException &) {
return false;
}
-bool PhraseBookParser::fatalError (const QXmlParseException &) {
+bool PhraseBookParser::fatalError (const TQXmlParseException &) {
return false;
}
-QString PhraseBookParser::errorString() {
+TQString PhraseBookParser::errorString() {
return "";
}
@@ -48,9 +48,9 @@ bool PhraseBookParser::startDocument() {
return true;
}
-bool PhraseBookParser::startElement (const QString &, const QString &,
- const QString &name,
- const QXmlAttributes &attributes)
+bool PhraseBookParser::startElement (const TQString &, const TQString &,
+ const TQString &name,
+ const TQXmlAttributes &attributes)
{
if (name == "phrase") {
if (isInPhrase)
@@ -77,18 +77,18 @@ bool PhraseBookParser::startElement (const QString &, const QString &,
return true;
}
-bool PhraseBookParser::characters (const QString &ch) {
+bool PhraseBookParser::characters (const TQString &ch) {
phrase.phrase += ch;
return true;
}
-bool PhraseBookParser::ignorableWhitespace (const QString &ch) {
+bool PhraseBookParser::ignorableWhitespace (const TQString &ch) {
phrase.phrase += ch;
return true;
}
-bool PhraseBookParser::endElement (const QString &, const QString &,
- const QString &name)
+bool PhraseBookParser::endElement (const TQString &, const TQString &,
+ const TQString &name)
{
if (name == "phrase") {
list += PhraseBookEntry (phrase, level, true);
diff --git a/kmouth/phrasebook/phrasebookparser.h b/kmouth/phrasebook/phrasebookparser.h
index a6e436a..a858b4f 100644
--- a/kmouth/phrasebook/phrasebookparser.h
+++ b/kmouth/phrasebook/phrasebookparser.h
@@ -18,8 +18,8 @@
#ifndef PHRASEBOOKPARSER_H
#define PHRASEBOOKPARSER_H
-#include <qxml.h>
-#include <qvaluestack.h>
+#include <tqxml.h>
+#include <tqvaluestack.h>
#include "phrasebook.h"
/**
@@ -28,31 +28,31 @@
* @author Gunnar Schmi Dt
*/
-class PhraseBookParser : public QXmlDefaultHandler {
+class PhraseBookParser : public TQXmlDefaultHandler {
public:
PhraseBookParser();
~PhraseBookParser();
- bool warning (const QXmlParseException &exception);
- bool error (const QXmlParseException &exception);
- bool fatalError (const QXmlParseException &exception);
- QString errorString();
+ bool warning (const TQXmlParseException &exception);
+ bool error (const TQXmlParseException &exception);
+ bool fatalError (const TQXmlParseException &exception);
+ TQString errorString();
/** Processes the start of the document. */
bool startDocument();
/** Processes the start tag of an element. */
- bool startElement (const QString &, const QString &, const QString &name,
- const QXmlAttributes &attributes);
+ bool startElement (const TQString &, const TQString &, const TQString &name,
+ const TQXmlAttributes &attributes);
/** Processes a chunk of normal character data. */
- bool characters (const QString &ch);
+ bool characters (const TQString &ch);
/** Processes whitespace. */
- bool ignorableWhitespace (const QString &ch);
+ bool ignorableWhitespace (const TQString &ch);
/** Processes the end tag of an element. */
- bool endElement (const QString &, const QString &, const QString &name);
+ bool endElement (const TQString &, const TQString &, const TQString &name);
/** Processes the end of the document. */
bool endDocument();
diff --git a/kmouth/phrasebook/phrasetree.cpp b/kmouth/phrasebook/phrasetree.cpp
index 57d4f5e..6ffbaee 100644
--- a/kmouth/phrasebook/phrasetree.cpp
+++ b/kmouth/phrasebook/phrasetree.cpp
@@ -28,7 +28,7 @@
#include "phrasebookdialog.h"
#include "phrasebook.h"
-PhraseTreeItem::PhraseTreeItem (QListView *parent, QListViewItem *after, QString phrase, KShortcut shortcut, QPixmap icon)
+PhraseTreeItem::PhraseTreeItem (TQListView *parent, TQListViewItem *after, TQString phrase, KShortcut shortcut, TQPixmap icon)
: KListViewItem (parent, after, phrase)
{
isPhraseValue = true;
@@ -38,7 +38,7 @@ PhraseTreeItem::PhraseTreeItem (QListView *parent, QListViewItem *after, QString
setExpandable (false);
}
-PhraseTreeItem::PhraseTreeItem (QListViewItem *parent, QListViewItem *after, QString phrase, KShortcut shortcut, QPixmap icon)
+PhraseTreeItem::PhraseTreeItem (TQListViewItem *parent, TQListViewItem *after, TQString phrase, KShortcut shortcut, TQPixmap icon)
: KListViewItem (parent, after, phrase)
{
isPhraseValue = true;
@@ -47,14 +47,14 @@ PhraseTreeItem::PhraseTreeItem (QListViewItem *parent, QListViewItem *after, QSt
setPixmap(0, icon);
setExpandable (false);
}
-PhraseTreeItem::PhraseTreeItem (QListView *parent, QListViewItem *after, QString name, QPixmap icon)
+PhraseTreeItem::PhraseTreeItem (TQListView *parent, TQListViewItem *after, TQString name, TQPixmap icon)
: KListViewItem (parent, after, name)
{
isPhraseValue = false;
setPixmap(0, icon);
setExpandable (true);
}
-PhraseTreeItem::PhraseTreeItem (QListViewItem *parent, QListViewItem *after, QString name, QPixmap icon)
+PhraseTreeItem::PhraseTreeItem (TQListViewItem *parent, TQListViewItem *after, TQString name, TQPixmap icon)
: KListViewItem (parent, after, name)
{
isPhraseValue = false;
@@ -74,24 +74,24 @@ void PhraseTreeItem::setCut (KShortcut cut) {
// ***************************************************************************
-PhraseTree::PhraseTree (QWidget *parent, const char *name)
+PhraseTree::PhraseTree (TQWidget *parent, const char *name)
: KListView (parent, name)
{
phrasebook_open = KGlobal::iconLoader()->loadIcon("phrasebook", KIcon::Small);
phrasebook_closed = KGlobal::iconLoader()->loadIcon("phrasebook_closed", KIcon::Small);
phrase = KGlobal::iconLoader()->loadIcon("phrase", KIcon::Small);
- connect (this, SIGNAL(expanded (QListViewItem *)), this, SLOT(itemExpanded (QListViewItem *)));
- connect (this, SIGNAL(collapsed (QListViewItem *)), this, SLOT(itemCollapsed (QListViewItem *)));
+ connect (this, TQT_SIGNAL(expanded (TQListViewItem *)), this, TQT_SLOT(itemExpanded (TQListViewItem *)));
+ connect (this, TQT_SIGNAL(collapsed (TQListViewItem *)), this, TQT_SLOT(itemCollapsed (TQListViewItem *)));
}
PhraseTree::~PhraseTree (){
}
namespace PhraseTreePrivate {
- QListViewItem *prevSibling (QListViewItem *item) {
- QListViewItem *parent = item->parent();
- QListViewItem *above = item->itemAbove();
+ TQListViewItem *prevSibling (TQListViewItem *item) {
+ TQListViewItem *parent = item->parent();
+ TQListViewItem *above = item->itemAbove();
if (above == parent)
return 0;
@@ -102,15 +102,15 @@ namespace PhraseTreePrivate {
return above;
}
- bool findAbovePosition (QListViewItem *item,
- QListViewItem **newParent,
- QListViewItem **newAbove)
+ bool findAbovePosition (TQListViewItem *item,
+ TQListViewItem **newParent,
+ TQListViewItem **newAbove)
{
if (item == 0)
return false;
- QListViewItem *parent = item->parent();
- QListViewItem *above = item->itemAbove();
+ TQListViewItem *parent = item->parent();
+ TQListViewItem *above = item->itemAbove();
if (above == 0)
return false;
@@ -133,15 +133,15 @@ namespace PhraseTreePrivate {
}
}
- bool findBelowPosition (QListViewItem *item,
- QListViewItem **newParent,
- QListViewItem **newAbove)
+ bool findBelowPosition (TQListViewItem *item,
+ TQListViewItem **newParent,
+ TQListViewItem **newAbove)
{
if (item == 0)
return false;
- QListViewItem *parent = item->parent();
- QListViewItem *below = item->nextSibling();
+ TQListViewItem *parent = item->parent();
+ TQListViewItem *below = item->nextSibling();
if (parent == 0 && below == 0)
return false;
@@ -162,14 +162,14 @@ namespace PhraseTreePrivate {
}
}
- bool findRightPosition (QListViewItem *item,
- QListViewItem **newParent,
- QListViewItem **newAbove)
+ bool findRightPosition (TQListViewItem *item,
+ TQListViewItem **newParent,
+ TQListViewItem **newAbove)
{
if (item == 0)
return false;
- QListViewItem *above = prevSibling (item);
+ TQListViewItem *above = prevSibling (item);
if (above == 0)
return false;
@@ -188,14 +188,14 @@ namespace PhraseTreePrivate {
}
}
- bool findLeftPosition (QListViewItem *item,
- QListViewItem **newParent,
- QListViewItem **newAbove)
+ bool findLeftPosition (TQListViewItem *item,
+ TQListViewItem **newParent,
+ TQListViewItem **newAbove)
{
if (item == 0)
return false;
- QListViewItem *parent = item->parent();
+ TQListViewItem *parent = item->parent();
if (parent == 0)
return false;
@@ -207,9 +207,9 @@ namespace PhraseTreePrivate {
}
}
-void PhraseTree::moveItem (QListViewItem *item,
- QListViewItem *parent,
- QListViewItem *above)
+void PhraseTree::moveItem (TQListViewItem *item,
+ TQListViewItem *parent,
+ TQListViewItem *above)
{
if (item != 0) {
if (item->parent() == 0)
@@ -227,7 +227,7 @@ void PhraseTree::moveItem (QListViewItem *item,
}
bool PhraseTree::hasSelectedItems() {
- QListViewItem *i = firstChild();
+ TQListViewItem *i = firstChild();
if ( !i )
return false;
int level = 0;
@@ -254,10 +254,10 @@ bool PhraseTree::hasSelectedItems() {
}
void PhraseTree::deleteSelectedItems() {
- QListViewItem *i = firstChild();
+ TQListViewItem *i = firstChild();
if ( !i )
return;
- QListViewItem *deleteItem = 0;
+ TQListViewItem *deleteItem = 0;
do {
if (i->isSelected())
deleteItem = i;
@@ -280,13 +280,13 @@ void PhraseTree::deleteSelectedItems() {
while (i != 0);
}
-void PhraseTree::keyPressEvent (QKeyEvent *e) {
+void PhraseTree::keyPressEvent (TQKeyEvent *e) {
if ((e->state() & Qt::KeyButtonMask) == Qt::AltButton) {
if (e->key() == Qt::Key_Up) {
- QListViewItem *item = currentItem();
+ TQListViewItem *item = currentItem();
if ((item != 0) && (item->isSelected())) {
- QListViewItem *parent;
- QListViewItem *above;
+ TQListViewItem *parent;
+ TQListViewItem *above;
if (PhraseTreePrivate::findAbovePosition (item, &parent, &above)) {
moveItem(item, parent, above);
@@ -298,10 +298,10 @@ void PhraseTree::keyPressEvent (QKeyEvent *e) {
return;
}
else if (e->key() == Qt::Key_Down) {
- QListViewItem *item = currentItem();
+ TQListViewItem *item = currentItem();
if ((item != 0) && (item->isSelected())) {
- QListViewItem *parent;
- QListViewItem *above;
+ TQListViewItem *parent;
+ TQListViewItem *above;
if (PhraseTreePrivate::findBelowPosition (item, &parent, &above)) {
moveItem(item, parent, above);
@@ -313,10 +313,10 @@ void PhraseTree::keyPressEvent (QKeyEvent *e) {
return;
}
else if (e->key() == Qt::Key_Left) {
- QListViewItem *item = currentItem();
+ TQListViewItem *item = currentItem();
if ((item != 0) && (item->isSelected())) {
- QListViewItem *parent;
- QListViewItem *above;
+ TQListViewItem *parent;
+ TQListViewItem *above;
if (PhraseTreePrivate::findLeftPosition (item, &parent, &above)) {
moveItem(item, parent, above);
@@ -328,10 +328,10 @@ void PhraseTree::keyPressEvent (QKeyEvent *e) {
return;
}
else if (e->key() == Qt::Key_Right) {
- QListViewItem *item = currentItem();
+ TQListViewItem *item = currentItem();
if ((item != 0) && (item->isSelected())) {
- QListViewItem *parent;
- QListViewItem *above;
+ TQListViewItem *parent;
+ TQListViewItem *above;
if (PhraseTreePrivate::findRightPosition (item, &parent, &above)) {
moveItem(item, parent, above);
@@ -346,10 +346,10 @@ void PhraseTree::keyPressEvent (QKeyEvent *e) {
KListView::keyPressEvent(e);
}
-PhraseTreeItem *PhraseTree::insertPhrase (QListViewItem *parent, QListViewItem *after, QString phrase, QString shortcut) {
+PhraseTreeItem *PhraseTree::insertPhrase (TQListViewItem *parent, TQListViewItem *after, TQString phrase, TQString shortcut) {
KShortcut cut = KShortcut(shortcut);
if (isKeyPresent (cut, 0, false))
- cut = KShortcut(QString::null);
+ cut = KShortcut(TQString::null);
if (parent == 0)
return new PhraseTreeItem (this, after, phrase, cut, this->phrase);
@@ -357,15 +357,15 @@ PhraseTreeItem *PhraseTree::insertPhrase (QListViewItem *parent, QListViewItem *
return new PhraseTreeItem (parent, after, phrase, cut, this->phrase);
}
-PhraseTreeItem *PhraseTree::insertBook (QListViewItem *parent, QListViewItem *after, QString name) {
+PhraseTreeItem *PhraseTree::insertBook (TQListViewItem *parent, TQListViewItem *after, TQString name) {
if (parent == 0)
return new PhraseTreeItem (this, after, name, phrasebook_closed);
else
return new PhraseTreeItem (parent, after, name, phrasebook_closed);
}
-QListViewItem *PhraseTree::addBook (QListViewItem *parent, QListViewItem *after, PhraseBook *book) {
- QListViewItem *last = after;
+TQListViewItem *PhraseTree::addBook (TQListViewItem *parent, TQListViewItem *after, PhraseBook *book) {
+ TQListViewItem *last = after;
int level = 0;
PhraseBookEntryList::iterator it;
for (it = book->begin(); it != book->end(); ++it) {
@@ -403,7 +403,7 @@ QListViewItem *PhraseTree::addBook (QListViewItem *parent, QListViewItem *after,
}
void PhraseTree::fillBook (PhraseBook *book, bool respectSelection) {
- QListViewItem *i = firstChild();
+ TQListViewItem *i = firstChild();
int level = 0;
if ( !i )
return;
@@ -432,11 +432,11 @@ void PhraseTree::fillBook (PhraseBook *book, bool respectSelection) {
while (i != 0);
}
-QDragObject *PhraseTree::dragObject () {
+TQDragObject *PhraseTree::dragObject () {
return dragObject (true);
}
-QDragObject *PhraseTree::dragObject (bool isDependent) {
+TQDragObject *PhraseTree::dragObject (bool isDependent) {
PhraseBook book;
fillBook (&book, true);
if (isDependent)
@@ -444,7 +444,7 @@ QDragObject *PhraseTree::dragObject (bool isDependent) {
return new PhraseBookDrag(&book);
}
-bool PhraseTree::acceptDrag (QDropEvent* event) const {
+bool PhraseTree::acceptDrag (TQDropEvent* event) const {
if (KListView::acceptDrag (event))
return true;
else
@@ -463,10 +463,10 @@ static int keyConflict (const KShortcut& cut, const KShortcut& cut2) {
return -1;
}
-void PhraseTree::_warning (const KKeySequence& cut, QString sAction, QString sTitle) {
+void PhraseTree::_warning (const KKeySequence& cut, TQString sAction, TQString sTitle) {
sAction = sAction.stripWhiteSpace();
- QString s =
+ TQString s =
i18n("The '%1' key combination has already been allocated "
"to %2.\n"
"Please choose a unique key combination.").
@@ -494,8 +494,8 @@ bool PhraseTree::isStdAccelPresent (const KShortcut& cut, bool warnUser) {
}
bool PhraseTree::isGlobalKeyPresent (const KShortcut& cut, bool warnUser) {
- QMap<QString, QString> mapEntry = KGlobal::config()->entryMap ("Global Shortcuts");
- QMap<QString, QString>::Iterator it;
+ TQMap<TQString, TQString> mapEntry = KGlobal::config()->entryMap ("Global Shortcuts");
+ TQMap<TQString, TQString>::Iterator it;
for (it = mapEntry.begin(); it != mapEntry.end(); ++it) {
int iSeq = keyConflict (cut, KShortcut(*it));
if (iSeq > -1) {
@@ -510,7 +510,7 @@ bool PhraseTree::isGlobalKeyPresent (const KShortcut& cut, bool warnUser) {
}
bool PhraseTree::isPhraseKeyPresent (const KShortcut& cut, PhraseTreeItem* cutItem, bool warnUser) {
- for (QListViewItemIterator it(this); it.current(); ++it) {
+ for (TQListViewItemIterator it(this); it.current(); ++it) {
PhraseTreeItem* item = dynamic_cast<PhraseTreeItem*>(it.current());
if ((item != 0) && (item != cutItem)) {
int iSeq = keyConflict (cut, item->cut());
@@ -539,13 +539,13 @@ bool PhraseTree::isKeyPresent (const KShortcut& cut, PhraseTreeItem* cutItem, bo
return false;
}
-void PhraseTree::itemExpanded (QListViewItem *item) {
+void PhraseTree::itemExpanded (TQListViewItem *item) {
PhraseTreeItem *i = (PhraseTreeItem *)item;
if (!i->isPhrase())
i->setPixmap(0, phrasebook_open);
}
-void PhraseTree::itemCollapsed (QListViewItem *item) {
+void PhraseTree::itemCollapsed (TQListViewItem *item) {
PhraseTreeItem *i = (PhraseTreeItem *)item;
if (!i->isPhrase())
i->setPixmap(0, phrasebook_closed);
diff --git a/kmouth/phrasebook/phrasetree.h b/kmouth/phrasebook/phrasetree.h
index bd0e1f5..45ae26c 100644
--- a/kmouth/phrasebook/phrasetree.h
+++ b/kmouth/phrasebook/phrasetree.h
@@ -18,7 +18,7 @@
#ifndef PHRASETREE_H
#define PHRASETREE_H
-#include <qpixmap.h>
+#include <tqpixmap.h>
#include <kshortcut.h>
#include <klistview.h>
@@ -33,13 +33,13 @@ class PhraseTreeItem : public KListViewItem {
friend class PhraseTree;
private:
/** Creates a phrase item within a sub phrase book */
- PhraseTreeItem (QListView *parent, QListViewItem *after, QString phrase, KShortcut shortcut, QPixmap icon);
+ PhraseTreeItem (TQListView *parent, TQListViewItem *after, TQString phrase, KShortcut shortcut, TQPixmap icon);
/** Creates a phrase item at the top level */
- PhraseTreeItem (QListViewItem *parent, QListViewItem *after, QString phrase, KShortcut shortcut, QPixmap icon);
+ PhraseTreeItem (TQListViewItem *parent, TQListViewItem *after, TQString phrase, KShortcut shortcut, TQPixmap icon);
/** Creates a phrase book item within a sub phrase book */
- PhraseTreeItem (QListView *parent, QListViewItem *after, QString name, QPixmap icon);
+ PhraseTreeItem (TQListView *parent, TQListViewItem *after, TQString name, TQPixmap icon);
/** Creates a phrase book item at the top level */
- PhraseTreeItem (QListViewItem *parent, QListViewItem *after, QString name, QPixmap icon);
+ PhraseTreeItem (TQListViewItem *parent, TQListViewItem *after, TQString name, TQPixmap icon);
public:
bool isPhrase();
@@ -61,30 +61,30 @@ class PhraseTree : public KListView {
friend class PhraseTreeItem;
Q_OBJECT
public:
- PhraseTree (QWidget *parent = 0, const char *name = 0);
+ PhraseTree (TQWidget *parent = 0, const char *name = 0);
~PhraseTree ();
- void keyPressEvent (QKeyEvent *e);
+ void keyPressEvent (TQKeyEvent *e);
- PhraseTreeItem *insertPhrase (QListViewItem *parent, QListViewItem *after, QString phrase, QString shortcut);
- PhraseTreeItem *insertBook (QListViewItem *parent, QListViewItem *after, QString name);
+ PhraseTreeItem *insertPhrase (TQListViewItem *parent, TQListViewItem *after, TQString phrase, TQString shortcut);
+ PhraseTreeItem *insertBook (TQListViewItem *parent, TQListViewItem *after, TQString name);
- QListViewItem *addBook (QListViewItem *parent, QListViewItem *after, PhraseBook *book);
+ TQListViewItem *addBook (TQListViewItem *parent, TQListViewItem *after, PhraseBook *book);
void fillBook (PhraseBook *book, bool respectSelection);
- QDragObject *dragObject ();
- QDragObject *dragObject (bool isDependent);
+ TQDragObject *dragObject ();
+ TQDragObject *dragObject (bool isDependent);
- void moveItem (QListViewItem *item, QListViewItem *parent, QListViewItem *above);
+ void moveItem (TQListViewItem *item, TQListViewItem *parent, TQListViewItem *above);
bool hasSelectedItems();
void deleteSelectedItems();
protected:
- bool acceptDrag (QDropEvent* event) const;
+ bool acceptDrag (TQDropEvent* event) const;
private:
- void _warning (const KKeySequence& cut, QString sAction, QString sTitle);
+ void _warning (const KKeySequence& cut, TQString sAction, TQString sTitle);
bool isStdAccelPresent (const KShortcut& cut, bool warnUser);
bool isGlobalKeyPresent (const KShortcut& cut, bool warnUser);
bool isApplicationKeyPresent (const KShortcut& cut, bool warnUser);
@@ -93,16 +93,16 @@ public:
bool isKeyPresent (const KShortcut& cut, PhraseTreeItem* cutItem, bool warnUser);
public slots:
- void itemExpanded (QListViewItem *item);
- void itemCollapsed (QListViewItem *item);
+ void itemExpanded (TQListViewItem *item);
+ void itemCollapsed (TQListViewItem *item);
signals:
void shortcutRequest (PhraseShortcutRequest *request);
private:
- QPixmap phrasebook_open;
- QPixmap phrasebook_closed;
- QPixmap phrase;
+ TQPixmap phrasebook_open;
+ TQPixmap phrasebook_closed;
+ TQPixmap phrase;
};
#endif
diff --git a/kmouth/phraseedit.cpp b/kmouth/phraseedit.cpp
index 0f2e319..000a1f5 100644
--- a/kmouth/phraseedit.cpp
+++ b/kmouth/phraseedit.cpp
@@ -17,14 +17,14 @@
#include "phraseedit.h"
-PhraseEdit::PhraseEdit(const QString &string, QWidget *parent)
+PhraseEdit::PhraseEdit(const TQString &string, TQWidget *parent)
: KLineEdit (string, parent) {
}
PhraseEdit::~PhraseEdit() {
}
-void PhraseEdit::keyPressEvent (QKeyEvent *e) {
+void PhraseEdit::keyPressEvent (TQKeyEvent *e) {
if ((e->state() & Qt::KeyButtonMask) == Qt::ControlButton) {
if (e->key() == Qt::Key_C) {
if (!this->hasSelectedText()) {
diff --git a/kmouth/phraseedit.h b/kmouth/phraseedit.h
index a7a065e..0ebd132 100644
--- a/kmouth/phraseedit.h
+++ b/kmouth/phraseedit.h
@@ -27,10 +27,10 @@
class PhraseEdit : public KLineEdit {
public:
- PhraseEdit(const QString &string, QWidget *parent);
+ PhraseEdit(const TQString &string, TQWidget *parent);
virtual ~PhraseEdit();
- void keyPressEvent (QKeyEvent *e);
+ void keyPressEvent (TQKeyEvent *e);
};
#endif
diff --git a/kmouth/phraselist.cpp b/kmouth/phraselist.cpp
index d57682a..48148c3 100644
--- a/kmouth/phraselist.cpp
+++ b/kmouth/phraselist.cpp
@@ -16,12 +16,12 @@
***************************************************************************/
// include files for Qt
-#include <qprinter.h>
-#include <qpainter.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
-#include <qpopupmenu.h>
-#include <qclipboard.h>
+#include <tqprinter.h>
+#include <tqpainter.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
+#include <tqpopupmenu.h>
+#include <tqclipboard.h>
// include files for KDE
#include <klistbox.h>
@@ -45,18 +45,18 @@
#include "phrasebook/phrasebook.h"
#include "wordcompletion/wordcompletion.h"
-PhraseList::PhraseList(QWidget *parent, const char *name) : QWidget(parent,name) {
+PhraseList::PhraseList(TQWidget *parent, const char *name) : TQWidget(parent,name) {
isInSlot = false;
setBackgroundMode(PaletteBase);
- QVBoxLayout *layout = new QVBoxLayout (this);
+ TQVBoxLayout *layout = new TQVBoxLayout (this);
listBox = new KListBox (this);
- listBox->setFocusPolicy(QWidget::NoFocus);
- listBox->setSelectionMode (QListBox::Extended);
- QWhatsThis::add (listBox, i18n("This list contains the history of spoken sentences. You can select sentences and press the speak button for re-speaking."));
+ listBox->setFocusPolicy(TQWidget::NoFocus);
+ listBox->setSelectionMode (TQListBox::Extended);
+ TQWhatsThis::add (listBox, i18n("This list contains the history of spoken sentences. You can select sentences and press the speak button for re-speaking."));
layout->addWidget(listBox);
- QHBoxLayout *rowLayout = new QHBoxLayout ();
+ TQHBoxLayout *rowLayout = new TQHBoxLayout ();
layout->addLayout(rowLayout);
completion = new WordCompletion();
@@ -66,29 +66,29 @@ PhraseList::PhraseList(QWidget *parent, const char *name) : QWidget(parent,name)
rowLayout->addWidget(dictionaryCombo);
lineEdit = new PhraseEdit ("", this);
- lineEdit->setFocusPolicy(QWidget::StrongFocus);
+ lineEdit->setFocusPolicy(TQWidget::StrongFocus);
lineEdit->setFrame(true);
- lineEdit->setEchoMode(QLineEdit::Normal);
+ lineEdit->setEchoMode(TQLineEdit::Normal);
lineEdit->setCompletionObject (completion);
lineEdit->setAutoDeleteCompletionObject(true);
- QWhatsThis::add (lineEdit, i18n("Into this edit field you can type a phrase. Click on the speak button in order to speak the entered phrase."));
+ TQWhatsThis::add (lineEdit, i18n("Into this edit field you can type a phrase. Click on the speak button in order to speak the entered phrase."));
rowLayout->addWidget(lineEdit);
lineEdit->setFocus();
- QIconSet icon = KGlobal::iconLoader()->loadIconSet("speak", KIcon::Small);
- speakButton = new QPushButton (icon, i18n("&Speak"), this);
- speakButton->setFocusPolicy(QWidget::NoFocus);
+ TQIconSet icon = KGlobal::iconLoader()->loadIconSet("speak", KIcon::Small);
+ speakButton = new TQPushButton (icon, i18n("&Speak"), this);
+ speakButton->setFocusPolicy(TQWidget::NoFocus);
speakButton->setAutoDefault(false);
- QWhatsThis::add (speakButton, i18n("Speaks the currently active sentence(s). If there is some text in the edit field it is spoken. Otherwise the selected sentences in the history (if any) are spoken."));
+ TQWhatsThis::add (speakButton, i18n("Speaks the currently active sentence(s). If there is some text in the edit field it is spoken. Otherwise the selected sentences in the history (if any) are spoken."));
rowLayout->addWidget(speakButton);
- connect(dictionaryCombo, SIGNAL (activated (const QString &)), completion, SLOT (setWordList(const QString &)));
- connect(completion, SIGNAL (wordListsChanged (const QStringList &)), this, SLOT (configureCompletionCombo (const QStringList &)));
- connect(listBox, SIGNAL(selectionChanged()), SLOT(selectionChanged()));
- connect(listBox, SIGNAL(contextMenuRequested (QListBoxItem *, const QPoint &)), SLOT(contextMenuRequested (QListBoxItem *, const QPoint &)));
- connect(lineEdit, SIGNAL(returnPressed(const QString &)), SLOT(lineEntered(const QString &)));
- connect(lineEdit, SIGNAL(textChanged (const QString &)), SLOT(textChanged(const QString &)));
- connect(speakButton, SIGNAL( clicked ()), SLOT(speak()));
+ connect(dictionaryCombo, TQT_SIGNAL (activated (const TQString &)), completion, TQT_SLOT (setWordList(const TQString &)));
+ connect(completion, TQT_SIGNAL (wordListsChanged (const TQStringList &)), this, TQT_SLOT (configureCompletionCombo (const TQStringList &)));
+ connect(listBox, TQT_SIGNAL(selectionChanged()), TQT_SLOT(selectionChanged()));
+ connect(listBox, TQT_SIGNAL(contextMenuRequested (TQListBoxItem *, const TQPoint &)), TQT_SLOT(contextMenuRequested (TQListBoxItem *, const TQPoint &)));
+ connect(lineEdit, TQT_SIGNAL(returnPressed(const TQString &)), TQT_SLOT(lineEntered(const TQString &)));
+ connect(lineEdit, TQT_SIGNAL(textChanged (const TQString &)), TQT_SLOT(textChanged(const TQString &)));
+ connect(speakButton, TQT_SIGNAL( clicked ()), TQT_SLOT(speak()));
}
PhraseList::~PhraseList() {
@@ -99,17 +99,17 @@ PhraseList::~PhraseList() {
void PhraseList::print(KPrinter *pPrinter) {
PhraseBook book;
- for (QListBoxItem *item = listBox->firstItem(); item != 0; item = item->next()) {
+ for (TQListBoxItem *item = listBox->firstItem(); item != 0; item = item->next()) {
book += PhraseBookEntry(Phrase(item->text()));
}
book.print (pPrinter);
}
-QStringList PhraseList::getListSelection() {
- QStringList res = QStringList();
+TQStringList PhraseList::getListSelection() {
+ TQStringList res = TQStringList();
- for (QListBoxItem *item = listBox->firstItem(); item != 0; item = item->next()) {
+ for (TQListBoxItem *item = listBox->firstItem(); item != 0; item = item->next()) {
if (item->isSelected())
res += item->text();
}
@@ -118,7 +118,7 @@ QStringList PhraseList::getListSelection() {
}
bool PhraseList::existListSelection() {
- for (QListBoxItem *item = listBox->firstItem(); item != 0; item = item->next()) {
+ for (TQListBoxItem *item = listBox->firstItem(); item != 0; item = item->next()) {
if (item->isSelected())
return true;
}
@@ -133,7 +133,7 @@ bool PhraseList::existEditSelection() {
void PhraseList::enableMenuEntries() {
bool deselected = false;
bool selected = false;
- for (QListBoxItem *item = listBox->firstItem(); item != 0; item = item->next()) {
+ for (TQListBoxItem *item = listBox->firstItem(); item != 0; item = item->next()) {
if (item->isSelected())
selected = true;
else
@@ -147,8 +147,8 @@ void PhraseList::configureCompletion() {
completion->configure();
}
-void PhraseList::configureCompletionCombo(const QStringList &list) {
- QString current = completion->currentWordList();
+void PhraseList::configureCompletionCombo(const TQStringList &list) {
+ TQString current = completion->currentWordList();
dictionaryCombo->clear();
if (list.isEmpty())
dictionaryCombo->hide();
@@ -161,7 +161,7 @@ void PhraseList::configureCompletionCombo(const QStringList &list) {
dictionaryCombo->insertStringList (list);
dictionaryCombo->show();
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
int i = 0;
for (it = list.begin(), i = 0; it != list.end(); ++it, ++i) {
if (current == *it) {
@@ -191,9 +191,9 @@ void PhraseList::readCompletionOptions(KConfig *config) {
int mode = config->readNumEntry ("Mode", KGlobalSettings::completionMode());
lineEdit->setCompletionMode (static_cast<KGlobalSettings::Completion>(mode));
- QString current = config->readEntry ("List", QString::null);
- QStringList list = completion->wordLists();
- QStringList::ConstIterator it;
+ TQString current = config->readEntry ("List", TQString::null);
+ TQStringList list = completion->wordLists();
+ TQStringList::ConstIterator it;
int i = 0;
for (it = list.begin(), i = 0; it != list.end(); ++it, ++i) {
if (current == *it) {
@@ -218,7 +218,7 @@ void PhraseList::deselectAllEntries () {
}
void PhraseList::speak () {
- QString phrase = lineEdit->text();
+ TQString phrase = lineEdit->text();
if (phrase.isNull() || phrase.isEmpty())
speakListSelection();
else {
@@ -245,7 +245,7 @@ void PhraseList::paste() {
lineEdit->paste();
}
-void PhraseList::insert (const QString &s) {
+void PhraseList::insert (const TQString &s) {
setEditLineText(s);
}
@@ -254,8 +254,8 @@ void PhraseList::speakListSelection () {
}
void PhraseList::removeListSelection () {
- QListBoxItem *next;
- for (QListBoxItem *item = listBox->firstItem(); item != 0; item = next) {
+ TQListBoxItem *next;
+ for (TQListBoxItem *item = listBox->firstItem(); item != 0; item = next) {
next = item->next();
if (item->isSelected()) {
@@ -271,10 +271,10 @@ void PhraseList::cutListSelection () {
}
void PhraseList::copyListSelection () {
- QApplication::clipboard()->setText (getListSelection().join ("\n"));
+ TQApplication::clipboard()->setText (getListSelection().join ("\n"));
}
-void PhraseList::lineEntered (const QString &phrase) {
+void PhraseList::lineEntered (const TQString &phrase) {
if (phrase.isNull() || phrase.isEmpty())
speakListSelection();
else {
@@ -283,15 +283,15 @@ void PhraseList::lineEntered (const QString &phrase) {
}
}
-void PhraseList::speakPhrase (const QString &phrase) {
- QApplication::setOverrideCursor (KCursor::WaitCursor, false);
+void PhraseList::speakPhrase (const TQString &phrase) {
+ TQApplication::setOverrideCursor (KCursor::WaitCursor, false);
KMouthApp *theApp=(KMouthApp *) parentWidget();
- QString language = completion->languageOfWordList (completion->currentWordList());
+ TQString language = completion->languageOfWordList (completion->currentWordList());
theApp->getTTSSystem()->speak(phrase, language);
- QApplication::restoreOverrideCursor ();
+ TQApplication::restoreOverrideCursor ();
}
-void PhraseList::insertIntoPhraseList (const QString &phrase, bool clearEditLine) {
+void PhraseList::insertIntoPhraseList (const TQString &phrase, bool clearEditLine) {
int lastLine = listBox->count() - 1;
if ((lastLine == -1) || (phrase != listBox->text(lastLine))) {
listBox->insertItem(new PhraseListItem(phrase));
@@ -306,8 +306,8 @@ void PhraseList::insertIntoPhraseList (const QString &phrase, bool clearEditLine
enableMenuEntries ();
}
-void PhraseList::contextMenuRequested (QListBoxItem *, const QPoint &pos) {
- QString name;
+void PhraseList::contextMenuRequested (TQListBoxItem *, const TQPoint &pos) {
+ TQString name;
if (existListSelection())
name = "phraselist_selection_popup";
else
@@ -315,13 +315,13 @@ void PhraseList::contextMenuRequested (QListBoxItem *, const QPoint &pos) {
KMouthApp *theApp=(KMouthApp *) parentWidget();
KXMLGUIFactory *factory = theApp->factory();
- QPopupMenu *popup = (QPopupMenu *)factory->container(name,theApp);
+ TQPopupMenu *popup = (TQPopupMenu *)factory->container(name,theApp);
if (popup != 0) {
popup->popup(pos, 0);
}
}
-void PhraseList::textChanged (const QString &s) {
+void PhraseList::textChanged (const TQString &s) {
if (!isInSlot) {
isInSlot = true;
line = s;
@@ -335,7 +335,7 @@ void PhraseList::selectionChanged () {
if (!isInSlot) {
isInSlot = true;
- QStringList sel = getListSelection();
+ TQStringList sel = getListSelection();
if (sel.empty())
setEditLineText(line);
@@ -349,17 +349,17 @@ void PhraseList::selectionChanged () {
enableMenuEntries ();
}
-void PhraseList::setEditLineText(const QString &s) {
+void PhraseList::setEditLineText(const TQString &s) {
lineEdit->end(false);
while (!(lineEdit->text().isNull() || lineEdit->text().isEmpty()))
lineEdit->backspace();
lineEdit->insert(s);
}
-void PhraseList::keyPressEvent (QKeyEvent *e) {
+void PhraseList::keyPressEvent (TQKeyEvent *e) {
if (e->key() == Qt::Key_Up) {
bool selected = false;
- for (QListBoxItem *item = listBox->firstItem(); item != 0; item = item->next()) {
+ for (TQListBoxItem *item = listBox->firstItem(); item != 0; item = item->next()) {
if (item->isSelected()) {
selected = true;
}
@@ -396,7 +396,7 @@ void PhraseList::keyPressEvent (QKeyEvent *e) {
}
else if (e->key() == Qt::Key_Down) {
bool selected = false;
- for (QListBoxItem *item = listBox->firstItem(); item != 0; item = item->next()) {
+ for (TQListBoxItem *item = listBox->firstItem(); item != 0; item = item->next()) {
if (item->isSelected()) {
selected = true;
}
@@ -440,7 +440,7 @@ void PhraseList::save () {
// format we use that method here.
PhraseBook book;
- for (QListBoxItem *item = listBox->firstItem(); item != 0; item = item->next()) {
+ for (TQListBoxItem *item = listBox->firstItem(); item != 0; item = item->next()) {
book += PhraseBookEntry(Phrase(item->text()));
}
@@ -450,7 +450,7 @@ void PhraseList::save () {
}
void PhraseList::open () {
- KURL url=KFileDialog::getOpenURL(QString::null,
+ KURL url=KFileDialog::getOpenURL(TQString::null,
i18n("*|All Files\n*.phrasebook|Phrase Books (*.phrasebook)\n*.txt|Plain Text Files (*.txt)"), this, i18n("Open File as History"));
if(!url.isEmpty())
@@ -465,9 +465,9 @@ void PhraseList::open (KURL url) {
PhraseBook book;
if (book.open (url)) {
// convert PhraseBookEntryList -> QStringList
- QStringList list = book.toStringList();
+ TQStringList list = book.toStringList();
listBox->clear();
- QStringList::iterator it;
+ TQStringList::iterator it;
for (it = list.begin(); it != list.end(); ++it)
insertIntoPhraseList (*it, false);
}
diff --git a/kmouth/phraselist.h b/kmouth/phraselist.h
index 7f56306..702e135 100644
--- a/kmouth/phraselist.h
+++ b/kmouth/phraselist.h
@@ -24,8 +24,8 @@
#include <kprinter.h>
// include files for Qt
-#include <qwidget.h>
-#include <qpushbutton.h>
+#include <tqwidget.h>
+#include <tqpushbutton.h>
class WordCompletion;
@@ -38,16 +38,16 @@ class WordCompletion;
* @author Gunnar Schmi Dt
*/
-class PhraseList : public QWidget {
+class PhraseList : public TQWidget {
Q_OBJECT
public:
- PhraseList(QWidget *parent=0, const char *name=0);
+ PhraseList(TQWidget *parent=0, const char *name=0);
~PhraseList();
/** contains the implementation for printing functionality */
void print(KPrinter *pPrinter);
- QStringList getListSelection();
+ TQStringList getListSelection();
bool existListSelection();
bool existEditSelection();
@@ -61,7 +61,7 @@ public slots:
void paste();
/** Insert s into the edit field. */
- void insert (const QString &s);
+ void insert (const TQString &s);
/** Called whenever the user wants the selected list entries to be spoken. */
void speakListSelection ();
@@ -83,26 +83,26 @@ public slots:
void readCompletionOptions(KConfig *config);
protected slots:
- void lineEntered (const QString &phrase);
- void contextMenuRequested (QListBoxItem *, const QPoint &pos);
- void textChanged (const QString &s);
+ void lineEntered (const TQString &phrase);
+ void contextMenuRequested (TQListBoxItem *, const TQPoint &pos);
+ void textChanged (const TQString &s);
void selectionChanged ();
- void keyPressEvent (QKeyEvent *e);
- void configureCompletionCombo(const QStringList &list);
+ void keyPressEvent (TQKeyEvent *e);
+ void configureCompletionCombo(const TQStringList &list);
private:
KListBox *listBox;
KComboBox *dictionaryCombo;
KLineEdit *lineEdit;
- QPushButton *speakButton;
- QString line;
+ TQPushButton *speakButton;
+ TQString line;
WordCompletion *completion;
bool isInSlot;
- void speakPhrase (const QString &phrase);
- void setEditLineText(const QString &s);
- void insertIntoPhraseList (const QString &phrase, bool clearEditLine);
+ void speakPhrase (const TQString &phrase);
+ void setEditLineText(const TQString &s);
+ void insertIntoPhraseList (const TQString &phrase, bool clearEditLine);
void enableMenuEntries ();
};
diff --git a/kmouth/phraselistitem.cpp b/kmouth/phraselistitem.cpp
index 6156054..721e893 100644
--- a/kmouth/phraselistitem.cpp
+++ b/kmouth/phraselistitem.cpp
@@ -16,21 +16,21 @@
***************************************************************************/
#include "phraselistitem.h"
-#include <qstyle.h>
-#include <qpainter.h>
+#include <tqstyle.h>
+#include <tqpainter.h>
-PhraseListItem::PhraseListItem (const QString & text)
- : QListBoxText::QListBoxText(text) {
+PhraseListItem::PhraseListItem (const TQString & text)
+ : TQListBoxText::TQListBoxText(text) {
}
PhraseListItem::~PhraseListItem() {
}
bool PhraseListItem::drawCursor() const {
- if ((QListBoxItem *)this != listBox()->item (listBox()->currentItem()))
+ if ((TQListBoxItem *)this != listBox()->item (listBox()->currentItem()))
return false;
- for (QListBoxItem *item = listBox()->firstItem(); item != 0; item = item->next() ) {
+ for (TQListBoxItem *item = listBox()->firstItem(); item != 0; item = item->next() ) {
if (item->isSelected())
return true;
}
@@ -41,12 +41,12 @@ int PhraseListItem::rtti() const {
return RTTI;
}
-void PhraseListItem::paint (QPainter *p) {
- QListBoxText::paint (p);
+void PhraseListItem::paint (TQPainter *p) {
+ TQListBoxText::paint (p);
if (drawCursor()) {
- QRect r (0, 0, listBox()->maxItemWidth(), height (listBox()));
- listBox()->style().drawPrimitive (QStyle::PE_FocusRect, p, r,
+ TQRect r (0, 0, listBox()->maxItemWidth(), height (listBox()));
+ listBox()->style().drawPrimitive (TQStyle::PE_FocusRect, p, r,
listBox()->colorGroup());
}
}
diff --git a/kmouth/phraselistitem.h b/kmouth/phraselistitem.h
index 24d5e49..3afc85b 100644
--- a/kmouth/phraselistitem.h
+++ b/kmouth/phraselistitem.h
@@ -18,17 +18,17 @@
#ifndef PHRASELISTITEM_H
#define PHRASELISTITEM_H
-#include <qlistbox.h>
+#include <tqlistbox.h>
/**
* This class represents a phrase in the list of spoken phrases. It extends
- * QListBoxText for providing support for a visible list cursor.
+ * TQListBoxText for providing support for a visible list cursor.
* @author Gunnar Schmi Dt
*/
-class PhraseListItem : public QListBoxText {
+class PhraseListItem : public TQListBoxText {
public:
- PhraseListItem (const QString & text);
+ PhraseListItem (const TQString & text);
~PhraseListItem();
bool drawCursor() const;
@@ -37,7 +37,7 @@ public:
static const int RTTI = 982734;
protected:
- void paint( QPainter * );
+ void paint( TQPainter * );
};
#endif
diff --git a/kmouth/speech.cpp b/kmouth/speech.cpp
index d2f7db8..8fc8f19 100644
--- a/kmouth/speech.cpp
+++ b/kmouth/speech.cpp
@@ -16,13 +16,13 @@
***************************************************************************/
#include "speech.h"
-#include <qstring.h>
-#include <qvaluelist.h>
-#include <qvaluestack.h>
-#include <qstringlist.h>
-#include <qregexp.h>
-#include <qtextcodec.h>
-#include <qfile.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
+#include <tqvaluestack.h>
+#include <tqstringlist.h>
+#include <tqregexp.h>
+#include <tqtextcodec.h>
+#include <tqfile.h>
#include <kdebug.h>
#include <kdeversion.h>
@@ -39,25 +39,25 @@ Speech::Speech() {
Speech::~Speech() {
}
-QString Speech::prepareCommand (QString command, const QString &text,
- const QString &filename, const QString &language) {
+TQString Speech::prepareCommand (TQString command, const TQString &text,
+ const TQString &filename, const TQString &language) {
#ifdef macroExpander
- QMap<QChar,QString> map;
+ TQMap<TQChar,TQString> map;
map['t'] = text;
map['f'] = filename;
map['l'] = language;
return KMacroExpander::expandMacrosShellQuote (command, map);
#else
- QValueStack<bool> stack; // saved isdoublequote values during parsing of braces
+ TQValueStack<bool> stack; // saved isdoublequote values during parsing of braces
bool issinglequote=false; // inside '...' ?
bool isdoublequote=false; // inside "..." ?
int noreplace=0; // nested braces when within ${...}
- QString escText = KShellProcess::quote(text);
+ TQString escText = KShellProcess::quote(text);
// character sequences that change the state or need to be otherwise processed
- QRegExp re_singlequote("('|%%|%t|%f|%l)");
- QRegExp re_doublequote("(\"|\\\\|`|\\$\\(|\\$\\{|%%|%t|%f|%l)");
- QRegExp re_noquote ("('|\"|\\\\|`|\\$\\(|\\$\\{|\\(|\\{|\\)|\\}|%%|%t|%f|%l)");
+ TQRegExp re_singlequote("('|%%|%t|%f|%l)");
+ TQRegExp re_doublequote("(\"|\\\\|`|\\$\\(|\\$\\{|%%|%t|%f|%l)");
+ TQRegExp re_noquote ("('|\"|\\\\|`|\\$\\(|\\$\\{|\\(|\\{|\\)|\\}|%%|%t|%f|%l)");
// parse the command:
for (int i = re_noquote.search(command);
@@ -108,7 +108,7 @@ QString Speech::prepareCommand (QString command, const QString &text,
else if (command[i]=='`') {
// Replace all `...` with safer $(...)
command.replace (i, 1, "$(");
- QRegExp re_backticks("(`|\\\\`|\\\\\\\\|\\\\\\$)");
+ TQRegExp re_backticks("(`|\\\\`|\\\\\\\\|\\\\\\$)");
for (int i2=re_backticks.search(command,i+2);
i2!=-1;
i2=re_backticks.search(command,i2)
@@ -135,7 +135,7 @@ QString Speech::prepareCommand (QString command, const QString &text,
i+=re_noquote.matchedLength();
}
else { // replace macro
- QString match, v;
+ TQString match, v;
// get match
if (issinglequote)
@@ -169,35 +169,35 @@ QString Speech::prepareCommand (QString command, const QString &text,
#endif
}
-void Speech::speak(QString command, bool stdIn, const QString &text, const QString &language, int encoding, QTextCodec *codec) {
+void Speech::speak(TQString command, bool stdIn, const TQString &text, const TQString &language, int encoding, TQTextCodec *codec) {
if (text.length () > 0) {
// 1. prepare the text:
// 1.a) encode the text
- QTextStream ts (encText, IO_WriteOnly);
+ TQTextStream ts (encText, IO_WriteOnly);
if (encoding == Local)
- ts.setEncoding (QTextStream::Locale);
+ ts.setEncoding (TQTextStream::Locale);
else if (encoding == Latin1)
- ts.setEncoding (QTextStream::Latin1);
+ ts.setEncoding (TQTextStream::Latin1);
else if (encoding == Unicode)
- ts.setEncoding (QTextStream::Unicode);
+ ts.setEncoding (TQTextStream::Unicode);
else
ts.setCodec (codec);
ts << text;
// 1.b) create a temporary file for the text
tempFile.setAutoDelete(true);
- QTextStream* fs = tempFile.textStream();
+ TQTextStream* fs = tempFile.textStream();
if (encoding == Local)
- fs->setEncoding (QTextStream::Locale);
+ fs->setEncoding (TQTextStream::Locale);
else if (encoding == Latin1)
- fs->setEncoding (QTextStream::Latin1);
+ fs->setEncoding (TQTextStream::Latin1);
else if (encoding == Unicode)
- fs->setEncoding (QTextStream::Unicode);
+ fs->setEncoding (TQTextStream::Unicode);
else
fs->setCodec (codec);
*fs << text;
*fs << endl;
- QString filename = tempFile.file()->name();
+ TQString filename = tempFile.file()->name();
tempFile.close();
// 2. prepare the command:
@@ -206,10 +206,10 @@ void Speech::speak(QString command, bool stdIn, const QString &text, const QStri
// 3. create a new process
process << command;
- connect(&process, SIGNAL(processExited(KProcess *)), this, SLOT(processExited(KProcess *)));
- connect(&process, SIGNAL(wroteStdin(KProcess *)), this, SLOT(wroteStdin(KProcess *)));
- connect(&process, SIGNAL(receivedStdout(KProcess *, char *, int)), this, SLOT(receivedStdout(KProcess *, char *, int)));
- connect(&process, SIGNAL(receivedStderr(KProcess *, char *, int)), this, SLOT(receivedStderr(KProcess *, char *, int)));
+ connect(&process, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(processExited(KProcess *)));
+ connect(&process, TQT_SIGNAL(wroteStdin(KProcess *)), this, TQT_SLOT(wroteStdin(KProcess *)));
+ connect(&process, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), this, TQT_SLOT(receivedStdout(KProcess *, char *, int)));
+ connect(&process, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), this, TQT_SLOT(receivedStderr(KProcess *, char *, int)));
// 4. start the process
if (stdIn) {
@@ -225,10 +225,10 @@ void Speech::speak(QString command, bool stdIn, const QString &text, const QStri
}
void Speech::receivedStdout (KProcess *, char *buffer, int buflen) {
- kdDebug() << QString::fromLatin1(buffer, buflen) + "\n";
+ kdDebug() << TQString::fromLatin1(buffer, buflen) + "\n";
}
void Speech::receivedStderr (KProcess *, char *buffer, int buflen) {
- kdDebug() << QString::fromLatin1(buffer, buflen) + "\n";
+ kdDebug() << TQString::fromLatin1(buffer, buflen) + "\n";
}
void Speech::wroteStdin(KProcess *) {
diff --git a/kmouth/speech.h b/kmouth/speech.h
index 83c728c..11331cf 100644
--- a/kmouth/speech.h
+++ b/kmouth/speech.h
@@ -18,8 +18,8 @@
#ifndef SPEECH_H
#define SPEECH_H
-#include <qobject.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqstring.h>
#include <kprocess.h>
#include <ktempfile.h>
@@ -27,7 +27,7 @@
*@author Gunnar Schmi Dt
*/
-class Speech : public QObject {
+class Speech : public TQObject {
Q_OBJECT
public:
enum CharacterCodec {
@@ -46,7 +46,7 @@ public:
* @param stdin true if the program shall receive its data via standard input
* @param text The text that shall be spoken
*/
- void speak(QString command, bool use_stdin, const QString &text, const QString &language, int encoding, QTextCodec *codec);
+ void speak(TQString command, bool use_stdin, const TQString &text, const TQString &language, int encoding, TQTextCodec *codec);
/**
* Prepares a command for being executed. During the preparation the
@@ -54,8 +54,8 @@ public:
* @param command the command that shall be executed for speaking
* @param text the quoted text that can be inserted into the command
*/
- QString prepareCommand (QString command, const QString &text,
- const QString &filename, const QString &language);
+ TQString prepareCommand (TQString command, const TQString &text,
+ const TQString &filename, const TQString &language);
public slots:
void wroteStdin (KProcess *p);
@@ -65,7 +65,7 @@ public slots:
private:
KShellProcess process;
- QByteArray encText;
+ TQByteArray encText;
KTempFile tempFile;
};
diff --git a/kmouth/texttospeechconfigurationwidget.cpp b/kmouth/texttospeechconfigurationwidget.cpp
index f697061..f7fe16a 100644
--- a/kmouth/texttospeechconfigurationwidget.cpp
+++ b/kmouth/texttospeechconfigurationwidget.cpp
@@ -18,20 +18,20 @@
#include "texttospeechconfigurationwidget.h"
#include <kconfig.h>
-#include <qtextcodec.h>
-#include <qptrlist.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
+#include <tqtextcodec.h>
+#include <tqptrlist.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
#include <kcombobox.h>
#include <klocale.h>
-#include <qlabel.h>
+#include <tqlabel.h>
#include "speech.h"
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qcheckbox.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqcheckbox.h>
#include <kurlrequester.h>
-TextToSpeechConfigurationWidget::TextToSpeechConfigurationWidget (QWidget *parent, const char *name)
+TextToSpeechConfigurationWidget::TextToSpeechConfigurationWidget (TQWidget *parent, const char *name)
: texttospeechconfigurationui (parent, name)
{
ttsSystem = new TextToSpeechSystem();
@@ -44,8 +44,8 @@ TextToSpeechConfigurationWidget::~TextToSpeechConfigurationWidget() {
}
void TextToSpeechConfigurationWidget::buildCodecList () {
- QString local = i18n("Local")+" (";
- local += QTextCodec::codecForLocale()->name();
+ TQString local = i18n("Local")+" (";
+ local += TQTextCodec::codecForLocale()->name();
local += ")";
characterCodingBox->insertItem (local, Speech::Local);
characterCodingBox->insertItem (i18n("Latin1"), Speech::Latin1);
@@ -72,7 +72,7 @@ TextToSpeechSystem *TextToSpeechConfigurationWidget::getTTSSystem() const {
return ttsSystem;
}
-void TextToSpeechConfigurationWidget::readOptions (KConfig *config, const QString &langGroup) {
+void TextToSpeechConfigurationWidget::readOptions (KConfig *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 QStrin
useKttsd->setChecked (ttsSystem->useKttsd);
}
-void TextToSpeechConfigurationWidget::saveOptions (KConfig *config, const QString &langGroup) {
+void TextToSpeechConfigurationWidget::saveOptions (KConfig *config, const TQString &langGroup) {
ttsSystem->saveOptions (config, langGroup);
}
diff --git a/kmouth/texttospeechconfigurationwidget.h b/kmouth/texttospeechconfigurationwidget.h
index 439ae4f..a5ef3ba 100644
--- a/kmouth/texttospeechconfigurationwidget.h
+++ b/kmouth/texttospeechconfigurationwidget.h
@@ -30,13 +30,13 @@
class TextToSpeechConfigurationWidget : public texttospeechconfigurationui {
friend class TextToSpeechConfigurationDialog;
public:
- TextToSpeechConfigurationWidget(QWidget *parent, const char *name);
+ TextToSpeechConfigurationWidget(TQWidget *parent, const char *name);
~TextToSpeechConfigurationWidget();
TextToSpeechSystem *getTTSSystem() const;
- void readOptions (KConfig *config, const QString &langGroup);
- void saveOptions (KConfig *config, const QString &langGroup);
+ void readOptions (KConfig *config, const TQString &langGroup);
+ void saveOptions (KConfig *config, const TQString &langGroup);
void ok();
void cancel();
diff --git a/kmouth/texttospeechsystem.cpp b/kmouth/texttospeechsystem.cpp
index 4aeb0f9..f7f9515 100644
--- a/kmouth/texttospeechsystem.cpp
+++ b/kmouth/texttospeechsystem.cpp
@@ -17,9 +17,9 @@
#include "texttospeechsystem.h"
-#include <qregexp.h>
-#include <qtextcodec.h>
-#include <qptrlist.h>
+#include <tqregexp.h>
+#include <tqtextcodec.h>
+#include <tqptrlist.h>
#include <stdlib.h>
#include <kapplication.h>
@@ -40,18 +40,18 @@ TextToSpeechSystem::~TextToSpeechSystem() {
delete codecList;
}
-bool kttsdSay (const QString &text, const QString &language) {
+bool kttsdSay (const TQString &text, const TQString &language) {
DCOPClient *client = kapp->dcopClient();
- QByteArray data;
- QCString replyType;
- QByteArray replyData;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
+ TQDataStream arg(data, IO_WriteOnly);
arg << text << language;
- return client->call("kttsd", "KSpeech", "sayWarning(QString,QString)",
+ return client->call("kttsd", "KSpeech", "sayWarning(TQString,TQString)",
data, replyType, replyData, true);
}
-void TextToSpeechSystem::speak (const QString &text, const QString &language) {
+void TextToSpeechSystem::speak (const TQString &text, const TQString &language) {
if (text.length() > 0) {
if (useKttsd) {
if (kttsdSay(text, language))
@@ -66,13 +66,13 @@ void TextToSpeechSystem::speak (const QString &text, const QString &language) {
}
}
-void TextToSpeechSystem::readOptions (KConfig *config, const QString &langGroup) {
+void TextToSpeechSystem::readOptions (KConfig *config, const TQString &langGroup) {
config->setGroup(langGroup);
ttsCommand = config->readPathEntry("Command");
stdIn = config->readBoolEntry("StdIn", true);
useKttsd = config->readBoolEntry("useKttsd", true);
- QString codecString = config->readEntry("Codec", "Local");
+ TQString codecString = config->readEntry("Codec", "Local");
if (codecString == "Local")
codec = Speech::Local;
else if (codecString == "Latin1")
@@ -87,7 +87,7 @@ void TextToSpeechSystem::readOptions (KConfig *config, const QString &langGroup)
}
}
-void TextToSpeechSystem::saveOptions (KConfig *config, const QString &langGroup) {
+void TextToSpeechSystem::saveOptions (KConfig *config, const TQString &langGroup) {
config->setGroup(langGroup);
config->writePathEntry("Command", ttsCommand);
config->writeEntry("StdIn", stdIn);
@@ -104,10 +104,10 @@ void TextToSpeechSystem::saveOptions (KConfig *config, const QString &langGroup)
}
void TextToSpeechSystem::buildCodecList () {
- codecList = new QPtrList<QTextCodec>;
- QTextCodec *codec;
+ codecList = new TQPtrList<TQTextCodec>;
+ TQTextCodec *codec;
int i;
- for (i = 0; (codec = QTextCodec::codecForIndex(i)); i++)
+ for (i = 0; (codec = TQTextCodec::codecForIndex(i)); i++)
codecList->append (codec);
}
diff --git a/kmouth/texttospeechsystem.h b/kmouth/texttospeechsystem.h
index fc9b018..f435585 100644
--- a/kmouth/texttospeechsystem.h
+++ b/kmouth/texttospeechsystem.h
@@ -19,9 +19,9 @@
#ifndef TEXTTOSPEECHSYSTEM_H
#define TEXTTOSPEECHSYSTEM_H
-#include <qstring.h>
-#include <qobject.h>
-#include <qptrlist.h>
+#include <tqstring.h>
+#include <tqobject.h>
+#include <tqptrlist.h>
class KConfig;
@@ -36,18 +36,18 @@ public:
TextToSpeechSystem();
~TextToSpeechSystem();
- void readOptions (KConfig *config, const QString &langGroup);
- void saveOptions (KConfig *config, const QString &langGroup);
+ void readOptions (KConfig *config, const TQString &langGroup);
+ void saveOptions (KConfig *config, const TQString &langGroup);
public slots:
- void speak (const QString &text, const QString &language);
+ void speak (const TQString &text, const TQString &language);
private:
void buildCodecList ();
- QPtrList<QTextCodec> *codecList;
+ TQPtrList<TQTextCodec> *codecList;
int codec;
- QString ttsCommand;
+ TQString ttsCommand;
bool stdIn;
bool useKttsd;
};
diff --git a/kmouth/wordcompletion/creationsourcedetailsui.ui.h b/kmouth/wordcompletion/creationsourcedetailsui.ui.h
index 956f021..16ecdc5 100644
--- a/kmouth/wordcompletion/creationsourcedetailsui.ui.h
+++ b/kmouth/wordcompletion/creationsourcedetailsui.ui.h
@@ -12,23 +12,23 @@ void CreationSourceDetailsUI::init() {
languageButton = new KLanguageButton (this, "languageButton");
CreationSourceDetailsUILayout->addWidget (languageButton, 2, 1);
languageLabel->setBuddy (languageButton);
- QWhatsThis::add (languageButton, i18n("With this combo box you decide which language should be associated with the new dictionary."));
+ TQWhatsThis::add (languageButton, i18n("With this combo box you decide which language should be associated with the new dictionary."));
loadLanguageList(languageButton);
- languageButton->insertLanguage("??", i18n("Other"), QString::fromLatin1("l10n/"), QString::null);
+ languageButton->insertLanguage("??", i18n("Other"), TQString::fromLatin1("l10n/"), TQString::null);
- connect (languageButton, SIGNAL(activated(int)), this, SLOT(languageButton_activated(int)));
+ connect (languageButton, TQT_SIGNAL(activated(int)), this, TQT_SLOT(languageButton_activated(int)));
}
void CreationSourceDetailsUI::languageButton_activated (int) {
if (languageButton->currentTag() == "??") {
- QString customLanguage = KInputDialog::getText(i18n("Create Custom Language"), i18n("Please enter the code for the custom language:"));
+ TQString customLanguage = KInputDialog::getText(i18n("Create Custom Language"), i18n("Please enter the code for the custom language:"));
if (languageButton->containsTag(customLanguage)) {
languageButton->setCurrentItem(customLanguage);
}
else {
- languageButton->insertLanguage(customLanguage, i18n("without name"), QString::fromLatin1("l10n/"), QString::null);
+ languageButton->insertLanguage(customLanguage, i18n("without name"), TQString::fromLatin1("l10n/"), TQString::null);
languageButton->setCurrentItem(customLanguage);
}
}
diff --git a/kmouth/wordcompletion/creationsourceui.ui.h b/kmouth/wordcompletion/creationsourceui.ui.h
index d78a439..f9f3dad 100644
--- a/kmouth/wordcompletion/creationsourceui.ui.h
+++ b/kmouth/wordcompletion/creationsourceui.ui.h
@@ -9,11 +9,11 @@
void CreationSourceUI::init() {
- group1 = new QButtonGroup (0);
+ group1 = new TQButtonGroup (0);
group1->insert (createButton);
group1->insert (mergeButton);
group1->insert (emptyButton);
- group2 = new QButtonGroup (0);
+ group2 = new TQButtonGroup (0);
group2->insert (kdeDocButton);
group2->insert (fileButton);
group2->insert (directoryButton);
diff --git a/kmouth/wordcompletion/dictionarycreationwizard.cpp b/kmouth/wordcompletion/dictionarycreationwizard.cpp
index a0711ce..13c770e 100644
--- a/kmouth/wordcompletion/dictionarycreationwizard.cpp
+++ b/kmouth/wordcompletion/dictionarycreationwizard.cpp
@@ -15,14 +15,14 @@
* *
***************************************************************************/
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qlineedit.h>
-#include <qcombobox.h>
-#include <qtextcodec.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
+#include <tqtextcodec.h>
+#include <tqwhatsthis.h>
#include <klistview.h>
#include <klineedit.h>
@@ -42,9 +42,9 @@
#include "kdedocsourceui.h"
#include "wordlist.h"
-DictionaryCreationWizard::DictionaryCreationWizard (QWidget *parent, const char *name,
- QStringList dictionaryNames, QStringList dictionaryFiles,
- QStringList dictionaryLanguages)
+DictionaryCreationWizard::DictionaryCreationWizard (TQWidget *parent, const char *name,
+ TQStringList dictionaryNames, TQStringList dictionaryFiles,
+ TQStringList dictionaryLanguages)
: KWizard (parent, name)
{
buildCodecList ();
@@ -61,9 +61,9 @@ DictionaryCreationWizard::DictionaryCreationWizard (QWidget *parent, const char
dirWidget= new CreationSourceDetailsUI (this, "directory source page");
addPage (dirWidget, i18n("Source of New Dictionary (2)"));
dirWidget->urlLabel->setText (i18n("&Directory:"));
- QWhatsThis::add (dirWidget->urlLabel, i18n("With this input field you specify which directory you want to load for creating the new dictionary."));
+ TQWhatsThis::add (dirWidget->urlLabel, i18n("With this input field you specify which directory you want to load for creating the new dictionary."));
dirWidget->url->setMode(KFile::Directory);
- QWhatsThis::add (dirWidget->url, i18n("With this input field you specify which directory you want to load for creating the new dictionary."));
+ TQWhatsThis::add (dirWidget->url, i18n("With this input field you specify which directory you want to load for creating the new dictionary."));
buildCodecCombo (dirWidget->encodingCombo);
kdeDocWidget= new KDEDocSourceUI (this, "KDE documentation source page");
@@ -72,11 +72,11 @@ DictionaryCreationWizard::DictionaryCreationWizard (QWidget *parent, const char
mergeWidget = new MergeWidget (this, "merge source page", dictionaryNames, dictionaryFiles, dictionaryLanguages);
addPage (mergeWidget, i18n("Source of New Dictionary (2)"));
- connect (creationSource->fileButton, SIGNAL (toggled(bool)), this, SLOT(calculateAppropriate(bool)) );
- connect (creationSource->directoryButton,SIGNAL(toggled(bool)), this, SLOT(calculateAppropriate(bool)) );
- connect (creationSource->kdeDocButton, SIGNAL (toggled(bool)), this, SLOT(calculateAppropriate(bool)) );
- connect (creationSource->mergeButton, SIGNAL (toggled(bool)), this, SLOT(calculateAppropriate(bool)) );
- connect (creationSource->emptyButton, SIGNAL (toggled(bool)), this, SLOT(calculateAppropriate(bool)) );
+ connect (creationSource->fileButton, TQT_SIGNAL (toggled(bool)), this, TQT_SLOT(calculateAppropriate(bool)) );
+ connect (creationSource->directoryButton,TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(calculateAppropriate(bool)) );
+ connect (creationSource->kdeDocButton, TQT_SIGNAL (toggled(bool)), this, TQT_SLOT(calculateAppropriate(bool)) );
+ connect (creationSource->mergeButton, TQT_SIGNAL (toggled(bool)), this, TQT_SLOT(calculateAppropriate(bool)) );
+ connect (creationSource->emptyButton, TQT_SIGNAL (toggled(bool)), this, TQT_SLOT(calculateAppropriate(bool)) );
calculateAppropriate (true);
}
@@ -90,16 +90,16 @@ DictionaryCreationWizard::~DictionaryCreationWizard () {
}
void DictionaryCreationWizard::buildCodecList () {
- codecList = new QPtrList<QTextCodec>;
- QTextCodec *codec;
+ codecList = new TQPtrList<TQTextCodec>;
+ TQTextCodec *codec;
int i;
- for (i = 0; (codec = QTextCodec::codecForIndex(i)); i++)
+ for (i = 0; (codec = TQTextCodec::codecForIndex(i)); i++)
codecList->append (codec);
}
-void DictionaryCreationWizard::buildCodecCombo (QComboBox *combo) {
- QString local = i18n("Local")+" (";
- local += QTextCodec::codecForLocale()->name();
+void DictionaryCreationWizard::buildCodecCombo (TQComboBox *combo) {
+ TQString local = i18n("Local")+" (";
+ local += TQTextCodec::codecForLocale()->name();
local += ")";
combo->insertItem (local, 0);
combo->insertItem (i18n("Latin1"), 1);
@@ -154,58 +154,58 @@ void DictionaryCreationWizard::calculateAppropriate (bool) {
}
}
-QString DictionaryCreationWizard::createDictionary() {
+TQString DictionaryCreationWizard::createDictionary() {
WordList::WordMap map;
- QString dicFile = "";
+ TQString dicFile = "";
KProgressDialog *pdlg = WordList::progressDialog();
if (creationSource->mergeButton->isChecked()) {
map = WordList::mergeFiles (mergeWidget->mergeParameters(), pdlg);
- dicFile = QString::null;
+ dicFile = TQString::null;
}
else if (creationSource->emptyButton->isChecked()) {
- dicFile = QString::null;
+ dicFile = TQString::null;
}
else if (creationSource->fileButton->isChecked()) {
- QString filename = fileWidget->url->url();
+ TQString filename = fileWidget->url->url();
int encoding = fileWidget->encodingCombo->currentItem();
if (fileWidget->spellCheckBox->isChecked())
dicFile = fileWidget->ooDictURL->url();
switch (encoding) {
case 0:
- map = WordList::parseFile (filename, QTextStream::Locale, 0, pdlg);
+ map = WordList::parseFile (filename, TQTextStream::Locale, 0, pdlg);
break;
case 1:
- map = WordList::parseFile (filename, QTextStream::Latin1, 0, pdlg);
+ map = WordList::parseFile (filename, TQTextStream::Latin1, 0, pdlg);
break;
case 2:
- map = WordList::parseFile (filename, QTextStream::Unicode, 0, pdlg);
+ map = WordList::parseFile (filename, TQTextStream::Unicode, 0, pdlg);
break;
default:
- map = WordList::parseFile (filename, (QTextStream::Encoding)0, codecList->at(encoding-3), pdlg);
+ map = WordList::parseFile (filename, (TQTextStream::Encoding)0, codecList->at(encoding-3), pdlg);
}
}
else if (creationSource->directoryButton->isChecked()) {
- QString directory = dirWidget->url->url();
+ TQString directory = dirWidget->url->url();
int encoding = dirWidget->encodingCombo->currentItem();
if (dirWidget->spellCheckBox->isChecked())
dicFile = dirWidget->ooDictURL->url();
switch (encoding) {
case 0:
- map = WordList::parseDir (directory, QTextStream::Locale, 0, pdlg);
+ map = WordList::parseDir (directory, TQTextStream::Locale, 0, pdlg);
break;
case 1:
- map = WordList::parseDir (directory, QTextStream::Latin1, 0, pdlg);
+ map = WordList::parseDir (directory, TQTextStream::Latin1, 0, pdlg);
break;
case 2:
- map = WordList::parseDir (directory, QTextStream::Unicode, 0, pdlg);
+ map = WordList::parseDir (directory, TQTextStream::Unicode, 0, pdlg);
break;
default:
- map = WordList::parseDir (directory, (QTextStream::Encoding)0, codecList->at(encoding-3), pdlg);
+ map = WordList::parseDir (directory, (TQTextStream::Encoding)0, codecList->at(encoding-3), pdlg);
}
}
else { // creationSource->kdeDocButton must be checked
- QString language = kdeDocWidget->languageButton->currentTag();
+ TQString language = kdeDocWidget->languageButton->currentTag();
if (kdeDocWidget->spellCheckBox->isChecked())
dicFile = kdeDocWidget->ooDictURL->url();
map = WordList::parseKDEDoc (language, pdlg);
@@ -217,11 +217,11 @@ QString DictionaryCreationWizard::createDictionary() {
delete pdlg;
int dictnumber = 0;
- QString filename;
- QString dictionaryFile;
+ TQString filename;
+ TQString dictionaryFile;
do {
dictnumber++;
- filename = QString("wordcompletion%1.dict").arg(dictnumber);
+ filename = TQString("wordcompletion%1.dict").arg(dictnumber);
dictionaryFile = KApplication::kApplication()->dirs()->findResource("appdata", filename);
}
while (KStandardDirs::exists(dictionaryFile));
@@ -233,7 +233,7 @@ QString DictionaryCreationWizard::createDictionary() {
return "";
}
-QString DictionaryCreationWizard::name() {
+TQString DictionaryCreationWizard::name() {
if (creationSource->mergeButton->isChecked()) {
return i18n("Merge result");
}
@@ -251,7 +251,7 @@ QString DictionaryCreationWizard::name() {
}
}
-QString DictionaryCreationWizard::language() {
+TQString DictionaryCreationWizard::language() {
if (creationSource->mergeButton->isChecked()) {
return mergeWidget->language();
}
@@ -275,25 +275,25 @@ QString DictionaryCreationWizard::language() {
/***************************************************************************/
MergeWidget::MergeWidget(KWizard *parent, const char *name,
- QStringList dictionaryNames, QStringList dictionaryFiles,
- QStringList dictionaryLanguages)
-: QScrollView (parent, name) {
+ TQStringList dictionaryNames, TQStringList dictionaryFiles,
+ TQStringList dictionaryLanguages)
+: TQScrollView (parent, name) {
dictionaries.setAutoDelete (false);
weights.setAutoDelete (false);
- QWidget *contents = new QWidget(viewport());
+ TQWidget *contents = new TQWidget(viewport());
addChild(contents);
- QGridLayout *layout = new QGridLayout (contents);
- setResizePolicy (QScrollView::AutoOneFit);
+ TQGridLayout *layout = new TQGridLayout (contents);
+ setResizePolicy (TQScrollView::AutoOneFit);
layout->setColStretch (0, 0);
layout->setColStretch (1, 1);
int row = 0;
- QStringList::Iterator nIt = dictionaryNames.begin();
- QStringList::Iterator fIt = dictionaryFiles.begin();
- QStringList::Iterator lIt = dictionaryLanguages.begin();
+ TQStringList::Iterator nIt = dictionaryNames.begin();
+ TQStringList::Iterator fIt = dictionaryFiles.begin();
+ TQStringList::Iterator lIt = dictionaryLanguages.begin();
for (; nIt != dictionaryNames.end(); ++nIt, ++fIt, ++lIt) {
- QCheckBox *checkbox = new QCheckBox(*nIt, contents);
+ TQCheckBox *checkbox = new TQCheckBox(*nIt, contents);
KIntNumInput *numInput = new KIntNumInput(contents);
layout->addWidget (checkbox, row, 0);
layout->addWidget (numInput, row, 1);
@@ -301,7 +301,7 @@ MergeWidget::MergeWidget(KWizard *parent, const char *name,
checkbox->setChecked (true);
numInput->setRange (1, 100, 10, true);
numInput->setValue (100);
- connect (checkbox, SIGNAL (toggled(bool)), numInput, SLOT(setEnabled(bool)));
+ connect (checkbox, TQT_SIGNAL (toggled(bool)), numInput, TQT_SLOT(setEnabled(bool)));
dictionaries.insert(*fIt, checkbox);
weights.insert(*fIt, numInput);
@@ -313,13 +313,13 @@ MergeWidget::MergeWidget(KWizard *parent, const char *name,
MergeWidget::~MergeWidget() {
}
-QMap <QString, int> MergeWidget::mergeParameters () {
- QMap <QString, int> files;
- QDictIterator<QCheckBox> it(dictionaries);
+TQMap <TQString, int> MergeWidget::mergeParameters () {
+ TQMap <TQString, int> files;
+ TQDictIterator<TQCheckBox> it(dictionaries);
for (; it.current(); ++it) {
if (it.current()->isChecked()) {
- QString name = it.currentKey();
- QString dictionaryFile = KApplication::kApplication()->dirs()->findResource("appdata", name);
+ TQString name = it.currentKey();
+ TQString dictionaryFile = KApplication::kApplication()->dirs()->findResource("appdata", name);
files[dictionaryFile] = weights[name]->value();
}
}
@@ -327,15 +327,15 @@ QMap <QString, int> MergeWidget::mergeParameters () {
return files;
}
-QString MergeWidget::language () {
- QDictIterator<QCheckBox> it(dictionaries);
+TQString MergeWidget::language () {
+ TQDictIterator<TQCheckBox> it(dictionaries);
for (; it.current(); ++it) {
if (it.current()->isChecked()) {
return languages [it.currentKey()];
}
}
- return QString::null;
+ return TQString::null;
}
/***************************************************************************/
@@ -351,7 +351,7 @@ void CompletionWizardWidget::ok (KConfig *config) {
WordList::WordMap map;
KProgressDialog *pdlg = WordList::progressDialog();
- QString language = languageButton->currentTag();
+ TQString language = languageButton->currentTag();
map = WordList::parseKDEDoc (language, pdlg);
if (spellCheckBox->isChecked())
@@ -360,8 +360,8 @@ void CompletionWizardWidget::ok (KConfig *config) {
pdlg->close();
delete pdlg;
- QString filename;
- QString dictionaryFile;
+ TQString filename;
+ TQString dictionaryFile;
dictionaryFile = KApplication::kApplication()->dirs()->saveLocation ("appdata", "/") + "wordcompletion1.dict";
if (WordList::saveWordList (map, dictionaryFile)) {
diff --git a/kmouth/wordcompletion/dictionarycreationwizard.h b/kmouth/wordcompletion/dictionarycreationwizard.h
index 18928e1..0977680 100644
--- a/kmouth/wordcompletion/dictionarycreationwizard.h
+++ b/kmouth/wordcompletion/dictionarycreationwizard.h
@@ -20,8 +20,8 @@
#ifndef DICTIONARYCREATIONWIZARD_H
#define DICTIONARYCREATIONWIZARD_H
-#include <qptrlist.h>
-#include <qmap.h>
+#include <tqptrlist.h>
+#include <tqmap.h>
#include <kwizard.h>
#include <knuminput.h>
@@ -43,22 +43,22 @@ class MergeWidget;
class DictionaryCreationWizard : public KWizard {
Q_OBJECT
public:
- DictionaryCreationWizard (QWidget *parent, const char *name,
- QStringList dictionaryNames,
- QStringList dictionaryFiles,
- QStringList dictionaryLanguages);
+ DictionaryCreationWizard (TQWidget *parent, const char *name,
+ TQStringList dictionaryNames,
+ TQStringList dictionaryFiles,
+ TQStringList dictionaryLanguages);
~DictionaryCreationWizard();
- QString createDictionary();
- QString name();
- QString language();
+ TQString createDictionary();
+ TQString name();
+ TQString language();
private slots:
void calculateAppropriate (bool);
private:
void buildCodecList ();
- void buildCodecCombo (QComboBox *combo);
+ void buildCodecCombo (TQComboBox *combo);
CreationSourceUI *creationSource;
CreationSourceDetailsUI *fileWidget;
@@ -66,7 +66,7 @@ private:
KDEDocSourceUI *kdeDocWidget;
MergeWidget *mergeWidget;
- QPtrList<QTextCodec> *codecList;
+ TQPtrList<TQTextCodec> *codecList;
};
/**
@@ -74,22 +74,22 @@ private:
* KDE documentation.
* @author Gunnar Schmi Dt
*/
-class MergeWidget : public QScrollView {
+class MergeWidget : public TQScrollView {
Q_OBJECT
public:
MergeWidget(KWizard *parent, const char *name,
- QStringList dictionaryNames,
- QStringList dictionaryFiles,
- QStringList dictionaryLanguages);
+ TQStringList dictionaryNames,
+ TQStringList dictionaryFiles,
+ TQStringList dictionaryLanguages);
~MergeWidget();
- QMap <QString, int> mergeParameters ();
- QString language ();
+ TQMap <TQString, int> mergeParameters ();
+ TQString language ();
private:
- QDict<QCheckBox> dictionaries;
- QDict<KIntNumInput> weights;
- QMap<QString,QString> languages;
+ TQDict<TQCheckBox> dictionaries;
+ TQDict<KIntNumInput> weights;
+ TQMap<TQString,TQString> languages;
};
/**
diff --git a/kmouth/wordcompletion/kdedocsourceui.ui.h b/kmouth/wordcompletion/kdedocsourceui.ui.h
index 4c42b32..92a4c6b 100644
--- a/kmouth/wordcompletion/kdedocsourceui.ui.h
+++ b/kmouth/wordcompletion/kdedocsourceui.ui.h
@@ -11,7 +11,7 @@ void KDEDocSourceUI::init() {
languageButton = new KLanguageButton (this, "languageButton");
KDEDocSourceUILayout->addWidget (languageButton, 0, 1);
languageLabel->setBuddy (languageButton);
- QWhatsThis::add (languageButton, i18n("With this combo box you select which of the installed languages is used for creating the new dictionary. KMouth will only parse documentation files of this language."));
+ TQWhatsThis::add (languageButton, i18n("With this combo box you select which of the installed languages is used for creating the new dictionary. KMouth will only parse documentation files of this language."));
loadLanguageList(languageButton);
diff --git a/kmouth/wordcompletion/klanguagebutton.cpp b/kmouth/wordcompletion/klanguagebutton.cpp
index 72182d4..b954a62 100644
--- a/kmouth/wordcompletion/klanguagebutton.cpp
+++ b/kmouth/wordcompletion/klanguagebutton.cpp
@@ -23,7 +23,7 @@
*/
#define INCLUDE_MENUITEM_DEF
-#include <qpopupmenu.h>
+#include <tqpopupmenu.h>
#include <kstandarddirs.h>
#include "klanguagebutton.h"
@@ -31,7 +31,7 @@
#include <kdebug.h>
-static inline void checkInsertPos( QPopupMenu *popup, const QString & str,
+static inline void checkInsertPos( TQPopupMenu *popup, const TQString & str,
int &index )
{
if ( index == -2 )
@@ -57,15 +57,15 @@ static inline void checkInsertPos( QPopupMenu *popup, const QString & str,
index = a; // it doesn't really matter ... a == b here.
}
-static inline QPopupMenu * checkInsertIndex( QPopupMenu *popup,
- const QStringList *tags, const QString &submenu )
+static inline TQPopupMenu * checkInsertIndex( TQPopupMenu *popup,
+ const TQStringList *tags, const TQString &submenu )
{
int pos = tags->findIndex( submenu );
- QPopupMenu *pi = 0;
+ TQPopupMenu *pi = 0;
if ( pos != -1 )
{
- QMenuItem *p = popup->findItem( pos );
+ TQMenuItem *p = popup->findItem( pos );
pi = p ? p->popup() : 0;
}
if ( !pi )
@@ -80,8 +80,8 @@ KLanguageButton::~KLanguageButton()
delete m_tags;
}
-KLanguageButton::KLanguageButton( QWidget * parent, const char *name )
-: QPushButton( parent, name ),
+KLanguageButton::KLanguageButton( TQWidget * parent, const char *name )
+: TQPushButton( parent, name ),
m_popup( 0 ),
m_oldPopup( 0 )
{
@@ -90,54 +90,54 @@ KLanguageButton::KLanguageButton( QWidget * parent, const char *name )
clear();
}
-void KLanguageButton::insertItem( const QIconSet& icon, const QString &text,
- const QString &tag, const QString &submenu, int index )
+void KLanguageButton::insertItem( const TQIconSet& icon, const TQString &text,
+ const TQString &tag, const TQString &submenu, int index )
{
- QPopupMenu *pi = checkInsertIndex( m_popup, m_tags, submenu );
+ TQPopupMenu *pi = checkInsertIndex( m_popup, m_tags, submenu );
checkInsertPos( pi, text, index );
pi->insertItem( icon, text, count(), index );
m_tags->append( tag );
}
-void KLanguageButton::insertItem( const QString &text, const QString &tag,
- const QString &submenu, int index )
+void KLanguageButton::insertItem( const TQString &text, const TQString &tag,
+ const TQString &submenu, int index )
{
- QPopupMenu *pi = checkInsertIndex( m_popup, m_tags, submenu );
+ TQPopupMenu *pi = checkInsertIndex( m_popup, m_tags, submenu );
checkInsertPos( pi, text, index );
pi->insertItem( text, count(), index );
m_tags->append( tag );
}
-void KLanguageButton::insertSeparator( const QString &submenu, int index )
+void KLanguageButton::insertSeparator( const TQString &submenu, int index )
{
- QPopupMenu *pi = checkInsertIndex( m_popup, m_tags, submenu );
+ TQPopupMenu *pi = checkInsertIndex( m_popup, m_tags, submenu );
pi->insertSeparator( index );
- m_tags->append( QString::null );
+ m_tags->append( TQString::null );
}
-void KLanguageButton::insertSubmenu( const QString &text, const QString &tag,
- const QString &submenu, int index )
+void KLanguageButton::insertSubmenu( const TQString &text, const TQString &tag,
+ const TQString &submenu, int index )
{
- QPopupMenu *pi = checkInsertIndex( m_popup, m_tags, submenu );
- QPopupMenu *p = new QPopupMenu( pi );
+ TQPopupMenu *pi = checkInsertIndex( m_popup, m_tags, submenu );
+ TQPopupMenu *p = new TQPopupMenu( pi );
checkInsertPos( pi, text, index );
pi->insertItem( text, p, count(), index );
m_tags->append( tag );
- connect( p, SIGNAL( activated( int ) ),
- SLOT( slotActivated( int ) ) );
- connect( p, SIGNAL( highlighted( int ) ), this,
- SIGNAL( highlighted( int ) ) );
+ connect( p, TQT_SIGNAL( activated( int ) ),
+ TQT_SLOT( slotActivated( int ) ) );
+ connect( p, TQT_SIGNAL( highlighted( int ) ), this,
+ TQT_SIGNAL( highlighted( int ) ) );
}
-void KLanguageButton::insertLanguage( const QString& path, const QString& name,
- const QString& sub, const QString &submenu, int index )
+void KLanguageButton::insertLanguage( const TQString& path, const TQString& name,
+ const TQString& sub, const TQString &submenu, int index )
{
- QString output = name + QString::fromLatin1( " (" ) + path +
- QString::fromLatin1( ")" );
+ TQString output = name + TQString::fromLatin1( " (" ) + path +
+ TQString::fromLatin1( ")" );
#if 0
// Nooooo ! Country != language
- QPixmap flag( locate( "locale", sub + path +
- QString::fromLatin1( "/flag.png" ) ) );
+ TQPixmap flag( locate( "locale", sub + path +
+ TQString::fromLatin1( "/flag.png" ) ) );
#endif
insertItem( output, path, submenu, index );
}
@@ -165,44 +165,44 @@ void KLanguageButton::clear()
delete m_oldPopup;
m_oldPopup = m_popup;
- m_popup = new QPopupMenu( this );
+ m_popup = new TQPopupMenu( this );
setPopup( m_popup );
- connect( m_popup, SIGNAL( activated( int ) ),
- SLOT( slotActivated( int ) ) );
- connect( m_popup, SIGNAL( highlighted( int ) ),
- SIGNAL( highlighted( int ) ) );
+ connect( m_popup, TQT_SIGNAL( activated( int ) ),
+ TQT_SLOT( slotActivated( int ) ) );
+ connect( m_popup, TQT_SIGNAL( highlighted( int ) ),
+ TQT_SIGNAL( highlighted( int ) ) );
- setText( QString::null );
- setIconSet( QIconSet() );
+ setText( TQString::null );
+ setIconSet( TQIconSet() );
}
-/*void KLanguageButton::changeLanguage( const QString& name, int i )
+/*void KLanguageButton::changeLanguage( const TQString& name, int i )
{
if ( i < 0 || i >= count() )
return;
- QString output = name + QString::fromLatin1( " (" ) + tag( i ) +
- QString::fromLatin1( ")" );
+ TQString output = name + TQString::fromLatin1( " (" ) + tag( i ) +
+ TQString::fromLatin1( ")" );
changeItem( output, i );
}*/
-bool KLanguageButton::containsTag( const QString &str ) const
+bool KLanguageButton::containsTag( const TQString &str ) const
{
return m_tags->contains( str ) > 0;
}
-QString KLanguageButton::currentTag() const
+TQString KLanguageButton::currentTag() const
{
return *m_tags->at( currentItem() );
}
-QString KLanguageButton::tag( int i ) const
+TQString KLanguageButton::tag( int i ) const
{
if ( i < 0 || i >= count() )
{
kdDebug() << "KLanguageButton::tag(), unknown tag " << i << endl;
- return QString::null;
+ return TQString::null;
}
return *m_tags->at( i );
}
@@ -219,14 +219,14 @@ void KLanguageButton::setCurrentItem( int i )
m_current = i;
setText( m_popup->text( m_current ) );
- QIconSet *icon = m_popup->iconSet( m_current );
+ TQIconSet *icon = m_popup->iconSet( m_current );
if( icon )
setIconSet( *icon );
else
- setIconSet( QPixmap() );
+ setIconSet( TQPixmap() );
}
-void KLanguageButton::setCurrentItem( const QString &code )
+void KLanguageButton::setCurrentItem( const TQString &code )
{
int i = m_tags->findIndex( code );
if ( code.isNull() )
diff --git a/kmouth/wordcompletion/klanguagebutton.h b/kmouth/wordcompletion/klanguagebutton.h
index ee1d58f..0ebe5c7 100644
--- a/kmouth/wordcompletion/klanguagebutton.h
+++ b/kmouth/wordcompletion/klanguagebutton.h
@@ -30,9 +30,9 @@
#include "kpushbutton.h"
/*
- * Extended QPushButton that shows a menu with submenu for language selection.
+ * Extended TQPushButton that shows a menu with submenu for language selection.
* Essentially just a combo box with a 2-D dataset, but using a real
- * QComboBox will produce ugly results.
+ * TQComboBox will produce ugly results.
*
* Combined version of KTagCombo and KLanguageCombo but using a QPushButton
* instead.
@@ -42,39 +42,39 @@ class KLanguageButton : public QPushButton
Q_OBJECT
public:
- KLanguageButton(QWidget *parent=0, const char *name=0);
+ KLanguageButton(TQWidget *parent=0, const char *name=0);
~KLanguageButton();
- void insertItem( const QIconSet& icon, const QString &text,
- const QString &tag, const QString &submenu = QString::null,
+ void insertItem( const TQIconSet& icon, const TQString &text,
+ const TQString &tag, const TQString &submenu = TQString::null,
int index = -1 );
- void insertItem( const QString &text, const QString &tag,
- const QString &submenu = QString::null, int index = -1 );
- void insertSeparator( const QString &submenu = QString::null,
+ void insertItem( const TQString &text, const TQString &tag,
+ const TQString &submenu = TQString::null, int index = -1 );
+ void insertSeparator( const TQString &submenu = TQString::null,
int index = -1 );
- void insertSubmenu( const QString &text, const QString &tag,
- const QString &submenu = QString::null, int index = -1);
+ void insertSubmenu( const TQString &text, const TQString &tag,
+ const TQString &submenu = TQString::null, int index = -1);
int count() const;
void clear();
- void insertLanguage( const QString& path, const QString& name,
- const QString& sub = QString::null,
- const QString &submenu = QString::null, int index = -1);
+ void insertLanguage( const TQString& path, const TQString& name,
+ const TQString& sub = TQString::null,
+ const TQString &submenu = TQString::null, int index = -1);
/*
* Tag of the selected item
*/
- QString currentTag() const;
- QString tag( int i ) const;
- bool containsTag( const QString &str ) const;
+ TQString currentTag() const;
+ TQString tag( int i ) const;
+ bool containsTag( const TQString &str ) const;
/*
* Set the current item
*/
int currentItem() const;
void setCurrentItem( int i );
- void setCurrentItem( const QString &code );
+ void setCurrentItem( const TQString &code );
signals:
void activated( int index );
@@ -85,8 +85,8 @@ private slots:
private:
// work space for the new class
- QStringList *m_tags;
- QPopupMenu *m_popup, *m_oldPopup;
+ TQStringList *m_tags;
+ TQPopupMenu *m_popup, *m_oldPopup;
int m_current;
};
diff --git a/kmouth/wordcompletion/klanguagebuttonhelper.cpp b/kmouth/wordcompletion/klanguagebuttonhelper.cpp
index 918553e..a68007b 100644
--- a/kmouth/wordcompletion/klanguagebuttonhelper.cpp
+++ b/kmouth/wordcompletion/klanguagebuttonhelper.cpp
@@ -29,32 +29,32 @@
#include <ksimpleconfig.h>
#include "klanguagebutton.h"
-QString languageName (QString languageCode) {
- QString filename = KGlobal::dirs()->findResource("locale",
- languageCode + QString::fromLatin1("/entry.desktop"));
+TQString languageName (TQString languageCode) {
+ TQString filename = KGlobal::dirs()->findResource("locale",
+ languageCode + TQString::fromLatin1("/entry.desktop"));
KSimpleConfig entry(filename);
- entry.setGroup(QString::fromLatin1("KCM Locale"));
- return entry.readEntry(QString::fromLatin1("Name"), i18n("without name"));
+ entry.setGroup(TQString::fromLatin1("KCM Locale"));
+ return entry.readEntry(TQString::fromLatin1("Name"), i18n("without name"));
}
void loadLanguageList(KLanguageButton *combo)
// This function was taken from kdebase/kcontrol/kdm/kdm-appear.cpp
{
- QStringList langlist = KGlobal::dirs()->findAllResources("locale",
- QString::fromLatin1("*/entry.desktop"));
+ TQStringList langlist = KGlobal::dirs()->findAllResources("locale",
+ TQString::fromLatin1("*/entry.desktop"));
langlist.sort();
- for ( QStringList::ConstIterator it = langlist.begin();
+ for ( TQStringList::ConstIterator it = langlist.begin();
it != langlist.end(); ++it )
{
- QString fpath = (*it).left((*it).length() - 14);
+ TQString fpath = (*it).left((*it).length() - 14);
int index = fpath.findRev('/');
- QString nid = fpath.mid(index + 1);
+ TQString nid = fpath.mid(index + 1);
KSimpleConfig entry(*it);
- entry.setGroup(QString::fromLatin1("KCM Locale"));
- QString name = entry.readEntry(QString::fromLatin1("Name"), i18n("without name"));
- combo->insertLanguage(nid, name, QString::fromLatin1("l10n/"), QString::null);
+ entry.setGroup(TQString::fromLatin1("KCM Locale"));
+ TQString name = entry.readEntry(TQString::fromLatin1("Name"), i18n("without name"));
+ combo->insertLanguage(nid, name, TQString::fromLatin1("l10n/"), TQString::null);
}
if (KGlobal::locale())
diff --git a/kmouth/wordcompletion/klanguagebuttonhelper.h b/kmouth/wordcompletion/klanguagebuttonhelper.h
index 9bee5f7..a33cdb9 100644
--- a/kmouth/wordcompletion/klanguagebuttonhelper.h
+++ b/kmouth/wordcompletion/klanguagebuttonhelper.h
@@ -24,5 +24,5 @@
class QString;
class KLanguageButton;
-QString languageName (QString languageCode);
+TQString languageName (TQString languageCode);
void loadLanguageList(KLanguageButton *combo);
diff --git a/kmouth/wordcompletion/wordcompletion.cpp b/kmouth/wordcompletion/wordcompletion.cpp
index d4ae651..268872a 100644
--- a/kmouth/wordcompletion/wordcompletion.cpp
+++ b/kmouth/wordcompletion/wordcompletion.cpp
@@ -1,5 +1,5 @@
-#include <qregexp.h>
-#include <qfile.h>
+#include <tqregexp.h>
+#include <tqfile.h>
#include <kapplication.h>
#include <kstandarddirs.h>
@@ -10,18 +10,18 @@
class WordCompletion::WordCompletionPrivate {
friend class WordCompletion;
private:
- typedef QMap<QString,int> WordMap;
+ typedef TQMap<TQString,int> WordMap;
struct DictionaryDetails {
- QString filename;
- QString language;
+ TQString filename;
+ TQString language;
};
- QString lastText;
- QMap<QString,int> map;
- QMap<QString,int> addedWords;
- QMap<QString,DictionaryDetails> dictDetails;
- QStringList dictionaries;
- QString current;
+ TQString lastText;
+ TQMap<TQString,int> map;
+ TQMap<TQString,int> addedWords;
+ TQMap<TQString,DictionaryDetails> dictDetails;
+ TQStringList dictionaries;
+ TQString current;
bool blockCurrentListSignal;
bool wordsToSave;
};
@@ -38,21 +38,21 @@ WordCompletion::~WordCompletion() {
delete d;
}
-typedef QPair<int,QString> Match;
-typedef QValueList<Match> MatchList;
+typedef QPair<int,TQString> Match;
+typedef TQValueList<Match> MatchList;
-QString WordCompletion::makeCompletion(const QString &text) {
+TQString WordCompletion::makeCompletion(const TQString &text) {
if (d->lastText != text) {
d->lastText = text;
KCompletion::clear();
- int border = text.findRev(QRegExp("\\W"));
- QString suffix = text.right (text.length() - border - 1).lower();
- QString prefix = text.left (border + 1);
+ int border = text.findRev(TQRegExp("\\W"));
+ TQString suffix = text.right (text.length() - border - 1).lower();
+ TQString prefix = text.left (border + 1);
if (suffix.length() > 0) {
MatchList matches;
- QMap<QString,int>::ConstIterator it;
+ TQMap<TQString,int>::ConstIterator it;
for (it = d->map.begin(); it != d->map.end(); ++it)
if (it.key().startsWith(suffix))
matches += Match (-it.data(), it.key());
@@ -70,27 +70,27 @@ QString WordCompletion::makeCompletion(const QString &text) {
return KCompletion::makeCompletion (text);
}
-QStringList WordCompletion::wordLists() {
+TQStringList WordCompletion::wordLists() {
return d->dictionaries;
}
-QStringList WordCompletion::wordLists(const QString &language) {
- QStringList result;
- for (QStringList::Iterator it = d->dictionaries.begin();
+TQStringList WordCompletion::wordLists(const TQString &language) {
+ TQStringList result;
+ for (TQStringList::Iterator it = d->dictionaries.begin();
it != d->dictionaries.end(); ++it)
if (d->dictDetails[*it].language == language)
result += *it;
return result;
}
-QString WordCompletion::languageOfWordList(const QString &wordlist) {
+TQString WordCompletion::languageOfWordList(const TQString &wordlist) {
if (d->dictDetails.contains(wordlist))
return d->dictDetails[wordlist].language;
else
- return QString::null;
+ return TQString::null;
}
-QString WordCompletion::currentWordList() {
+TQString WordCompletion::currentWordList() {
return d->current;
}
@@ -111,14 +111,14 @@ void WordCompletion::configure() {
d->dictDetails.clear();
KConfig *config = new KConfig("kmouthrc");
- QStringList groups = config->groupList();
- for (QStringList::Iterator it = groups.begin(); it != groups.end(); ++it)
+ TQStringList groups = config->groupList();
+ for (TQStringList::Iterator it = groups.begin(); it != groups.end(); ++it)
if ((*it).startsWith ("Dictionary ")) {
config->setGroup(*it);
WordCompletionPrivate::DictionaryDetails details;
details.filename = config->readEntry("Filename");
details.language = config->readEntry("Language");
- QString name = config->readEntry("Name");
+ TQString name = config->readEntry("Name");
d->dictDetails[name] = details;
d->dictionaries += name;
}
@@ -131,7 +131,7 @@ void WordCompletion::configure() {
emit currentListChanged (d->current);
}
-bool WordCompletion::setWordList(const QString &wordlist) {
+bool WordCompletion::setWordList(const TQString &wordlist) {
if (d->wordsToSave)
save ();
d->wordsToSave = false;
@@ -143,18 +143,18 @@ bool WordCompletion::setWordList(const QString &wordlist) {
else
d->current = d->dictionaries[0];
- QString filename = d->dictDetails[d->current].filename;
- QString dictionaryFile = KApplication::kApplication()->dirs()->findResource("appdata", filename);
- QFile file(dictionaryFile);
+ TQString filename = d->dictDetails[d->current].filename;
+ TQString dictionaryFile = KApplication::kApplication()->dirs()->findResource("appdata", filename);
+ TQFile file(dictionaryFile);
if (file.exists() && file.open(IO_ReadOnly)) {
- QTextStream stream(&file);
- stream.setEncoding (QTextStream::UnicodeUTF8);
+ TQTextStream stream(&file);
+ stream.setEncoding (TQTextStream::UnicodeUTF8);
if (!stream.atEnd()) {
if (stream.readLine() == "WPDictFile") {
while (!stream.atEnd()) {
- QString s = stream.readLine();
+ TQString s = stream.readLine();
if (!(s.isNull() || s.isEmpty())) {
- QStringList list = QStringList::split("\t", s);
+ TQStringList list = TQStringList::split("\t", s);
bool ok;
int weight = list[1].toInt(&ok);
if (ok && (weight > 0))
@@ -172,13 +172,13 @@ bool WordCompletion::setWordList(const QString &wordlist) {
return result;
}
-void WordCompletion::addSentence (const QString &sentence) {
- QStringList words = QStringList::split(QRegExp("\\W"), sentence);
+void WordCompletion::addSentence (const TQString &sentence) {
+ TQStringList words = TQStringList::split(TQRegExp("\\W"), sentence);
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = words.begin(); it != words.end(); ++it) {
- if (!(*it).contains(QRegExp("\\d|_"))) {
- QString key = (*it).lower();
+ if (!(*it).contains(TQRegExp("\\d|_"))) {
+ TQString key = (*it).lower();
if (d->map.contains(key))
d->map[key] += 1;
else
@@ -194,19 +194,19 @@ void WordCompletion::addSentence (const QString &sentence) {
void WordCompletion::save () {
if (d->wordsToSave) {
- QString filename = d->dictDetails[d->current].filename;
- QString dictionaryFile = KApplication::kApplication()->dirs()->findResource("appdata", filename);
- QFile file(dictionaryFile);
+ TQString filename = d->dictDetails[d->current].filename;
+ TQString dictionaryFile = KApplication::kApplication()->dirs()->findResource("appdata", filename);
+ TQFile file(dictionaryFile);
if (!file.exists())
return;
if (!file.open(IO_WriteOnly))
return;
- QTextStream stream(&file);
- stream.setEncoding (QTextStream::UnicodeUTF8);
+ TQTextStream stream(&file);
+ stream.setEncoding (TQTextStream::UnicodeUTF8);
stream << "WPDictFile\n";
- QMap<QString,int>::ConstIterator it;
+ TQMap<TQString,int>::ConstIterator it;
for (it = d->map.begin(); it != d->map.end(); ++it) {
if (d->addedWords.contains(it.key())) {
stream << it.key() << "\t" << d->addedWords[it.key()] << "\t1\n";
diff --git a/kmouth/wordcompletion/wordcompletion.h b/kmouth/wordcompletion/wordcompletion.h
index f0cb812..2bc5ceb 100644
--- a/kmouth/wordcompletion/wordcompletion.h
+++ b/kmouth/wordcompletion/wordcompletion.h
@@ -16,35 +16,35 @@ public:
/**
* Returns the names for the available word lists
*/
- QStringList wordLists();
+ TQStringList wordLists();
/**
* Returns the names for those word lists that contain
* words of a given language.
*/
- QStringList wordLists(const QString &language);
+ TQStringList wordLists(const TQString &language);
/**
* Returns the language of a given word list.
*/
- QString languageOfWordList(const QString &wordlist);
+ TQString languageOfWordList(const TQString &wordlist);
/**
* Returns the name of the currently active word list.
*/
- QString currentWordList();
+ TQString currentWordList();
/**
* Finds completions to the given text.
*/
- virtual QString makeCompletion(const QString&);
+ virtual TQString makeCompletion(const TQString&);
static bool isConfigured();
/**
* Adds the words from the given sentence to the list of words.
*/
- void addSentence (const QString &sentence);
+ void addSentence (const TQString &sentence);
public slots:
/**
@@ -58,7 +58,7 @@ public slots:
* list gets used.
* The method returns true if the specified word list was found.
*/
- bool setWordList(const QString &wordlist);
+ bool setWordList(const TQString &wordlist);
/**
* Saves the added words to disk.
@@ -66,8 +66,8 @@ public slots:
void save ();
signals:
- void wordListsChanged (const QStringList &wordLists);
- void currentListChanged (const QString &wordList);
+ void wordListsChanged (const TQStringList &wordLists);
+ void currentListChanged (const TQString &wordList);
private:
class WordCompletionPrivate;
diff --git a/kmouth/wordcompletion/wordcompletionui.ui.h b/kmouth/wordcompletion/wordcompletionui.ui.h
index 96878da..9a428df 100644
--- a/kmouth/wordcompletion/wordcompletionui.ui.h
+++ b/kmouth/wordcompletion/wordcompletionui.ui.h
@@ -12,23 +12,23 @@ void WordCompletionUI::init() {
languageButton = new KLanguageButton (selectedDictionaryDetails, "languageButton");
selectedDictionaryDetailsLayout->addWidget (languageButton, 1, 1);
languageLabel->setBuddy (languageButton);
- QWhatsThis::add (languageButton, i18n("With this combo box you select the language associated with the selected dictionary."));
+ TQWhatsThis::add (languageButton, i18n("With this combo box you select the language associated with the selected dictionary."));
loadLanguageList(languageButton);
- languageButton->insertLanguage("??", i18n("Other"), QString::fromLatin1("l10n/"), QString::null);
+ languageButton->insertLanguage("??", i18n("Other"), TQString::fromLatin1("l10n/"), TQString::null);
- connect (languageButton, SIGNAL(activated(int)), this, SLOT(languageButton_activated(int)));
+ connect (languageButton, TQT_SIGNAL(activated(int)), this, TQT_SLOT(languageButton_activated(int)));
}
void WordCompletionUI::languageButton_activated (int) {
if (languageButton->currentTag() == "??") {
- QString customLanguage = KInputDialog::getText(i18n("Create Custom Language"), i18n("Please enter the code for the custom language:"));
+ TQString customLanguage = KInputDialog::getText(i18n("Create Custom Language"), i18n("Please enter the code for the custom language:"));
if (languageButton->containsTag(customLanguage)) {
languageButton->setCurrentItem(customLanguage);
}
else {
- languageButton->insertLanguage(customLanguage, i18n("without name"), QString::fromLatin1("l10n/"), QString::null);
+ languageButton->insertLanguage(customLanguage, i18n("without name"), TQString::fromLatin1("l10n/"), TQString::null);
languageButton->setCurrentItem(customLanguage);
}
}
diff --git a/kmouth/wordcompletion/wordcompletionwidget.cpp b/kmouth/wordcompletion/wordcompletionwidget.cpp
index e5eab23..b25df12 100644
--- a/kmouth/wordcompletion/wordcompletionwidget.cpp
+++ b/kmouth/wordcompletion/wordcompletionwidget.cpp
@@ -15,10 +15,10 @@
* *
***************************************************************************/
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qlineedit.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqlineedit.h>
#include <klistview.h>
#include <klineedit.h>
@@ -39,17 +39,17 @@
class DictionaryListItem : public KListViewItem {
public:
- DictionaryListItem (QListView *parent, QString filename, QString name, QString language, QString languageCode)
+ DictionaryListItem (TQListView *parent, TQString filename, TQString name, TQString language, TQString languageCode)
: KListViewItem (parent, name) {
setFilename (filename);
setLanguage (language, languageCode);
};
- DictionaryListItem (QListView *parent, QString filename, QString name, QString languageCode)
+ DictionaryListItem (TQListView *parent, TQString filename, TQString name, TQString languageCode)
: KListViewItem (parent, name) {
setFilename (filename);
setLanguage (languageCode);
};
- DictionaryListItem (QListView *parent, QListViewItem *after, QString filename, QString name, QString languageCode)
+ DictionaryListItem (TQListView *parent, TQListViewItem *after, TQString filename, TQString name, TQString languageCode)
: KListViewItem (parent, after, name) {
setFilename (filename);
setLanguage (languageCode);
@@ -57,53 +57,53 @@ public:
~DictionaryListItem () {
};
- QString filename() {
+ TQString filename() {
return myFilename;
}
- QString languageCode() {
+ TQString languageCode() {
return myLanguageCode;
}
- void setFilename(QString filename) {
+ void setFilename(TQString filename) {
myFilename = filename;
}
- void setLanguage (QString languageCode) {
- QString filename = KGlobal::dirs()->findResource("locale",
- languageCode + QString::fromLatin1("/entry.desktop"));
+ void setLanguage (TQString languageCode) {
+ TQString filename = KGlobal::dirs()->findResource("locale",
+ languageCode + TQString::fromLatin1("/entry.desktop"));
KSimpleConfig entry(filename);
- entry.setGroup(QString::fromLatin1("KCM Locale"));
- QString name = entry.readEntry(QString::fromLatin1("Name"), i18n("without name"));
+ entry.setGroup(TQString::fromLatin1("KCM Locale"));
+ TQString name = entry.readEntry(TQString::fromLatin1("Name"), i18n("without name"));
setLanguage (name + " (" + languageCode + ")", languageCode);
}
- void setLanguage (QString name, QString languageCode) {
+ void setLanguage (TQString name, TQString languageCode) {
myLanguageCode = languageCode;
setText (1, name);
}
private:
- QString myFilename;
- QString myLanguageCode;
+ TQString myFilename;
+ TQString myLanguageCode;
};
/***************************************************************************/
-WordCompletionWidget::WordCompletionWidget(QWidget *parent, const char *name) : WordCompletionUI (parent, name) {
+WordCompletionWidget::WordCompletionWidget(TQWidget *parent, const char *name) : WordCompletionUI (parent, name) {
dictionaryList->setSorting (-1); // no sorted list
// Connect the signals from hte KCMKTTSDWidget to this class
- connect (addButton, SIGNAL (clicked()), this, SLOT(addDictionary()) );
- connect (deleteButton, SIGNAL (clicked()), this, SLOT (deleteDictionary()) );
- connect (moveUpButton, SIGNAL (clicked()), this, SLOT (moveUp()) );
- connect (moveDownButton, SIGNAL (clicked()), this, SLOT (moveDown()) );
- connect (exportButton, SIGNAL (clicked()), this, SLOT (exportDictionary()) );
+ connect (addButton, TQT_SIGNAL (clicked()), this, TQT_SLOT(addDictionary()) );
+ connect (deleteButton, TQT_SIGNAL (clicked()), this, TQT_SLOT (deleteDictionary()) );
+ connect (moveUpButton, TQT_SIGNAL (clicked()), this, TQT_SLOT (moveUp()) );
+ connect (moveDownButton, TQT_SIGNAL (clicked()), this, TQT_SLOT (moveDown()) );
+ connect (exportButton, TQT_SIGNAL (clicked()), this, TQT_SLOT (exportDictionary()) );
- connect (dictionaryList, SIGNAL (selectionChanged()), this, SLOT (selectionChanged()) );
- connect (dictionaryName, SIGNAL (textChanged (const QString &)), this, SLOT (nameChanged (const QString &)) );
- connect (languageButton, SIGNAL (activated (int)), this, SLOT (languageSelected(int)) );
+ connect (dictionaryList, TQT_SIGNAL (selectionChanged()), this, TQT_SLOT (selectionChanged()) );
+ connect (dictionaryName, TQT_SIGNAL (textChanged (const TQString &)), this, TQT_SLOT (nameChanged (const TQString &)) );
+ connect (languageButton, TQT_SIGNAL (activated (int)), this, TQT_SLOT (languageSelected(int)) );
// Object for the KCMKTTSD configuration
config = new KConfig("kmouthrc");
@@ -125,41 +125,41 @@ void WordCompletionWidget::load() {
dictionaryList->clear();
// Set the group general for the configuration of kttsd itself (no plug ins)
- QStringList groups = config->groupList();
+ TQStringList groups = config->groupList();
DictionaryListItem *last = 0;
- for (QStringList::Iterator it = groups.begin(); it != groups.end(); ++it)
+ for (TQStringList::Iterator it = groups.begin(); it != groups.end(); ++it)
if ((*it).startsWith ("Dictionary ")) {
config->setGroup(*it);
- QString languageTag = config->readEntry("Language");
+ TQString languageTag = config->readEntry("Language");
last = new DictionaryListItem (dictionaryList, last,
config->readEntry("Filename"),
config->readEntry("Name"),
languageTag);
if (!languageButton->containsTag(languageTag))
- languageButton->insertLanguage(languageTag, i18n("without name"), QString::fromLatin1("l10n/"), QString::null);
+ languageButton->insertLanguage(languageTag, i18n("without name"), TQString::fromLatin1("l10n/"), TQString::null);
}
// Clean up disc space
- for (QStringList::Iterator it = newDictionaryFiles.begin(); it != newDictionaryFiles.end(); ++it) {
- QString filename = KGlobal::dirs()->findResource ("appdata", *it);
+ for (TQStringList::Iterator it = newDictionaryFiles.begin(); it != newDictionaryFiles.end(); ++it) {
+ TQString filename = KGlobal::dirs()->findResource ("appdata", *it);
if (!filename.isEmpty() && !filename.isNull())
- QFile::remove (filename);
+ TQFile::remove (filename);
}
newDictionaryFiles.clear();
}
void WordCompletionWidget::save() {
- QStringList groups = config->groupList();
- for (QStringList::Iterator it = groups.begin(); it != groups.end(); ++it)
+ TQStringList groups = config->groupList();
+ for (TQStringList::Iterator it = groups.begin(); it != groups.end(); ++it)
if ((*it).startsWith ("Dictionary "))
config->deleteGroup (*it);
int number = 0;
- QListViewItemIterator it(dictionaryList);
+ TQListViewItemIterator it(dictionaryList);
while (it.current()) {
DictionaryListItem *item = dynamic_cast<DictionaryListItem*>(it.current());
if (item != 0) {
- config->setGroup(QString("Dictionary %1").arg(number));
+ config->setGroup(TQString("Dictionary %1").arg(number));
config->writeEntry ("Filename", item->filename());
config->writeEntry ("Name", item->text (0));
config->writeEntry ("Language", item->languageCode());
@@ -170,10 +170,10 @@ void WordCompletionWidget::save() {
config->sync();
// Clean up disc space
- for (QStringList::Iterator it = removedDictionaryFiles.begin(); it != removedDictionaryFiles.end(); ++it) {
- QString filename = KGlobal::dirs()->findResource ("appdata", *it);
+ for (TQStringList::Iterator it = removedDictionaryFiles.begin(); it != removedDictionaryFiles.end(); ++it) {
+ TQString filename = KGlobal::dirs()->findResource ("appdata", *it);
if (!filename.isEmpty() && !filename.isNull())
- QFile::remove (filename);
+ TQFile::remove (filename);
}
removedDictionaryFiles.clear();
}
@@ -181,10 +181,10 @@ void WordCompletionWidget::save() {
/***************************************************************************/
void WordCompletionWidget::addDictionary() {
- QStringList dictionaryNames;
- QStringList dictionaryFiles;
- QStringList dictionaryLanguages;
- QListViewItemIterator it(dictionaryList);
+ TQStringList dictionaryNames;
+ TQStringList dictionaryFiles;
+ TQStringList dictionaryLanguages;
+ TQListViewItemIterator it(dictionaryList);
while (it.current()) {
DictionaryListItem *item = dynamic_cast<DictionaryListItem*>(it.current());
if (item != 0) {
@@ -195,12 +195,12 @@ void WordCompletionWidget::addDictionary() {
++it;
}
DictionaryCreationWizard *wizard = new DictionaryCreationWizard (this, "Dictionary creation wizard", dictionaryNames, dictionaryFiles, dictionaryLanguages);
- if (wizard->exec() == QDialog::Accepted) {
- QString filename = wizard->createDictionary();
+ if (wizard->exec() == TQDialog::Accepted) {
+ TQString filename = wizard->createDictionary();
newDictionaryFiles += filename;
- QString languageTag = wizard->language();
+ TQString languageTag = wizard->language();
if (!languageButton->containsTag(languageTag)) {
- languageButton->insertLanguage(languageTag, i18n("without name"), QString::fromLatin1("l10n/"), QString::null);
+ languageButton->insertLanguage(languageTag, i18n("without name"), TQString::fromLatin1("l10n/"), TQString::null);
}
KListViewItem *item = new DictionaryListItem (dictionaryList,
filename, wizard->name(), languageTag);
@@ -219,10 +219,10 @@ void WordCompletionWidget::deleteDictionary() {
}
void WordCompletionWidget::moveUp() {
- QListViewItem *item = dictionaryList->selectedItem ();
+ TQListViewItem *item = dictionaryList->selectedItem ();
if (item != 0) {
- QListViewItem *above = item->itemAbove();
+ TQListViewItem *above = item->itemAbove();
if (above != 0) {
above->moveItem (item);
@@ -231,10 +231,10 @@ void WordCompletionWidget::moveUp() {
}
void WordCompletionWidget::moveDown() {
- QListViewItem *item = dictionaryList->selectedItem ();
+ TQListViewItem *item = dictionaryList->selectedItem ();
if (item != 0) {
- QListViewItem *next = item->itemBelow();
+ TQListViewItem *next = item->itemBelow();
if (next != 0) {
item->moveItem (next);
@@ -246,12 +246,12 @@ void WordCompletionWidget::exportDictionary() {
DictionaryListItem *item = dynamic_cast<DictionaryListItem*>(dictionaryList->selectedItem ());
if (item != 0) {
- KURL url = KFileDialog::getSaveURL(QString::null, QString::null, this, i18n("Export Dictionary"));
+ KURL url = KFileDialog::getSaveURL(TQString::null, TQString::null, this, i18n("Export Dictionary"));
if (url.isEmpty() || !url.isValid())
return;
if (KIO::NetAccess::exists(url, false, this)) {
- if (KMessageBox::warningContinueCancel(0,QString("<qt>%1</qt>").arg(i18n("The file %1 already exists. "
+ 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;
}
@@ -295,11 +295,11 @@ void WordCompletionWidget::selectionChanged() {
}
}
-void WordCompletionWidget::nameChanged (const QString &text) {
- QListViewItem *item = dictionaryList->selectedItem ();
+void WordCompletionWidget::nameChanged (const TQString &text) {
+ TQListViewItem *item = dictionaryList->selectedItem ();
if (item != 0) {
- QString old = item->text(0);
+ TQString old = item->text(0);
if (old != text) {
item->setText(0, text);
@@ -312,8 +312,8 @@ void WordCompletionWidget::languageSelected (int) {
DictionaryListItem *item = dynamic_cast<DictionaryListItem*>(dictionaryList->selectedItem ());
if (item != 0) {
- QString old = item->text(1);
- QString text = languageButton->currentTag();
+ TQString old = item->text(1);
+ TQString text = languageButton->currentTag();
if (old != text) {
item->setLanguage(languageButton->text(), text);
diff --git a/kmouth/wordcompletion/wordcompletionwidget.h b/kmouth/wordcompletion/wordcompletionwidget.h
index 574a4e9..fddf074 100644
--- a/kmouth/wordcompletion/wordcompletionwidget.h
+++ b/kmouth/wordcompletion/wordcompletionwidget.h
@@ -31,7 +31,7 @@ class KLanguageButton;
class WordCompletionWidget : public WordCompletionUI {
Q_OBJECT
public:
- WordCompletionWidget(QWidget *parent, const char *name);
+ WordCompletionWidget(TQWidget *parent, const char *name);
~WordCompletionWidget();
/**
@@ -57,7 +57,7 @@ private slots:
void exportDictionary();
void selectionChanged();
- void nameChanged (const QString &text);
+ void nameChanged (const TQString &text);
void languageSelected (int);
/**
@@ -73,8 +73,8 @@ private:
* Object holding all the configuration
*/
KConfig *config;
- QStringList newDictionaryFiles;
- QStringList removedDictionaryFiles;
+ TQStringList newDictionaryFiles;
+ TQStringList removedDictionaryFiles;
};
#endif
diff --git a/kmouth/wordcompletion/wordlist.cpp b/kmouth/wordcompletion/wordlist.cpp
index 67f05d8..f10feaf 100644
--- a/kmouth/wordcompletion/wordlist.cpp
+++ b/kmouth/wordcompletion/wordlist.cpp
@@ -17,8 +17,8 @@
// $Id$
-#include <qregexp.h>
-#include <qdir.h>
+#include <tqregexp.h>
+#include <tqdir.h>
#include <kapplication.h>
#include <kstandarddirs.h>
@@ -28,7 +28,7 @@
#include "wordlist.h"
namespace WordList {
-void addWords (WordMap &map, QString line);
+void addWords (WordMap &map, TQString line);
XMLParser::XMLParser() {
}
@@ -36,57 +36,57 @@ XMLParser::XMLParser() {
XMLParser::~XMLParser() {
}
-bool XMLParser::warning (const QXmlParseException &) {
+bool XMLParser::warning (const TQXmlParseException &) {
return false;
}
-bool XMLParser::error (const QXmlParseException &) {
+bool XMLParser::error (const TQXmlParseException &) {
return false;
}
-bool XMLParser::fatalError (const QXmlParseException &) {
+bool XMLParser::fatalError (const TQXmlParseException &) {
return false;
}
-QString XMLParser::errorString() {
+TQString XMLParser::errorString() {
return "";
}
bool XMLParser::startDocument() {
- text = QString::null;
+ text = TQString::null;
return true;
}
-bool XMLParser::startElement (const QString &, const QString &,
- const QString &,
- const QXmlAttributes &)
+bool XMLParser::startElement (const TQString &, const TQString &,
+ const TQString &,
+ const TQXmlAttributes &)
{
if (!text.isNull() && !text.isEmpty()) {
addWords (list, text);
- text = QString::null;
+ text = TQString::null;
}
return true;
}
-bool XMLParser::characters (const QString &ch) {
+bool XMLParser::characters (const TQString &ch) {
text += ch;
return true;
}
-bool XMLParser::ignorableWhitespace (const QString &) {
+bool XMLParser::ignorableWhitespace (const TQString &) {
if (!text.isNull() && !text.isEmpty()) {
addWords (list, text);
- text = QString::null;
+ text = TQString::null;
}
return true;
}
-bool XMLParser::endElement (const QString &, const QString &,
- const QString &)
+bool XMLParser::endElement (const TQString &, const TQString &,
+ const TQString &)
{
if (!text.isNull() && !text.isEmpty()) {
addWords (list, text);
- text = QString::null;
+ text = TQString::null;
}
return true;
}
@@ -94,7 +94,7 @@ bool XMLParser::endElement (const QString &, const QString &,
bool XMLParser::endDocument() {
if (!text.isNull() && !text.isEmpty()) {
addWords (list, text);
- text = QString::null;
+ text = TQString::null;
}
return true;
}
@@ -116,13 +116,13 @@ KProgressDialog *progressDialog() {
return pdlg;
}
-bool saveWordList (WordMap map, QString filename) {
- QFile file(filename);
+bool saveWordList (WordMap map, TQString filename) {
+ TQFile file(filename);
if(!file.open(IO_WriteOnly))
return false;
- QTextStream stream(&file);
- stream.setEncoding (QTextStream::UnicodeUTF8);
+ TQTextStream stream(&file);
+ stream.setEncoding (TQTextStream::UnicodeUTF8);
stream << "WPDictFile\n";
WordMap::ConstIterator it;
@@ -134,13 +134,13 @@ bool saveWordList (WordMap map, QString filename) {
/***************************************************************************/
-void addWords (WordMap &map, QString line) {
- QStringList words = QStringList::split(QRegExp("\\W"), line);
+void addWords (WordMap &map, TQString line) {
+ TQStringList words = TQStringList::split(TQRegExp("\\W"), line);
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = words.begin(); it != words.end(); ++it) {
- if (!(*it).contains(QRegExp("\\d|_"))) {
- QString key = (*it).lower();
+ if (!(*it).contains(TQRegExp("\\d|_"))) {
+ TQString key = (*it).lower();
if (map.contains(key))
map[key] += 1;
else
@@ -158,11 +158,11 @@ void addWords (WordMap &map, WordMap add) {
map[it.key()] = it.data();
}
-void addWordsFromFile (WordMap &map, QString filename, QTextStream::Encoding encoding, QTextCodec *codec) {
- QFile xmlfile(filename);
- QXmlInputSource source (&xmlfile);
+void addWordsFromFile (WordMap &map, TQString filename, TQTextStream::Encoding encoding, TQTextCodec *codec) {
+ TQFile xmlfile(filename);
+ TQXmlInputSource source (&xmlfile);
XMLParser parser;
- QXmlSimpleReader reader;
+ TQXmlSimpleReader reader;
reader.setFeature ("http://trolltech.com/xml/features/report-start-end-entity", true);
reader.setContentHandler (&parser);
@@ -170,19 +170,19 @@ void addWordsFromFile (WordMap &map, QString filename, QTextStream::Encoding enc
if (reader.parse(source)) // try to load the file as an xml-file
addWords(map, parser.getList());
else {
- QFile wpdfile(filename);
+ TQFile wpdfile(filename);
if (wpdfile.open(IO_ReadOnly)) {
- QTextStream stream(&wpdfile);
- stream.setEncoding (QTextStream::UnicodeUTF8);
+ TQTextStream stream(&wpdfile);
+ stream.setEncoding (TQTextStream::UnicodeUTF8);
if (!stream.atEnd()) {
- QString s = stream.readLine();
+ TQString s = stream.readLine();
if (s == "WPDictFile") { // Contains the file a weighted word list?
// We can assume that weighted word lists are always UTF8 coded.
while (!stream.atEnd()) {
- QString s = stream.readLine();
+ TQString s = stream.readLine();
if (!(s.isNull() || s.isEmpty())) {
- QStringList list = QStringList::split("\t", s);
+ TQStringList list = TQStringList::split("\t", s);
bool ok;
int weight = list[1].toInt(&ok);
if (ok && (weight > 0)) {
@@ -195,9 +195,9 @@ void addWordsFromFile (WordMap &map, QString filename, QTextStream::Encoding enc
}
}
else { // Count the words in an ordinary text file
- QFile file(filename);
+ TQFile file(filename);
if (file.open(IO_ReadOnly)) {
- QTextStream stream(&file);
+ TQTextStream stream(&file);
if (codec != 0)
stream.setCodec (codec);
else
@@ -215,13 +215,13 @@ void addWordsFromFile (WordMap &map, QString filename, QTextStream::Encoding enc
#include <kdebug.h>
namespace WordList {
-WordMap parseFiles (QStringList files, QTextStream::Encoding encoding, QTextCodec *codec, KProgressDialog *pdlg) {
+WordMap parseFiles (TQStringList files, TQTextStream::Encoding encoding, TQTextCodec *codec, KProgressDialog *pdlg) {
int progress = 0;
int steps = files.count();
int percent = 0;
WordMap map;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (progress = 1, it = files.begin(); it != files.end(); ++progress, ++it) {
addWordsFromFile (map, *it, encoding, codec);
@@ -234,7 +234,7 @@ WordMap parseFiles (QStringList files, QTextStream::Encoding encoding, QTextCode
return map;
}
-WordMap mergeFiles (QMap<QString,int> files, KProgressDialog *pdlg) {
+WordMap mergeFiles (TQMap<TQString,int> files, KProgressDialog *pdlg) {
pdlg->setLabel (i18n("Merging dictionaries..."));
pdlg->show();
qApp->processEvents (20);
@@ -245,11 +245,11 @@ WordMap mergeFiles (QMap<QString,int> files, KProgressDialog *pdlg) {
float totalWeight = 0;
long long maxWeight = 0;
- QMap<QString,float> map;
- QMap<QString,int>::ConstIterator it;
+ TQMap<TQString,float> map;
+ TQMap<TQString,int>::ConstIterator it;
for (progress = 1, it = files.begin(); it != files.end(); ++progress, ++it) {
WordMap fileMap;
- addWordsFromFile (fileMap, it.key(), QTextStream::UnicodeUTF8, 0);
+ addWordsFromFile (fileMap, it.key(), TQTextStream::UnicodeUTF8, 0);
long long weight = 0;
WordMap::ConstIterator iter;
@@ -280,52 +280,52 @@ WordMap mergeFiles (QMap<QString,int> files, KProgressDialog *pdlg) {
factor = 1.0 * maxWeight;
WordMap resultMap;
- QMap<QString,float>::ConstIterator iter;
+ TQMap<TQString,float>::ConstIterator iter;
for (iter = map.begin(); iter != map.end(); ++iter)
resultMap[iter.key()] = (int)(factor * iter.data() + 0.5);
return resultMap;
}
-WordMap parseKDEDoc (QString language, KProgressDialog *pdlg) {
+WordMap parseKDEDoc (TQString language, KProgressDialog *pdlg) {
pdlg->setLabel (i18n("Parsing the KDE documentation..."));
pdlg->show();
qApp->processEvents (20);
- QStringList files = KApplication::kApplication()->dirs()->findAllResources ("html", language + "/*.docbook", true, true);
+ TQStringList files = KApplication::kApplication()->dirs()->findAllResources ("html", language + "/*.docbook", true, true);
if ((files.count() == 0) && (language.length() == 5)) {
language = language.left(2);
files = KApplication::kApplication()->dirs()->findAllResources ("html", language + "/*.docbook", true, true);
}
- return parseFiles (files, QTextStream::UnicodeUTF8, 0, pdlg);
+ return parseFiles (files, TQTextStream::UnicodeUTF8, 0, pdlg);
}
-WordMap parseFile (QString filename, QTextStream::Encoding encoding, QTextCodec *codec, KProgressDialog *pdlg) {
+WordMap parseFile (TQString filename, TQTextStream::Encoding encoding, TQTextCodec *codec, KProgressDialog *pdlg) {
pdlg->setLabel (i18n("Parsing file..."));
pdlg->show();
qApp->processEvents (20);
- QStringList files = filename;
+ TQStringList files = filename;
return parseFiles (files, encoding, codec, pdlg);
}
-WordMap parseDir (QString directory, QTextStream::Encoding encoding, QTextCodec *codec, KProgressDialog *pdlg) {
+WordMap parseDir (TQString directory, TQTextStream::Encoding encoding, TQTextCodec *codec, KProgressDialog *pdlg) {
pdlg->setLabel (i18n("Parsing directory..."));
pdlg->show();
qApp->processEvents (20);
- QStringList directories;
+ TQStringList directories;
directories += directory;
- QStringList files;
- for (QStringList::Iterator it = directories.begin(); it != directories.end(); it = directories.remove(it)) {
- QDir dir(*it);
- const QFileInfoList *entries = dir.entryInfoList ("*", QDir::Dirs | QDir::Files | QDir::NoSymLinks | QDir::Readable);
+ TQStringList files;
+ for (TQStringList::Iterator it = directories.begin(); it != directories.end(); it = directories.remove(it)) {
+ TQDir dir(*it);
+ const QFileInfoList *entries = dir.entryInfoList ("*", TQDir::Dirs | TQDir::Files | TQDir::NoSymLinks | TQDir::Readable);
if (entries != 0) {
QFileInfoListIterator iter (*entries);
while ((iter.current()) != 0) {
- QString name = iter.current()->fileName();
+ TQString name = iter.current()->fileName();
if (name != "." && name != "..") {
if (iter.current()->isDir())
directories += iter.current()->filePath ();
@@ -347,23 +347,23 @@ WordMap parseDir (QString directory, QTextStream::Encoding encoding, QTextCodec
struct AffEntry {
bool cross;
int charsToRemove;
- QString add;
- QStringList condition;
+ TQString add;
+ TQStringList condition;
};
-typedef QValueList<AffEntry> AffList;
-typedef QMap<QChar,AffList> AffMap;
+typedef TQValueList<AffEntry> AffList;
+typedef TQMap<TQChar,AffList> AffMap;
/** Loads an *.aff file (part of OpenOffice.org dictionaries)
*/
-void loadAffFile(const QString &filename, AffMap &prefixes, AffMap &suffixes) {
+void loadAffFile(const TQString &filename, AffMap &prefixes, AffMap &suffixes) {
bool cross = false;
- QFile afile(filename);
+ TQFile afile(filename);
if (afile.open(IO_ReadOnly)) {
- QTextStream stream(&afile);
+ TQTextStream stream(&afile);
while (!stream.atEnd()) {
- QString s = stream.readLine();
- QStringList fields = QStringList::split(QRegExp("\\s"), s);
+ TQString s = stream.readLine();
+ TQStringList fields = TQStringList::split(TQRegExp("\\s"), s);
if (fields.count() == 4) {
cross = (fields[2] == "Y");
@@ -379,16 +379,16 @@ void loadAffFile(const QString &filename, AffMap &prefixes, AffMap &suffixes) {
e.add = fields[3];
if (fields[4] != ".") {
- QString condition = fields[4];
+ TQString condition = fields[4];
for (uint idx = 0; idx < condition.length(); ++idx) {
if (condition[idx] == '[') {
- QString code;
+ TQString code;
for (++idx; (idx < condition.length()) && condition[idx] != ']'; ++idx)
code += condition[idx];
e.condition << code;
}
else
- e.condition << QString(condition[idx]);
+ e.condition << TQString(condition[idx]);
}
}
@@ -413,20 +413,20 @@ void loadAffFile(const QString &filename, AffMap &prefixes, AffMap &suffixes) {
}
/** Checks if the given word matches the given condition. Each entry of the
- * QStringList "condition" describes one character of the word. (If the word
+ * TQStringList "condition" describes one character of the word. (If the word
* has more characters than condition entries only the last characters are
* compared).
* Each entry contains either all valid characters (if it does _not_ start
* with "^") or all invalid characters (if it starts with "^").
*/
-inline bool checkCondition (const QString &word, const QStringList &condition) {
+inline bool checkCondition (const TQString &word, const TQStringList &condition) {
if (condition.count() == 0)
return true;
if (word.length() < condition.count())
return false;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
int idx;
for (it = condition.begin(), idx = word.length()-condition.count();
it != condition.end();
@@ -443,7 +443,7 @@ inline bool checkCondition (const QString &word, const QStringList &condition) {
* @param modifiers discribes which suffixes are valid
* @param cross true if the word has a prefix
*/
-inline void checkWord(const QString &word, const QString &modifiers, bool cross, const WordMap &map, WordMap &checkedMap, const AffMap &suffixes) {
+inline void checkWord(const TQString &word, const TQString &modifiers, bool cross, const WordMap &map, WordMap &checkedMap, const AffMap &suffixes) {
for (uint i = 0; i < modifiers.length(); i++) {
if (suffixes.contains(modifiers[i])) {
AffList sList = suffixes[modifiers[i]];
@@ -453,7 +453,7 @@ inline void checkWord(const QString &word, const QString &modifiers, bool cross,
if (((*sIt).cross || !cross)
&& (checkCondition(word, (*sIt).condition)))
{
- QString sWord = word.left(word.length()-(*sIt).charsToRemove) + (*sIt).add;
+ TQString sWord = word.left(word.length()-(*sIt).charsToRemove) + (*sIt).add;
if (map.contains(sWord))
checkedMap[sWord] = map[sWord];
}
@@ -466,7 +466,7 @@ inline void checkWord(const QString &word, const QString &modifiers, bool cross,
* copies the resulting words from map to checkedMap.
* @param modifiers discribes which pre- and suffixes are valid
*/
-void checkWord (const QString &word, const QString &modifiers, const WordMap &map, WordMap &checkedMap, const AffMap &prefixes, const AffMap &suffixes) {
+void checkWord (const TQString &word, const TQString &modifiers, const WordMap &map, WordMap &checkedMap, const AffMap &prefixes, const AffMap &suffixes) {
if (map.contains(word))
checkedMap[word] = map[word];
@@ -478,7 +478,7 @@ void checkWord (const QString &word, const QString &modifiers, const WordMap &ma
AffList::ConstIterator pIt;
for (pIt = pList.begin(); pIt != pList.end(); ++pIt) {
- QString pWord = (*pIt).add + word;
+ TQString pWord = (*pIt).add + word;
if (map.contains(pWord))
checkedMap[pWord] = map[pWord];
@@ -488,7 +488,7 @@ void checkWord (const QString &word, const QString &modifiers, const WordMap &ma
}
}
-WordMap spellCheck (WordMap map, QString dictionary, KProgressDialog *pdlg) {
+WordMap spellCheck (WordMap map, TQString dictionary, KProgressDialog *pdlg) {
if (dictionary.endsWith(".dic")) {
AffMap prefixes;
@@ -509,20 +509,20 @@ WordMap spellCheck (WordMap map, QString dictionary, KProgressDialog *pdlg) {
int steps = 0;
int percent = 0;
- QFile dfile(dictionary);
+ TQFile dfile(dictionary);
if (dfile.open(IO_ReadOnly)) {
- QTextStream stream(&dfile);
+ TQTextStream stream(&dfile);
if (!stream.atEnd()) {
- QString s = stream.readLine(); // Number of words
+ TQString s = stream.readLine(); // Number of words
steps = s.toInt();
}
while (!stream.atEnd()) {
- QString s = stream.readLine();
+ TQString s = stream.readLine();
if (s.contains("/")) {
- QString word = s.left(s.find("/")).lower();
- QString modifiers = s.right(s.length() - s.find("/"));
+ TQString word = s.left(s.find("/")).lower();
+ TQString modifiers = s.right(s.length() - s.find("/"));
checkWord(word, modifiers, map, checkedMap, prefixes, suffixes);
}
diff --git a/kmouth/wordcompletion/wordlist.h b/kmouth/wordcompletion/wordlist.h
index d2f85ac..1e8da1a 100644
--- a/kmouth/wordcompletion/wordlist.h
+++ b/kmouth/wordcompletion/wordlist.h
@@ -20,29 +20,29 @@
#ifndef WORDLIST_H
#define WORDLIST_H
-#include <qxml.h>
-#include <qvaluestack.h>
-#include <qstring.h>
-#include <qobject.h>
-#include <qmap.h>
+#include <tqxml.h>
+#include <tqvaluestack.h>
+#include <tqstring.h>
+#include <tqobject.h>
+#include <tqmap.h>
class QTextCodec;
class KProgressDialog;
namespace WordList {
-typedef QMap<QString,int> WordMap;
+typedef TQMap<TQString,int> WordMap;
KProgressDialog *progressDialog();
-WordMap parseKDEDoc (QString language, KProgressDialog *pdlg);
-WordMap parseFile (QString filename, QTextStream::Encoding encoding, QTextCodec *codec, KProgressDialog *pdlg);
-WordMap parseDir (QString directory, QTextStream::Encoding encoding, QTextCodec *codec, KProgressDialog *pdlg);
-WordMap mergeFiles (QMap<QString,int> files, KProgressDialog *pdlg);
+WordMap parseKDEDoc (TQString language, KProgressDialog *pdlg);
+WordMap parseFile (TQString filename, TQTextStream::Encoding encoding, TQTextCodec *codec, KProgressDialog *pdlg);
+WordMap parseDir (TQString directory, TQTextStream::Encoding encoding, TQTextCodec *codec, KProgressDialog *pdlg);
+WordMap mergeFiles (TQMap<TQString,int> files, KProgressDialog *pdlg);
-WordMap spellCheck (WordMap wordlist, QString dictionary, KProgressDialog *pdlg);
+WordMap spellCheck (WordMap wordlist, TQString dictionary, KProgressDialog *pdlg);
-bool saveWordList (WordMap map, QString filename);
+bool saveWordList (WordMap map, TQString filename);
/**
* This class implements a parser for reading docbooks and generating word
@@ -50,31 +50,31 @@ bool saveWordList (WordMap map, QString filename);
* @author Gunnar Schmi Dt
*/
-class XMLParser : public QXmlDefaultHandler {
+class XMLParser : public TQXmlDefaultHandler {
public:
XMLParser();
~XMLParser();
- bool warning (const QXmlParseException &exception);
- bool error (const QXmlParseException &exception);
- bool fatalError (const QXmlParseException &exception);
- QString errorString();
+ bool warning (const TQXmlParseException &exception);
+ bool error (const TQXmlParseException &exception);
+ bool fatalError (const TQXmlParseException &exception);
+ TQString errorString();
/** Processes the start of the document. */
bool startDocument();
/** Processes the start tag of an element. */
- bool startElement (const QString &, const QString &, const QString &name,
- const QXmlAttributes &attributes);
+ bool startElement (const TQString &, const TQString &, const TQString &name,
+ const TQXmlAttributes &attributes);
/** Processes a chunk of normal character data. */
- bool characters (const QString &ch);
+ bool characters (const TQString &ch);
/** Processes whitespace. */
- bool ignorableWhitespace (const QString &ch);
+ bool ignorableWhitespace (const TQString &ch);
/** Processes the end tag of an element. */
- bool endElement (const QString &, const QString &, const QString &name);
+ bool endElement (const TQString &, const TQString &, const TQString &name);
/** Processes the end of the document. */
bool endDocument();
@@ -84,7 +84,7 @@ public:
private:
WordMap list;
- QString text;
+ TQString text;
};
}
diff --git a/ksayit/Freeverb_plugin/freeverbsetupimpl.cpp b/ksayit/Freeverb_plugin/freeverbsetupimpl.cpp
index cf16c0d..4fd00be 100644
--- a/ksayit/Freeverb_plugin/freeverbsetupimpl.cpp
+++ b/ksayit/Freeverb_plugin/freeverbsetupimpl.cpp
@@ -19,8 +19,8 @@
using namespace std;
// QT includes
-#include <qslider.h>
-#include <qlcdnumber.h>
+#include <tqslider.h>
+#include <tqlcdnumber.h>
// KDE includes
#include <kdebug.h>
@@ -28,7 +28,7 @@ using namespace std;
// App specific includes
#include "freeverbsetupimpl.h"
-FreeverbSetupImpl::FreeverbSetupImpl(QWidget *parent, const char *name, bool modal, KConfig *config )
+FreeverbSetupImpl::FreeverbSetupImpl(TQWidget *parent, const char *name, bool modal, KConfig *config )
: Freeverb_Setup(parent,name,modal), m_config(config) {
// initialize Widgets
diff --git a/ksayit/Freeverb_plugin/freeverbsetupimpl.h b/ksayit/Freeverb_plugin/freeverbsetupimpl.h
index 8bee5bb..b243faf 100644
--- a/ksayit/Freeverb_plugin/freeverbsetupimpl.h
+++ b/ksayit/Freeverb_plugin/freeverbsetupimpl.h
@@ -19,7 +19,7 @@
#define FREEVERBSETUPIMPL_H
// QT includes
-#include <qwidget.h>
+#include <tqwidget.h>
// KDE includes
#include <kconfig.h>
@@ -34,7 +34,7 @@
class FreeverbSetupImpl : public Freeverb_Setup {
Q_OBJECT
public:
- FreeverbSetupImpl(QWidget *parent=0, const char *name=0, bool modal=true, KConfig *config=0);
+ FreeverbSetupImpl(TQWidget *parent=0, const char *name=0, bool modal=true, KConfig *config=0);
~FreeverbSetupImpl();
public slots:
diff --git a/ksayit/Freeverb_plugin/ksayitfreeverblib.cpp b/ksayit/Freeverb_plugin/ksayitfreeverblib.cpp
index 1edf874..bb91885 100644
--- a/ksayit/Freeverb_plugin/ksayitfreeverblib.cpp
+++ b/ksayit/Freeverb_plugin/ksayitfreeverblib.cpp
@@ -11,8 +11,8 @@
//
// QT includes
-// #include <qtextcodec.h>
-#include <qstringlist.h>
+// #include <tqtextcodec.h>
+#include <tqstringlist.h>
// KDE includes
#include <kdebug.h>
@@ -41,19 +41,19 @@ KInstance *FreeverbPluginFactory::p_instance = 0L;
// Factory Constructor
-FreeverbPluginFactory::FreeverbPluginFactory(QObject *parent, const char* name)
+FreeverbPluginFactory::FreeverbPluginFactory(TQObject *parent, const char* name)
{
p_instance = new KInstance("FreeverbPluginFactory");
}
-QObject* FreeverbPluginFactory::createObject(QObject *parent, const char* name,
+TQObject* FreeverbPluginFactory::createObject(TQObject *parent, const char* name,
const char*,
- const QStringList &)
+ const TQStringList &)
{
kdDebug(100200) << "FreeverbPluginFactory::createObject()" << endl;
- QObject* obj = new FreeverbPlugin( parent, name );
+ TQObject* obj = new FreeverbPlugin( parent, name );
emit objectCreated( obj );
return obj;
}
@@ -62,7 +62,7 @@ QObject* FreeverbPluginFactory::createObject(QObject *parent, const char* name,
// Plugin Constructor
-FreeverbPlugin::FreeverbPlugin(QObject *parent, const char* name) //, KApplication *Appl)
+FreeverbPlugin::FreeverbPlugin(TQObject *parent, const char* name) //, KApplication *Appl)
: FXPlugin(parent, name) //, m_Appl(Appl)
{
m_config = new KSimpleConfig("ksayit_freeverbrc");
@@ -84,14 +84,14 @@ void FreeverbPlugin::setApplication(KApplication *Appl)
/** returns the Name of the Plugin
*/
-QString FreeverbPlugin::getName_KS() const
+TQString FreeverbPlugin::getName_KS() const
{
return "Synth_FREEVERB";
}
/** returns a description of the plugin
*/
-QString FreeverbPlugin::getDescription_KS() const
+TQString FreeverbPlugin::getDescription_KS() const
{
return i18n("This is a freeverb effect.");
}
diff --git a/ksayit/Freeverb_plugin/ksayitfreeverblib.h b/ksayit/Freeverb_plugin/ksayitfreeverblib.h
index 50bfa62..e9731d4 100644
--- a/ksayit/Freeverb_plugin/ksayitfreeverblib.h
+++ b/ksayit/Freeverb_plugin/ksayitfreeverblib.h
@@ -13,8 +13,8 @@
#define KSAYITFREEVERBLIB_H
// QT includes
-#include <qobject.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqstringlist.h>
// KDE includes
#include <ksimpleconfig.h>
@@ -29,14 +29,14 @@ class FreeverbPluginFactory : public KLibFactory
Q_OBJECT
public:
// Consturctor
- FreeverbPluginFactory(QObject *parent=0, const char* name=0);
+ FreeverbPluginFactory(TQObject *parent=0, const char* name=0);
// Destructor
virtual ~FreeverbPluginFactory(){ delete p_instance; };
- QObject* createObject(QObject *parent=0, const char* name=0,
- const char* className="QObject",
- const QStringList &args=QStringList());
+ TQObject* createObject(TQObject *parent=0, const char* name=0,
+ const char* className="TQObject",
+ const TQStringList &args=TQStringList());
private:
static KInstance* p_instance;
@@ -52,7 +52,7 @@ class FreeverbPlugin : public FXPlugin
Q_OBJECT
public:
// Constructor
- FreeverbPlugin(QObject *parent=0, const char* name=0); //, KApplication *Appl=0);
+ FreeverbPlugin(TQObject *parent=0, const char* name=0); //, KApplication *Appl=0);
// Destructor
~FreeverbPlugin();
@@ -63,11 +63,11 @@ public:
/** returns the Name of the Plugin
*/
- QString getName_KS() const;
+ TQString getName_KS() const;
/** returns a description of the plugin
*/
- QString getDescription_KS() const;
+ TQString getDescription_KS() const;
/** shows the GUI to configure the plugin
*/
diff --git a/ksayit/KTTSD_Lib/kttsdlib.cpp b/ksayit/KTTSD_Lib/kttsdlib.cpp
index 224cd21..f41670b 100644
--- a/ksayit/KTTSD_Lib/kttsdlib.cpp
+++ b/ksayit/KTTSD_Lib/kttsdlib.cpp
@@ -12,8 +12,8 @@
// #include <time.h> // nanosleep
// Qt includes
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
// KDE includes
#include <kglobal.h>
@@ -27,17 +27,17 @@
#include "kttsdlibsetupimpl.h"
-KTTSDLib::KTTSDLib(QObject *parent, const char *name, KApplication *Appl)
- : QObject(parent, name), m_Appl(Appl)
+KTTSDLib::KTTSDLib(TQObject *parent, const char *name, KApplication *Appl)
+ : TQObject(parent, name), m_Appl(Appl)
{
KGlobal::locale()->insertCatalogue("libKTTSD");
- m_talker = new kttsdlibtalker2(static_cast<QObject*>(this), "kttsdlibtalker");
- connect(m_talker, SIGNAL(signalTextFinished(const uint)),
- this, SLOT(slotTextFinished(const uint)) );
- connect(m_talker, SIGNAL(signalTextStopped(const uint)),
- this, SLOT(slotTextStopped(const uint)) );
- connect(m_talker, SIGNAL(signalTextStarted(const uint)),
- this, SLOT(slotTextStarted(const uint)) );
+ m_talker = new kttsdlibtalker2(static_cast<TQObject*>(this), "kttsdlibtalker");
+ connect(m_talker, TQT_SIGNAL(signalTextFinished(const uint)),
+ this, TQT_SLOT(slotTextFinished(const uint)) );
+ connect(m_talker, TQT_SIGNAL(signalTextStopped(const uint)),
+ this, TQT_SLOT(slotTextStopped(const uint)) );
+ connect(m_talker, TQT_SIGNAL(signalTextStarted(const uint)),
+ this, TQT_SLOT(slotTextStarted(const uint)) );
// reset list of currently processed jobs
while ( !jobList.empty() ){
@@ -59,15 +59,15 @@ KTTSDLib::~KTTSDLib()
}
-QString KTTSDLib::getName() const
+TQString KTTSDLib::getName() const
{
return "KDE KTTSD";
}
-QString KTTSDLib::getDescription() const
+TQString KTTSDLib::getDescription() const
{
- QString str;
+ TQString str;
str = i18n("<qt><big><u>Description:</u></big><br>");
str += i18n("This plugin uses the KDE TTS Daemon for speech output.");
@@ -87,7 +87,7 @@ int KTTSDLib::getStatus() const
}
-const QWidget* KTTSDLib::getGUI(QFrame *frame)
+const TQWidget* KTTSDLib::getGUI(TQFrame *frame)
{
kdDebug(100200) << "KTTSDLib::getGUI()" << endl;
@@ -111,7 +111,7 @@ bool KTTSDLib::saveWasClicked() const
}
-void KTTSDLib::setText(const QString &text)
+void KTTSDLib::setText(const TQString &text)
{
kdDebug(100200) << "KTTSDLib::setText()" << endl;
diff --git a/ksayit/KTTSD_Lib/kttsdlib.h b/ksayit/KTTSD_Lib/kttsdlib.h
index 6d8de9b..eb57912 100644
--- a/ksayit/KTTSD_Lib/kttsdlib.h
+++ b/ksayit/KTTSD_Lib/kttsdlib.h
@@ -17,9 +17,9 @@
using namespace std;
// QT includes
-#include <qobject.h>
-#include <qwidget.h>
-#include <qframe.h>
+#include <tqobject.h>
+#include <tqwidget.h>
+#include <tqframe.h>
#include <kdemacros.h>
#include "kdeexportfix.h"
@@ -70,25 +70,25 @@ public slots:
void slotTextStarted(const uint job);
public:
- KTTSDLib(QObject *parent=0, const char *name=0, KApplication *Appl=0);
+ KTTSDLib(TQObject *parent=0, const char *name=0, KApplication *Appl=0);
~KTTSDLib();
/** Reimplementations from the base class.
*/
- QString getName() const;
+ TQString getName() const;
- QString getDescription() const;
+ TQString getDescription() const;
int getActions();
- const QWidget* getGUI(QFrame *frame);
+ const TQWidget* getGUI(TQFrame *frame);
void reloadConfiguration();
bool saveWasClicked() const;
- void setText(const QString &text);
+ void setText(const TQString &text);
void sayText();
diff --git a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp
index 0c7bc8f..1cb8bc9 100644
--- a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp
+++ b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp
@@ -13,7 +13,7 @@
#include <stdio.h>
// Qt includes
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
// KDE includes
#include <kdebug.h>
@@ -23,7 +23,7 @@
// App specific includes
#include "kttsdlibsetupimpl.h"
-KTTSDlibSetupImpl::KTTSDlibSetupImpl(QWidget *parent, const char *name)
+KTTSDlibSetupImpl::KTTSDlibSetupImpl(TQWidget *parent, const char *name)
: KTTSDlibSetup(parent, name)
{
}
@@ -47,16 +47,16 @@ void KTTSDlibSetupImpl::slotLaunchControlcenter()
fgets(cmdresult, 18, fp);
pclose(fp);
}
- if ( !QCString(cmdresult).contains("kcmkttsd") ){
- QString error = i18n("Control Center Module for KTTSD not found.");
+ if ( !TQCString(cmdresult).contains("kcmkttsd") ){
+ TQString error = i18n("Control Center Module for KTTSD not found.");
KMessageBox::sorry(this, error, i18n("Problem"));
return;
}
// invoke the Control Center Module
KProcess *kcmproc = new KProcess();
- connect(kcmproc, SIGNAL(processExited(KProcess*)),
- this, SLOT(slotKCMProcessExited(KProcess*)) );
+ connect(kcmproc, TQT_SIGNAL(processExited(KProcess*)),
+ this, TQT_SLOT(slotKCMProcessExited(KProcess*)) );
(*kcmproc) << "kcmshell";
(*kcmproc) << "kcmkttsd";
kcmproc->start(KProcess::NotifyOnExit);
diff --git a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h
index 1fcf585..cd36430 100644
--- a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h
+++ b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h
@@ -27,7 +27,7 @@ class KTTSDlibSetupImpl : public KTTSDlibSetup
{
Q_OBJECT
public:
- KTTSDlibSetupImpl(QWidget *parent = 0, const char *name = 0);
+ KTTSDlibSetupImpl(TQWidget *parent = 0, const char *name = 0);
~KTTSDlibSetupImpl();
diff --git a/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp b/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp
index 808f8f2..c88a96b 100644
--- a/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp
+++ b/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp
@@ -13,7 +13,7 @@
#include <unistd.h> //sleep
// Qt includes
-#include <qstring.h>
+#include <tqstring.h>
// KDE includes
#include <kdebug.h>
@@ -21,22 +21,22 @@
// App specific includes
#include "kttsdlibtalker2.h"
-kttsdlibtalker2::kttsdlibtalker2(QObject *parent, const char *name)
- : QObject(parent, name), DCOPStub("kttsd", "KSpeech")
+kttsdlibtalker2::kttsdlibtalker2(TQObject *parent, const char *name)
+ : TQObject(parent, name), DCOPStub("kttsd", "KSpeech")
{
m_client = NULL;
connectDCOPSignal("kttsd", "KSpeech",
- "textStarted(QCString, uint)",
- "textStarted(QCString, uint)", false);
+ "textStarted(TQCString, uint)",
+ "textStarted(TQCString, uint)", false);
connectDCOPSignal("kttsd", "KSpeech",
- "textFinished(QCString, uint)",
- "textFinished(QCString, uint)", false);
+ "textFinished(TQCString, uint)",
+ "textFinished(TQCString, uint)", false);
connectDCOPSignal("kttsd", "KSpeech",
- "textStopped(QCString, uint)",
- "textStopped(QCString, uint)", false);
+ "textStopped(TQCString, uint)",
+ "textStopped(TQCString, uint)", false);
}
@@ -52,8 +52,8 @@ void kttsdlibtalker2::KTTSD_init(KApplication *Appl)
m_client = Appl->dcopClient();
if ( !m_client->isApplicationRegistered("kttsd")){
- QString error;
- if ( Appl->startServiceByDesktopName("kttsd", QStringList(), &error) ){
+ TQString error;
+ if ( Appl->startServiceByDesktopName("kttsd", TQStringList(), &error) ){
// throw(error);
kdDebug() << "Starting KTTSD failed with message " << error << endl;
}
@@ -64,7 +64,7 @@ void kttsdlibtalker2::KTTSD_init(KApplication *Appl)
}
-uint kttsdlibtalker2::KTTSD_setText(const QString &text, QString lang)
+uint kttsdlibtalker2::KTTSD_setText(const TQString &text, TQString lang)
{
kdDebug(100200) << "kttsdlibtalker2::KTTSD_setText()" << endl;
uint jobNum = setText(text, lang);
@@ -134,7 +134,7 @@ int kttsdlibtalker2::KTTSD_getCurrentTextJob()
// DCOP signals
////////////////////////////////////////////
-ASYNC kttsdlibtalker2::textStarted(const QCString &appID,
+ASYNC kttsdlibtalker2::textStarted(const TQCString &appID,
const uint jobNum)
{
kdDebug(100200) << "*** kttsdlibtalker2::textStarted()" << endl;
@@ -144,7 +144,7 @@ ASYNC kttsdlibtalker2::textStarted(const QCString &appID,
}
-ASYNC kttsdlibtalker2::textFinished(const QCString &appID,
+ASYNC kttsdlibtalker2::textFinished(const TQCString &appID,
const uint jobNum)
{
kdDebug(100200) << "*** kttsdlibtalker2::textFinished()" << endl;
@@ -154,7 +154,7 @@ ASYNC kttsdlibtalker2::textFinished(const QCString &appID,
}
-ASYNC kttsdlibtalker2::textStopped(const QCString &appID,
+ASYNC kttsdlibtalker2::textStopped(const TQCString &appID,
const uint jobNum)
{
kdDebug(100200) << "*** kttsdlibtalker2::textStopped()" << endl;
diff --git a/ksayit/KTTSD_Lib/kttsdlibtalker2.h b/ksayit/KTTSD_Lib/kttsdlibtalker2.h
index e39f1c8..29b6371 100644
--- a/ksayit/KTTSD_Lib/kttsdlibtalker2.h
+++ b/ksayit/KTTSD_Lib/kttsdlibtalker2.h
@@ -13,8 +13,8 @@
#define KTTSDLIBTALKER2_H
// Qt includes
-#include <qobject.h>
-#include <qcstring.h>
+#include <tqobject.h>
+#include <tqcstring.h>
#include <kspeech_stub.h>
#include <kspeechsink.h>
@@ -26,7 +26,7 @@
/**
@author Robert Vogl
*/
-class kttsdlibtalker2 : public QObject, public KSpeech_stub, virtual public KSpeechSink
+class kttsdlibtalker2 : public TQObject, public KSpeech_stub, virtual public KSpeechSink
{
Q_OBJECT
@@ -36,7 +36,7 @@ signals:
void signalTextStopped(const uint);
public:
- kttsdlibtalker2(QObject *parent = 0, const char *name = 0);
+ kttsdlibtalker2(TQObject *parent = 0, const char *name = 0);
~kttsdlibtalker2();
@@ -46,7 +46,7 @@ public:
/** See \p KSpeech Class Reference. Returns the job number.
*/
- uint KTTSD_setText(const QString &text, QString lang);
+ uint KTTSD_setText(const TQString &text, TQString lang);
/** See \p KSpeech Class Reference.
*/
@@ -85,12 +85,12 @@ protected:
////////////////////////////////////////////
// Slots for DCOP signals
////////////////////////////////////////////
- ASYNC textStarted(const QCString &appID, const uint jobNum);
- ASYNC textFinished(const QCString &appID, const uint jobNum);
- ASYNC textStopped(const QCString &appID, const uint jobNum);
+ ASYNC textStarted(const TQCString &appID, const uint jobNum);
+ ASYNC textFinished(const TQCString &appID, const uint jobNum);
+ ASYNC textStopped(const TQCString &appID, const uint jobNum);
private:
- QCString m_objID;
+ TQCString m_objID;
KApplication *m_Appl;
DCOPClient *m_client;
uint m_jobNum;
diff --git a/ksayit/src/DocTreeView.ui.h b/ksayit/src/DocTreeView.ui.h
index 39720c1..9807a7c 100644
--- a/ksayit/src/DocTreeView.ui.h
+++ b/ksayit/src/DocTreeView.ui.h
@@ -11,7 +11,7 @@
*****************************************************************************/
-void DocTreeView::slotItemClicked( QListViewItem * )
+void DocTreeView::slotItemClicked( TQListViewItem * )
{
}
@@ -126,7 +126,7 @@ void DocTreeView::slotNewSection_5()
}
-void DocTreeView::slotRightButtonPressed( QListViewItem *i, const QPoint &, int )
+void DocTreeView::slotRightButtonPressed( TQListViewItem *i, const TQPoint &, int )
{
}
diff --git a/ksayit/src/Types.h b/ksayit/src/Types.h
index 017f721..506e67f 100644
--- a/ksayit/src/Types.h
+++ b/ksayit/src/Types.h
@@ -21,14 +21,14 @@
// #include <vector>
// QT includes
-#include <qvaluelist.h>
-#include <qmap.h>
+#include <tqvaluelist.h>
+#include <tqmap.h>
// KDE includes
#include <klistview.h>
-typedef QValueList<int> ParameterList_type;
-typedef QMap<QString, ParameterList_type> EffectConfig_type;
+typedef TQValueList<int> ParameterList_type;
+typedef TQMap<TQString, ParameterList_type> EffectConfig_type;
namespace KSayItGlobal {
static const int item_initial_id = 100;
@@ -54,9 +54,9 @@ This abstract class is the interface to access the items of the TreeView.
class ListViewInterface : public KListViewItem
{
public:
- ListViewInterface(ListViewInterface *parent=0, QString label=QString::null);
- ListViewInterface(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
- ListViewInterface(KListView *lv=0, QString label=QString::null);
+ ListViewInterface(ListViewInterface *parent=0, TQString label=TQString::null);
+ ListViewInterface(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
+ ListViewInterface(KListView *lv=0, TQString label=TQString::null);
// ~ListViewItemInterface();
@@ -67,15 +67,15 @@ public:
* \returns <tt>true</tt> if the operation was successfully performed,
* in all other cases <tt>false</tt>.
*/
- virtual bool setValue( unsigned int index, QVariant data ) = 0;
+ virtual bool setValue( unsigned int index, TQVariant data ) = 0;
/**
* Requests data from the item referenced by the index.
* \param index See <tt>setValue()</tt>.
- * \returns The requested data as a <tt>QVariant</tt> or a invalid
- * <tt>QVariant()</tt> if the data was not available.
+ * \returns The requested data as a <tt>TQVariant</tt> or a invalid
+ * <tt>TQVariant()</tt> if the data was not available.
*/
- virtual QVariant getValue( unsigned int index ) const = 0;
+ virtual TQVariant getValue( unsigned int index ) const = 0;
};
diff --git a/ksayit/src/contextmenuhandler.cpp b/ksayit/src/contextmenuhandler.cpp
index 311a39a..26e8831 100644
--- a/ksayit/src/contextmenuhandler.cpp
+++ b/ksayit/src/contextmenuhandler.cpp
@@ -11,8 +11,8 @@
//
// Qt includes
-#include <qfile.h>
-#include <qvariant.h>
+#include <tqfile.h>
+#include <tqvariant.h>
// KDE includes
#include <kdebug.h>
@@ -29,14 +29,14 @@
* XML-ActionHandler
*/
ContextActionHandler::ContextActionHandler(ContextMenuHandler *menuhandler)
- : QXmlDefaultHandler(), m_menuhandler(menuhandler)
+ : TQXmlDefaultHandler(), m_menuhandler(menuhandler)
{
- m_subName = QString::null;
- m_actionName = QString::null;
- m_qty = QString::null;
+ m_subName = TQString::null;
+ m_actionName = TQString::null;
+ m_qty = TQString::null;
m_popup = menuhandler->m_popupmenu;
m_hit = false;
- m_searchID = QString::null;
+ m_searchID = TQString::null;
}
ContextActionHandler::~ContextActionHandler()
@@ -44,16 +44,16 @@ ContextActionHandler::~ContextActionHandler()
}
-void ContextActionHandler::setSearchID( const QString xmlID )
+void ContextActionHandler::setSearchID( const TQString xmlID )
{
m_searchID = xmlID;
}
-bool ContextActionHandler::startElement( const QString &,
- const QString &,
- const QString &qName,
- const QXmlAttributes &atts )
+bool ContextActionHandler::startElement( const TQString &,
+ const TQString &,
+ const TQString &qName,
+ const TQXmlAttributes &atts )
{
if ( qName == "Item" ){
if ( atts.value("id") == m_searchID ){
@@ -84,9 +84,9 @@ bool ContextActionHandler::startElement( const QString &,
}
-bool ContextActionHandler::endElement( const QString &,
- const QString &,
- const QString &qName )
+bool ContextActionHandler::endElement( const TQString &,
+ const TQString &,
+ const TQString &qName )
{
if ( !(m_hit && m_menuhandler->m_popupmenu) )
return true;
@@ -106,7 +106,7 @@ bool ContextActionHandler::endElement( const QString &,
}
-bool ContextActionHandler::characters( const QString &ch )
+bool ContextActionHandler::characters( const TQString &ch )
{
m_actionName += ch;
return true;
@@ -117,8 +117,8 @@ bool ContextActionHandler::characters( const QString &ch )
/**
* MenuHandler
*/
-ContextMenuHandler::ContextMenuHandler(QObject *parent, const char *name)
- : QObject(parent, name), m_DocTreeView(parent)
+ContextMenuHandler::ContextMenuHandler(TQObject *parent, const char *name)
+ : TQObject(parent, name), m_DocTreeView(parent)
{
m_popupmenu = NULL;
m_item = NULL;
@@ -158,75 +158,75 @@ void ContextMenuHandler::initActions()
// User defined actions
renameItem = new KAction (i18n("Rename..."),
0,
- m_DocTreeView, SLOT (slotRenameItem()), NULL );
+ m_DocTreeView, TQT_SLOT (slotRenameItem()), NULL );
deleteItem = new KAction (i18n("Delete..."),
0,
- m_DocTreeView, SLOT (slotDeleteItem()), NULL );
+ m_DocTreeView, TQT_SLOT (slotDeleteItem()), NULL );
newBookInfo = new KAction ( i18n("Overview"),
0,
- m_DocTreeView, SLOT (slotNewBookInfo()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewBookInfo()), NULL );
newChapter = new KAction ( i18n("Chapter"),
0,
- m_DocTreeView, SLOT (slotNewChapter()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewChapter()), NULL );
newKeywordSet = new KAction ( i18n("Keywords"),
0,
- m_DocTreeView, SLOT (slotNewKeywordSet()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewKeywordSet()), NULL );
newKeyword = new KAction ( i18n("Keyword"),
0,
- m_DocTreeView, SLOT (slotNewKeyword()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewKeyword()), NULL );
newAbstract = new KAction ( i18n("Abstract"),
0,
- m_DocTreeView, SLOT (slotNewAbstract()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewAbstract()), NULL );
newAuthorGroup = new KAction ( i18n("Authors"),
0,
- m_DocTreeView, SLOT (slotNewAuthorGroup()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewAuthorGroup()), NULL );
newAuthor = new KAction ( i18n("Author"),
0,
- m_DocTreeView, SLOT (slotNewAuthor()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewAuthor()), NULL );
newDate = new KAction ( i18n("Date"),
0,
- m_DocTreeView, SLOT (slotNewDate()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewDate()), NULL );
newReleaseInfo = new KAction ( i18n("Release Info"),
0,
- m_DocTreeView, SLOT (slotNewReleaseInfo()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewReleaseInfo()), NULL );
newTitle = new KAction ( i18n("Title"),
0,
- m_DocTreeView, SLOT (slotNewTitle()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewTitle()), NULL );
newParagraph = new KAction ( i18n("Paragraph"),
0,
- m_DocTreeView, SLOT (slotNewParagraph()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewParagraph()), NULL );
newSection_1 = new KAction ( i18n("Section Level 1"),
0,
- m_DocTreeView, SLOT (slotNewSection_1()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewSection_1()), NULL );
newSection_2 = new KAction ( i18n("Section Level 2"),
0,
- m_DocTreeView, SLOT (slotNewSection_2()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewSection_2()), NULL );
newSection_3 = new KAction ( i18n("Section Level 3"),
0,
- m_DocTreeView, SLOT (slotNewSection_3()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewSection_3()), NULL );
newSection_4 = new KAction ( i18n("Section Level 4"),
0,
- m_DocTreeView, SLOT (slotNewSection_4()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewSection_4()), NULL );
newSection_5 = new KAction ( i18n("Section Level 5"),
0,
- m_DocTreeView, SLOT (slotNewSection_5()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewSection_5()), NULL );
}
@@ -237,7 +237,7 @@ KPopupMenu* ContextMenuHandler::getPopupMenu(ListViewInterface *item)
m_item = item;
- QString xmlID = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString xmlID = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( xmlID.isNull() )
return NULL;
@@ -268,7 +268,7 @@ void ContextMenuHandler::registerPopupMenu(ListViewInterface *item)
m_item = item;
- QString xmlID = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString xmlID = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( xmlID.isNull() )
return;
@@ -283,13 +283,13 @@ void ContextMenuHandler::registerPopupMenu(ListViewInterface *item)
}
-bool ContextMenuHandler::parseXmlFile(const QString &xmlID)
+bool ContextMenuHandler::parseXmlFile(const TQString &xmlID)
{
kdDebug(100200) << "ContextMenuHandler::parseXmlFile()" << endl;
kdDebug(100200) << "XML-File: " << m_XmlFilePath << endl;
- QFile xmlFile( m_XmlFilePath );
- QXmlSimpleReader parser;
+ TQFile xmlFile( m_XmlFilePath );
+ TQXmlSimpleReader parser;
ContextActionHandler handler(this);
handler.setSearchID(xmlID);
parser.setContentHandler( &handler );
@@ -297,7 +297,7 @@ bool ContextMenuHandler::parseXmlFile(const QString &xmlID)
}
-KAction* ContextMenuHandler::ActionFactory( const QString &actionName, const QString &qty )
+KAction* ContextMenuHandler::ActionFactory( const TQString &actionName, const TQString &qty )
{
bool enabled;
if ( qty.lower() == "n" ){
@@ -307,7 +307,7 @@ KAction* ContextMenuHandler::ActionFactory( const QString &actionName, const QSt
// check if qty is within allowed limits
ListViewInterface *i = static_cast<ListViewInterface*>(m_item->firstChild());
int count = 0;
- QString name = QString::null;
+ TQString name = TQString::null;
while (i){
name = ( i->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( name.lower() == actionName.lower() ){
@@ -391,7 +391,7 @@ void ContextMenuHandler::setItemEditable( bool editable )
}
-void ContextMenuHandler::setItemMaxlines( const QString &maxlines )
+void ContextMenuHandler::setItemMaxlines( const TQString &maxlines )
{
if ( maxlines == "" )
return;
diff --git a/ksayit/src/contextmenuhandler.h b/ksayit/src/contextmenuhandler.h
index 102181a..148bb04 100644
--- a/ksayit/src/contextmenuhandler.h
+++ b/ksayit/src/contextmenuhandler.h
@@ -13,9 +13,9 @@
#define CONTEXTMENUHANDLER_H
// Qt includes
-#include <qobject.h>
-#include <qstring.h>
-#include <qxml.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqxml.h>
// KDE includes
#include <kaction.h>
@@ -28,36 +28,36 @@ class ListViewInterface;
/**
@author Robert Vogl
*/
-class ContextActionHandler : public QXmlDefaultHandler
+class ContextActionHandler : public TQXmlDefaultHandler
{
public:
ContextActionHandler(ContextMenuHandler *menuhandler = 0);
~ContextActionHandler();
// Reimplementations from base class
- bool startElement( const QString &namespaceURI,
- const QString &localName,
- const QString &qName,
- const QXmlAttributes &atts );
+ bool startElement( const TQString &namespaceURI,
+ const TQString &localName,
+ const TQString &qName,
+ const TQXmlAttributes &atts );
// Reimplementations from base class
- bool endElement( const QString &namespaceURI,
- const QString &localName,
- const QString &qName );
+ bool endElement( const TQString &namespaceURI,
+ const TQString &localName,
+ const TQString &qName );
// Reimplementations from base class
- bool characters( const QString &ch );
+ bool characters( const TQString &ch );
- void setSearchID( const QString xmlID );
+ void setSearchID( const TQString xmlID );
private:
ContextMenuHandler *m_menuhandler;
- QString m_subName;
- QString m_actionName;
- QString m_qty;
+ TQString m_subName;
+ TQString m_actionName;
+ TQString m_qty;
KPopupMenu *m_popup;
bool m_hit;
- QString m_searchID;
+ TQString m_searchID;
};
@@ -68,7 +68,7 @@ class ContextMenuHandler : public QObject
{
Q_OBJECT
public:
- ContextMenuHandler(QObject *parent = 0, const char *name = 0);
+ ContextMenuHandler(TQObject *parent = 0, const char *name = 0);
~ContextMenuHandler();
@@ -94,7 +94,7 @@ public:
* given element.
* \returns A Pointer to the action.
*/
- KAction* ActionFactory( const QString &actionName, const QString &qty );
+ KAction* ActionFactory( const TQString &actionName, const TQString &qty );
/**
* Creates a Popup context menu for the given item and stores a
@@ -111,11 +111,11 @@ public:
* Sets the number of lines a editable item can hold.
* -1 = unlimited.
*/
- void setItemMaxlines( const QString &maxlines );
+ void setItemMaxlines( const TQString &maxlines );
private: // Methods
void initActions();
- bool parseXmlFile(const QString &xmlID);
+ bool parseXmlFile(const TQString &xmlID);
public: // Attributes
KPopupMenu* m_popupmenu;
@@ -143,9 +143,9 @@ private:
KAction* newSection_5;
// mixed stuff
- QString m_XmlFilePath;
+ TQString m_XmlFilePath;
ListViewInterface* m_item;
- QObject* m_DocTreeView;
+ TQObject* m_DocTreeView;
};
diff --git a/ksayit/src/docbookclasses.cpp b/ksayit/src/docbookclasses.cpp
index 7e5c677..9a3af1b 100644
--- a/ksayit/src/docbookclasses.cpp
+++ b/ksayit/src/docbookclasses.cpp
@@ -10,11 +10,11 @@
//
//
// Qt includes
-#include <qwidget.h>
-#include <qtextstream.h>
-#include <qpixmap.h>
-#include <qregexp.h>
-#include <qstringlist.h>
+#include <tqwidget.h>
+#include <tqtextstream.h>
+#include <tqpixmap.h>
+#include <tqregexp.h>
+#include <tqstringlist.h>
//KDE includes
#include <kdebug.h>
@@ -31,16 +31,16 @@
//////////////////////////////////////
// Interface
//////////////////////////////////////
-ListViewInterface::ListViewInterface(ListViewInterface *parent, QString label)
+ListViewInterface::ListViewInterface(ListViewInterface *parent, TQString label)
: KListViewItem( parent, label )
{
}
-ListViewInterface::ListViewInterface(ListViewInterface *parent, ListViewInterface *after, QString label) : KListViewItem( parent, after, label )
+ListViewInterface::ListViewInterface(ListViewInterface *parent, ListViewInterface *after, TQString label) : KListViewItem( parent, after, label )
{
}
-ListViewInterface::ListViewInterface(KListView *lv, QString label)
+ListViewInterface::ListViewInterface(KListView *lv, TQString label)
: KListViewItem( lv, label )
{
}
@@ -52,23 +52,23 @@ ListViewInterface::ListViewInterface(KListView *lv, QString label)
/**
* RobDocument
*/
-RobDocument::RobDocument(KListView *lv, QString label)
+RobDocument::RobDocument(KListView *lv, TQString label)
: ListViewInterface( lv, label )
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("contents", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("contents", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("RobDocument") ); // XmlContextName
+ m_valueList.append( TQString("RobDocument") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<H1><center>" + i18n("unnamed") + "</center></H1>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("unnamed") + "\n"); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -76,12 +76,12 @@ RobDocument::~RobDocument()
{
}
-bool RobDocument::setValue( unsigned int index, QVariant data )
+bool RobDocument::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -98,12 +98,12 @@ bool RobDocument::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant RobDocument::getValue( unsigned int index ) const
+TQVariant RobDocument::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -116,24 +116,24 @@ QVariant RobDocument::getValue( unsigned int index ) const
/**
* Overview
*/
-Overview::Overview(ListViewInterface *parent, ListViewInterface *after, QString label)
+Overview::Overview(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
this->setPixmap(0, pixmap);
this->setText(3, "0"); // upmost element
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("BookInfo") ); // XmlContextName
+ m_valueList.append( TQString("BookInfo") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<H1>" + i18n("Overview") + "</H1>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Overview") + "\n"); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -141,12 +141,12 @@ Overview::~Overview()
{
}
-bool Overview::setValue( unsigned int index, QVariant data )
+bool Overview::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -157,12 +157,12 @@ bool Overview::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Overview::getValue( unsigned int index ) const
+TQVariant Overview::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -171,24 +171,24 @@ QVariant Overview::getValue( unsigned int index ) const
/**
* Date
*/
-Date::Date(ListViewInterface *parent, ListViewInterface *after, QString label)
+Date::Date(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
this->setPixmap(0, pixmap);
this->setText(3, "00000001");
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Date") ); // XmlContextName
+ m_valueList.append( TQString("Date") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)1 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<B>" + i18n("Date") +": </B>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Date") + ": "); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -196,12 +196,12 @@ Date::~Date()
{
}
-bool Date::setValue( unsigned int index, QVariant data )
+bool Date::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -224,12 +224,12 @@ bool Date::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Date::getValue( unsigned int index ) const
+TQVariant Date::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -238,24 +238,24 @@ QVariant Date::getValue( unsigned int index ) const
/**
* ReleaseInfo
*/
-ReleaseInfo::ReleaseInfo(ListViewInterface *parent, ListViewInterface *after, QString label)
+ReleaseInfo::ReleaseInfo(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
this->setPixmap(0, pixmap);
this->setText(3, "00000002");
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("ReleaseInfo") ); // XmlContextName
+ m_valueList.append( TQString("ReleaseInfo") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)1 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<B>" + i18n("Release") + ": </B>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Release") + ": "); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -263,12 +263,12 @@ ReleaseInfo::~ReleaseInfo()
{
}
-bool ReleaseInfo::setValue( unsigned int index, QVariant data )
+bool ReleaseInfo::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -291,12 +291,12 @@ bool ReleaseInfo::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant ReleaseInfo::getValue( unsigned int index ) const
+TQVariant ReleaseInfo::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -305,24 +305,24 @@ QVariant ReleaseInfo::getValue( unsigned int index ) const
/**
* Authorgroup
*/
-AuthorGroup::AuthorGroup(ListViewInterface *parent, ListViewInterface *after, QString label)
+AuthorGroup::AuthorGroup(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("kdmconfig", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("kdmconfig", KIcon::Small);
this->setPixmap(0, pixmap);
this->setText(3, "00000003");
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("AuthorGroup") ); // XmlContextName
+ m_valueList.append( TQString("AuthorGroup") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<H2>" + i18n("Author(s)")+ "</H2>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Author(s)") + "\n"); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -330,12 +330,12 @@ AuthorGroup::~AuthorGroup()
{
}
-bool AuthorGroup::setValue( unsigned int index, QVariant data )
+bool AuthorGroup::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -346,12 +346,12 @@ bool AuthorGroup::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant AuthorGroup::getValue( unsigned int index ) const
+TQVariant AuthorGroup::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -361,23 +361,23 @@ QVariant AuthorGroup::getValue( unsigned int index ) const
/**
* Author
*/
-Author::Author(ListViewInterface *parent, ListViewInterface *after, QString label)
+Author::Author(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("personal", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("personal", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Author") ); // XmlContextName
+ m_valueList.append( TQString("Author") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)1 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<B>" + i18n("Author") + ": </B>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Author") + ": "); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -385,16 +385,16 @@ Author::~Author()
{
}
-// void Author::setData(const QString &data, QDomDocument &)
+// void Author::setData(const TQString &data, TQDomDocument &)
// {
// // canonify string
-// QString m_data = data;
-// m_data.replace( QRegExp("\n"), "" ); // remove Newlines
-// m_data.replace( QRegExp(" {2,}"), " " ); // remove multiple spaces
-// m_data.replace( QRegExp("[\t|\r]{1,}"), ""); // remove Tabs
+// TQString m_data = data;
+// m_data.replace( TQRegExp("\n"), "" ); // remove Newlines
+// m_data.replace( TQRegExp(" {2,}"), " " ); // remove multiple spaces
+// m_data.replace( TQRegExp("[\t|\r]{1,}"), ""); // remove Tabs
// // split string "firstname surname"
-// QString firstname = m_data.section(' ', 0, 0);
-// QString surname = m_data.section(' ', 1, 1);
+// TQString firstname = m_data.section(' ', 0, 0);
+// TQString surname = m_data.section(' ', 1, 1);
// // update node elements
// m_node1.setNodeValue(firstname);
// m_node2.setNodeValue(surname);
@@ -402,12 +402,12 @@ Author::~Author()
// this->setText(1, firstname + " " + surname);
// }
-bool Author::setValue( unsigned int index, QVariant data )
+bool Author::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -431,12 +431,12 @@ bool Author::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Author::getValue( unsigned int index ) const
+TQVariant Author::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -445,24 +445,24 @@ QVariant Author::getValue( unsigned int index ) const
/**
* KeywordSet
*/
-KeywordSet::KeywordSet(ListViewInterface *parent, ListViewInterface *after, QString label)
+KeywordSet::KeywordSet(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("txt", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("txt", KIcon::Small);
this->setPixmap(0, pixmap);
this->setText(3, "00000004");
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("KeywordSet") ); // XmlContextName
+ m_valueList.append( TQString("KeywordSet") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<H2>" + i18n("Keywords") + "</H2>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Keywords") + "\n"); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -470,12 +470,12 @@ KeywordSet::~KeywordSet()
{
}
-bool KeywordSet::setValue( unsigned int index, QVariant data )
+bool KeywordSet::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -486,12 +486,12 @@ bool KeywordSet::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant KeywordSet::getValue( unsigned int index ) const
+TQVariant KeywordSet::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -500,20 +500,20 @@ QVariant KeywordSet::getValue( unsigned int index ) const
/**
* Keyword
*/
-Keyword::Keyword(ListViewInterface *parent, ListViewInterface *after, QString label)
+Keyword::Keyword(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Keyword") ); // XmlContextName
+ m_valueList.append( TQString("Keyword") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (bool)1 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
- m_valueList.append(QString::null); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
+ m_valueList.append(TQString::null); // SpeakerHeader
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -521,12 +521,12 @@ Keyword::~Keyword()
{
}
-bool Keyword::setValue( unsigned int index, QVariant data )
+bool Keyword::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -550,12 +550,12 @@ bool Keyword::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Keyword::getValue( unsigned int index ) const
+TQVariant Keyword::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -566,24 +566,24 @@ QVariant Keyword::getValue( unsigned int index ) const
/**
* Abstract
*/
-Abstract::Abstract(ListViewInterface *parent, ListViewInterface *after, QString label)
+Abstract::Abstract(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
this->setPixmap(0, pixmap);
this->setText(3, "00000005");
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Abstract") ); // XmlContextName
+ m_valueList.append( TQString("Abstract") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<H2>" + i18n("Abstract") + "</H2>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Abstract") + "\n"); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -591,12 +591,12 @@ Abstract::~Abstract()
{
}
-bool Abstract::setValue( unsigned int index, QVariant data )
+bool Abstract::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -607,12 +607,12 @@ bool Abstract::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Abstract::getValue( unsigned int index ) const
+TQVariant Abstract::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -622,23 +622,23 @@ QVariant Abstract::getValue( unsigned int index ) const
/**
* Para
*/
-Para::Para(ListViewInterface *parent, ListViewInterface *after, QString label)
+Para::Para(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Para") ); // XmlContextName
+ m_valueList.append( TQString("Para") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)-1 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Paragraph") + "\n"); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -646,13 +646,13 @@ Para::~Para()
{
}
-bool Para::setValue( unsigned int index, QVariant data )
+bool Para::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
- QString sData = QString::null;
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
+ TQString sData = TQString::null;
ParaSaxParser *p = ParaSaxParser::Instance();
switch (index){
case KSayItGlobal::ISEDITABLE:
@@ -681,12 +681,12 @@ bool Para::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Para::getValue( unsigned int index ) const
+TQVariant Para::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -696,23 +696,23 @@ QVariant Para::getValue( unsigned int index ) const
/**
* Chapter
*/
-Chapter::Chapter(ListViewInterface *parent, ListViewInterface *after, QString label)
+Chapter::Chapter(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Chapter") ); // XmlContextName
+ m_valueList.append( TQString("Chapter") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
- m_valueList.append(QString::null); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
+ m_valueList.append(TQString::null); // SpeakerHeader
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -720,12 +720,12 @@ Chapter::~Chapter()
{
}
-bool Chapter::setValue( unsigned int index, QVariant data )
+bool Chapter::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -742,12 +742,12 @@ bool Chapter::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Chapter::getValue( unsigned int index ) const
+TQVariant Chapter::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -757,23 +757,23 @@ QVariant Chapter::getValue( unsigned int index ) const
/**
* Sect1
*/
-Sect1::Sect1(ListViewInterface *parent, ListViewInterface *after, QString label)
+Sect1::Sect1(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Sect1") ); // XmlContextName
+ m_valueList.append( TQString("Sect1") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
- m_valueList.append(QString::null); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
+ m_valueList.append(TQString::null); // SpeakerHeader
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -781,12 +781,12 @@ Sect1::~Sect1()
{
}
-bool Sect1::setValue( unsigned int index, QVariant data )
+bool Sect1::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -803,12 +803,12 @@ bool Sect1::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Sect1::getValue( unsigned int index ) const
+TQVariant Sect1::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -817,23 +817,23 @@ QVariant Sect1::getValue( unsigned int index ) const
/**
* Sect2
*/
-Sect2::Sect2(ListViewInterface *parent, ListViewInterface *after, QString label)
+Sect2::Sect2(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Sect2") ); // XmlContextName
+ m_valueList.append( TQString("Sect2") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
- m_valueList.append(QString::null); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
+ m_valueList.append(TQString::null); // SpeakerHeader
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -841,12 +841,12 @@ Sect2::~Sect2()
{
}
-bool Sect2::setValue( unsigned int index, QVariant data )
+bool Sect2::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -863,12 +863,12 @@ bool Sect2::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Sect2::getValue( unsigned int index ) const
+TQVariant Sect2::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -877,23 +877,23 @@ QVariant Sect2::getValue( unsigned int index ) const
/**
* Sect3
*/
-Sect3::Sect3(ListViewInterface *parent, ListViewInterface *after, QString label)
+Sect3::Sect3(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Sect3") ); // XmlContextName
+ m_valueList.append( TQString("Sect3") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
- m_valueList.append(QString::null); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
+ m_valueList.append(TQString::null); // SpeakerHeader
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -901,12 +901,12 @@ Sect3::~Sect3()
{
}
-bool Sect3::setValue( unsigned int index, QVariant data )
+bool Sect3::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -923,12 +923,12 @@ bool Sect3::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Sect3::getValue( unsigned int index ) const
+TQVariant Sect3::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -937,23 +937,23 @@ QVariant Sect3::getValue( unsigned int index ) const
/**
* Sect4
*/
-Sect4::Sect4(ListViewInterface *parent, ListViewInterface *after, QString label)
+Sect4::Sect4(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Sect4") ); // XmlContextName
+ m_valueList.append( TQString("Sect4") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
- m_valueList.append(QString::null); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
+ m_valueList.append(TQString::null); // SpeakerHeader
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -961,12 +961,12 @@ Sect4::~Sect4()
{
}
-bool Sect4::setValue( unsigned int index, QVariant data )
+bool Sect4::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -983,12 +983,12 @@ bool Sect4::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Sect4::getValue( unsigned int index ) const
+TQVariant Sect4::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -997,23 +997,23 @@ QVariant Sect4::getValue( unsigned int index ) const
/**
* Sect5
*/
-Sect5::Sect5(ListViewInterface *parent, ListViewInterface *after, QString label)
+Sect5::Sect5(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Sect5") ); // XmlContextName
+ m_valueList.append( TQString("Sect5") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
- m_valueList.append(QString::null); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
+ m_valueList.append(TQString::null); // SpeakerHeader
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -1021,12 +1021,12 @@ Sect5::~Sect5()
{
}
-bool Sect5::setValue( unsigned int index, QVariant data )
+bool Sect5::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -1043,12 +1043,12 @@ bool Sect5::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Sect5::getValue( unsigned int index ) const
+TQVariant Sect5::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
diff --git a/ksayit/src/docbookclasses.h b/ksayit/src/docbookclasses.h
index a7f84af..30da84c 100644
--- a/ksayit/src/docbookclasses.h
+++ b/ksayit/src/docbookclasses.h
@@ -13,10 +13,10 @@
#define DOCBOOKCLASSES_H
// Qt includes
-#include <qstring.h>
+#include <tqstring.h>
-#include <qvariant.h>
-#include <qvaluelist.h>
+#include <tqvariant.h>
+#include <tqvaluelist.h>
// KDE includes
#include <klistview.h>
@@ -32,7 +32,7 @@ class QStringList;
//
/**
Represents the root item of the document, therefore it expects
- a \p QListView object as parent.\n
+ a \p TQListView object as parent.\n
Structural item only (no references to a DOM node).
@author Robert Vogl
*/
@@ -45,14 +45,14 @@ public:
* \param label The label is shown in column 0 of the TreeView and is also
* used as bookmark title.
*/
- RobDocument(KListView *lv=0, QString label=QString::null);
+ RobDocument(KListView *lv=0, TQString label=TQString::null);
~RobDocument();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -67,14 +67,14 @@ private:
class Overview : public ListViewInterface
{
public:
- Overview(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Overview(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Overview();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -85,15 +85,15 @@ private:
class Date : public ListViewInterface
{
public:
- Date(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Date(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Date();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
// Pointer to the associated Data
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -104,15 +104,15 @@ private:
class ReleaseInfo : public ListViewInterface
{
public:
- ReleaseInfo(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ ReleaseInfo(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~ReleaseInfo();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
// Pointer to the associated Data
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -124,14 +124,14 @@ private:
class AuthorGroup : public ListViewInterface
{
public:
- AuthorGroup(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ AuthorGroup(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~AuthorGroup();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -143,14 +143,14 @@ private:
class Author : public ListViewInterface
{
public:
- Author(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Author(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Author();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -162,14 +162,14 @@ private:
class KeywordSet : public ListViewInterface
{
public:
- KeywordSet(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ KeywordSet(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~KeywordSet();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -180,14 +180,14 @@ private:
class Keyword : public ListViewInterface
{
public:
- Keyword(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Keyword(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Keyword();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -199,14 +199,14 @@ private:
class Abstract : public ListViewInterface
{
public:
- Abstract(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Abstract(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Abstract();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -217,14 +217,14 @@ private:
class Para : public ListViewInterface
{
public:
- Para(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Para(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Para();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -236,14 +236,14 @@ private:
class Chapter : public ListViewInterface
{
public:
- Chapter(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Chapter(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Chapter();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -255,14 +255,14 @@ private:
class Sect1 : public ListViewInterface
{
public:
- Sect1(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Sect1(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Sect1();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -274,14 +274,14 @@ private:
class Sect2 : public ListViewInterface
{
public:
- Sect2(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Sect2(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Sect2();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -293,14 +293,14 @@ private:
class Sect3 : public ListViewInterface
{
public:
- Sect3(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Sect3(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Sect3();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -312,14 +312,14 @@ private:
class Sect4 : public ListViewInterface
{
public:
- Sect4(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Sect4(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Sect4();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -331,14 +331,14 @@ private:
class Sect5 : public ListViewInterface
{
public:
- Sect5(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Sect5(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Sect5();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
#endif
diff --git a/ksayit/src/docbookgenerator.cpp b/ksayit/src/docbookgenerator.cpp
index 1d6db9c..4b792b2 100644
--- a/ksayit/src/docbookgenerator.cpp
+++ b/ksayit/src/docbookgenerator.cpp
@@ -11,8 +11,8 @@
//
// Qt includes
-#include <qstring.h>
-#include <qvariant.h>
+#include <tqstring.h>
+#include <tqvariant.h>
//KDE includes
#include <kdebug.h>
@@ -33,11 +33,11 @@ DocbookGenerator::~DocbookGenerator()
}
-void DocbookGenerator::writeBook(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeBook(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeBook()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "RobDocument" )
return;
@@ -46,7 +46,7 @@ void DocbookGenerator::writeBook(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "BookInfo" ){
@@ -61,11 +61,11 @@ void DocbookGenerator::writeBook(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeBookInfo(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeBookInfo(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeBookInfo()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "BookInfo" )
return;
@@ -75,7 +75,7 @@ void DocbookGenerator::writeBookInfo(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "KeywordSet" ){
@@ -97,18 +97,18 @@ void DocbookGenerator::writeBookInfo(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeTitleOfBook(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeTitleOfBook(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeTitle()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "BookInfo" )
return;
// Documents title is stored in root element (parent of BookInfo)
ListViewInterface *parent = static_cast<ListViewInterface*>(item->parent());
if ( parent ){
- QString title = parent->text(0);
+ TQString title = parent->text(0);
// add node to document
doc << "<Title>" << title << "</Title>" << endl;
@@ -116,11 +116,11 @@ void DocbookGenerator::writeTitleOfBook(QTextStream &doc, ListViewInterface *ite
}
-void DocbookGenerator::writeAuthorGroup(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeAuthorGroup(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeAuthorGroup()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "AuthorGroup" )
return;
@@ -129,7 +129,7 @@ void DocbookGenerator::writeAuthorGroup(QTextStream &doc, ListViewInterface *ite
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "Author" ){
@@ -143,15 +143,15 @@ void DocbookGenerator::writeAuthorGroup(QTextStream &doc, ListViewInterface *ite
}
-void DocbookGenerator::writeAuthor(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeAuthor(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeAuthor()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Author" )
return;
- QString author = QString::null;
+ TQString author = TQString::null;
author = ( item->getValue(KSayItGlobal::RAWDATA) ).toString();
// add node to document
@@ -165,41 +165,41 @@ void DocbookGenerator::writeAuthor(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeDate(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeDate(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeDate()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Date" )
return;
- QString date = item->text(1);
+ TQString date = item->text(1);
// add node to document
doc << "<Date>" << date << "</Date>" << endl;
}
-void DocbookGenerator::writeReleaseInfo(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeReleaseInfo(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeReleaseInfo()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "ReleaseInfo" )
return;
- QString releaseinfo = item->text(1);
+ TQString releaseinfo = item->text(1);
// add node to document
doc << "<ReleaseInfo>" << releaseinfo << "</ReleaseInfo>" << endl;
}
-void DocbookGenerator::writeKeywordSet(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeKeywordSet(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeKeywordSet()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "KeywordSet" )
return;
@@ -208,7 +208,7 @@ void DocbookGenerator::writeKeywordSet(QTextStream &doc, ListViewInterface *item
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = ( i->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( itemType == "Keyword" ){
@@ -222,16 +222,16 @@ void DocbookGenerator::writeKeywordSet(QTextStream &doc, ListViewInterface *item
}
-void DocbookGenerator::writeKeyword(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeKeyword(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeKeyword()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Keyword" )
return;
- // QString keyword = item->text( 0 );
- QString keyword = QString::null;
+ // TQString keyword = item->text( 0 );
+ TQString keyword = TQString::null;
keyword = (item->getValue(3)).toString();
// add node to document
@@ -242,11 +242,11 @@ void DocbookGenerator::writeKeyword(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeAbstract(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeAbstract(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeAbstract()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Abstract" )
return;
@@ -255,7 +255,7 @@ void DocbookGenerator::writeAbstract(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "Para" ){
@@ -269,15 +269,15 @@ void DocbookGenerator::writeAbstract(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeChapter( QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeChapter( TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeChapter()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Chapter" )
return;
- QString title = item->text(0);
+ TQString title = item->text(0);
// add node to document
doc << "<Chapter>" << endl;
@@ -285,7 +285,7 @@ void DocbookGenerator::writeChapter( QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "Para" ){
@@ -301,15 +301,15 @@ void DocbookGenerator::writeChapter( QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeSect1(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeSect1(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeSect1()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Sect1" )
return;
- QString title = item->text(0);
+ TQString title = item->text(0);
// add node to document
doc << "<Sect1>" << endl;
@@ -317,7 +317,7 @@ void DocbookGenerator::writeSect1(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "Para" ){
@@ -333,15 +333,15 @@ void DocbookGenerator::writeSect1(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeSect2(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeSect2(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeSect1()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Sect2" )
return;
- QString title = item->text(0);
+ TQString title = item->text(0);
// add node to document
doc << "<Sect2>" << endl;
@@ -349,7 +349,7 @@ void DocbookGenerator::writeSect2(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = ( i->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( itemType == "Para" ){
@@ -365,15 +365,15 @@ void DocbookGenerator::writeSect2(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeSect3(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeSect3(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeSect3()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Sect3" )
return;
- QString title = item->text(0);
+ TQString title = item->text(0);
// add node to document
doc << "<Sect3>" << endl;
@@ -381,7 +381,7 @@ void DocbookGenerator::writeSect3(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "Para" ){
@@ -397,15 +397,15 @@ void DocbookGenerator::writeSect3(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeSect4(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeSect4(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeSect4()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Sect4" )
return;
- QString title = item->text(0);
+ TQString title = item->text(0);
// add node to document
doc << "<Sect4>" << endl;
@@ -413,7 +413,7 @@ void DocbookGenerator::writeSect4(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "Para" ){
@@ -429,15 +429,15 @@ void DocbookGenerator::writeSect4(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeSect5(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeSect5(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeSect5()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Sect5" )
return;
- QString title = item->text(0);
+ TQString title = item->text(0);
// add node to document
doc << "<Sect5>" << endl;
@@ -445,7 +445,7 @@ void DocbookGenerator::writeSect5(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "Para" ){
@@ -459,15 +459,15 @@ void DocbookGenerator::writeSect5(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writePara(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writePara(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writePara()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Para" )
return;
- QString data = ( item->getValue(KSayItGlobal::RAWDATA) ).toString();
+ TQString data = ( item->getValue(KSayItGlobal::RAWDATA) ).toString();
// add node to document
doc << "<Para>" << endl;
diff --git a/ksayit/src/docbookgenerator.h b/ksayit/src/docbookgenerator.h
index 80f526b..b5fb251 100644
--- a/ksayit/src/docbookgenerator.h
+++ b/ksayit/src/docbookgenerator.h
@@ -13,7 +13,7 @@
#define DOCBOOKGENERATOR_H
// Qt includes
-#include <qtextstream.h>
+#include <tqtextstream.h>
// KDE includes
@@ -36,26 +36,26 @@ public:
* \param item A pointer to the root item of the tree. Must be of type
* \p RobDocument.
*/
- void writeBook(QTextStream &doc, ListViewInterface *item);
+ void writeBook(TQTextStream &doc, ListViewInterface *item);
private:
- void writeBookInfo(QTextStream &doc, ListViewInterface *item);
- void writeTitleOfBook(QTextStream &doc, ListViewInterface *item);
- void writeChapter(QTextStream &doc, ListViewInterface *item);
- void writeKeywordSet(QTextStream &doc, ListViewInterface *item);
- void writeKeyword(QTextStream &doc, ListViewInterface *item);
- void writeAbstract(QTextStream &doc, ListViewInterface *item);
- void writePara(QTextStream &doc, ListViewInterface *item);
- void writeAuthorGroup(QTextStream &doc, ListViewInterface *item);
- void writeAuthor(QTextStream &doc, ListViewInterface *item);
- void writeDate(QTextStream &doc, ListViewInterface *item);
- void writeReleaseInfo(QTextStream &doc, ListViewInterface *item);
- void writeSect1(QTextStream &doc, ListViewInterface *item);
- void writeSect2(QTextStream &doc, ListViewInterface *item);
- void writeSect3(QTextStream &doc, ListViewInterface *item);
- void writeSect4(QTextStream &doc, ListViewInterface *item);
- void writeSect5(QTextStream &doc, ListViewInterface *item);
+ void writeBookInfo(TQTextStream &doc, ListViewInterface *item);
+ void writeTitleOfBook(TQTextStream &doc, ListViewInterface *item);
+ void writeChapter(TQTextStream &doc, ListViewInterface *item);
+ void writeKeywordSet(TQTextStream &doc, ListViewInterface *item);
+ void writeKeyword(TQTextStream &doc, ListViewInterface *item);
+ void writeAbstract(TQTextStream &doc, ListViewInterface *item);
+ void writePara(TQTextStream &doc, ListViewInterface *item);
+ void writeAuthorGroup(TQTextStream &doc, ListViewInterface *item);
+ void writeAuthor(TQTextStream &doc, ListViewInterface *item);
+ void writeDate(TQTextStream &doc, ListViewInterface *item);
+ void writeReleaseInfo(TQTextStream &doc, ListViewInterface *item);
+ void writeSect1(TQTextStream &doc, ListViewInterface *item);
+ void writeSect2(TQTextStream &doc, ListViewInterface *item);
+ void writeSect3(TQTextStream &doc, ListViewInterface *item);
+ void writeSect4(TQTextStream &doc, ListViewInterface *item);
+ void writeSect5(TQTextStream &doc, ListViewInterface *item);
diff --git a/ksayit/src/docbookparser.cpp b/ksayit/src/docbookparser.cpp
index 03b9f73..679a44b 100644
--- a/ksayit/src/docbookparser.cpp
+++ b/ksayit/src/docbookparser.cpp
@@ -11,9 +11,9 @@
//
// Qt includes
-#include <qregexp.h>
-#include <qstring.h>
-#include <qtextstream.h>
+#include <tqregexp.h>
+#include <tqstring.h>
+#include <tqtextstream.h>
//KDE includes
#include <kdebug.h>
@@ -36,13 +36,13 @@ DocbookParser::~DocbookParser()
}
-QString DocbookParser::node2raw(QDomNode node) const
+TQString DocbookParser::node2raw(TQDomNode node) const
{
- QString ret;
+ TQString ret;
// get content of element
- QTextStream in(ret, IO_WriteOnly);
- in.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream in(ret, IO_WriteOnly);
+ in.setEncoding(TQTextStream::UnicodeUTF8);
in << node;
return ret;
@@ -55,17 +55,17 @@ QString DocbookParser::node2raw(QDomNode node) const
//
// DocBook parser
//
-void DocbookParser::parseBook(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseBook(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseBook()" << endl;
- item->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ item->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( item );
// TODO: Attributes Id, Lang
// Elements (parse BookInfo before Chapter)
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="bookinfo" ){
parseBookInfo( node.toElement(), item );
@@ -84,17 +84,17 @@ void DocbookParser::parseBook(const QDomElement &element, ListViewInterface *ite
}
-void DocbookParser::parseBookInfo(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseBookInfo(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseBookInfo()" << endl;
Overview *overview = new Overview(item, NULL, i18n("Overview"));
- overview->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ overview->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( overview );
- QDomText data;
- QDomNode node = element.firstChild();
+ TQDomText data;
+ TQDomNode node = element.firstChild();
// fixed order
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="title" ){
@@ -122,7 +122,7 @@ void DocbookParser::parseBookInfo(const QDomElement &element, ListViewInterface
data = node.firstChild().toText();
if( !data.isNull() ){
Date *date = new Date(overview, NULL, i18n("Date"));
- date->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ date->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
date->setText( 1, data.nodeValue() );
date->setValue(KSayItGlobal::RTFDATA, data.nodeValue());
date->setValue(KSayItGlobal::SPEAKERDATA, data.nodeValue());
@@ -140,7 +140,7 @@ void DocbookParser::parseBookInfo(const QDomElement &element, ListViewInterface
data = node.firstChild().toText();
if( !data.isNull() ){
ReleaseInfo *relinfo = new ReleaseInfo(overview, NULL, i18n("Release"));
- relinfo->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ relinfo->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
relinfo->setText( 1, data.nodeValue() );
relinfo->setValue(KSayItGlobal::RTFDATA, data.nodeValue());
relinfo->setValue(KSayItGlobal::SPEAKERDATA, data.nodeValue());
@@ -170,17 +170,17 @@ void DocbookParser::parseBookInfo(const QDomElement &element, ListViewInterface
}
-void DocbookParser::parseAuthorGroup(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseAuthorGroup(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseAuthorGroup()" << endl;
// item = overview
AuthorGroup *authorgroup = new AuthorGroup(item, NULL, i18n("Author(s)"));
- authorgroup->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ authorgroup->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( authorgroup );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="author" ){
parseAuthor( node.toElement(), authorgroup );
@@ -191,21 +191,21 @@ void DocbookParser::parseAuthorGroup(const QDomElement &element, ListViewInterfa
}
-void DocbookParser::parseAuthor(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseAuthor(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseAuthor()" << endl;
// item = authorgroup
- QDomText data;
- QDomText firstname = QDomText();
- QDomText surname = QDomText();
- QString s_firstname = QString::null;
- QString s_surname = QString::null;
+ TQDomText data;
+ TQDomText firstname = TQDomText();
+ TQDomText surname = TQDomText();
+ TQString s_firstname = TQString::null;
+ TQString s_surname = TQString::null;
Author *author = new Author(item);
- author->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ author->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="firstname" ){
data = node.firstChild().toText();
@@ -235,24 +235,24 @@ void DocbookParser::parseAuthor(const QDomElement &element, ListViewInterface *i
}
-void DocbookParser::parseKeywordSet(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseKeywordSet(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseKeywordSet()" << endl;
// item = overview
KeywordSet *keywordset = new KeywordSet(item, NULL, i18n("Keywords"));
- keywordset->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ keywordset->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( keywordset );
- QDomText data;
- QDomNode node = element.firstChild();
+ TQDomText data;
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="keyword" ){
data = node.firstChild().toText();
if( !data.isNull() ){
Keyword *keyword = new Keyword(keywordset);
- keyword->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ keyword->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
keyword->setText(0, data.nodeValue() );
keyword->setValue(KSayItGlobal::RTFDATA, data.nodeValue() );
keyword->setValue(KSayItGlobal::SPEAKERDATA, data.nodeValue() );
@@ -268,18 +268,18 @@ void DocbookParser::parseKeywordSet(const QDomElement &element, ListViewInterfac
}
-void DocbookParser::parseAbstract(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseAbstract(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseAbstract()" << endl;
// item = overview
- QDomText data;
+ TQDomText data;
Abstract *abstract = new Abstract(item, NULL, i18n("Abstract"));
- abstract->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ abstract->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( abstract );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="para" ){
parsePara( node.toElement(), abstract );
@@ -290,17 +290,17 @@ void DocbookParser::parseAbstract(const QDomElement &element, ListViewInterface
}
-void DocbookParser::parseChapter(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseChapter(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseChapter()" << endl;
- QDomText data;
+ TQDomText data;
Chapter *chapter = new Chapter(item, NULL, i18n("Chapter"));
- chapter->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ chapter->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( chapter );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="title" ){
data = node.firstChild().toText();
@@ -320,17 +320,17 @@ void DocbookParser::parseChapter(const QDomElement &element, ListViewInterface *
}
-void DocbookParser::parseSect1(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseSect1(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseSect1()" << endl;
- QDomText data;
+ TQDomText data;
Sect1 *sect1 = new Sect1(item, NULL, i18n("Section Level 1"));
- sect1->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ sect1->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( sect1 );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="title" ){
data = node.firstChild().toText();
@@ -350,17 +350,17 @@ void DocbookParser::parseSect1(const QDomElement &element, ListViewInterface *it
}
-void DocbookParser::parseSect2(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseSect2(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseSect2()" << endl;
- QDomText data;
+ TQDomText data;
Sect2 *sect2 = new Sect2(item, NULL, i18n("Section Level 2"));
- sect2->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ sect2->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( sect2 );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="title" ){
data = node.firstChild().toText();
@@ -380,17 +380,17 @@ void DocbookParser::parseSect2(const QDomElement &element, ListViewInterface *it
}
-void DocbookParser::parseSect3(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseSect3(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseSect3()" << endl;
- QDomText data;
+ TQDomText data;
Sect3 *sect3 = new Sect3(item, NULL, i18n("Section Level 3"));
- sect3->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ sect3->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( sect3 );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="title" ){
data = node.firstChild().toText();
@@ -410,17 +410,17 @@ void DocbookParser::parseSect3(const QDomElement &element, ListViewInterface *it
}
-void DocbookParser::parseSect4(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseSect4(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseSect4()" << endl;
- QDomText data;
+ TQDomText data;
Sect4 *sect4 = new Sect4(item, NULL, i18n("Section Level 4"));
- sect4->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ sect4->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( sect4 );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="title" ){
data = node.firstChild().toText();
@@ -440,17 +440,17 @@ void DocbookParser::parseSect4(const QDomElement &element, ListViewInterface *it
}
-void DocbookParser::parseSect5(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseSect5(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseSect5()" << endl;
- QDomText data;
+ TQDomText data;
Sect5 *sect5 = new Sect5(item, NULL, i18n("Section Level 4"));
- sect5->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ sect5->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( sect5 );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="title" ){
data = node.firstChild().toText();
@@ -468,20 +468,20 @@ void DocbookParser::parseSect5(const QDomElement &element, ListViewInterface *it
}
-void DocbookParser::parsePara(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parsePara(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parsePara()" << endl;
Para *para = new Para(item, NULL, i18n("Paragraph"));
- para->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ para->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( para );
- QString raw = node2raw(element);
+ TQString raw = node2raw(element);
// remove <para> tags
- raw.replace( QRegExp("</?(para|Para|PARA)/?>"),"");
- raw.replace( QRegExp("^ "),"" );
- raw.replace( QRegExp("^\n"), "" );
+ raw.replace( TQRegExp("</?(para|Para|PARA)/?>"),"");
+ raw.replace( TQRegExp("^ "),"" );
+ raw.replace( TQRegExp("^\n"), "" );
para->setValue(KSayItGlobal::RAWDATA, raw);
para->setValue(KSayItGlobal::RTFDATA, raw);
diff --git a/ksayit/src/docbookparser.h b/ksayit/src/docbookparser.h
index e603e93..5c84e30 100644
--- a/ksayit/src/docbookparser.h
+++ b/ksayit/src/docbookparser.h
@@ -13,7 +13,7 @@
#define DOCBOOKPARSER_H
// Qt includes
-#include <qdom.h>
+#include <tqdom.h>
// KDE includes
@@ -31,27 +31,27 @@ public:
// Destructor
~DocbookParser();
- void parseBook(const QDomElement &element, ListViewInterface *item);
+ void parseBook(const TQDomElement &element, ListViewInterface *item);
int getIdCounter(){ return m_idCounter; };
private: // Methods
// a selection of DocBook elements
- void parseBookInfo(const QDomElement &element, ListViewInterface *item);
- void parseAuthorGroup(const QDomElement &element, ListViewInterface *item);
- void parseAuthor(const QDomElement &element, ListViewInterface *item);
- void parseKeywordSet(const QDomElement &element, ListViewInterface *item);
- void parseAbstract(const QDomElement &element, ListViewInterface *item);
- void parseChapter(const QDomElement &element, ListViewInterface *item);
- void parseSect1(const QDomElement &element, ListViewInterface *item);
- void parseSect2(const QDomElement &element, ListViewInterface *item);
- void parseSect3(const QDomElement &element, ListViewInterface *item);
- void parseSect4(const QDomElement &element, ListViewInterface *item);
- void parseSect5(const QDomElement &element, ListViewInterface *item);
- void parsePara(const QDomElement &element, ListViewInterface *item);
+ void parseBookInfo(const TQDomElement &element, ListViewInterface *item);
+ void parseAuthorGroup(const TQDomElement &element, ListViewInterface *item);
+ void parseAuthor(const TQDomElement &element, ListViewInterface *item);
+ void parseKeywordSet(const TQDomElement &element, ListViewInterface *item);
+ void parseAbstract(const TQDomElement &element, ListViewInterface *item);
+ void parseChapter(const TQDomElement &element, ListViewInterface *item);
+ void parseSect1(const TQDomElement &element, ListViewInterface *item);
+ void parseSect2(const TQDomElement &element, ListViewInterface *item);
+ void parseSect3(const TQDomElement &element, ListViewInterface *item);
+ void parseSect4(const TQDomElement &element, ListViewInterface *item);
+ void parseSect5(const TQDomElement &element, ListViewInterface *item);
+ void parsePara(const TQDomElement &element, ListViewInterface *item);
// Helpers
- QString node2raw(QDomNode node) const;
+ TQString node2raw(TQDomNode node) const;
private: // Attributes
ContextMenuHandler *m_contextmenuhandler;
diff --git a/ksayit/src/doctreeviewimpl.cpp b/ksayit/src/doctreeviewimpl.cpp
index 663933b..11e22ce 100644
--- a/ksayit/src/doctreeviewimpl.cpp
+++ b/ksayit/src/doctreeviewimpl.cpp
@@ -12,14 +12,14 @@
#include <stdlib.h> // getenv
// Qt includes
-#include <qdom.h>
-#include <qfile.h>
-#include <qwidget.h>
-#include <qtextstream.h>
-#include <qregexp.h>
-#include <qdatetime.h>
-#include <qcolor.h>
-#include <qlistview.h>
+#include <tqdom.h>
+#include <tqfile.h>
+#include <tqwidget.h>
+#include <tqtextstream.h>
+#include <tqregexp.h>
+#include <tqdatetime.h>
+#include <tqcolor.h>
+#include <tqlistview.h>
//KDE includes
#include <kdebug.h>
@@ -41,7 +41,7 @@
//////////////////////////////////////
// TreeView Implementation
//////////////////////////////////////
-DocTreeViewImpl::DocTreeViewImpl(QWidget* parent, const char* name, WFlags fl)
+DocTreeViewImpl::DocTreeViewImpl(TQWidget* parent, const char* name, WFlags fl)
: DocTreeView(parent, name, fl)
{
m_rootItem = NULL;
@@ -58,7 +58,7 @@ DocTreeViewImpl::DocTreeViewImpl(QWidget* parent, const char* name, WFlags fl)
listView->setColumnWidthMode(2, KListView::Maximum );
listView->setColumnWidthMode(3, KListView::Manual );
listView->setColumnWidth(3, 0);
- listView->setAlternateBackground( QColor(230, 230, 240) );
+ listView->setAlternateBackground( TQColor(230, 230, 240) );
listView->setSelectionModeExt( KListView::Single );
m_idCounter = KSayItGlobal::item_initial_id;
@@ -66,7 +66,7 @@ DocTreeViewImpl::DocTreeViewImpl(QWidget* parent, const char* name, WFlags fl)
m_currentItem = m_rootItem;
m_parasaxparser = ParaSaxParser::Instance();
m_editMode = false;
- m_changedContent = QString::null;
+ m_changedContent = TQString::null;
m_contextmenuhandler = NULL;
m_contextmenu = NULL;
@@ -105,7 +105,7 @@ void DocTreeViewImpl::clear()
// inform BookmarkHandler
//
- emit signalSetBookmarkFilename( QString::null );
+ emit signalSetBookmarkFilename( TQString::null );
listView->clear();
m_rootItem = new RobDocument( listView, i18n("unnamed") );
@@ -119,16 +119,16 @@ void DocTreeViewImpl::createEmptyDocument()
{
kdDebug(100200) << "DocTreeViewImpl::createEmptyDocument()" << endl;
// create empty document
- QByteArray data;
- QTextStream wrapped(data, IO_ReadWrite);
- wrapped.setEncoding(QTextStream::UnicodeUTF8);
+ TQByteArray data;
+ TQTextStream wrapped(data, IO_ReadWrite);
+ wrapped.setEncoding(TQTextStream::UnicodeUTF8);
wrapped << "<?xml version=\"1.0\" ?>" << endl;
wrapped << "<!--" << endl;
wrapped << "!DOCTYPE book PUBLIC \"-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN\" \"dtd/kdex.dtd\"" << endl;
wrapped << "-->" << endl;
- QString header(data);
+ TQString header(data);
m_parasaxparser->setProcessingInstruction( header );
wrapped << "<book>" << endl;
@@ -153,15 +153,15 @@ void DocTreeViewImpl::createEmptyDocument()
wrapped << "</chapter>" << endl;
wrapped << "</book>" << endl;
- QDomDocument domTree;
+ TQDomDocument domTree;
if ( ! domTree.setContent( data ) ){
kdDebug(100200) << "Kein gueltiges Dokument!!" << endl;
};
// inform BookmarkHandler
emit signalSetBookmarkFilename( i18n("Untitled") );
- QDomElement root = domTree.documentElement();
- QDomNode node;
+ TQDomElement root = domTree.documentElement();
+ TQDomNode node;
if( root.tagName().lower() == "book" ){ // DocBook
DocbookParser docbookparser(m_contextmenuhandler);
docbookparser.parseBook(root , m_rootItem);
@@ -182,19 +182,19 @@ void DocTreeViewImpl::openFile(const KURL &url)
m_url = url;
// open file
- QString err;
- QFile file( url.path() );
+ TQString err;
+ TQFile file( url.path() );
if( !file.open(IO_ReadOnly) ){
err = i18n("Unable to open File.");
throw(err);
}
- QDomDocument domTree;
+ TQDomDocument domTree;
// check document
if( domTree.setContent(&file) ){
// extract Header
file.reset();
- QString header = QString::null;
- QString line;
+ TQString header = TQString::null;
+ TQString line;
int offset;
file.readLine( line, file.size() );
while( !file.atEnd() && (offset = line.find("<book", 0, false)) < 0 ){
@@ -210,16 +210,16 @@ void DocTreeViewImpl::openFile(const KURL &url)
} else {
// File is not a valid XML-File. Wrap it
file.reset();
- QByteArray data;
- QTextStream wrapped(data, IO_ReadWrite);
- wrapped.setEncoding(QTextStream::UnicodeUTF8);
+ TQByteArray data;
+ TQTextStream wrapped(data, IO_ReadWrite);
+ wrapped.setEncoding(TQTextStream::UnicodeUTF8);
wrapped << "<?xml version=\"1.0\" ?>" << endl;
wrapped << "<!--" << endl;
wrapped << "!DOCTYPE book PUBLIC \"-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN\" \"dtd/kdex.dtd\"" << endl;
wrapped << "-->" << endl;
- QString header(data);
+ TQString header(data);
kdDebug(100200) << "Header (Wrapper): " << endl << header << endl;
m_parasaxparser->setProcessingInstruction( header );
@@ -240,7 +240,7 @@ void DocTreeViewImpl::openFile(const KURL &url)
wrapped << "<chapter>" << endl;
wrapped << "<title><![CDATA[" << i18n("Plain File") << "]]></title>" << endl;
wrapped << "<para><![CDATA[";
- wrapped << QString( file.readAll() );
+ wrapped << TQString( file.readAll() );
wrapped << "]]></para>" << endl;
wrapped << "</chapter>" << endl;
wrapped << "</book>" << endl;
@@ -255,7 +255,7 @@ void DocTreeViewImpl::openFile(const KURL &url)
}
// check if correct document type
- QDomElement root = domTree.documentElement();
+ TQDomElement root = domTree.documentElement();
if( root.tagName().lower() == "book" ){ // DocBook
DocbookParser docbookparser(m_contextmenuhandler);
docbookparser.parseBook(root , m_rootItem);
@@ -277,10 +277,10 @@ void DocTreeViewImpl::saveFile()
makeCurrentNodePersistent();
- QString err;
+ TQString err;
if ( m_url.isEmpty() ){ // file has no name, ask user
- QString usershome( getenv("HOME") );
+ TQString usershome( getenv("HOME") );
m_url = KFileDialog::getSaveURL(usershome, "*.docbook", this, i18n("Save File"));
}
if ( m_url.isEmpty() ) // dialog cancelled
@@ -290,14 +290,14 @@ void DocTreeViewImpl::saveFile()
throw( err );
}
if ( m_url.isLocalFile() ){
- QFile file( m_url.path() );
+ TQFile file( m_url.path() );
if ( !file.open(IO_WriteOnly) ){
err = i18n("Unable open file to write.");
throw( err );
}
// write file
- QTextStream doc(&file);
- doc.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream doc(&file);
+ doc.setEncoding(TQTextStream::UnicodeUTF8);
doc << "<?xml version=\"1.0\" ?>" << endl;
doc << "<!--" << endl;
@@ -325,11 +325,11 @@ void DocTreeViewImpl::saveFile()
void DocTreeViewImpl::saveFileAs()
{
kdDebug(100200) << "DocTreeViewImpl::saveFileAs()" << endl;
- QString err;
+ TQString err;
makeCurrentNodePersistent();
- m_url = KFileDialog::getSaveURL(QString::null, "*.docbook", this, i18n("Save File As"));
+ m_url = KFileDialog::getSaveURL(TQString::null, "*.docbook", this, i18n("Save File As"));
if ( m_url.isEmpty() ) // dialog cancelled
return;
if ( !m_url.isValid() ){
@@ -337,15 +337,15 @@ void DocTreeViewImpl::saveFileAs()
throw( err );
}
if ( m_url.isLocalFile() ){
- QFile file( m_url.path() );
+ TQFile file( m_url.path() );
if ( !file.open(IO_WriteOnly) ){
err = i18n("Unable open file to write.");
throw( err );
}
// write file
- QTextStream doc(&file);
- doc.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream doc(&file);
+ doc.setEncoding(TQTextStream::UnicodeUTF8);
doc << "<?xml version=\"1.0\" ?>" << endl;
doc << "<!--" << endl;
@@ -388,35 +388,35 @@ void DocTreeViewImpl::setEditMode(bool mode)
}
-void DocTreeViewImpl::makeToSingleLine( QString &content )
+void DocTreeViewImpl::makeToSingleLine( TQString &content )
{
// canonify string
- content.replace( QRegExp("\n"), "" ); // remove Newlines
- content.replace( QRegExp(" {2,}"), " " ); // remove multiple spaces
- content.replace( QRegExp("[\t|\r]{1,}"), ""); // remove Tabs
+ content.replace( TQRegExp("\n"), "" ); // remove Newlines
+ content.replace( TQRegExp(" {2,}"), " " ); // remove multiple spaces
+ content.replace( TQRegExp("[\t|\r]{1,}"), ""); // remove Tabs
}
-QString DocTreeViewImpl::selectItemByID(const QString &ID, const QString title)
+TQString DocTreeViewImpl::selectItemByID(const TQString &ID, const TQString title)
{
kdDebug(100200) << "DocTreeViewImpl::selectItemByID(" << ID << ")" << endl;
if ( ID.isNull() )
- return QString::null;
+ return TQString::null;
- QString sTitle = title.lower();
- QString err = QString::null;
+ TQString sTitle = title.lower();
+ TQString err = TQString::null;
/**
* Search on structure (URL)
* e.g. 1=RobDokument|1=BookInfo|1=KeywordSet|2=Keyword
*/
- QStringList partList;
- partList = QStringList::split("|", ID);
- QStringList::Iterator it = partList.begin();
+ TQStringList partList;
+ partList = TQStringList::split("|", ID);
+ TQStringList::Iterator it = partList.begin();
it++; // skip first element (allways RobDocument)
int childNum = 0;
- QString childType = QString::null;
+ TQString childType = TQString::null;
ListViewInterface *item = m_rootItem;
bool hit = false;
@@ -436,7 +436,7 @@ QString DocTreeViewImpl::selectItemByID(const QString &ID, const QString title)
}
if ( !item )
break; // expected item does not exist
- QString type = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString type = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
type = type.lower();
if ( childType != type )
break; // structure has been changed
@@ -444,7 +444,7 @@ QString DocTreeViewImpl::selectItemByID(const QString &ID, const QString title)
}
if ( item ){
- QString itemTitle = getItemTitle( item );
+ TQString itemTitle = getItemTitle( item );
itemTitle = itemTitle.lower();
if ( sTitle.left(itemTitle.length()) == itemTitle )
// Title made unique by KDE by appending "(2)", "(3)"...
@@ -458,8 +458,8 @@ QString DocTreeViewImpl::selectItemByID(const QString &ID, const QString title)
// walk trough the entire tree and try to find an item
// with the given title.
item = NULL;
- QListViewItemIterator sit( m_rootItem );
- QString itemTitle = QString::null;
+ TQListViewItemIterator sit( m_rootItem );
+ TQString itemTitle = TQString::null;
while ( sit.current() ) {
item = static_cast<ListViewInterface*>(sit.current());
if ( !item )
@@ -493,7 +493,7 @@ QString DocTreeViewImpl::selectItemByID(const QString &ID, const QString title)
}
-void DocTreeViewImpl::slotItemClicked(QListViewItem *item)
+void DocTreeViewImpl::slotItemClicked(TQListViewItem *item)
{
kdDebug(100200) << "DocTreeViewImpl::slotItemClicked()" << endl;
@@ -503,9 +503,9 @@ void DocTreeViewImpl::slotItemClicked(QListViewItem *item)
if ( item ){
m_currentItem = static_cast<ListViewInterface*>(item);
- QString str = QString::null;
- QTextStream msg(&str, IO_ReadWrite);
- msg.setEncoding(QTextStream::UnicodeUTF8);
+ TQString str = TQString::null;
+ TQTextStream msg(&str, IO_ReadWrite);
+ msg.setEncoding(TQTextStream::UnicodeUTF8);
// check if item has a child and check state
// of Edit Mode.
@@ -517,20 +517,20 @@ void DocTreeViewImpl::slotItemClicked(QListViewItem *item)
// Create Bookmark-ID depending on the location of the item
// within the tree
- QString idstring = QString::null;
- QTextStream id(&idstring, IO_ReadWrite);
- id.setEncoding(QTextStream::UnicodeUTF8);
+ TQString idstring = TQString::null;
+ TQTextStream id(&idstring, IO_ReadWrite);
+ id.setEncoding(TQTextStream::UnicodeUTF8);
id << "1=RobDocument";
recursiveBuildItemIdentifier( m_currentItem, id );
// inform the Bookmark Manager about the new item.
- QString title = getItemTitle( m_currentItem );
+ TQString title = getItemTitle( m_currentItem );
emit signalNotifyBookmarkManager(idstring, title);
}
}
-void DocTreeViewImpl::slotRightButtonPressed(QListViewItem *item, const QPoint &pos, int)
+void DocTreeViewImpl::slotRightButtonPressed(TQListViewItem *item, const TQPoint &pos, int)
{
kdDebug(100200) << "DocTreeViewImpl::slotRightButtonPressed()" << endl;
slotItemClicked( item );
@@ -546,7 +546,7 @@ void DocTreeViewImpl::slotRightButtonPressed(QListViewItem *item, const QPoint &
}
-void DocTreeViewImpl::recursiveBuildItemIdentifier(ListViewInterface* item, QTextStream &idstring)
+void DocTreeViewImpl::recursiveBuildItemIdentifier(ListViewInterface* item, TQTextStream &idstring)
{
kdDebug(100200) << "DocTreeViewImpl::recursiveBuildItemIdentifier()" << endl;
@@ -566,7 +566,7 @@ void DocTreeViewImpl::recursiveBuildItemIdentifier(ListViewInterface* item, QTex
// 2. Which child of the parentItem are we? Append no. to idstring.
int childno = 0;
- QString itemID = item->text(3);
+ TQString itemID = item->text(3);
ListViewInterface *i = static_cast<ListViewInterface*>( parentItem->firstChild() );
while( i ){
childno++;
@@ -577,25 +577,25 @@ void DocTreeViewImpl::recursiveBuildItemIdentifier(ListViewInterface* item, QTex
idstring << "|" << childno;
// 3. Who are we? Append ID to idstring.
- QString itemType = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString itemType = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
idstring << "=" << itemType;
}
-QString DocTreeViewImpl::getItemTitle( ListViewInterface *item )
+TQString DocTreeViewImpl::getItemTitle( ListViewInterface *item )
{
if ( !item )
- return QString::null;
+ return TQString::null;
- QString col0 = item->text(0);
- QString title = QString::null;
+ TQString col0 = item->text(0);
+ TQString title = TQString::null;
// if ( col0 == i18n("Paragraph") ){ // better to use XmlContextName?
if( (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString() == i18n("Paragraph") ){
title = ( item->getValue(KSayItGlobal::SPEAKERDATA) ).toString().left(32);
// canonify string
- title.replace( QRegExp("^( |\t|\n)+"), "");
- title.replace( QRegExp("( |\t|\n)$+"), "");
+ title.replace( TQRegExp("^( |\t|\n)+"), "");
+ title.replace( TQRegExp("( |\t|\n)$+"), "");
} else {
title = col0.left(32);
}
@@ -603,11 +603,11 @@ QString DocTreeViewImpl::getItemTitle( ListViewInterface *item )
}
-void DocTreeViewImpl::recursiveTextCollector(ListViewInterface* item, QTextStream &msg, bool header)
+void DocTreeViewImpl::recursiveTextCollector(ListViewInterface* item, TQTextStream &msg, bool header)
{
kdDebug(100200) << "DocTreeViewImpl::recursiveTextCollector()" << endl;
- QString text;
+ TQString text;
if ( header ){
// if header==true get Headers
msg << ( item->getValue(KSayItGlobal::RTFHEADER) ).toString();
@@ -648,9 +648,9 @@ void DocTreeViewImpl::recursiveSayNodes(ListViewInterface* item)
{
kdDebug(100200) << "DocTreeViewImpl::recursiveSayNodes()" << endl;
- QString str;
- QTextStream msg(&str, IO_ReadWrite);
- msg.setEncoding(QTextStream::UnicodeUTF8);
+ TQString str;
+ TQTextStream msg(&str, IO_ReadWrite);
+ msg.setEncoding(TQTextStream::UnicodeUTF8);
msg << ( item->getValue(KSayItGlobal::SPEAKERHEADER) ).toString();
msg << ( item->getValue(KSayItGlobal::SPEAKERDATA) ).toString() << "\n" << endl;
@@ -678,7 +678,7 @@ void DocTreeViewImpl::stop()
}
-void DocTreeViewImpl::setNodeContent(QString &text)
+void DocTreeViewImpl::setNodeContent(TQString &text)
{
kdDebug(100200) << "DocTreeViewImpl::setNodeContent()" << endl;
m_changedContent = text;
@@ -700,12 +700,12 @@ void DocTreeViewImpl::makeCurrentNodePersistent()
m_currentItem->setValue( KSayItGlobal::RTFDATA, m_changedContent );
m_currentItem->setValue( KSayItGlobal::SPEAKERDATA, m_changedContent );
- m_changedContent = QString::null;
+ m_changedContent = TQString::null;
}
/** replaced by slotRightButtonPressed()
*/
-// void DocTreeViewImpl::contextMenuEvent(QContextMenuEvent *e)
+// void DocTreeViewImpl::contextMenuEvent(TQContextMenuEvent *e)
// {
// kdDebug(100200) << "DocTreeViewImpl::contextMenuEvent()" << endl;
//
@@ -732,7 +732,7 @@ void DocTreeViewImpl::slotRenameItem()
return;
bool responseOK;
- QString newname;
+ TQString newname;
newname = KInputDialog::getText(
i18n("Rename Item"),
i18n("Please enter the new name of the item:"),
@@ -762,12 +762,12 @@ void DocTreeViewImpl::slotDeleteItem()
return; // delete only items with parent
// try to delete bookmark
- QString url = QString::null;
- QTextStream id(&url, IO_ReadWrite);
- id.setEncoding(QTextStream::UnicodeUTF8);
+ TQString url = TQString::null;
+ TQTextStream id(&url, IO_ReadWrite);
+ id.setEncoding(TQTextStream::UnicodeUTF8);
id << "ksayit://1=RobDocument";
recursiveBuildItemIdentifier( itemToDelete, id );
- QString title = getItemTitle( itemToDelete );
+ TQString title = getItemTitle( itemToDelete );
emit signalDeleteBookmark( url, title );
// remove TreeView item
@@ -776,10 +776,10 @@ void DocTreeViewImpl::slotDeleteItem()
// reindex entire remaining tree
ListViewInterface *item = NULL;
m_idCounter = KSayItGlobal::item_initial_id;
- QListViewItemIterator itr( m_rootItem );
+ TQListViewItemIterator itr( m_rootItem );
while ( itr.current() ) {
item = static_cast<ListViewInterface*>(itr.current());
- item->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ item->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
++itr;
}
@@ -793,11 +793,11 @@ void DocTreeViewImpl::slotDeleteItem()
void DocTreeViewImpl::slotNewBookInfo()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "RobDocument" ){
int newIndex = newIndexFirstChild();
Overview *overview = new Overview( m_currentItem, NULL, i18n("Overview") );
- overview->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ overview->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
m_contextmenuhandler->registerPopupMenu( overview );
}
@@ -806,13 +806,13 @@ void DocTreeViewImpl::slotNewBookInfo()
void DocTreeViewImpl::slotNewChapter()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "RobDocument" ){
int newIndex = newIndexLastChild();
Chapter *chapter = new Chapter( m_currentItem, NULL, i18n("Chapter") );
- chapter->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ chapter->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newTitle = i18n("New Chapter Title");
+ TQString newTitle = i18n("New Chapter Title");
chapter->setText(0, newTitle );
chapter->setValue(KSayItGlobal::RTFHEADER, newTitle );
chapter->setValue(KSayItGlobal::SPEAKERHEADER, newTitle );
@@ -824,12 +824,12 @@ void DocTreeViewImpl::slotNewChapter()
void DocTreeViewImpl::slotNewKeywordSet()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "BookInfo" ){
// New TreeView item
int newIndex = newIndexFirstChild();
KeywordSet *keywordset = new KeywordSet(m_currentItem, NULL, i18n("Keywords"));
- keywordset->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ keywordset->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
m_contextmenuhandler->registerPopupMenu( keywordset );
}
@@ -838,14 +838,14 @@ void DocTreeViewImpl::slotNewKeywordSet()
void DocTreeViewImpl::slotNewKeyword()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "KeywordSet" ){
// New TreeView item
int newIndex = newIndexLastChild();
Keyword *keyword = new Keyword(m_currentItem, NULL, i18n("Keyword"));
- keyword->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ keyword->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newKeyword = i18n("New Keyword");
+ TQString newKeyword = i18n("New Keyword");
keyword->setText(0, newKeyword );
keyword->setValue(KSayItGlobal::RAWDATA, newKeyword);
keyword->setValue(KSayItGlobal::RTFDATA, newKeyword);
@@ -858,12 +858,12 @@ void DocTreeViewImpl::slotNewKeyword()
void DocTreeViewImpl::slotNewAbstract()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "BookInfo" ){
// New TreeView item
int newIndex = newIndexLastChild();
Abstract *abstract = new Abstract(m_currentItem, NULL, i18n("Abstract"));
- abstract->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ abstract->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
m_contextmenuhandler->registerPopupMenu( abstract );
@@ -878,12 +878,12 @@ void DocTreeViewImpl::slotNewAbstract()
void DocTreeViewImpl::slotNewAuthorGroup()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "BookInfo" ){
// New TreeView item
int newIndex = newIndexFirstChild();
AuthorGroup *authorgroup = new AuthorGroup(m_currentItem, NULL, i18n("Author(s)"));
- authorgroup->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ authorgroup->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
m_contextmenuhandler->registerPopupMenu( authorgroup );
@@ -898,15 +898,15 @@ void DocTreeViewImpl::slotNewAuthorGroup()
void DocTreeViewImpl::slotNewAuthor()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "AuthorGroup" ){
// New TreeView item
int newIndex = newIndexLastChild();
Author *author = new Author(m_currentItem);
- author->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ author->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
author->setText(0, i18n("Author") );
- QString newAuthor = i18n("Firstname Surname");
+ TQString newAuthor = i18n("Firstname Surname");
author->setText(1, newAuthor );
author->setValue( KSayItGlobal::RAWDATA, newAuthor );
author->setValue( KSayItGlobal::RTFDATA, newAuthor );
@@ -919,15 +919,15 @@ void DocTreeViewImpl::slotNewAuthor()
void DocTreeViewImpl::slotNewDate()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "BookInfo" ){
// New TreeView item
int newIndex = newIndexLastChild();
Date *date = new Date(m_currentItem, NULL, i18n("Date"));
- date->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ date->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
// get current date
- QString today;
- today = KGlobal::locale()->formatDate(QDate::currentDate(Qt::LocalTime), true);
+ TQString today;
+ today = KGlobal::locale()->formatDate(TQDate::currentDate(Qt::LocalTime), true);
date->setText( 1, today);
date->setValue( KSayItGlobal::RAWDATA, today );
date->setValue( KSayItGlobal::RTFDATA, today );
@@ -940,14 +940,14 @@ void DocTreeViewImpl::slotNewDate()
void DocTreeViewImpl::slotNewReleaseInfo()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "BookInfo" ){
// New TreeView item
int newIndex = newIndexLastChild();
ReleaseInfo *relinfo = new ReleaseInfo(m_currentItem, NULL, i18n("Release"));
- relinfo->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ relinfo->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newRelease = "0.0.0";
+ TQString newRelease = "0.0.0";
relinfo->setText( 1, newRelease );
relinfo->setValue( KSayItGlobal::RAWDATA, newRelease );
relinfo->setValue( KSayItGlobal::RTFDATA, newRelease );
@@ -966,7 +966,7 @@ void DocTreeViewImpl::slotNewTitle()
void DocTreeViewImpl::slotNewParagraph()
{
/* // Create Null element
- QDomElement parentElement = QDomElement();
+ TQDomElement parentElement = TQDomElement();
NodeList_type list;
list.clear();
@@ -979,7 +979,7 @@ void DocTreeViewImpl::slotNewParagraph()
// New TreeView item
int newIndex = newIndexLastChild();
Para *para = new Para(m_currentItem, NULL, i18n("Paragraph"));
- para->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ para->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
m_contextmenuhandler->registerPopupMenu( para );
@@ -988,13 +988,13 @@ void DocTreeViewImpl::slotNewParagraph()
void DocTreeViewImpl::slotNewSection_1()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "Chapter" ){
int newIndex = newIndexLastChild();
Sect1 *sect1 = new Sect1(m_currentItem, NULL, i18n("Section Level 1"));
- sect1->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ sect1->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newTitle = i18n("New Section Title");
+ TQString newTitle = i18n("New Section Title");
sect1->setValue( KSayItGlobal::RTFHEADER, newTitle );
sect1->setValue( KSayItGlobal::SPEAKERHEADER, newTitle );
@@ -1005,13 +1005,13 @@ void DocTreeViewImpl::slotNewSection_1()
void DocTreeViewImpl::slotNewSection_2()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "Sect1" ){
int newIndex = newIndexLastChild();
Sect2 *sect2 = new Sect2(m_currentItem, NULL, i18n("Section Level 2"));
- sect2->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ sect2->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newTitle = i18n("New Section Title");
+ TQString newTitle = i18n("New Section Title");
sect2->setValue( KSayItGlobal::RTFHEADER, newTitle );
sect2->setValue( KSayItGlobal::SPEAKERHEADER, newTitle );
@@ -1022,13 +1022,13 @@ void DocTreeViewImpl::slotNewSection_2()
void DocTreeViewImpl::slotNewSection_3()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "Sect2" ){
int newIndex = newIndexLastChild();
Sect3 *sect3 = new Sect3(m_currentItem, NULL, i18n("Section Level 3"));
- sect3->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ sect3->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newTitle = i18n("New Section Title");
+ TQString newTitle = i18n("New Section Title");
sect3->setValue( KSayItGlobal::RTFHEADER, newTitle );
sect3->setValue( KSayItGlobal::SPEAKERHEADER, newTitle );
@@ -1039,13 +1039,13 @@ void DocTreeViewImpl::slotNewSection_3()
void DocTreeViewImpl::slotNewSection_4()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "Sect3" ){
int newIndex = newIndexLastChild();
Sect4 *sect4 = new Sect4(m_currentItem, NULL, i18n("Section Level 4"));
- sect4->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ sect4->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newTitle = i18n("New Section Title");
+ TQString newTitle = i18n("New Section Title");
sect4->setValue( KSayItGlobal::RTFHEADER, newTitle );
sect4->setValue( KSayItGlobal::SPEAKERHEADER, newTitle );
@@ -1056,13 +1056,13 @@ void DocTreeViewImpl::slotNewSection_4()
void DocTreeViewImpl::slotNewSection_5()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "Sect4" ){
int newIndex = newIndexLastChild();
Sect5 *sect5 = new Sect5(m_currentItem, NULL, i18n("Section Level 5"));
- sect5->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ sect5->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newTitle = i18n("New Section Title");
+ TQString newTitle = i18n("New Section Title");
sect5->setValue( KSayItGlobal::RTFHEADER, newTitle );
sect5->setValue( KSayItGlobal::SPEAKERHEADER, newTitle );
@@ -1081,12 +1081,12 @@ int DocTreeViewImpl::newIndexFirstChild()
// indices greater than currentIndex
ListViewInterface *item = NULL;
int itemIndex;
- QListViewItemIterator it( m_rootItem );
+ TQListViewItemIterator it( m_rootItem );
while ( it.current() ) {
item = static_cast<ListViewInterface*>(it.current());
itemIndex = (item->text(3)).toInt();
if ( itemIndex > currentIndex ){
- item->setText(3, QString("%1").arg(itemIndex+1).rightJustify(8,'0') );;
+ item->setText(3, TQString("%1").arg(itemIndex+1).rightJustify(8,'0') );;
}
++it;
}
@@ -1111,12 +1111,12 @@ int DocTreeViewImpl::newIndexLastChild()
// indices greater than lastIndex
int itemIndex;
ListViewInterface *item;
- QListViewItemIterator it( m_rootItem );
+ TQListViewItemIterator it( m_rootItem );
while ( it.current() ) {
item = static_cast<ListViewInterface*>(it.current());
itemIndex = (item->text(3)).toInt();
if ( itemIndex > lastIndex ){
- item->setText(3, QString("%1").arg(itemIndex+1).rightJustify(8,'0') );
+ item->setText(3, TQString("%1").arg(itemIndex+1).rightJustify(8,'0') );
}
++it;
}
diff --git a/ksayit/src/doctreeviewimpl.h b/ksayit/src/doctreeviewimpl.h
index 4ad0c38..c42cab8 100644
--- a/ksayit/src/doctreeviewimpl.h
+++ b/ksayit/src/doctreeviewimpl.h
@@ -13,7 +13,7 @@
#define DOCTREEVIEWIMPL_H
// Qt includes
-#include <qstring.h>
+#include <tqstring.h>
// KDE includes
#include <kurl.h>
@@ -32,7 +32,7 @@ class ContextMenuHandler;
/**
This class implements the TreeView object.\n
It takes a XML/DocBook file, parses it and builds up a hierarchical
-\p QListView structure corresponding to the structure of the document.
+\p TQListView structure corresponding to the structure of the document.
The objective of this class is to maintain the document and provide
all required methods to access or manipulate its content.
@author Robert Vogl
@@ -40,7 +40,7 @@ all required methods to access or manipulate its content.
class DocTreeViewImpl : public DocTreeView
{
public:
- DocTreeViewImpl(QWidget* parent=0, const char* name=0, WFlags fl=0);
+ DocTreeViewImpl(TQWidget* parent=0, const char* name=0, WFlags fl=0);
~DocTreeViewImpl();
@@ -78,7 +78,7 @@ public:
* persistent.
* \param text The content of the TextEdit view.
*/
- void setNodeContent(QString &text);
+ void setNodeContent(TQString &text);
/**
* Starting from the current selected node it travels recursively
@@ -102,10 +102,10 @@ public:
/**
* Sets the item active designated by the ID.
* \param ID The ID (column 3) of the TreeView item.
- * \returns <tt>QString::null</tt> if the operation was successfull,\n
+ * \returns <tt>TQString::null</tt> if the operation was successfull,\n
* an error message, if the item was not found.
*/
- QString selectItemByID(const QString &ID, const QString title);
+ TQString selectItemByID(const TQString &ID, const TQString title);
/**
* Enables/disables the contextmenus
@@ -145,30 +145,30 @@ protected slots:
*
* \param item The new active item of the TreeView.
*/
- void slotItemClicked(QListViewItem *item);
+ void slotItemClicked(TQListViewItem *item);
/**
* Reimplemented from base class.
* Called when the right button was pressed.
* \param item The new active item of the TreeView.
*/
- void slotRightButtonPressed(QListViewItem *item, const QPoint &pos, int);
+ void slotRightButtonPressed(TQListViewItem *item, const TQPoint &pos, int);
/**
- * Reimplemented from QWidget class.
+ * Reimplemented from TQWidget class.
*/
- // void contextMenuEvent(QContextMenuEvent *e);
+ // void contextMenuEvent(TQContextMenuEvent *e);
private: // Methods
- void recursiveTextCollector(ListViewInterface* item, QTextStream &msg, bool header=true);
+ void recursiveTextCollector(ListViewInterface* item, TQTextStream &msg, bool header=true);
void recursiveSayNodes(ListViewInterface* item);
- void recursiveBuildItemIdentifier(ListViewInterface* item, QTextStream &idstring);
+ void recursiveBuildItemIdentifier(ListViewInterface* item, TQTextStream &idstring);
void makeCurrentNodePersistent();
int newIndexFirstChild();
int newIndexLastChild();
void findHighestIndex(ListViewInterface* item, int &index);
- QString getItemTitle( ListViewInterface *item);
- void makeToSingleLine( QString &content );
+ TQString getItemTitle( ListViewInterface *item);
+ void makeToSingleLine( TQString &content );
private: // Attributes
@@ -176,7 +176,7 @@ private: // Attributes
KPopupMenu *m_contextmenu;
ListViewInterface *m_rootItem;
ListViewInterface *m_currentItem;
- QString m_changedContent;
+ TQString m_changedContent;
int m_idCounter;
bool m_stopped;
KURL m_url;
diff --git a/ksayit/src/effectstack.cpp b/ksayit/src/effectstack.cpp
index 7497847..67cfb44 100644
--- a/ksayit/src/effectstack.cpp
+++ b/ksayit/src/effectstack.cpp
@@ -11,7 +11,7 @@
//
// Qt includes
-#include <qstringlist.h>
+#include <tqstringlist.h>
// KDE includes
#include <kdebug.h>
@@ -37,8 +37,8 @@ bool EffectStack::loadEffects()
{
kdDebug(100200) << "EffectStack::loadEffects()" << endl;
- QStringList c_active;
- QStringList::Iterator fx_it;
+ TQStringList c_active;
+ TQStringList::Iterator fx_it;
// create filterstack
FX_Stack = server.server().outstack();
diff --git a/ksayit/src/fxpluginhandler.cpp b/ksayit/src/fxpluginhandler.cpp
index 8e6f68d..ec68de8 100644
--- a/ksayit/src/fxpluginhandler.cpp
+++ b/ksayit/src/fxpluginhandler.cpp
@@ -11,7 +11,7 @@
//
// QT includes
-#include <qdir.h>
+#include <tqdir.h>
// KDE includes
#include <kdebug.h>
@@ -26,8 +26,8 @@
#include "ksayit_ttsplugin.h"
-FXPluginHandler::FXPluginHandler(QObject *parent, const char *name, KConfig *config)
- : QObject(parent, name), m_config(config)
+FXPluginHandler::FXPluginHandler(TQObject *parent, const char *name, KConfig *config)
+ : TQObject(parent, name), m_config(config)
{
m_mapPluginList.clear();
m_lstActivePlugins.clear();
@@ -36,7 +36,7 @@ FXPluginHandler::FXPluginHandler(QObject *parent, const char *name, KConfig *con
FXPluginHandler::~FXPluginHandler()
{
- QMap<QString, fx_struct>::Iterator mit;
+ TQMap<TQString, fx_struct>::Iterator mit;
for (mit=m_mapPluginList.begin(); mit!=m_mapPluginList.end(); ++mit){
if ( (*mit).p != 0 ){
@@ -50,7 +50,7 @@ void FXPluginHandler::searchPlugins()
{
kdDebug(100200) << "FXPluginHandler::searchPlugins()" << endl;
- QStringList sRegistered;
+ TQStringList sRegistered;
fx_struct plugin;
sRegistered.clear();
@@ -58,8 +58,8 @@ void FXPluginHandler::searchPlugins()
KTrader::OfferList offers = KTrader::self()->query("KSayIt/FXPlugin");
KLibFactory *factory = NULL;
- QString library = QString::null;
- QString name = QString::null;
+ TQString library = TQString::null;
+ TQString name = TQString::null;
KTrader::OfferList::Iterator it=offers.begin();
for ( ;it!=offers.end(); ++it ){
@@ -70,11 +70,11 @@ void FXPluginHandler::searchPlugins()
if ( factory ){
kdDebug(100200) << "FXPluginHandler::searchPlugins(): Plugin factory found." << endl;
// register found plugin
- if ( !sRegistered.contains( QString(name) )){
- sRegistered.append( QString(name) );
+ if ( !sRegistered.contains( TQString(name) )){
+ sRegistered.append( TQString(name) );
plugin.name = name;
plugin.library = library;
- plugin.description = QString::null;
+ plugin.description = TQString::null;
plugin.EffectID = 0;
plugin.p = NULL;
m_mapPluginList[plugin.name] = plugin; // update Plugin Map
@@ -90,8 +90,8 @@ void FXPluginHandler::readConfiguration()
kdDebug(100200) << "+++ entering FXPluginHandler::readConfiguration()" << endl;
fx_struct plugin;
- QMap<QString, fx_struct>::Iterator mit;
- QStringList::Iterator lit;
+ TQMap<TQString, fx_struct>::Iterator mit;
+ TQStringList::Iterator lit;
// unload all plugins and destroy the effect objects
lit = m_lstActivePlugins.begin();
@@ -112,7 +112,7 @@ void FXPluginHandler::readConfiguration()
// load active plugins as given in config file
m_config->setGroup("Effect Stack Configuration");
- QStringList conf_active = m_config->readListEntry("Activated");
+ TQStringList conf_active = m_config->readListEntry("Activated");
KLibFactory *factory = NULL;
for (lit=conf_active.begin(); lit!=conf_active.end(); ++lit){ // for all in config
@@ -123,7 +123,7 @@ void FXPluginHandler::readConfiguration()
// load plugin
factory = KLibLoader::self()->factory( (plugin.library).latin1() );
if ( factory ){
- plugin.p = static_cast<FXPlugin*>( factory->create( (QObject*)this, (plugin.name).latin1() ) );
+ plugin.p = static_cast<FXPlugin*>( factory->create( (TQObject*)this, (plugin.name).latin1() ) );
if ( plugin.p ){ // Plugin found
plugin.p->setApplication( KApplication::kApplication() );
plugin.description = plugin.p->getDescription_KS();
@@ -138,11 +138,11 @@ void FXPluginHandler::readConfiguration()
}
-void FXPluginHandler::showEffectGUI(const QString &pname)
+void FXPluginHandler::showEffectGUI(const TQString &pname)
{
kdDebug(100200) << "FXPluginHandler::showEffectGUI(): " << pname << endl;
- QMap<QString, fx_struct>::Iterator mit;
+ TQMap<TQString, fx_struct>::Iterator mit;
fx_struct plugin;
// find plugin with name==pname in list and show its GUI
@@ -156,7 +156,7 @@ void FXPluginHandler::showEffectGUI(const QString &pname)
kdDebug(100200) << "Effect not active yet. Loading..." << endl;
KLibFactory *factory = KLibLoader::self()->factory( (plugin.library).latin1() );
if ( factory ){
- plugin.p = static_cast<FXPlugin*>( factory->create( (QObject*)this, (plugin.name).latin1() ) );
+ plugin.p = static_cast<FXPlugin*>( factory->create( (TQObject*)this, (plugin.name).latin1() ) );
if ( plugin.p ){ // Plugin found
plugin.p->setApplication( KApplication::kApplication() );
plugin.description = plugin.p->getDescription_KS();
@@ -173,14 +173,14 @@ void FXPluginHandler::showEffectGUI(const QString &pname)
}
-void FXPluginHandler::getPlugins(QStringList &pluginlist)
+void FXPluginHandler::getPlugins(TQStringList &pluginlist)
{
// kdDebug(100200) << "FXPluginHandler::getPlugins" << endl;
pluginlist.clear();
- QString sPname;
+ TQString sPname;
- QMap<QString, fx_struct>::Iterator mit;
+ TQMap<TQString, fx_struct>::Iterator mit;
for (mit=m_mapPluginList.begin(); mit!=m_mapPluginList.end(); ++mit){
sPname = (*mit).name; //testing
pluginlist.append( sPname );
@@ -188,13 +188,13 @@ void FXPluginHandler::getPlugins(QStringList &pluginlist)
}
-void FXPluginHandler::activateEffect(const QString &pname,
+void FXPluginHandler::activateEffect(const TQString &pname,
KArtsServer *server,
StereoEffectStack *fx_stack)
{
kdDebug(100200) << "FXPluginHandler::activateEffect: " << pname << endl;
- QMap<QString, fx_struct>::Iterator mit;
+ TQMap<TQString, fx_struct>::Iterator mit;
fx_struct plugin;
// find plugin with name==pname
@@ -215,7 +215,7 @@ void FXPluginHandler::deactivateEffects(StereoEffectStack *fx_stack)
{
kdDebug(100200) << "FXPluginHandler::deactivateEffects." << endl;
- QMap<QString, fx_struct>::Iterator mit;
+ TQMap<TQString, fx_struct>::Iterator mit;
fx_struct plugin;
for (mit=m_mapPluginList.begin(); mit!=m_mapPluginList.end(); ++mit){
diff --git a/ksayit/src/fxpluginhandler.h b/ksayit/src/fxpluginhandler.h
index 1a3d54a..43c820f 100644
--- a/ksayit/src/fxpluginhandler.h
+++ b/ksayit/src/fxpluginhandler.h
@@ -13,12 +13,12 @@
#define FXPLUGINHANDLER_H
// QT includes
-#include <qobject.h>
-#include <qlibrary.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qmap.h>
-// #include <qvaluelist.h>
+#include <tqobject.h>
+#include <tqlibrary.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
+// #include <tqvaluelist.h>
// KDE includes
#include <kconfig.h>
@@ -36,9 +36,9 @@ using namespace Arts;
/** Internal structure of the effect plugin
*/
typedef struct {
- QString name; // KService::Ptr->name()
- QString library; // KService::Ptr->library()
- QString description;
+ TQString name; // KService::Ptr->name()
+ TQString library; // KService::Ptr->library()
+ TQString description;
long EffectID; // !=0, if effect is on the effect stack.
FXPlugin *p; // factory->create(...)
} fx_struct;
@@ -48,7 +48,7 @@ class FXPluginHandler : public QObject
{
Q_OBJECT
public:
- FXPluginHandler(QObject *parent = 0, const char *name = 0, KConfig *config=0);
+ FXPluginHandler(TQObject *parent = 0, const char *name = 0, KConfig *config=0);
~FXPluginHandler();
public: // Methods
@@ -64,14 +64,14 @@ public: // Methods
/** Shows the GUI to setup the effect named name
\param pname The name of the effect to configure.
*/
- void showEffectGUI(const QString &pname);
+ void showEffectGUI(const TQString &pname);
/** Activates the named effect
\param pname Name of the effect to activate.
\param server A pointer to the soundserver instance.
\param fx_stack A pointer to the effect stack of the soundserver.
*/
- void activateEffect(const QString &pname,
+ void activateEffect(const TQString &pname,
KArtsServer *server,
StereoEffectStack *fx_stack);
@@ -81,15 +81,15 @@ public: // Methods
void deactivateEffects(StereoEffectStack *fx_stack);
/** Returns a list of all available plugins.
- \param pluginlist A reference to a QStringList that contains the available plugins.
+ \param pluginlist A reference to a TQStringList that contains the available plugins.
*/
- void getPlugins(QStringList &pluginlist);
+ void getPlugins(TQStringList &pluginlist);
private: // Attributes
KConfig *m_config;
- QMap<QString, fx_struct> m_mapPluginList; // holds all plugins found on the system
- // QMap<QString, fx_struct> m_mapActivePlugins; // holds the active effects
- QStringList m_lstActivePlugins;
+ 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;
};
diff --git a/ksayit/src/fxsetupimpl.cpp b/ksayit/src/fxsetupimpl.cpp
index cb85080..fc0100e 100644
--- a/ksayit/src/fxsetupimpl.cpp
+++ b/ksayit/src/fxsetupimpl.cpp
@@ -16,8 +16,8 @@
***************************************************************************/
// QT includes
-#include <qstringlist.h>
-#include <qpushbutton.h>
+#include <tqstringlist.h>
+#include <tqpushbutton.h>
// KDE includes
#include <kdebug.h>
@@ -27,7 +27,7 @@
// #include "freeverbsetupimpl.h"
#include "fxpluginhandler.h"
-FX_SetupImpl::FX_SetupImpl(QWidget *parent, const char *name,
+FX_SetupImpl::FX_SetupImpl(TQWidget *parent, const char *name,
KConfig *config,
FXPluginHandler *fxpluginhandler )
: FX_Setup(parent,name), m_config(config), m_fxpluginhandler(fxpluginhandler)
@@ -89,18 +89,18 @@ void FX_SetupImpl::slotReload()
}
-void FX_SetupImpl::slotConfigureEffect(QListBoxItem *item)
+void FX_SetupImpl::slotConfigureEffect(TQListBoxItem *item)
{
m_fxpluginhandler->showEffectGUI(item->text());
}
-void FX_SetupImpl::Init(QStringList c_avail)
+void FX_SetupImpl::Init(TQStringList c_avail)
{
m_config->setGroup("Effect Stack Configuration");
- QStringList conf_active = m_config->readListEntry("Activated");
- QStringList c_active;
- QStringList::Iterator sit, it;
+ TQStringList conf_active = m_config->readListEntry("Activated");
+ TQStringList c_active;
+ TQStringList::Iterator sit, it;
listBox_Available->clear();
listBox_Active->clear();
@@ -135,7 +135,7 @@ void FX_SetupImpl::slotSaveWasClicked()
m_config->setGroup("Effect Stack Configuration");
// Read ListBox Available FX
- QStringList slist;
+ TQStringList slist;
for(uint i=0; i<listBox_Available->count(); i++){
slist.append( listBox_Available->text( (int)i) );
}
@@ -144,7 +144,7 @@ void FX_SetupImpl::slotSaveWasClicked()
// Read ListBox Activated FX
slist.clear();
- QString t;
+ TQString t;
for(uint i=0; i<listBox_Active->count(); i++){
t = listBox_Active->text( (int)i );
slist.append( t );
diff --git a/ksayit/src/fxsetupimpl.h b/ksayit/src/fxsetupimpl.h
index 403631d..ac256ed 100644
--- a/ksayit/src/fxsetupimpl.h
+++ b/ksayit/src/fxsetupimpl.h
@@ -19,8 +19,8 @@
#define FXSETUPIMPL_H
// QT includes
-#include <qwidget.h>
-#include <qlistbox.h>
+#include <tqwidget.h>
+#include <tqlistbox.h>
// KDE includes
@@ -39,7 +39,7 @@ class FX_SetupImpl : public FX_Setup {
Q_OBJECT
public:
- FX_SetupImpl(QWidget *parent=0, const char *name=0,
+ FX_SetupImpl(TQWidget *parent=0, const char *name=0,
KConfig *config=0,
FXPluginHandler *fxpluginhandler=0);
~FX_SetupImpl();
@@ -65,7 +65,7 @@ public slots:
Opens a modal dialog to configure the efffect.
\param item The double clicked item.
*/
- void slotConfigureEffect(QListBoxItem *item);
+ void slotConfigureEffect(TQListBoxItem *item);
/** Saves the configuration
*/
@@ -75,12 +75,12 @@ private: // Methods
/** Loads the configuration and initializes the widget.
\param c_avail List of available plugins.
*/
- void Init(QStringList c_avail);
+ void Init(TQStringList c_avail);
private:
KConfig *m_config;
FXPluginHandler *m_fxpluginhandler;
- QStringList pluginlist;
+ TQStringList pluginlist;
};
diff --git a/ksayit/src/ksayit.cpp b/ksayit/src/ksayit.cpp
index 131db8c..877c60a 100644
--- a/ksayit/src/ksayit.cpp
+++ b/ksayit/src/ksayit.cpp
@@ -17,11 +17,11 @@
#include <stdlib.h> // getenv, system
// include files for QT
-#include <qdir.h>
-#include <qapplication.h>
-#include <qdockwindow.h>
-#include <qfileinfo.h>
-#include <qfile.h>
+#include <tqdir.h>
+#include <tqapplication.h>
+#include <tqdockwindow.h>
+#include <tqfileinfo.h>
+#include <tqfile.h>
// include files for KDE
#include <klocale.h>
@@ -55,8 +55,8 @@
#define KSAYITUI "ksayitui.rc"
#define ID_STATUS_MSG 1
-KSayItApp::KSayItApp(QWidget* parent, const char* name, WFlags f,
- const QCString &objID)
+KSayItApp::KSayItApp(TQWidget* parent, const char* name, WFlags f,
+ const TQCString &objID)
: KMainWindow(parent, name, f), DCOPObject(objID)
{
config = NULL;
@@ -67,7 +67,7 @@ KSayItApp::KSayItApp(QWidget* parent, const char* name, WFlags f,
bkManager = NULL;
bkHandler = NULL;
bkMenu = NULL;
- m_currentBookmarkFile = QString::null;
+ m_currentBookmarkFile = TQString::null;
config=kapp->config();
m_kttslib = new KTTSDLib(this, "KTTSD-Library", kapp);
@@ -83,27 +83,27 @@ KSayItApp::KSayItApp(QWidget* parent, const char* name, WFlags f,
readOptions();
// connect TTS plugin handler to this object
- connect(m_kttslib, SIGNAL(signalFinished()),
- this, SLOT(slotTTSFinished()) );
+ connect(m_kttslib, TQT_SIGNAL(signalFinished()),
+ this, TQT_SLOT(slotTTSFinished()) );
// only used if library thinks it has to call the preferences dialog.
// e.g. when it detects a bad configuration.
- connect(m_kttslib, SIGNAL(signalCallPreferences()),
- this, SLOT(slotPreferences()) );
+ connect(m_kttslib, TQT_SIGNAL(signalCallPreferences()),
+ this, TQT_SLOT(slotPreferences()) );
// init Clipboard
- cb = QApplication::clipboard();
- connect(cb, SIGNAL(dataChanged()), this, SLOT(slotClipboardChanged()) );
+ cb = TQApplication::clipboard();
+ connect(cb, TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotClipboardChanged()) );
// create SystemTray object
tray = new KSayItSystemTray(this, "system_tray");
- connect(tray, SIGNAL(signalCallPreferences()), this, SLOT(slotPreferences()) );
- connect(tray, SIGNAL(signalSayActivated()), this, SLOT(slotSayText()) );
- connect(tray, SIGNAL(signalSayClipboard()), this, SLOT(slotSayClipboard()) );
- connect(tray, SIGNAL(signalShutUpActivated()), this, SLOT(slotStopActivated()) );
- connect(tray, SIGNAL(signalPauseActivated()), this, SLOT(slotPauseActivated()) );
- connect(tray, SIGNAL(signalNextActivated()), this, SLOT(slotNextSentenceActivated()) );
- connect(tray, SIGNAL(signalPrevActivated()), this, SLOT(slotPrevSentenceActivated()) );
+ connect(tray, TQT_SIGNAL(signalCallPreferences()), this, TQT_SLOT(slotPreferences()) );
+ connect(tray, TQT_SIGNAL(signalSayActivated()), this, TQT_SLOT(slotSayText()) );
+ connect(tray, TQT_SIGNAL(signalSayClipboard()), this, TQT_SLOT(slotSayClipboard()) );
+ connect(tray, TQT_SIGNAL(signalShutUpActivated()), this, TQT_SLOT(slotStopActivated()) );
+ connect(tray, TQT_SIGNAL(signalPauseActivated()), this, TQT_SLOT(slotPauseActivated()) );
+ connect(tray, TQT_SIGNAL(signalNextActivated()), this, TQT_SLOT(slotNextSentenceActivated()) );
+ connect(tray, TQT_SIGNAL(signalPrevActivated()), this, TQT_SLOT(slotPrevSentenceActivated()) );
tray->show();
tray->setEnabled(true);
@@ -141,61 +141,61 @@ KSayItApp::~KSayItApp()
void KSayItApp::initActions()
{
// Standard-Actions
- open = KStdAction::open(this, SLOT(slotFileOpen()), actionCollection());
- save = KStdAction::save(this, SLOT(slotFileSave()), actionCollection());
- saveAs = KStdAction::saveAs(this, SLOT(slotFileSaveAs()), actionCollection());
- KStdAction::quit(this, SLOT(slotFileQuit()), actionCollection());
- KStdAction::close(this, SLOT(slotCloseMainWindow()), actionCollection());
- cut = KStdAction::cut(view, SLOT(slotCut()), actionCollection());
- copy = KStdAction::copy(view, SLOT(slotCopy()), actionCollection());
- paste = KStdAction::paste(view, SLOT(slotPaste()), actionCollection());
- preferences = KStdAction::preferences(this, SLOT(slotPreferences()), actionCollection());
- KStdAction::keyBindings(this, SLOT(slotEditKeys()), actionCollection());
- KStdAction::configureToolbars(this, SLOT(slotConfigureToolbar()), actionCollection());
+ open = KStdAction::open(this, TQT_SLOT(slotFileOpen()), actionCollection());
+ save = KStdAction::save(this, TQT_SLOT(slotFileSave()), actionCollection());
+ saveAs = KStdAction::saveAs(this, TQT_SLOT(slotFileSaveAs()), actionCollection());
+ KStdAction::quit(this, TQT_SLOT(slotFileQuit()), actionCollection());
+ KStdAction::close(this, TQT_SLOT(slotCloseMainWindow()), actionCollection());
+ cut = KStdAction::cut(view, TQT_SLOT(slotCut()), actionCollection());
+ copy = KStdAction::copy(view, TQT_SLOT(slotCopy()), actionCollection());
+ paste = KStdAction::paste(view, TQT_SLOT(slotPaste()), actionCollection());
+ preferences = KStdAction::preferences(this, TQT_SLOT(slotPreferences()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(slotEditKeys()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(slotConfigureToolbar()), actionCollection());
KStdAction::showToolbar("mainToolBar", actionCollection());
- statusBarAction = KStdAction::showStatusbar(this, SLOT(slotToggleStatusBar()), actionCollection());
+ statusBarAction = KStdAction::showStatusbar(this, TQT_SLOT(slotToggleStatusBar()), actionCollection());
// User defined actions
say = new KAction (i18n("Say"),
Qt::Key_F9,
- this, SLOT (slotSayText()),
+ this, TQT_SLOT (slotSayText()),
actionCollection(),
"say_it");
pause = new KAction (i18n("Pause"),
Qt::Key_Pause,
- this, SLOT (slotPauseActivated()),
+ this, TQT_SLOT (slotPauseActivated()),
actionCollection(),
"pause");
shutup = new KAction (i18n("Shut Up"),
Qt::Key_F10,
- this, SLOT (slotStopActivated()),
+ this, TQT_SLOT (slotStopActivated()),
actionCollection(),
"shut_up");
next_sentence = new KAction (i18n("Next Sentence"),
Qt::Key_Next,
- this, SLOT (slotNextSentenceActivated()),
+ this, TQT_SLOT (slotNextSentenceActivated()),
actionCollection(),
"next_sentence");
prev_sentence = new KAction (i18n("Previous Sentence"),
Qt::Key_Prior,
- this, SLOT(slotPrevSentenceActivated()),
+ this, TQT_SLOT(slotPrevSentenceActivated()),
actionCollection(),
"prev_sentence");
clear = new KAction (i18n("Clear"),
Qt::Key_F12,
- this, SLOT(slotClear()),
+ this, TQT_SLOT(slotClear()),
actionCollection(),
"clear");
edit = new KToggleAction( i18n("Edit Text"),
0,
- this, SLOT(slotEditToggled()),
+ this, TQT_SLOT(slotEditToggled()),
actionCollection(),
"edittext");
@@ -225,9 +225,9 @@ void KSayItApp::initActions()
}
-void KSayItApp::initBookmarkManager(const QString &filename)
+void KSayItApp::initBookmarkManager(const TQString &filename)
{
- QString bkFile = getBookmarkDir( filename );
+ TQString bkFile = getBookmarkDir( filename );
if ( bkFile.isNull() )
return;
@@ -247,14 +247,14 @@ void KSayItApp::initBookmarkManager(const QString &filename)
}
-void KSayItApp::slotNotifyBookmarkHandler(const QString &ID, const QString &title)
+void KSayItApp::slotNotifyBookmarkHandler(const TQString &ID, const TQString &title)
{
if ( bkHandler )
bkHandler->notifyBookmarkHandler(ID, title);
}
-void KSayItApp::slotDeleteBookmark(const QString &url, const QString &title)
+void KSayItApp::slotDeleteBookmark(const TQString &url, const TQString &title)
{
kdDebug(100200) << "KSayItApp::slotDeleteBookmark(" << url << ")" << endl;
if ( bkHandler )
@@ -262,16 +262,16 @@ void KSayItApp::slotDeleteBookmark(const QString &url, const QString &title)
}
-QString KSayItApp::getBookmarkDir(const QString &filename)
+TQString KSayItApp::getBookmarkDir(const TQString &filename)
{
- QString bkRelPath = "ksayit/ksayit_bookmarks/" + filename + ".bookmarks";
- QString bkFile;
+ TQString bkRelPath = "ksayit/ksayit_bookmarks/" + filename + ".bookmarks";
+ TQString bkFile;
bkFile = locateLocal("data", bkRelPath);
return bkFile;
}
-void KSayItApp::slotSetBookmarkFilename(const QString &newname)
+void KSayItApp::slotSetBookmarkFilename(const TQString &newname)
{
kdDebug(100200) << "KSayItApp::slotSetBookmarkFilename(" << newname << ")" << endl;
@@ -279,21 +279,21 @@ void KSayItApp::slotSetBookmarkFilename(const QString &newname)
}
-void KSayItApp::slotChangeBookmarkFilename(const QString &newname)
+void KSayItApp::slotChangeBookmarkFilename(const TQString &newname)
{
kdDebug(100200) << "KSayItApp::slotChangeBookmarkFilename(" << newname << ")" << endl;
if ( m_currentBookmarkFile.isNull() )
return;
- QString newbkFile = getBookmarkDir(newname);
+ TQString newbkFile = getBookmarkDir(newname);
if ( newbkFile.isNull() )
return;
// copy old bookmarkfile to new file
if ( m_currentBookmarkFile != newbkFile ){
- if ( QFile::exists(m_currentBookmarkFile) ){
- QString command = QString("cp %1 %2").arg(m_currentBookmarkFile).arg(newbkFile);
+ if ( TQFile::exists(m_currentBookmarkFile) ){
+ TQString command = TQString("cp %1 %2").arg(m_currentBookmarkFile).arg(newbkFile);
system( command.ascii() );
}
// install new BookmarkHandler based on the new file
@@ -302,9 +302,9 @@ void KSayItApp::slotChangeBookmarkFilename(const QString &newname)
}
-QString KSayItApp::setItemByBookmark( const QString &ID, const QString &title )
+TQString KSayItApp::setItemByBookmark( const TQString &ID, const TQString &title )
{
- QString result;
+ TQString result;
result = treeview->selectItemByID( ID, title );
return result;
}
@@ -325,17 +325,17 @@ void KSayItApp::initView()
view->setMinimumSize(view->sizeHint());
setCentralWidget(view);
// connections
- connect( view, SIGNAL(signalEnableCopyCut(bool)),
- this, SLOT(slotEnableCopyCut(bool)));
- connect( view, SIGNAL(signalShowStatus(const QString &)),
- this, SLOT(slotStatusMsg(const QString &)));
- connect( view, SIGNAL(signalSetCaption(const QString &)),
- this, SLOT(slotSetCaption(const QString &)));
- connect( view, SIGNAL(signalTextChanged(bool)),
- this, SLOT(slotTextChanged(bool)) );
+ connect( view, TQT_SIGNAL(signalEnableCopyCut(bool)),
+ this, TQT_SLOT(slotEnableCopyCut(bool)));
+ connect( view, TQT_SIGNAL(signalShowStatus(const TQString &)),
+ this, TQT_SLOT(slotStatusMsg(const TQString &)));
+ connect( view, TQT_SIGNAL(signalSetCaption(const TQString &)),
+ this, TQT_SLOT(slotSetCaption(const TQString &)));
+ connect( view, TQT_SIGNAL(signalTextChanged(bool)),
+ this, TQT_SLOT(slotTextChanged(bool)) );
// DockWindow
- QDockWindow *docview = new QDockWindow(QDockWindow::InDock, this, "docview");
+ TQDockWindow *docview = new TQDockWindow(TQDockWindow::InDock, this, "docview");
treeview = new DocTreeViewImpl(docview, "treeview");
treeview->enableContextMenus( true );
// treeview->clear();
@@ -344,22 +344,22 @@ void KSayItApp::initView()
this->setDockEnabled(docview, Qt::DockTop, false);
this->setDockEnabled(docview, Qt::DockBottom, false);
this->moveDockWindow(docview, Qt::DockLeft);
- connect( treeview, SIGNAL(signalContentChanged(const QString&)),
- this, SLOT(slotTreeViewChanged(const QString&)) );
- connect( treeview, SIGNAL(signalSetText(const QString&)),
- this, SLOT(slotSetText(const QString&)) );
- connect( treeview, SIGNAL(signalAllNodesProcessed()),
- this, SLOT(slotSayNode()) );
- connect( treeview, SIGNAL(signalEnableTextedit(bool)),
- this, SLOT(slotEnableTextedit(bool)) );
- connect( treeview, SIGNAL(signalNotifyBookmarkManager(const QString&, const QString&)),
- this, SLOT(slotNotifyBookmarkHandler(const QString&, const QString&)) );
- connect( treeview, SIGNAL(signalSetBookmarkFilename(const QString&)),
- this, SLOT(slotSetBookmarkFilename(const QString&)) );
- connect( treeview, SIGNAL(signalChangeBookmarkFilename(const QString&)),
- this, SLOT(slotChangeBookmarkFilename(const QString&)) );
- connect( treeview, SIGNAL(signalDeleteBookmark(const QString&, const QString&)),
- this, SLOT(slotDeleteBookmark(const QString&, const QString&)) );
+ connect( treeview, TQT_SIGNAL(signalContentChanged(const TQString&)),
+ this, TQT_SLOT(slotTreeViewChanged(const TQString&)) );
+ connect( treeview, TQT_SIGNAL(signalSetText(const TQString&)),
+ this, TQT_SLOT(slotSetText(const TQString&)) );
+ connect( treeview, TQT_SIGNAL(signalAllNodesProcessed()),
+ this, TQT_SLOT(slotSayNode()) );
+ connect( treeview, TQT_SIGNAL(signalEnableTextedit(bool)),
+ this, TQT_SLOT(slotEnableTextedit(bool)) );
+ connect( treeview, TQT_SIGNAL(signalNotifyBookmarkManager(const TQString&, const TQString&)),
+ this, TQT_SLOT(slotNotifyBookmarkHandler(const TQString&, const TQString&)) );
+ connect( treeview, TQT_SIGNAL(signalSetBookmarkFilename(const TQString&)),
+ this, TQT_SLOT(slotSetBookmarkFilename(const TQString&)) );
+ connect( treeview, TQT_SIGNAL(signalChangeBookmarkFilename(const TQString&)),
+ this, TQT_SLOT(slotChangeBookmarkFilename(const TQString&)) );
+ connect( treeview, TQT_SIGNAL(signalDeleteBookmark(const TQString&, const TQString&)),
+ this, TQT_SLOT(slotDeleteBookmark(const TQString&, const TQString&)) );
}
@@ -369,7 +369,7 @@ void KSayItApp::readOptions()
statusBarAction->setChecked(!statusBar()->isHidden());
}
-void KSayItApp::closeEvent(QCloseEvent *ce)
+void KSayItApp::closeEvent(TQCloseEvent *ce)
{
ce->ignore();
if ( !this->isVisible() ){
@@ -384,7 +384,7 @@ void KSayItApp::closeEvent(QCloseEvent *ce)
// DCOP FUNCTIONS
/////////////////////////////////////////////////////////////////////
-ASYNC KSayItApp::dcopSayText(QString msg)
+ASYNC KSayItApp::dcopSayText(TQString msg)
{
slotSetText( msg );
sayActivated();
@@ -412,7 +412,7 @@ ASYNC KSayItApp::dcopSayXmlFile(KURL url)
treeview->setEditMode( false );
}
}
- catch( QString err ){
+ catch( TQString err ){
KMessageBox::error(this, err);
save ->setEnabled(false);
saveAs->setEnabled(true);
@@ -425,7 +425,7 @@ ASYNC KSayItApp::dcopSayXmlFile(KURL url)
/////////////////////////////////////////////////////////////////////
-// SLOT IMPLEMENTATION
+// TQT_SLOT IMPLEMENTATION
/////////////////////////////////////////////////////////////////////
void KSayItApp::slotEditToggled()
@@ -451,7 +451,7 @@ void KSayItApp::slotConfigureToolbar()
{
saveMainWindowSettings( config, "MainWindow" );
KEditToolbar dlg(actionCollection(), KSAYITUI);
- connect(&dlg,SIGNAL(newToolbarConfig()),this,SLOT(slotNewToolbarConfig()));
+ connect(&dlg,TQT_SIGNAL(newToolbarConfig()),this,TQT_SLOT(slotNewToolbarConfig()));
if (dlg.exec())
{
createGUI(KSAYITUI);
@@ -471,9 +471,9 @@ void KSayItApp::slotFileOpen()
m_enableChangeNotifications = false;
// open filerequester
- QString fn;
- QString usershome( getenv("HOME") );
- KURL url = KFileDialog::getOpenURL(usershome, QString::null, this, i18n("File to Speak") );
+ TQString fn;
+ TQString usershome( getenv("HOME") );
+ KURL url = KFileDialog::getOpenURL(usershome, TQString::null, this, i18n("File to Speak") );
try{
if ( !url.isEmpty() ){
resetView();
@@ -486,7 +486,7 @@ void KSayItApp::slotFileOpen()
bookmarkmenu->setEnabled(true);
}
}
- catch( QString err ){
+ catch( TQString err ){
KMessageBox::error(this, err);
save ->setEnabled(false);
saveAs->setEnabled(true);
@@ -505,7 +505,7 @@ void KSayItApp::slotFileSave()
save ->setEnabled(false);
saveAs->setEnabled(true);
}
- catch ( QString err )
+ catch ( TQString err )
{
KMessageBox::error(this, err);
save ->setEnabled(false);
@@ -523,7 +523,7 @@ void KSayItApp::slotFileSaveAs()
saveAs->setEnabled(true);
bookmarkmenu->setEnabled(true);
}
- catch ( QString err )
+ catch ( TQString err )
{
KMessageBox::error(this, err);
save ->setEnabled(true);
@@ -549,7 +549,7 @@ void KSayItApp::slotEditKeys()
void KSayItApp::slotFileQuit()
{
slotStatusMsg(i18n("Exiting..."));
- int really = KMessageBox::questionYesNo( this, i18n("Do you really want to quit?"), QString::null, KStdGuiItem::quit(), KStdGuiItem::cancel() );
+ int really = KMessageBox::questionYesNo( this, i18n("Do you really want to quit?"), TQString::null, KStdGuiItem::quit(), KStdGuiItem::cancel() );
if (really == KMessageBox::Yes){
slotSaveOptions();
kapp->quit();
@@ -578,7 +578,7 @@ void KSayItApp::slotToggleStatusBar()
}
-void KSayItApp::slotStatusMsg(const QString &text)
+void KSayItApp::slotStatusMsg(const TQString &text)
{
// change status message permanently
statusBar()->clear();
@@ -586,7 +586,7 @@ void KSayItApp::slotStatusMsg(const QString &text)
}
-void KSayItApp::slotSetCaption(const QString &caption)
+void KSayItApp::slotSetCaption(const TQString &caption)
{
this->setCaption(caption);
}
@@ -600,7 +600,7 @@ void KSayItApp::slotPreferences()
m_fxpluginhandler,
m_kttslib);
- if (prefs->exec() == QDialog::Accepted){
+ if (prefs->exec() == TQDialog::Accepted){
delete prefs;
m_kttslib->reloadConfiguration();
m_fxpluginhandler ->readConfiguration();
@@ -719,7 +719,7 @@ void KSayItApp::slotSayNode()
}
-void KSayItApp::slotSetText(const QString &text)
+void KSayItApp::slotSetText(const TQString &text)
{
// also invoked by the treeview for the each node
if ( text.isNull() )
@@ -739,7 +739,7 @@ void KSayItApp::sayActivated()
try {
m_kttslib->sayText();
}
- catch (QString err){
+ catch (TQString err){
kdDebug(100200) << "Exception catched in KSayItApp::sayActivated()" << endl;
KMessageBox::sorry(0, err, i18n("Unable to speak text"));
slotFinished();
@@ -813,7 +813,7 @@ void KSayItApp::setActions(int actions)
// Get the mask of supported actions from the plugin.
int mask = m_kttslib->getActions();
- kdDebug(100200) << QString("KSayItApp:PSA: %1").arg(mask, 0, 2) << endl;
+ kdDebug(100200) << TQString("KSayItApp:PSA: %1").arg(mask, 0, 2) << endl;
// disable actions not supported by the plugin
int ma = actions & mask;
@@ -849,7 +849,7 @@ void KSayItApp::setActions(int actions)
}
-void KSayItApp::slotTreeViewChanged(const QString &str)
+void KSayItApp::slotTreeViewChanged(const TQString &str)
{
kdDebug(100200) << "KSayItApp::slotTreeViewChanged()" << endl;
diff --git a/ksayit/src/ksayit.h b/ksayit/src/ksayit.h
index 6da1465..fc8fef9 100644
--- a/ksayit/src/ksayit.h
+++ b/ksayit/src/ksayit.h
@@ -25,8 +25,8 @@
using namespace std;
// include files for Qt
-#include <qstringlist.h>
-#include <qclipboard.h>
+#include <tqstringlist.h>
+#include <tqclipboard.h>
// include files for KDE
#include <kapplication.h>
@@ -73,15 +73,15 @@ class KSayItApp : public KMainWindow, public DCOPObject
public:
/** construtor of KSayItApp, calls all init functions to create the application.
*/
- KSayItApp(QWidget* parent=0, const char* name=0, WFlags f=0,
- const QCString &objID=0);
+ KSayItApp(TQWidget* parent=0, const char* name=0, WFlags f=0,
+ const TQCString &objID=0);
~KSayItApp();
k_dcop:
/** DCOP interface for say operation
\param msg The text to speak.
*/
- ASYNC dcopSayText(QString msg);
+ ASYNC dcopSayText(TQString msg);
/** DCOP interface for stop operation
*/
@@ -101,7 +101,7 @@ private slots:
/** Puts the given text on the Job-Stack of KTTSD.
* \param text The text to say.
*/
- void slotSetText(const QString &text);
+ void slotSetText(const TQString &text);
/** Called from the ListView widget after one or many
* 'setText'-Calls. Starts to say the text.
@@ -112,7 +112,7 @@ private slots:
* new content in the edit window must be shown.
* \str The new content of the EditView.
*/
- void slotTreeViewChanged(const QString &str);
+ void slotTreeViewChanged(const TQString &str);
/** save general Options like all bar positions and status as well as the geometry to
* the configuration file.
@@ -127,7 +127,7 @@ private slots:
* current actions.
* @param text the text that is displayed in the statusbar
*/
- void slotStatusMsg(const QString &text);
+ void slotStatusMsg(const TQString &text);
/** opens the Preferences-Dialog.
*/
@@ -167,7 +167,7 @@ private slots:
void slotEnableCopyCut(bool enable);
/** sets the Caption of the MainWindow */
- void slotSetCaption(const QString &caption);
+ void slotSetCaption(const TQString &caption);
/** called when the Text was changed.
* \param empty True if the TextEdit view is empty.
@@ -193,7 +193,7 @@ private slots:
/** Called to delete a bookmark
*/
- void slotDeleteBookmark(const QString &url, const QString &title);
+ void slotDeleteBookmark(const TQString &url, const TQString &title);
/** Called to edit bookmarks.
*/
@@ -245,7 +245,7 @@ private slots:
* Catches the signal from the TreeView object
* and forwards it to the BookmarkHandler object.
*/
- void slotNotifyBookmarkHandler(const QString &ID, const QString &title);
+ void slotNotifyBookmarkHandler(const TQString &ID, const TQString &title);
/**
* Copies the content of the current bookmark file to the
@@ -253,22 +253,22 @@ private slots:
* BookmarkHandler.
* \param newname The name of the new bookmark file.
*/
- void slotChangeBookmarkFilename(const QString &newname);
+ void slotChangeBookmarkFilename(const TQString &newname);
/** Loads bookmark file corresponding to the given file.
* \param newname The name of the new file.
*/
- void slotSetBookmarkFilename(const QString &newname);
+ void slotSetBookmarkFilename(const TQString &newname);
public:
/**
* Selects the item with the given ID in the TreeView.
* \param ID The ID of the item to select.
* \param title The title of the bookmark.
- * \returns <tt>QString::null</tt>, if the operation was successfull,
+ * \returns <tt>TQString::null</tt>, if the operation was successfull,
* an error message, if the ID was not found.
*/
- QString setItemByBookmark( const QString &ID, const QString &title );
+ TQString setItemByBookmark( const TQString &ID, const TQString &title );
private: // Methods
/** read general Options again and initialize all variables.
@@ -284,7 +284,7 @@ private: // Methods
/**
*/
- void initBookmarkManager(const QString &filename);
+ void initBookmarkManager(const TQString &filename);
/** creates the centerwidget of the KTMainWindow instance and sets it as the view.
*/
@@ -300,7 +300,7 @@ private: // Methods
/** reimplemented from baseclass
*/
- virtual void closeEvent(QCloseEvent *ce);
+ virtual void closeEvent(TQCloseEvent *ce);
/** disable/enable Actions.
* \param actions An OR'ed integer of enum ACTIONS. A '1' is supposed
@@ -315,9 +315,9 @@ private: // Methods
* \p ksayit/ksayit_bookmarks/.
* \param filename The name of the bookmark file.
* \returns The absolute pathname of the given bookmark file.
- * Returns \p QString::null if the operation was not successfull.
+ * Returns \p TQString::null if the operation was not successfull.
*/
- QString getBookmarkDir(const QString &filename);
+ TQString getBookmarkDir(const TQString &filename);
private:
@@ -350,14 +350,14 @@ private:
// Misc stuff
QClipboard *cb;
- QString clip;
+ TQString clip;
KTTSDLib *m_kttslib;
FXPluginHandler *m_fxpluginhandler;
bool m_ap_saying;
bool m_ap_paused;
bool m_textview_empty;
bool m_enableChangeNotifications;
- QString m_currentBookmarkFile;
+ TQString m_currentBookmarkFile;
};
diff --git a/ksayit/src/ksayit_fxplugin.h b/ksayit/src/ksayit_fxplugin.h
index 9956df6..852c522 100644
--- a/ksayit/src/ksayit_fxplugin.h
+++ b/ksayit/src/ksayit_fxplugin.h
@@ -13,8 +13,8 @@
#define FXPLUGIN_H
// QT includes
-#include <qobject.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqstring.h>
// KDE includes
#include <kapplication.h>
@@ -37,7 +37,7 @@ class FXPlugin : public QObject
{
// Q_OBJECT
public:
- FXPlugin(QObject *parent=0, const char* name=0){};
+ FXPlugin(TQObject *parent=0, const char* name=0){};
/** Sets the Main application object. Useful for config objects etc.
*/
@@ -49,12 +49,12 @@ public:
* The PluginHandler internally references to each effect plugin by this name.\n
* Has to be reimplemented by the plugin implementation.
*/
- virtual QString getName_KS() const = 0;
+ virtual TQString getName_KS() const = 0;
/** Returns the description of the plugin.\n
* Has to be reimplemented by the plugin implementation.
*/
- virtual QString getDescription_KS() const = 0;
+ virtual TQString getDescription_KS() const = 0;
/** Shows the GUI to configure the plugin. The configuration can to be
* stored in the global configuration file of KSayIt.\n
diff --git a/ksayit/src/ksayit_ttsplugin.h b/ksayit/src/ksayit_ttsplugin.h
index 1035993..e0f8d31 100644
--- a/ksayit/src/ksayit_ttsplugin.h
+++ b/ksayit/src/ksayit_ttsplugin.h
@@ -14,10 +14,10 @@
#define KSAYIT_TTSPLUGIN
// QT includes
-#include <qobject.h>
-#include <qwidget.h>
-#include <qframe.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqwidget.h>
+#include <tqframe.h>
+#include <tqstring.h>
// KDE includes
@@ -65,7 +65,7 @@
class TTSPlugin : public QObject
{
protected:
- TTSPlugin(QObject *parent, const char *name) : QObject(parent, name){};
+ TTSPlugin(TQObject *parent, const char *name) : TQObject(parent, name){};
public:
/** Returns the name of the plugin. This name is the unique identifier
@@ -74,12 +74,12 @@ public:
* The PluginHandler internally references to each TTS plugin by this name.\n
* Has to be reimplemented by the plugin implementation.
*/
- virtual QString getName_KS() const = 0;
+ virtual TQString getName_KS() const = 0;
/** Returns the description of the plugin.\n
* Has to be reimplemented by the plugin implementation.
*/
- virtual QString getDescription_KS() const = 0;
+ virtual TQString getDescription_KS() const = 0;
/** Returns the supported control actions of the plugin.
* It is represented as an OR'ed value of enum \pACTIONS.
@@ -88,10 +88,10 @@ public:
/** Returnes a pointer to the GUI widget to configure the plugin.\n
* Will be deleted by the PluginHandler.\n
- * \param frame A pointer to the QFrame object in which the dialog will
+ * \param frame A pointer to the TQFrame object in which the dialog will
* be embedded.
*/
- virtual const QWidget* getGUI_KS(QFrame *frame) = 0;
+ virtual const TQWidget* getGUI_KS(TQFrame *frame) = 0;
/** Let the plugin (re)load its configuration
*/
@@ -109,14 +109,14 @@ public:
* In this case, KSayIt uses a built-in audio player to play back
* the file via aRts.\n
* If this plugin provides its own audio output mechanisms, then return
- * \p QString::null.\n
+ * \p TQString::null.\n
* The TTS processing shall be implemented non-blocking, i.e. this function has
* to return a valid string as soon as possible, before the typically time
* consuming TTS processing starts. The synchronization with KSayIt shall
* be performed by the status flags (see \p getStatus_KS()).
* \param text The text to speach.
*/
- virtual QString sayText_KS(const QString &text) = 0;
+ virtual TQString sayText_KS(const TQString &text) = 0;
/** Returns an OR'ed value of status bits of the plugin.\n
* Currently only \p TTS::AUDIOFILE is defined.\n This
diff --git a/ksayit/src/ksayitbookmarkhandler.cpp b/ksayit/src/ksayitbookmarkhandler.cpp
index b52cdd7..7a45247 100644
--- a/ksayit/src/ksayitbookmarkhandler.cpp
+++ b/ksayit/src/ksayitbookmarkhandler.cpp
@@ -11,7 +11,7 @@
//
// Qt include
-#include <qregexp.h>
+#include <tqregexp.h>
// KDE includes
#include <kdebug.h>
@@ -26,8 +26,8 @@
KSayItBookmarkHandler::KSayItBookmarkHandler(KBookmarkManager *bkManager, KSayItApp* parent)
: KBookmarkOwner(), m_bkManager(bkManager), m_parent(parent)
{
- m_ID = QString::null;
- m_title = QString::null;
+ m_ID = TQString::null;
+ m_title = TQString::null;
}
KSayItBookmarkHandler::~KSayItBookmarkHandler()
@@ -35,7 +35,7 @@ KSayItBookmarkHandler::~KSayItBookmarkHandler()
}
-void KSayItBookmarkHandler::notifyBookmarkHandler(const QString &ID, const QString &title)
+void KSayItBookmarkHandler::notifyBookmarkHandler(const TQString &ID, const TQString &title)
{
kdDebug(100200) << "KSayItBookmarkHandler::notifyBookmarkManager()" << endl;
@@ -44,15 +44,15 @@ void KSayItBookmarkHandler::notifyBookmarkHandler(const QString &ID, const QStri
}
-void KSayItBookmarkHandler::openBookmarkURL(const QString &url)
+void KSayItBookmarkHandler::openBookmarkURL(const TQString &url)
{
kdDebug(100200) << "KSayItBookmarkHandler::openBookmarkURL(" << url << ")" << endl;
- QString l_url = url;
- QString title = QString::null;
- QString type = l_url.section( "://", 0, 0 );
- QString ID = l_url.section( QRegExp("/+"), 1, 1 );
- QString err = QString::null;
+ TQString l_url = url;
+ TQString title = TQString::null;
+ TQString type = l_url.section( "://", 0, 0 );
+ TQString ID = l_url.section( TQRegExp("/+"), 1, 1 );
+ TQString err = TQString::null;
// Some checks
if ( type != "ksayit" ){
@@ -71,7 +71,7 @@ void KSayItBookmarkHandler::openBookmarkURL(const QString &url)
title = bookmark.text();
}
- QString result = QString::null;
+ TQString result = TQString::null;
result = m_parent->setItemByBookmark( ID, title );
if ( !result.isNull() ){
KMessageBox::sorry( 0, result, i18n("Bookmark not found") );
@@ -79,11 +79,11 @@ void KSayItBookmarkHandler::openBookmarkURL(const QString &url)
}
-QString KSayItBookmarkHandler::currentTitle() const
+TQString KSayItBookmarkHandler::currentTitle() const
{
kdDebug(100200) << "KSayItBookmarkHandler::currentTitle()" << endl;
- QString result;
+ TQString result;
if ( m_title.isEmpty()){
result = i18n("untitled");
} else {
@@ -94,18 +94,18 @@ QString KSayItBookmarkHandler::currentTitle() const
}
-QString KSayItBookmarkHandler::currentURL() const
+TQString KSayItBookmarkHandler::currentURL() const
{
kdDebug(100200) << "KSayItBookmarkHandler::currentURL()" << endl;
- QString url;
+ TQString url;
url = "ksayit://" + m_ID;
return url;
}
-void KSayItBookmarkHandler::deleteBookmark(const QString &url, const QString &title)
+void KSayItBookmarkHandler::deleteBookmark(const TQString &url, const TQString &title)
{
kdDebug(100200) << "KSayItBookmarkHandler::deleteBookmark()" << endl;
@@ -129,8 +129,8 @@ void KSayItBookmarkHandler::deleteBookmark(const QString &url, const QString &ti
int qty = 0;
qty = recursiveGetBkByTitle( bookmark, group, bkRoot, title );
if ( qty == 1 ){
- QString url = bookmark.url().url();
- QString title = bookmark.text();
+ TQString url = bookmark.url().url();
+ TQString title = bookmark.text();
group.deleteBookmark( bookmark );
m_bkManager->emitChanged( group );
m_bkManager->save(); // make persistent
@@ -142,7 +142,7 @@ bool KSayItBookmarkHandler::recursiveGetBkByURL(
KBookmark &bookmark,
KBookmarkGroup &group,
const KBookmarkGroup &bkGroup,
- const QString &url)
+ const TQString &url)
{
KBookmark bkNext;
bool found = false;
@@ -156,7 +156,7 @@ bool KSayItBookmarkHandler::recursiveGetBkByURL(
return true;
bkNext = bkGroup.next( bk );
} else {
- QString l_url = bk.url().url();
+ TQString l_url = bk.url().url();
if ( l_url == url ){
bookmark = bk;
group = bkGroup;
@@ -174,7 +174,7 @@ int KSayItBookmarkHandler::recursiveGetBkByTitle(
KBookmark &bookmark,
KBookmarkGroup &group,
const KBookmarkGroup &bkGroup,
- const QString &title)
+ const TQString &title)
{
KBookmark bkNext;
int qty = 0;
@@ -186,7 +186,7 @@ int KSayItBookmarkHandler::recursiveGetBkByTitle(
qty += recursiveGetBkByTitle( bookmark, group, bk.toGroup(), title );
bkNext = bkGroup.next( bk );
} else {
- QString l_title = bk.text();
+ TQString l_title = bk.text();
if ( l_title == title ){
bookmark = bk;
group = bkGroup;
@@ -208,7 +208,7 @@ void KSayItBookmarkHandler::traverseBookmarks(KBookmarkGroup bkGroup)
return;
KURL url;
- QString title;
+ TQString title;
KBookmark bkNext, bkPrev, bkNew;
KBookmark bk = bkGroup.first();
@@ -228,7 +228,7 @@ void KSayItBookmarkHandler::traverseBookmarks(KBookmarkGroup bkGroup)
//
// Modifications on URL/Title END
- bkNew = bkGroup.addBookmark( m_bkManager, title, url, QString::null, false );
+ bkNew = bkGroup.addBookmark( m_bkManager, title, url, TQString::null, false );
bkGroup.moveItem( bkNew, bkPrev );
bkGroup.deleteBookmark( bk );
}
diff --git a/ksayit/src/ksayitbookmarkhandler.h b/ksayit/src/ksayitbookmarkhandler.h
index edab6d6..018ea39 100644
--- a/ksayit/src/ksayitbookmarkhandler.h
+++ b/ksayit/src/ksayitbookmarkhandler.h
@@ -13,7 +13,7 @@
#define KSAYITBOOKMARKHANDLER_H
// Qt includes
-#include <qstring.h>
+#include <tqstring.h>
// KDE includes
#include <kbookmarkmanager.h>
@@ -40,14 +40,14 @@ public:
* Called when a bookmark in the menu was clicked.
* \param url The URL of the selected bookmark.
*/
- void openBookmarkURL(const QString &url);
+ void openBookmarkURL(const TQString &url);
/**
* Reimplemented from base class.\n
* Returns the Title when a new bookmark is about to be created.
* \returns The title of the bookmark.
*/
- QString currentTitle() const;
+ TQString currentTitle() const;
/**
@@ -55,20 +55,20 @@ public:
* Returns the URL when a new bookmark is about to be created.
* \returns The URL of the bookmark.
*/
- QString currentURL() const;
+ TQString currentURL() const;
/**
* Sets ID and title of the current TreeView item.
* \param ID The unique ID of the item.
* \param title The bookmark title of the item.
*/
- void notifyBookmarkHandler(const QString &ID, const QString &title);
+ void notifyBookmarkHandler(const TQString &ID, const TQString &title);
/**
* Deletes the bookmark designated by the given url.
* \param url The url of the bookmark.
*/
- void deleteBookmark(const QString &url, const QString &title);
+ void deleteBookmark(const TQString &url, const TQString &title);
/**
* Iterates recursively through all bookmarks below the
@@ -92,7 +92,7 @@ private:
KBookmark &bookmark,
KBookmarkGroup &group,
const KBookmarkGroup &bkGroup,
- const QString &url);
+ const TQString &url);
/**
* Searches the Bookmark designted by its URL.
@@ -108,10 +108,10 @@ private:
KBookmark &bookmark,
KBookmarkGroup &group,
const KBookmarkGroup &bkGroup,
- const QString &title);
+ const TQString &title);
private:
- QString m_ID;
- QString m_title;
+ TQString m_ID;
+ TQString m_title;
KBookmarkManager *m_bkManager;
KSayItApp *m_parent;
diff --git a/ksayit/src/ksayitsystemtray.cpp b/ksayit/src/ksayitsystemtray.cpp
index 82bda61..e2001cd 100644
--- a/ksayit/src/ksayitsystemtray.cpp
+++ b/ksayit/src/ksayitsystemtray.cpp
@@ -17,7 +17,7 @@
#include <iostream>
// QT includes
-#include <qtranslator.h>
+#include <tqtranslator.h>
// KDE includes
#include <kglobal.h>
@@ -26,7 +26,7 @@
// App specific includes
#include "ksayitsystemtray.h"
-KSayItSystemTray::KSayItSystemTray(QWidget *parent, const char *name)
+KSayItSystemTray::KSayItSystemTray(TQWidget *parent, const char *name)
: KSystemTray(parent,name)
{
initActions();
@@ -46,36 +46,36 @@ void KSayItSystemTray::initActions()
menu = this->contextMenu();
help = new KHelpMenu(this, kapp->aboutData(), false, actionCollection());
// Standard actions
- settings = KStdAction::preferences(this, SLOT(slotPreferences()), actionCollection());
- help_about = KStdAction::aboutApp(help, SLOT(aboutApplication()), actionCollection());
- help_kde = KStdAction::aboutKDE(help, SLOT(aboutKDE()), actionCollection());
+ settings = KStdAction::preferences(this, TQT_SLOT(slotPreferences()), actionCollection());
+ help_about = KStdAction::aboutApp(help, TQT_SLOT(aboutApplication()), actionCollection());
+ help_kde = KStdAction::aboutKDE(help, TQT_SLOT(aboutKDE()), actionCollection());
// User defined actions
say = new KAction(i18n("Say"),
"player_play",
0,
- this, SLOT (slotSayActivated()),
+ this, TQT_SLOT (slotSayActivated()),
actionCollection(),
"say_it");
shutup = new KAction(i18n("Shut Up"),
"player_stop",
0,
- this, SLOT (slotStopActivated()),
+ this, TQT_SLOT (slotStopActivated()),
actionCollection(),
"shut_up");
pause = new KAction (i18n("Pause"),
"player_pause",
0,
- this, SLOT (slotPauseActivated()),
+ this, TQT_SLOT (slotPauseActivated()),
actionCollection(),
"pause");
next_sentence = new KAction (i18n("Next Sentence"),
"2rightarrow",
0,
- this, SLOT (slotNextSentenceActivated()),
+ this, TQT_SLOT (slotNextSentenceActivated()),
actionCollection(),
"next_sentence");
@@ -83,7 +83,7 @@ void KSayItSystemTray::initActions()
prev_sentence = new KAction (i18n("Previous Sentence"),
"2leftarrow",
0,
- this, SLOT(slotPrevSentenceActivated()),
+ this, TQT_SLOT(slotPrevSentenceActivated()),
actionCollection(),
"prev_sentence");
@@ -112,12 +112,12 @@ void KSayItSystemTray::slotPreferences()
emit signalCallPreferences();
}
-void KSayItSystemTray::mousePressEvent(QMouseEvent *me)
+void KSayItSystemTray::mousePressEvent(TQMouseEvent *me)
{
_state->mousePressEvent(this, me);
}
-void KSayItSystemTray::mouseReleaseEvent(QMouseEvent *me)
+void KSayItSystemTray::mouseReleaseEvent(TQMouseEvent *me)
{
_state->mouseReleaseEvent(this, me);
}
@@ -170,12 +170,12 @@ void KSayItSystemTray::setActions(bool sayEnabled, bool pauseEnabled, bool shutu
}
-void KSayItSystemTray::normalMousePressEvent(QMouseEvent *e)
+void KSayItSystemTray::normalMousePressEvent(TQMouseEvent *e)
{
KSystemTray::mousePressEvent(e);
}
-void KSayItSystemTray::normalMouseReleaseEvent(QMouseEvent *e)
+void KSayItSystemTray::normalMouseReleaseEvent(TQMouseEvent *e)
{
KSystemTray::mouseReleaseEvent(e);
}
@@ -194,12 +194,12 @@ State::State(){
State::~State(){
}
-void State::mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void State::mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
// reimplemented by subclasses
}
-void State::mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void State::mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
// reimplemented by subclasses
}
@@ -219,12 +219,12 @@ void State::say(KSayItSystemTray *caller)
caller->sayClipboard();
}
-void State::mousePressEventCall(KSayItSystemTray *caller, QMouseEvent *e)
+void State::mousePressEventCall(KSayItSystemTray *caller, TQMouseEvent *e)
{
caller->normalMousePressEvent(e);
}
-void State::mouseReleaseEventCall(KSayItSystemTray *caller, QMouseEvent *e)
+void State::mouseReleaseEventCall(KSayItSystemTray *caller, TQMouseEvent *e)
{
caller->normalMouseReleaseEvent(e);
}
@@ -251,16 +251,16 @@ void StateWAIT::setContext(KSayItSystemTray *caller)
caller->setPixmap( m_traypixmap );
}
-void StateWAIT::mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void StateWAIT::mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
if (e->button()==LeftButton){ // left Mouse-button pressed
- QWidget::mousePressEvent(e); // do nothing (see mouseReleaseEvent)
+ TQWidget::mousePressEvent(e); // do nothing (see mouseReleaseEvent)
} else {
mousePressEventCall(caller, e); // normal mouse-handling
}
}
-void StateWAIT::mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void StateWAIT::mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
if (e->button()==LeftButton){ // left Mouse-button released
say(caller);
@@ -292,19 +292,19 @@ void StateSAY::setContext(KSayItSystemTray *caller)
caller->setPixmap( m_traypixmap );
}
-void StateSAY::mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void StateSAY::mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
if (e->button()==LeftButton){ // left Mouse-button pressed
- QWidget::mousePressEvent(e); // do nothing (see mouseReleaseEvent)
+ TQWidget::mousePressEvent(e); // do nothing (see mouseReleaseEvent)
} else {
mousePressEventCall(caller, e); // normal mouse-handling
}
}
-void StateSAY::mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void StateSAY::mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
if (e->button()==LeftButton){ // left Mouse-button released
- QWidget::mouseReleaseEvent(e); // do nothing (see mouseReleaseEvent)
+ TQWidget::mouseReleaseEvent(e); // do nothing (see mouseReleaseEvent)
} else {
mouseReleaseEventCall(caller, e); // normal mouse-handling
}
@@ -334,19 +334,19 @@ void StateCLIPEMPTY::setContext(KSayItSystemTray *caller)
caller->setPixmap( m_traypixmap );
}
-void StateCLIPEMPTY::mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void StateCLIPEMPTY::mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
if (e->button()==LeftButton){ // left Mouse-button pressed
- QWidget::mousePressEvent(e); // do nothing (see mouseReleaseEvent)
+ TQWidget::mousePressEvent(e); // do nothing (see mouseReleaseEvent)
} else {
mousePressEventCall(caller, e); // normal mouse-handling
}
}
-void StateCLIPEMPTY::mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void StateCLIPEMPTY::mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
if (e->button()==LeftButton){ // left Mouse-button released
- QWidget::mouseReleaseEvent(e); // do nothing (see mouseReleaseEvent)
+ TQWidget::mouseReleaseEvent(e); // do nothing (see mouseReleaseEvent)
} else {
mouseReleaseEventCall(caller, e); // normal mouse-handling
}
diff --git a/ksayit/src/ksayitsystemtray.h b/ksayit/src/ksayitsystemtray.h
index 90db592..90b15fb 100644
--- a/ksayit/src/ksayitsystemtray.h
+++ b/ksayit/src/ksayitsystemtray.h
@@ -19,8 +19,8 @@
#define KSAYITSYSTEMTRAY_H
// QT includes
-#include <qwidget.h>
-#include <qpixmap.h>
+#include <tqwidget.h>
+#include <tqpixmap.h>
// KDE includes
#include <kapplication.h>
@@ -43,7 +43,7 @@ class KSayItSystemTray : public KSystemTray {
friend class State;
public:
- KSayItSystemTray(QWidget *parent=0, const char *name=0);
+ KSayItSystemTray(TQWidget *parent=0, const char *name=0);
~KSayItSystemTray();
signals:
@@ -105,19 +105,19 @@ public:
protected: // Methods
/** Reimplementation from base class
*/
- void mousePressEvent(QMouseEvent *);
+ void mousePressEvent(TQMouseEvent *);
/** Reimplementation from base class
*/
- void mouseReleaseEvent(QMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
/** KSystemTray default mouse handling
*/
- void normalMousePressEvent(QMouseEvent *e);
+ void normalMousePressEvent(TQMouseEvent *e);
/** KSystemTray default mouse handling
*/
- void normalMouseReleaseEvent(QMouseEvent *e);
+ void normalMouseReleaseEvent(TQMouseEvent *e);
/** Called if the Tray icon was clicked.
*/
@@ -153,15 +153,15 @@ public:
State();
~State();
- virtual void mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e);
- virtual void mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e);
+ virtual void mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e);
+ virtual void mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e);
virtual void setContext(KSayItSystemTray *caller);
protected:
void changeState(KSayItSystemTray *caller, State *state);
void say(KSayItSystemTray *caller);
- void mousePressEventCall(KSayItSystemTray *caller, QMouseEvent *e);
- void mouseReleaseEventCall(KSayItSystemTray *caller, QMouseEvent *e);
+ void mousePressEventCall(KSayItSystemTray *caller, TQMouseEvent *e);
+ void mouseReleaseEventCall(KSayItSystemTray *caller, TQMouseEvent *e);
};
@@ -175,13 +175,13 @@ public:
protected:
StateWAIT();
- void mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e);
- void mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e);
+ void mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e);
+ void mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e);
void setContext(KSayItSystemTray *caller);
private:
static StateWAIT *_instance;
- QPixmap m_traypixmap;
+ TQPixmap m_traypixmap;
};
@@ -195,13 +195,13 @@ public:
protected:
StateSAY();
- void mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e);
- void mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e);
+ void mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e);
+ void mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e);
void setContext(KSayItSystemTray *caller);
private:
static StateSAY *_instance;
- QPixmap m_traypixmap;
+ TQPixmap m_traypixmap;
};
@@ -215,13 +215,13 @@ public:
protected:
StateCLIPEMPTY();
- void mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e);
- void mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e);
+ void mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e);
+ void mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e);
void setContext(KSayItSystemTray *caller);
private:
static StateCLIPEMPTY *_instance;
- QPixmap m_traypixmap;
+ TQPixmap m_traypixmap;
};
diff --git a/ksayit/src/ksayitviewimpl.cpp b/ksayit/src/ksayitviewimpl.cpp
index e619f8c..dfda154 100644
--- a/ksayit/src/ksayitviewimpl.cpp
+++ b/ksayit/src/ksayitviewimpl.cpp
@@ -20,9 +20,9 @@
using namespace std;
// QT includes
-#include <qradiobutton.h>
-#include <qtextstream.h>
-#include <qstring.h>
+#include <tqradiobutton.h>
+#include <tqtextstream.h>
+#include <tqstring.h>
// KDE includes
#include <kdebug.h>
@@ -33,7 +33,7 @@ using namespace std;
// App specific includes
#include "ksayitviewimpl.h"
-KSayItViewImpl::KSayItViewImpl(QWidget *parent, const char *name ) : KSayItView(parent,name) {
+KSayItViewImpl::KSayItViewImpl(TQWidget *parent, const char *name ) : KSayItView(parent,name) {
// some presets
@@ -41,7 +41,7 @@ KSayItViewImpl::KSayItViewImpl(QWidget *parent, const char *name ) : KSayItView(
KSayItViewImpl::~KSayItViewImpl(){
}
-QString& KSayItViewImpl::getText(){
+TQString& KSayItViewImpl::getText(){
t = TextEdit->text();
return t;
}
@@ -104,7 +104,7 @@ void KSayItViewImpl::textClear()
TextEdit->clear();
}
-void KSayItViewImpl::setText(const QString &text)
+void KSayItViewImpl::setText(const TQString &text)
{
// set text to text
TextEdit->setText( text );
diff --git a/ksayit/src/ksayitviewimpl.h b/ksayit/src/ksayitviewimpl.h
index fea6c36..eb288e7 100644
--- a/ksayit/src/ksayitviewimpl.h
+++ b/ksayit/src/ksayitviewimpl.h
@@ -19,8 +19,8 @@
#define KSAYITVIEWIMPL_H
// QT includes
-#include <qwidget.h>
-#include <qstring.h>
+#include <tqwidget.h>
+#include <tqstring.h>
// KDE includes
@@ -35,12 +35,12 @@ class KSayItViewImpl : public KSayItView {
Q_OBJECT
public:
- KSayItViewImpl(QWidget *parent=0, const char *name=0);
+ KSayItViewImpl(TQWidget *parent=0, const char *name=0);
~KSayItViewImpl();
signals:
- void signalSetCaption(const QString &caption);
- void signalShowStatus(const QString &status);
+ void signalSetCaption(const TQString &caption);
+ void signalShowStatus(const TQString &status);
void signalEnableCopyCut(bool enable);
/** Emitted when the text in the TextEditor view cahnges.
@@ -73,11 +73,11 @@ private slots:
public: // Methods
/** Returns the text of the TextEdit-Widget
*/
- QString& getText();
+ TQString& getText();
/** Set the content of the textEdit-Widget to text
*/
- void setText(const QString &text);
+ void setText(const TQString &text);
/** Enables/disables the Textedit
* \param enable true=enabled, false=diabled
@@ -89,7 +89,7 @@ public: // Methods
void textClear();
private:
- QString t;
+ TQString t;
};
diff --git a/ksayit/src/main.cpp b/ksayit/src/main.cpp
index 9dcf0fe..61935da 100644
--- a/ksayit/src/main.cpp
+++ b/ksayit/src/main.cpp
@@ -52,7 +52,7 @@ int main(int argc, char *argv[])
KArtsDispatcher dispatcher;
// setup DCOP
- QCString appID = app.dcopClient()->registerAs( app.name(), false );
+ TQCString appID = app.dcopClient()->registerAs( app.name(), false );
KSayItApp *ksayit = new KSayItApp(0, "MainWindow", 0, appID);
// ksayit->hide();
diff --git a/ksayit/src/parasaxparser.cpp b/ksayit/src/parasaxparser.cpp
index 575df06..9a61e0a 100644
--- a/ksayit/src/parasaxparser.cpp
+++ b/ksayit/src/parasaxparser.cpp
@@ -22,7 +22,7 @@
ParaSaxParser::ParaSaxParser()
{
- m_reader = new QXmlSimpleReader();
+ m_reader = new TQXmlSimpleReader();
m_handler = new SaxHandler();
m_reader->setContentHandler(m_handler);
@@ -30,8 +30,8 @@ ParaSaxParser::ParaSaxParser()
m_reader->setEntityResolver(m_handler);
m_reader->setDeclHandler(m_handler);
- m_XmlInputHeader = QString::null;
- m_XmlInputBody = QString::null;
+ m_XmlInputHeader = TQString::null;
+ m_XmlInputBody = TQString::null;
}
ParaSaxParser::~ParaSaxParser()
@@ -51,23 +51,23 @@ ParaSaxParser* ParaSaxParser::Instance()
}
-void ParaSaxParser::setProcessingInstruction(const QString &data)
+void ParaSaxParser::setProcessingInstruction(const TQString &data)
{
m_XmlInputHeader = data;
}
-void ParaSaxParser::setData(const QString &data)
+void ParaSaxParser::setData(const TQString &data)
{
m_XmlInputBody = data;
}
-void ParaSaxParser::getText(QString &data)
+void ParaSaxParser::getText(TQString &data)
{
- QString XmlPart = m_XmlInputHeader + m_XmlInputBody;
+ TQString XmlPart = m_XmlInputHeader + m_XmlInputBody;
- QXmlInputSource input;
+ TQXmlInputSource input;
input.setData(XmlPart);
m_handler->reset();
@@ -78,12 +78,12 @@ void ParaSaxParser::getText(QString &data)
}
-void ParaSaxParser::getRTFText(QString &data)
+void ParaSaxParser::getRTFText(TQString &data)
{
- QString XmlPart = m_XmlInputHeader + m_XmlInputBody;
+ TQString XmlPart = m_XmlInputHeader + m_XmlInputBody;
kdDebug(100200) << "ParaSaxParser::getRTFText(): " << XmlPart << endl;
- QXmlInputSource input;
+ TQXmlInputSource input;
input.setData(XmlPart);
m_handler->reset();
diff --git a/ksayit/src/parasaxparser.h b/ksayit/src/parasaxparser.h
index e76d652..6f46156 100644
--- a/ksayit/src/parasaxparser.h
+++ b/ksayit/src/parasaxparser.h
@@ -13,8 +13,8 @@
#define PARASAXPARSER_H
// Qt includes
-#include <qxml.h>
-#include <qstring.h>
+#include <tqxml.h>
+#include <tqstring.h>
// App specific includes
#include "saxhandler.h"
@@ -39,27 +39,27 @@ public:
* info, e.g. to resolve entities defined in the internal DTD.
* \param data The header (preamble) of the DocBook document.
*/
- void setProcessingInstruction(const QString &data);
+ void setProcessingInstruction(const TQString &data);
/**
* This is the 'para' element to parse. It has to be encapsulated
* in <para> and </para>. Nested 'para' elements are not supported.
* \param data See description.
*/
- void setData(const QString &data);
+ void setData(const TQString &data);
/**
* Returns the pure text content of the paragraph without tags.
* \param data See description.
*/
- void getText(QString &data);
+ void getText(TQString &data);
/**
* Returns the text in RTF format, i.e. replaces DocBook tags
* with RTF tags.
* \param data See description.
*/
- void getRTFText(QString &data);
+ void getRTFText(TQString &data);
protected:
ParaSaxParser();
@@ -67,9 +67,9 @@ protected:
private:
static ParaSaxParser* _instance;
SaxHandler* m_handler;
- QXmlSimpleReader* m_reader;
- QString m_XmlInputHeader;
- QString m_XmlInputBody;
+ TQXmlSimpleReader* m_reader;
+ TQString m_XmlInputHeader;
+ TQString m_XmlInputBody;
};
diff --git a/ksayit/src/saxhandler.cpp b/ksayit/src/saxhandler.cpp
index 2f8d49c..9f6354c 100644
--- a/ksayit/src/saxhandler.cpp
+++ b/ksayit/src/saxhandler.cpp
@@ -21,9 +21,9 @@
#include "saxhandler.h"
SaxHandler::SaxHandler()
- : QXmlDefaultHandler()
+ : TQXmlDefaultHandler()
{
- m_output = QString::null;
+ m_output = TQString::null;
m_rtf = true;
m_tagmap["action"] = "B";
m_tagmap["application"] = "B";
@@ -74,21 +74,21 @@ void SaxHandler::setRTF(bool rtf)
}
-bool SaxHandler::startElement(const QString &,
- const QString &,
- const QString & qName,
- const QXmlAttributes & atts )
+bool SaxHandler::startElement(const TQString &,
+ const TQString &,
+ const TQString & qName,
+ const TQXmlAttributes & atts )
{
if ( !m_rtf )
return true;
- QString tag = qName.lower();
+ TQString tag = qName.lower();
TagMapT::iterator it;
it = m_tagmap.find(tag);
if ( it != m_tagmap.end() ){
// tag found in hash table
- QString rtftag = (*it).second;
+ TQString rtftag = (*it).second;
m_output += "<" + rtftag + ">";
}
@@ -96,20 +96,20 @@ bool SaxHandler::startElement(const QString &,
}
-bool SaxHandler::endElement(const QString &,
- const QString &,
- const QString & qName)
+bool SaxHandler::endElement(const TQString &,
+ const TQString &,
+ const TQString & qName)
{
if ( !m_rtf )
return true;
- QString tag = qName.lower();
+ TQString tag = qName.lower();
TagMapT::iterator it;
it = m_tagmap.find(tag);
if ( it != m_tagmap.end() ){
// tag found in hash table
- QString rtftag = (*it).second;
+ TQString rtftag = (*it).second;
m_output += "</" + rtftag.section(" ", 0, 0) + ">";
}
@@ -117,50 +117,50 @@ bool SaxHandler::endElement(const QString &,
}
-bool SaxHandler::characters(const QString & ch)
+bool SaxHandler::characters(const TQString & ch)
{
m_output += ch;
return true;
}
-bool SaxHandler::fatalError(const QXmlParseException &exc)
+bool SaxHandler::fatalError(const TQXmlParseException &exc)
{
- QString err = i18n("Fatal error while parsing XML-Paragraph:\n");
+ TQString err = i18n("Fatal error while parsing XML-Paragraph:\n");
err += i18n("%1, Line: %2").arg(exc.message()).arg(exc.lineNumber());
KMessageBox::error(0, err, i18n("Fatal error") );
return false;
}
-bool SaxHandler::resolveEntity(const QString &publicId,
- const QString &systemId,
- QXmlInputSource* &ret)
+bool SaxHandler::resolveEntity(const TQString &publicId,
+ const TQString &systemId,
+ TQXmlInputSource* &ret)
{
return true;
}
-bool SaxHandler::externalEntityDecl(const QString & name,
- const QString & publicId,
- const QString & systemId)
+bool SaxHandler::externalEntityDecl(const TQString & name,
+ const TQString & publicId,
+ const TQString & systemId)
{
kdDebug(100200) << "externalEntityDecl(): " << name << ", " << publicId << ", " << systemId << endl;
return true;
}
-bool SaxHandler::internalEntityDecl(const QString & name,
- const QString & value)
+bool SaxHandler::internalEntityDecl(const TQString & name,
+ const TQString & value)
{
kdDebug() << "internalEntityDecl(): " << name << ", " << value << endl;
return true;
}
-bool SaxHandler::skippedEntity(const QString &name)
+bool SaxHandler::skippedEntity(const TQString &name)
{
- QString warn = i18n("Unresolved entity found: %1.\n").arg(name);
+ TQString warn = i18n("Unresolved entity found: %1.\n").arg(name);
warn += i18n("KSayIt does not support DocBook files with external entities. ");
warn += i18n("Parsing can continue, but the resulting text will contain gaps.");
@@ -173,7 +173,7 @@ bool SaxHandler::skippedEntity(const QString &name)
}
-void SaxHandler::getData( QString &data ) const
+void SaxHandler::getData( TQString &data ) const
{
data = m_output;
}
@@ -181,7 +181,7 @@ void SaxHandler::getData( QString &data ) const
void SaxHandler::reset()
{
- m_output = QString::null;
+ m_output = TQString::null;
}
diff --git a/ksayit/src/saxhandler.h b/ksayit/src/saxhandler.h
index 45061f3..4e611b7 100644
--- a/ksayit/src/saxhandler.h
+++ b/ksayit/src/saxhandler.h
@@ -17,10 +17,10 @@
using namespace std;
// Qt includes
-#include <qxml.h>
-#include <qstring.h>
+#include <tqxml.h>
+#include <tqstring.h>
-typedef map<QString, QString> TagMapT;
+typedef map<TQString, TQString> TagMapT;
/**
@@ -33,36 +33,36 @@ public:
~SaxHandler();
// Reimplementations from base class
- bool startElement(const QString &namespaceURI,
- const QString &localName,
- const QString &qName,
- const QXmlAttributes &atts );
+ bool startElement(const TQString &namespaceURI,
+ const TQString &localName,
+ const TQString &qName,
+ const TQXmlAttributes &atts );
- bool endElement(const QString &namespaceURI,
- const QString &localName,
- const QString &qName);
+ bool endElement(const TQString &namespaceURI,
+ const TQString &localName,
+ const TQString &qName);
- bool characters(const QString &ch);
+ bool characters(const TQString &ch);
- bool fatalError(const QXmlParseException &exc);
+ bool fatalError(const TQXmlParseException &exc);
- bool resolveEntity(const QString &publicId,
- const QString &systemId,
- QXmlInputSource* &ret);
+ bool resolveEntity(const TQString &publicId,
+ const TQString &systemId,
+ TQXmlInputSource* &ret);
- bool externalEntityDecl(const QString &name,
- const QString &publicId,
- const QString &systemId);
+ bool externalEntityDecl(const TQString &name,
+ const TQString &publicId,
+ const TQString &systemId);
- bool internalEntityDecl(const QString &name,
- const QString &value);
+ bool internalEntityDecl(const TQString &name,
+ const TQString &value);
- bool skippedEntity(const QString &name);
+ bool skippedEntity(const TQString &name);
/**
* Returns the parser result.
*/
- void getData( QString &data ) const;
+ void getData( TQString &data ) const;
/**
* Reset
@@ -78,7 +78,7 @@ public:
private:
- QString m_output;
+ TQString m_output;
bool m_rtf;
TagMapT m_tagmap;
diff --git a/ksayit/src/voicesetupdlg.cpp b/ksayit/src/voicesetupdlg.cpp
index bdf6db3..d8df70a 100644
--- a/ksayit/src/voicesetupdlg.cpp
+++ b/ksayit/src/voicesetupdlg.cpp
@@ -19,12 +19,12 @@
// using namespace std;
// QT includes
-#include <qpixmap.h>
-#include <qstringlist.h>
-#include <qcombobox.h>
-#include <qcolor.h>
-#include <qlayout.h>
-#include <qwidget.h>
+#include <tqpixmap.h>
+#include <tqstringlist.h>
+#include <tqcombobox.h>
+#include <tqcolor.h>
+#include <tqlayout.h>
+#include <tqwidget.h>
// KDE includes
#include <kdebug.h>
@@ -39,7 +39,7 @@
#include "fxpluginhandler.h"
#include "kttsdlib.h"
-VoiceSetupDlg::VoiceSetupDlg(QWidget *parent, const char *name, const QString &caption,
+VoiceSetupDlg::VoiceSetupDlg(TQWidget *parent, const char *name, const TQString &caption,
bool modal,
KConfig *config,
FXPluginHandler *fxpluginhandler,
@@ -51,7 +51,7 @@ VoiceSetupDlg::VoiceSetupDlg(QWidget *parent, const char *name, const QString &c
{
setIconListAllVisible(true);
- connect (this, SIGNAL(aboutToShowPage(QWidget*)), this, SLOT(slotPageChanged(QWidget*)));
+ connect (this, TQT_SIGNAL(aboutToShowPage(TQWidget*)), this, TQT_SLOT(slotPageChanged(TQWidget*)));
initVoicePage();
initFXPage();
@@ -66,26 +66,26 @@ VoiceSetupDlg::~VoiceSetupDlg()
void VoiceSetupDlg::initVoicePage()
{
- QPixmap icon = KGlobal::iconLoader()->loadIcon("ksayit", KIcon::Toolbar, KIcon::SizeMedium);
- QFrame *voicePage = addPage( i18n( "Voice" ), i18n("Voice Settings"), icon );
- QVBoxLayout *voiceLayout = new QVBoxLayout( voicePage, 0, spacingHint() );
+ TQPixmap icon = KGlobal::iconLoader()->loadIcon("ksayit", KIcon::Toolbar, KIcon::SizeMedium);
+ TQFrame *voicePage = addPage( i18n( "Voice" ), i18n("Voice Settings"), icon );
+ TQVBoxLayout *voiceLayout = new TQVBoxLayout( voicePage, 0, spacingHint() );
- const QWidget *voiceDialog = m_kttslib->getGUI( voicePage );
- voiceLayout->addWidget( const_cast<QWidget*>(voiceDialog) );
+ const TQWidget *voiceDialog = m_kttslib->getGUI( voicePage );
+ voiceLayout->addWidget( const_cast<TQWidget*>(voiceDialog) );
}
void VoiceSetupDlg::initFXPage()
{
- QPixmap icon = KGlobal::iconLoader()->loadIcon("ksysguard", KIcon::Toolbar, KIcon::SizeMedium);
+ TQPixmap icon = KGlobal::iconLoader()->loadIcon("ksysguard", KIcon::Toolbar, KIcon::SizeMedium);
m_fxPage = addPage( i18n( "Audio FX" ), i18n("Effect Stack"), icon );
- QVBoxLayout *fxLayout = new QVBoxLayout( m_fxPage, 0, spacingHint() );
+ TQVBoxLayout *fxLayout = new TQVBoxLayout( m_fxPage, 0, spacingHint() );
FX_SetupImpl *fxDialog = new FX_SetupImpl(m_fxPage, "fxsetup", m_config, m_fxpluginhandler);
fxLayout->addWidget(fxDialog);
- connect( this, SIGNAL(signalOKWasClicked()), fxDialog, SLOT(slotSaveWasClicked()) );
- connect( this, SIGNAL(signalRemoveAllFX()), fxDialog, SLOT(slotRemoveAll()) );
- connect( this, SIGNAL(signalReloadFX()), fxDialog, SLOT(slotReload()) );
+ connect( this, TQT_SIGNAL(signalOKWasClicked()), fxDialog, TQT_SLOT(slotSaveWasClicked()) );
+ connect( this, TQT_SIGNAL(signalRemoveAllFX()), fxDialog, TQT_SLOT(slotRemoveAll()) );
+ connect( this, TQT_SIGNAL(signalReloadFX()), fxDialog, TQT_SLOT(slotReload()) );
// Disable/enable FX-Setup depending on TTS-libs capability
int status = m_kttslib->getStatus() & TTS::AUDIOFILE;
@@ -98,7 +98,7 @@ void VoiceSetupDlg::initFXPage()
}
-void VoiceSetupDlg::slotPageChanged(QWidget *page)
+void VoiceSetupDlg::slotPageChanged(TQWidget *page)
{
kdDebug(100200) << "+++ entering VoiceSetupDlg::slotPageChanged: " << page << endl;
@@ -109,7 +109,7 @@ void VoiceSetupDlg::slotPageChanged(QWidget *page)
if ( status ){
m_fxPage->setEnabled(true);
} else {
- QString q = i18n("The active TTS system does not make use of aRts effects.");
+ TQString q = i18n("The active TTS system does not make use of aRts effects.");
KMessageBox::information( this, q, i18n("Plugin Configuration"), "KSayIt_Audiofile" );
m_fxPage->setEnabled(false);
}
@@ -131,7 +131,7 @@ void VoiceSetupDlg::slotOk()
// check if configuration was saved O.K.
if ( m_kttslib->saveWasClicked() ){
kdDebug(100200) << "--- leaving VoiceSetupDlg::slotOk" << endl;
- QDialog::accept();
+ TQDialog::accept();
}
}
@@ -139,7 +139,7 @@ void VoiceSetupDlg::slotOk()
void VoiceSetupDlg::slotCancel()
{
kdDebug(100200) << "VoiceSetupDlg::slotCancel()" << endl;
- QDialog::reject();
+ TQDialog::reject();
}
#include "voicesetupdlg.moc"
diff --git a/ksayit/src/voicesetupdlg.h b/ksayit/src/voicesetupdlg.h
index 510c591..c9063e4 100644
--- a/ksayit/src/voicesetupdlg.h
+++ b/ksayit/src/voicesetupdlg.h
@@ -19,7 +19,7 @@
#define VOICESETUPDLG_H
// QT includes
-#include <qframe.h>
+#include <tqframe.h>
// KDE includes
#include <kdialogbase.h>
@@ -35,7 +35,7 @@ class VoiceSetupDlg : public KDialogBase {
Q_OBJECT
public:
- VoiceSetupDlg(QWidget *parent=0, const char *name=0, const QString &caption=NULL,
+ VoiceSetupDlg(TQWidget *parent=0, const char *name=0, const TQString &caption=NULL,
bool modal=true,
KConfig *config=0,
FXPluginHandler *fxpluginhandler=0,
@@ -69,7 +69,7 @@ private: // Methods
private slots:
/** Called when the Page changes.
*/
- void slotPageChanged(QWidget *page);
+ void slotPageChanged(TQWidget *page);
/** Reimplementation from base class.
*/
@@ -83,7 +83,7 @@ private:
KConfig *m_config;
FXPluginHandler *m_fxpluginhandler;
KTTSDLib *m_kttslib;
- QFrame *m_fxPage;
+ TQFrame *m_fxPage;
};
diff --git a/kttsd/app-plugins/kate/katekttsd.cpp b/kttsd/app-plugins/kate/katekttsd.cpp
index a2e64e6..47837fb 100644
--- a/kttsd/app-plugins/kate/katekttsd.cpp
+++ b/kttsd/app-plugins/kate/katekttsd.cpp
@@ -18,9 +18,9 @@
***************************************************************************/
// Qt includes.
-#include <qmessagebox.h>
+#include <tqmessagebox.h>
#include <dcopclient.h>
-#include <qtimer.h>
+#include <tqtimer.h>
// KDE includes.
#include <ktexteditor/editinterface.h>
@@ -38,7 +38,7 @@
K_EXPORT_COMPONENT_FACTORY( ktexteditor_kttsd, KGenericFactory<KateKttsdPlugin>( "ktexteditor_kttsd" ) )
-KateKttsdPlugin::KateKttsdPlugin( QObject *parent, const char* name, const QStringList& )
+KateKttsdPlugin::KateKttsdPlugin( TQObject *parent, const char* name, const TQStringList& )
: KTextEditor::Plugin ( (KTextEditor::Document*) parent, name )
{
}
@@ -68,13 +68,13 @@ void KateKttsdPlugin::removeView(KTextEditor::View *view)
KateKttsdPluginView::KateKttsdPluginView( KTextEditor::View *view, const char *name )
- : QObject( view, name ),
+ : TQObject( view, name ),
KXMLGUIClient( view )
{
view->insertChildClient( this );
setInstance( KGenericFactory<KateKttsdPlugin>::instance() );
KGlobal::locale()->insertCatalogue("kttsd");
- (void) new KAction( i18n("Speak Text"), "kttsd", 0, this, SLOT(slotReadOut()), actionCollection(), "tools_kttsd" );
+ (void) new KAction( i18n("Speak Text"), "kttsd", 0, this, TQT_SLOT(slotReadOut()), actionCollection(), "tools_kttsd" );
setXMLFile( "ktexteditor_kttsdui.rc" );
}
@@ -82,7 +82,7 @@ void KateKttsdPluginView::slotReadOut()
{
KTextEditor::View *v = (KTextEditor::View*)parent();
KTextEditor::SelectionInterface *si = KTextEditor::selectionInterface( v->document() );
- QString text;
+ TQString text;
if ( si->hasSelection() )
text = si->selection();
@@ -95,26 +95,26 @@ void KateKttsdPluginView::slotReadOut()
// If KTTSD not running, start it.
if (!client->isApplicationRegistered("kttsd"))
{
- QString error;
- if (kapp->startServiceByDesktopName("kttsd", QStringList(), &error))
- QMessageBox::warning(0, i18n( "Starting KTTSD Failed"), error );
+ TQString error;
+ if (kapp->startServiceByDesktopName("kttsd", TQStringList(), &error))
+ TQMessageBox::warning(0, i18n( "Starting KTTSD Failed"), error );
}
- QByteArray data;
- QByteArray data2;
- QCString replyType;
- QByteArray replyData;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQByteArray data2;
+ TQCString replyType;
+ TQByteArray replyData;
+ TQDataStream arg(data, IO_WriteOnly);
arg << text << "";
- if ( !client->call("kttsd", "KSpeech", "setText(QString,QString)",
+ if ( !client->call("kttsd", "KSpeech", "setText(TQString,TQString)",
data, replyType, replyData, true) )
- QMessageBox::warning( 0, i18n( "DCOP Call Failed" ),
+ TQMessageBox::warning( 0, i18n( "DCOP Call Failed" ),
i18n( "The DCOP call setText failed." ));
- QDataStream arg2(data2, IO_WriteOnly);
+ TQDataStream arg2(data2, IO_WriteOnly);
arg2 << 0;
if ( !client->call("kttsd", "KSpeech", "startText(uint)",
data2, replyType, replyData, true) )
- QMessageBox::warning( 0, i18n( "DCOP Call Failed" ),
+ TQMessageBox::warning( 0, i18n( "DCOP Call Failed" ),
i18n( "The DCOP call startText failed." ));
}
diff --git a/kttsd/app-plugins/kate/katekttsd.h b/kttsd/app-plugins/kate/katekttsd.h
index cbab720..c30f3cf 100644
--- a/kttsd/app-plugins/kate/katekttsd.h
+++ b/kttsd/app-plugins/kate/katekttsd.h
@@ -23,26 +23,26 @@
#include <ktexteditor/plugin.h>
#include <ktexteditor/view.h>
#include <kxmlguiclient.h>
-#include <qobject.h>
+#include <tqobject.h>
class KateKttsdPlugin : public KTextEditor::Plugin, public KTextEditor::PluginViewInterface
{
Q_OBJECT
public:
- KateKttsdPlugin( QObject *parent = 0,
+ KateKttsdPlugin( TQObject *parent = 0,
const char* name = 0,
- const QStringList &args = QStringList() );
+ const TQStringList &args = TQStringList() );
virtual ~KateKttsdPlugin();
void addView (KTextEditor::View *view);
void removeView (KTextEditor::View *view);
private:
- QPtrList<class KateKttsdPluginView> m_views;
+ TQPtrList<class KateKttsdPluginView> m_views;
};
-class KateKttsdPluginView : public QObject, public KXMLGUIClient
+class KateKttsdPluginView : public TQObject, public KXMLGUIClient
{
Q_OBJECT
diff --git a/kttsd/compat/interfaces/kspeech/kspeech.h b/kttsd/compat/interfaces/kspeech/kspeech.h
index e4a831c..d321528 100644
--- a/kttsd/compat/interfaces/kspeech/kspeech.h
+++ b/kttsd/compat/interfaces/kspeech/kspeech.h
@@ -22,7 +22,7 @@
#define _KSPEECH_H_
#include <dcopobject.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
/**
* @interface KSpeech
@@ -207,7 +207,7 @@
* "kttsd", object "KSpeech".
*
@verbatim
- MyPart::MyPart(QWidget *parent, const char *name) :
+ MyPart::MyPart(TQWidget *parent, const char *name) :
KParts::ReadOnlyPart(parent, name),
DCOPStub("kttsd", "KSpeech") {
@endverbatim
@@ -218,8 +218,8 @@
DCOPClient *client = dcopClient();
client->attach();
if (!client->isApplicationRegistered("kttsd")) {
- QString error;
- if (KApplication::startServiceByDesktopName("kttsd", QStringList(), &error))
+ TQString error;
+ if (KApplication::startServiceByDesktopName("kttsd", TQStringList(), &error))
cout << "Starting KTTSD failed with message " << error << endl;
}
@endverbatim
@@ -271,7 +271,7 @@
virtual public KSpeechSink
{
protected:
- ASYNC sentenceStarted(const QCString& appId, const uint jobNum, const uint seq);
+ ASYNC sentenceStarted(const TQCString& appId, const uint jobNum, const uint seq);
@endverbatim
*
* You can combine sending and receiving in one object.
@@ -284,7 +284,7 @@
virtual public KSpeechSink
{
protected:
- ASYNC sentenceStarted(const QCString& appId, const uint jobNum, const uint seq);
+ ASYNC sentenceStarted(const TQCString& appId, const uint jobNum, const uint seq);
@endverbatim
*
* See below for the signals you can declare.
@@ -293,7 +293,7 @@
* receiving object.
*
@verbatim
- MyPart::MyPart(QWidget *parent, const char *name) :
+ MyPart::MyPart(TQWidget *parent, const char *name) :
KParts::ReadOnlyPart(parent, name),
DCOPObject("mypart_kspeechsink") {
@endverbatim
@@ -314,8 +314,8 @@
}
// Connect KTTSD DCOP signals to our slots.
connectDCOPSignal("kttsd", "KSpeech",
- "sentenceStarted(QCString,uint,uint)",
- "sentenceStarted(QCString,uint,uint)",
+ "sentenceStarted(TQCString,uint,uint)",
+ "sentenceStarted(TQCString,uint,uint)",
false);
@endverbatim
*
@@ -323,13 +323,13 @@
* example
*
@verbatim
- ASYNC sentenceStarted(const QCString& appId, const uint jobNum, const uint seq);
+ ASYNC sentenceStarted(const TQCString& appId, const uint jobNum, const uint seq);
@endverbatim
*
* becomes
*
@verbatim
- "sentenceStarted(QCString,uint,uint)",
+ "sentenceStarted(TQCString,uint,uint)",
@endverbatim
*
* in the connectDCOPSignal call.
@@ -338,7 +338,7 @@
* is intended for your application.
*
@verbatim
- ASYNC MyPart::sentenceStarted(const QCString& appId, const uint jobNum, const uint seq)
+ ASYNC MyPart::sentenceStarted(const TQCString& appId, const uint jobNum, const uint seq)
{
// Check appId to determine if this is our signal.
if (appId != dcopClient()->appId()) return;
@@ -685,7 +685,7 @@ class KSpeech : virtual public DCOPObject {
* talker supports the indicated speech markup language.
* @see kttsdMarkupType
*/
- virtual bool supportsMarkup(const QString &talker, uint markupType = 0) const = 0;
+ virtual bool supportsMarkup(const TQString &talker, uint markupType = 0) const = 0;
/**
* Determine whether the currently-configured speech plugin supports markers in speech markup.
@@ -694,7 +694,7 @@ class KSpeech : virtual public DCOPObject {
* @return True if the plugin currently configured for the indicated
* talker supports markers.
*/
- virtual bool supportsMarkers(const QString &talker) const = 0;
+ virtual bool supportsMarkers(const TQString &talker) const = 0;
/**
* Say a message as soon as possible, interrupting any other speech in progress.
@@ -709,7 +709,7 @@ class KSpeech : virtual public DCOPObject {
* If an existing Screen Reader output is in progress, it is stopped and discarded and
* replaced with this new message.
*/
- virtual ASYNC sayScreenReaderOutput(const QString &msg, const QString &talker) = 0;
+ virtual ASYNC sayScreenReaderOutput(const TQString &msg, const TQString &talker) = 0;
/**
* Say a warning. The warning will be spoken when the current sentence
@@ -722,7 +722,7 @@ class KSpeech : virtual public DCOPObject {
* If no plugin has been configured for the specified Talker code,
* defaults to the closest matching talker.
*/
- virtual ASYNC sayWarning(const QString &warning, const QString &talker) = 0;
+ virtual ASYNC sayWarning(const TQString &warning, const TQString &talker) = 0;
/**
* Say a message. The message will be spoken when the current sentence stops speaking
@@ -735,7 +735,7 @@ class KSpeech : virtual public DCOPObject {
* If no talker has been configured for the specified talker code,
* defaults to the closest matching talker.
*/
- virtual ASYNC sayMessage(const QString &message, const QString &talker) = 0;
+ virtual ASYNC sayMessage(const TQString &message, const TQString &talker) = 0;
/**
* Sets the GREP pattern that will be used as the sentence delimiter.
@@ -751,7 +751,7 @@ class KSpeech : virtual public DCOPObject {
* with a single space, and then replaces the sentence delimiters using
* the following statement:
@verbatim
- QString::replace(sentenceDelimiter, "\\1\t");
+ TQString::replace(sentenceDelimiter, "\\1\t");
@endverbatim
*
* which replaces all sentence delimiters with a tab, but
@@ -763,7 +763,7 @@ class KSpeech : virtual public DCOPObject {
*
* @see sentenceparsing
*/
- virtual ASYNC setSentenceDelimiter(const QString &delimiter) = 0;
+ virtual ASYNC setSentenceDelimiter(const TQString &delimiter) = 0;
/**
* Queue a text job. Does not start speaking the text.
@@ -789,7 +789,7 @@ class KSpeech : virtual public DCOPObject {
* @see getTextCount
* @see startText
*/
- virtual uint setText(const QString &text, const QString &talker) = 0;
+ virtual uint setText(const TQString &text, const TQString &talker) = 0;
/**
* Say a plain text job. This is a convenience method that
@@ -819,7 +819,7 @@ class KSpeech : virtual public DCOPObject {
*
* @since KDE 3.5
*/
- virtual uint sayText(const QString &text, const QString &talker) = 0;
+ virtual uint sayText(const TQString &text, const TQString &talker) = 0;
/**
* Adds another part to a text job. Does not start speaking the text.
@@ -836,7 +836,7 @@ class KSpeech : virtual public DCOPObject {
* @see setText.
* @see startText.
*/
- virtual int appendText(const QString &text, uint jobNum=0) = 0;
+ virtual int appendText(const TQString &text, uint jobNum=0) = 0;
/**
* Queue a text job from the contents of a file. Does not start speaking the text.
@@ -863,8 +863,8 @@ class KSpeech : virtual public DCOPObject {
* @see getTextCount
* @see startText
*/
- virtual uint setFile(const QString &filename, const QString &talker,
- const QString& encoding) = 0;
+ virtual uint setFile(const TQString &filename, const TQString &talker,
+ const TQString& encoding) = 0;
/**
* Get the number of sentences in a text job.
@@ -900,7 +900,7 @@ class KSpeech : virtual public DCOPObject {
* Get a comma-separated list of text job numbers in the queue.
* @return Comma-separated list of text job numbers in the queue.
*/
- virtual QString getTextJobNumbers() = 0;
+ virtual TQString getTextJobNumbers() = 0;
/**
* Get the state of a text job.
@@ -918,13 +918,13 @@ class KSpeech : virtual public DCOPObject {
* @param jobNum Job number of the text job.
* If zero, applies to the last job queued by the application,
* but if no such job, applies to the current job (if any).
- * @return A QDataStream containing information about the job.
+ * @return A TQDataStream containing information about the job.
* Blank if no such job.
*
* The stream contains the following elements:
* - int state - Job state.
- * - QCString appId - DCOP senderId of the application that requested the speech job.
- * - QString talker - Talker Code requested by application.
+ * - TQCString appId - DCOP senderId of the application that requested the speech job.
+ * - TQString talker - Talker Code requested by application.
* - int seq - Current sentence being spoken. Sentences are numbered starting at 1.
* - int sentenceCount - Total number of sentences in the job.
* - int partNum - Current part of the job begin spoken. Parts are numbered starting at 1.
@@ -935,11 +935,11 @@ class KSpeech : virtual public DCOPObject {
*
* The following sample code will decode the stream:
@code
- QByteArray jobInfo = getTextJobInfo(jobNum);
- QDataStream stream(jobInfo, IO_ReadOnly);
+ TQByteArray jobInfo = getTextJobInfo(jobNum);
+ TQDataStream stream(jobInfo, IO_ReadOnly);
int state;
- QCString appId;
- QString talker;
+ TQCString appId;
+ TQString talker;
int seq;
int sentenceCount;
int partNum;
@@ -953,7 +953,7 @@ class KSpeech : virtual public DCOPObject {
stream >> partCount;
@endcode
*/
- virtual QByteArray getTextJobInfo(uint jobNum=0) = 0;
+ virtual TQByteArray getTextJobInfo(uint jobNum=0) = 0;
/**
* Given a Talker Code, returns the Talker ID of the talker that would speak
@@ -961,7 +961,7 @@ class KSpeech : virtual public DCOPObject {
* @param talkerCode Talker Code.
* @return Talker ID of the talker that would speak the text job.
*/
- virtual QString talkerCodeToTalkerId(const QString& talkerCode) = 0;
+ virtual TQString talkerCodeToTalkerId(const TQString& talkerCode) = 0;
/**
* Return a sentence of a job.
@@ -972,7 +972,7 @@ class KSpeech : virtual public DCOPObject {
* @return The specified sentence in the specified job. If no such
* job or sentence, returns "".
*/
- virtual QString getTextJobSentence(uint jobNum=0, uint seq=0) = 0;
+ virtual TQString getTextJobSentence(uint jobNum=0, uint seq=0) = 0;
/**
* Determine if kttsd is currently speaking any text jobs.
@@ -1080,12 +1080,12 @@ class KSpeech : virtual public DCOPObject {
/**
* Get a list of the talkers configured in KTTS.
- * @return A QStringList of fully-specified talker codes, one
+ * @return A TQStringList of fully-specified talker codes, one
* for each talker user has configured.
*
* @see talkers
*/
- virtual QStringList getTalkers() = 0;
+ virtual TQStringList getTalkers() = 0;
/**
* Change the talker for a text job.
@@ -1097,7 +1097,7 @@ class KSpeech : virtual public DCOPObject {
* If no plugin has been configured for the specified Talker code,
* defaults to the closest matching talker.
*/
- virtual ASYNC changeTextTalker(const QString &talker, uint jobNum=0 ) = 0;
+ virtual ASYNC changeTextTalker(const TQString &talker, uint jobNum=0 ) = 0;
/**
* Get the user's default talker.
@@ -1106,7 +1106,7 @@ class KSpeech : virtual public DCOPObject {
* @see talkers
* @see getTalkers
*/
- virtual QString userDefaultTalker() = 0;
+ virtual TQString userDefaultTalker() = 0;
/**
* Move a text job down in the queue so that it is spoken later.
@@ -1175,7 +1175,7 @@ class KSpeech : virtual public DCOPObject {
* Return the KTTSD deamon version number.
* @since KDE 3.5
*/
- virtual QString version() = 0;
+ virtual TQString version() = 0;
//@}
k_dcop_signals:
@@ -1199,7 +1199,7 @@ class KSpeech : virtual public DCOPObject {
*
* @see markers
*/
- void markerSeen(const QCString& appId, const QString& markerName);
+ void markerSeen(const TQCString& appId, const TQString& markerName);
/**
* This signal is emitted whenever a sentence begins speaking.
* @param appId DCOP application ID of the application that queued the text.
@@ -1208,7 +1208,7 @@ class KSpeech : virtual public DCOPObject {
*
* @see getTextCount
*/
- void sentenceStarted(const QCString& appId, uint jobNum, uint seq);
+ void sentenceStarted(const TQCString& appId, uint jobNum, uint seq);
/**
* This signal is emitted when a sentence has finished speaking.
* @param appId DCOP application ID of the application that queued the text.
@@ -1217,14 +1217,14 @@ class KSpeech : virtual public DCOPObject {
*
* @see getTextCount
*/
- void sentenceFinished(const QCString& appId, uint jobNum, uint seq);
+ void sentenceFinished(const TQCString& appId, uint jobNum, uint seq);
/**
* This signal is emitted whenever a new text job is added to the queue.
* @param appId The DCOP senderId of the application that created the job.
* @param jobNum Job number of the text job.
*/
- void textSet(const QCString& appId, uint jobNum);
+ void textSet(const TQCString& appId, uint jobNum);
/**
* This signal is emitted whenever a new part is appended to a text job.
@@ -1233,14 +1233,14 @@ class KSpeech : virtual public DCOPObject {
* @param partNum Part number of the new part. Parts are numbered starting
* at 1.
*/
- void textAppended(const QCString& appId, uint jobNum, int partNum);
+ void textAppended(const TQCString& appId, uint jobNum, int partNum);
/**
* This signal is emitted whenever speaking of a text job begins.
* @param appId The DCOP senderId of the application that created the job.
* @param jobNum Job number of the text job.
*/
- void textStarted(const QCString& appId, uint jobNum);
+ void textStarted(const TQCString& appId, uint jobNum);
/**
* This signal is emitted whenever a text job is finished. The job has
* been marked for deletion from the queue and will be deleted when another
@@ -1250,7 +1250,7 @@ class KSpeech : virtual public DCOPObject {
* @param appId The DCOP senderId of the application that created the job.
* @param jobNum Job number of the text job.
*/
- void textFinished(const QCString& appId, uint jobNum);
+ void textFinished(const TQCString& appId, uint jobNum);
/**
* This signal is emitted whenever a speaking text job stops speaking.
* @param appId The DCOP senderId of the application that created the job.
@@ -1259,26 +1259,26 @@ class KSpeech : virtual public DCOPObject {
* The signal is only emitted if stopText() is called and the job is currently
* speaking.
*/
- void textStopped(const QCString& appId, uint jobNum);
+ void textStopped(const TQCString& appId, uint jobNum);
/**
* This signal is emitted whenever a speaking text job is paused.
* @param appId The DCOP senderId of the application that created the job.
* @param jobNum Job number of the text job.
*/
- void textPaused(const QCString& appId, uint jobNum);
+ void textPaused(const TQCString& appId, uint jobNum);
/**
* This signal is emitted when a text job, that was previously paused, resumes speaking.
* @param appId The DCOP senderId of the application that created the job.
* @param jobNum Job number of the text job.
*/
- void textResumed(const QCString& appId, uint jobNum);
+ void textResumed(const TQCString& appId, uint jobNum);
/**
* This signal is emitted whenever a text job is deleted from the queue.
* The job is no longer in the queue when this signal is emitted.
* @param appId The DCOP senderId of the application that created the job.
* @param jobNum Job number of the text job.
*/
- void textRemoved(const QCString& appId, uint jobNum);
+ void textRemoved(const TQCString& appId, uint jobNum);
//@}
};
diff --git a/kttsd/compat/interfaces/kspeech/kspeechsink.h b/kttsd/compat/interfaces/kspeech/kspeechsink.h
index e90a005..51715b9 100644
--- a/kttsd/compat/interfaces/kspeech/kspeechsink.h
+++ b/kttsd/compat/interfaces/kspeech/kspeechsink.h
@@ -84,7 +84,7 @@ class KSpeechSink : virtual public DCOPObject {
* @param markerName The name of the marker seen.
* @see markers
*/
- virtual ASYNC markerSeen(const QCString& appId, const QString& markerName) { Q_UNUSED(appId); Q_UNUSED(markerName); };
+ virtual ASYNC markerSeen(const TQCString& appId, const TQString& markerName) { Q_UNUSED(appId); Q_UNUSED(markerName); };
/**
* This signal is emitted whenever a sentence begins speaking.
* @param appId DCOP application ID of the application that queued the text.
@@ -92,7 +92,7 @@ class KSpeechSink : virtual public DCOPObject {
* @param seq Sequence number of the text.
* @see getTextCount
*/
- virtual ASYNC sentenceStarted(const QCString& appId, uint jobNum, uint seq) { Q_UNUSED(appId); Q_UNUSED(jobNum); Q_UNUSED(seq); };
+ virtual ASYNC sentenceStarted(const TQCString& appId, uint jobNum, uint seq) { Q_UNUSED(appId); Q_UNUSED(jobNum); Q_UNUSED(seq); };
/**
* This signal is emitted when a sentence has finished speaking.
* @param appId DCOP application ID of the application that queued the text.
@@ -100,14 +100,14 @@ class KSpeechSink : virtual public DCOPObject {
* @param seq Sequence number of the text.
* @see getTextCount
*/
- virtual ASYNC sentenceFinished(const QCString& appId, uint jobNum, uint seq) { Q_UNUSED(appId); Q_UNUSED(jobNum); Q_UNUSED(seq); };
+ virtual ASYNC sentenceFinished(const TQCString& appId, uint jobNum, uint seq) { Q_UNUSED(appId); Q_UNUSED(jobNum); Q_UNUSED(seq); };
/**
* This signal is emitted whenever a new text job is added to the queue.
* @param appId The DCOP senderId of the application that created the job. NULL if kttsd.
* @param jobNum Job number of the text job.
*/
- virtual ASYNC textSet(const QCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
+ virtual ASYNC textSet(const TQCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
/**
* This signal is emitted whenever a new part is appended to a text job.
@@ -116,14 +116,14 @@ class KSpeechSink : virtual public DCOPObject {
* @param partNum Part number of the new part. Parts are numbered starting
* at 1.
*/
- virtual ASYNC textAppended(const QCString& appId, uint jobNum, int partNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); Q_UNUSED(partNum); };
+ virtual ASYNC textAppended(const TQCString& appId, uint jobNum, int partNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); Q_UNUSED(partNum); };
/**
* This signal is emitted whenever speaking of a text job begins.
* @param appId The DCOP senderId of the application that created the job. NULL if kttsd.
* @param jobNum Job number of the text job.
*/
- virtual ASYNC textStarted(const QCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
+ virtual ASYNC textStarted(const TQCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
/**
* This signal is emitted whenever a text job is finished. The job has
* been marked for deletion from the queue and will be deleted when another
@@ -133,32 +133,32 @@ class KSpeechSink : virtual public DCOPObject {
* @param appId The DCOP senderId of the application that created the job. NULL if kttsd.
* @param jobNum Job number of the text job.
*/
- virtual ASYNC textFinished(const QCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
+ virtual ASYNC textFinished(const TQCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
/**
* This signal is emitted whenever a speaking text job stops speaking.
* @param appId The DCOP senderId of the application that created the job. NULL if kttsd.
* @param jobNum Job number of the text job.
*/
- virtual ASYNC textStopped(const QCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
+ virtual ASYNC textStopped(const TQCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
/**
* This signal is emitted whenever a speaking text job is paused.
* @param appId The DCOP senderId of the application that created the job. NULL if kttsd.
* @param jobNum Job number of the text job.
*/
- virtual ASYNC textPaused(const QCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
+ virtual ASYNC textPaused(const TQCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
/**
* This signal is emitted when a text job, that was previously paused, resumes speaking.
* @param appId The DCOP senderId of the application that created the job. NULL if kttsd.
* @param jobNum Job number of the text job.
*/
- virtual ASYNC textResumed(const QCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
+ virtual ASYNC textResumed(const TQCString& appId, uint jobNum) { Q_UNUSED(appId); Q_UNUSED(jobNum); };
/**
* This signal is emitted whenever a text job is deleted from the queue.
* The job is no longer in the queue when this signal is emitted.
* @param appId The DCOP senderId of the application that created the job. NULL if kttsd.
* @param jobNum Job number of the text job.
*/