summaryrefslogtreecommitdiffstats
path: root/kverbos/kverbos/kverbosdoc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kverbos/kverbos/kverbosdoc.cpp')
-rw-r--r--kverbos/kverbos/kverbosdoc.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kverbos/kverbos/kverbosdoc.cpp b/kverbos/kverbos/kverbosdoc.cpp
index 632f10b3..2fd68712 100644
--- a/kverbos/kverbos/kverbosdoc.cpp
+++ b/kverbos/kverbos/kverbosdoc.cpp
@@ -20,7 +20,7 @@
#include <ctime>
#include <cstdlib>
-// include files for Qt
+// include files for TQt
#include <tqmessagebox.h>
// include files for KDE
@@ -39,7 +39,7 @@
TQPtrList<KVerbosView> *KVerbosDoc::pViewList = 0L;
-KVerbosDoc::KVerbosDoc(TQWidget *parent, const char *name) : TQObject(parent, name)
+KVerbosDoc::KVerbosDoc(TQWidget *tqparent, const char *name) : TQObject(tqparent, name)
{
if(!pViewList)
{
@@ -92,7 +92,7 @@ void KVerbosDoc::slotUpdateAllViews(KVerbosView *sender)
if(pViewList)
for(w=pViewList->first(); w!=0; w=pViewList->next())
if(w!=sender)
- w->repaint();
+ w->tqrepaint();
}
bool KVerbosDoc::saveModified()
@@ -101,7 +101,7 @@ bool KVerbosDoc::saveModified()
if(modified)
{
- KVerbosApp *win=(KVerbosApp *) parent();
+ KVerbosApp *win=(KVerbosApp *) tqparent();
int want_save = KMessageBox::warningYesNoCancel(win,
i18n("The current file has been modified.\nDo you want to save it?"),
i18n("Warning"),KStdGuiItem::save(),KStdGuiItem::discard());
@@ -232,9 +232,9 @@ bool KVerbosDoc::openDocHTML(TQFile &f)
s = t.readLine();
if (s.left(9) == "<td width")
{
- int a = s.find('>', 22, true);
+ int a = s.tqfind('>', 22, true);
a++;
- int e = s.find('<', a, true);
+ int e = s.tqfind('<', a, true);
v[count1] = s.mid(a, e-a);
count1++;
};
@@ -294,9 +294,9 @@ bool KVerbosDoc::openDocHTML(TQFile &f)
s = t.readLine();
if ((s.left(4) == "<td>") && (s != "<td></td><td></td><td></td><td></td><td></td></tr><tr>"))
{
- int a = s.find('>', 2, true);
+ int a = s.tqfind('>', 2, true);
a++;
- int e = s.find('<', a, true);
+ int e = s.tqfind('<', a, true);
forms[count2] = s.mid(a, e-a);
count2++;
if (14 == count2)
@@ -324,9 +324,9 @@ bool KVerbosDoc::openDocHTML(TQFile &f)
{
// kommt ein Leerzeichen vor, muss man die Form aufteilen: In das
// Reflexivpronomen und das eigentliche Verb
- if (forms[i].find(' ') >= 0)
+ if (forms[i].tqfind(' ') >= 0)
{
- NewVerb.setForm(a, b, forms[i].right(forms[i].length()-forms[i].find(' ')-1));
+ NewVerb.setForm(a, b, forms[i].right(forms[i].length()-forms[i].tqfind(' ')-1));
}
else
{
@@ -344,9 +344,9 @@ bool KVerbosDoc::openDocHTML(TQFile &f)
int offs = 30;
// kommt ein Leerzeichen vor, muss man die Form aufteilen: In das
// Reflexivpronomen und das eigentliche Verb
- if (forms[i+offs].find(' ') >= 0)
+ if (forms[i+offs].tqfind(' ') >= 0)
{
- NewVerb.setForm(a, b, forms[i+offs].right(forms[i+offs].length()-forms[i+offs].find(' ')-1));
+ NewVerb.setForm(a, b, forms[i+offs].right(forms[i+offs].length()-forms[i+offs].tqfind(' ')-1));
}
else
{
@@ -658,10 +658,10 @@ void KVerbosDoc::deleteContents()
}
// Ein Verb wird der Liste hinzugefügt.
-void KVerbosDoc::appendVerb(const verbSpanish v, bool emitStatus /*= true*/)
+void KVerbosDoc::appendVerb(const verbSpanish v, bool emittqStatus /*= true*/)
{
verbList2.append(v);
- if (emitStatus)
+ if (emittqStatus)
emit anzahlVerbenGeaendert(getAnzahl());
}
@@ -689,7 +689,7 @@ TQString KVerbosDoc::getAuswahl(TQString s[][3], int &t)
int ti[MAX_TIEMPOS*MAX_SUBTYPES], ty[MAX_TIEMPOS*MAX_SUBTYPES];
bool op[MAX_TIEMPOS][MAX_SUBTYPES];
int zeitenZahl = 0;
- KVerbosApp *app = dynamic_cast<KVerbosApp*>(parent());
+ KVerbosApp *app = dynamic_cast<KVerbosApp*>(tqparent());
if (app) {
app->getTimeOptions(op);
}