summaryrefslogtreecommitdiffstats
path: root/quanta/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/dialogs')
-rw-r--r--quanta/dialogs/actionconfigdialog.cpp100
-rw-r--r--quanta/dialogs/actionconfigdialog.h3
-rw-r--r--quanta/dialogs/actionconfigdialogs.ui102
-rw-r--r--quanta/dialogs/casewidget.ui22
-rw-r--r--quanta/dialogs/copyto.cpp8
-rw-r--r--quanta/dialogs/copyto.h3
-rw-r--r--quanta/dialogs/debuggeroptionss.ui18
-rw-r--r--quanta/dialogs/dirtydialog.ui22
-rw-r--r--quanta/dialogs/dirtydlg.cpp6
-rw-r--r--quanta/dialogs/dirtydlg.h3
-rw-r--r--quanta/dialogs/donationdialog.ui14
-rw-r--r--quanta/dialogs/dtdselectdialog.ui26
-rw-r--r--quanta/dialogs/dtepeditdlg.cpp38
-rw-r--r--quanta/dialogs/dtepeditdlg.h5
-rw-r--r--quanta/dialogs/dtepeditdlgs.ui162
-rw-r--r--quanta/dialogs/dtepstructureeditdlgs.ui76
-rw-r--r--quanta/dialogs/filecombo.cpp22
-rw-r--r--quanta/dialogs/filecombo.h5
-rw-r--r--quanta/dialogs/fourbuttonmessagebox.ui22
-rw-r--r--quanta/dialogs/fourbuttonmessagebox.ui.h2
-rw-r--r--quanta/dialogs/loadentitydlgs.ui10
-rw-r--r--quanta/dialogs/settings/abbreviation.cpp18
-rw-r--r--quanta/dialogs/settings/abbreviation.h3
-rw-r--r--quanta/dialogs/settings/abbreviations.ui38
-rw-r--r--quanta/dialogs/settings/codetemplatedlgs.ui18
-rw-r--r--quanta/dialogs/settings/filemasks.cpp14
-rw-r--r--quanta/dialogs/settings/filemasks.h5
-rw-r--r--quanta/dialogs/settings/filemaskss.ui70
-rw-r--r--quanta/dialogs/settings/parseroptions.cpp8
-rw-r--r--quanta/dialogs/settings/parseroptions.h3
-rw-r--r--quanta/dialogs/settings/parseroptionsui.ui46
-rw-r--r--quanta/dialogs/settings/previewoptions.cpp16
-rw-r--r--quanta/dialogs/settings/previewoptions.h5
-rw-r--r--quanta/dialogs/settings/previewoptionss.ui52
-rw-r--r--quanta/dialogs/settings/styleoptionss.ui34
-rw-r--r--quanta/dialogs/specialchardialog.cpp10
-rw-r--r--quanta/dialogs/specialchardialog.h3
-rw-r--r--quanta/dialogs/specialchardialogs.ui28
-rw-r--r--quanta/dialogs/tagdialogs/colorcombo.cpp46
-rw-r--r--quanta/dialogs/tagdialogs/colorcombo.h7
-rw-r--r--quanta/dialogs/tagdialogs/corewidgetdlg.cpp16
-rw-r--r--quanta/dialogs/tagdialogs/listdlg.cpp6
-rw-r--r--quanta/dialogs/tagdialogs/listdlg.h3
-rw-r--r--quanta/dialogs/tagdialogs/pictureview.cpp4
-rw-r--r--quanta/dialogs/tagdialogs/pictureview.h3
-rw-r--r--quanta/dialogs/tagdialogs/tagattr.cpp8
-rw-r--r--quanta/dialogs/tagdialogs/tagattr.h18
-rw-r--r--quanta/dialogs/tagdialogs/tagdialog.cpp36
-rw-r--r--quanta/dialogs/tagdialogs/tagdialog.h15
-rw-r--r--quanta/dialogs/tagdialogs/tagimgdlg.cpp24
-rw-r--r--quanta/dialogs/tagdialogs/tagimgdlg.h17
-rw-r--r--quanta/dialogs/tagdialogs/tagimgdlgdata.cpp44
-rw-r--r--quanta/dialogs/tagdialogs/tagmail.ui22
-rw-r--r--quanta/dialogs/tagdialogs/tagmaildlg.cpp14
-rw-r--r--quanta/dialogs/tagdialogs/tagmaildlg.h3
-rw-r--r--quanta/dialogs/tagdialogs/tagmisc.ui12
-rw-r--r--quanta/dialogs/tagdialogs/tagmiscdlg.cpp4
-rw-r--r--quanta/dialogs/tagdialogs/tagmiscdlg.h3
-rw-r--r--quanta/dialogs/tagdialogs/tagquicklistdlg.cpp4
-rw-r--r--quanta/dialogs/tagdialogs/tagquicklistdlg.h11
-rw-r--r--quanta/dialogs/tagdialogs/tagquicklistdlgdata.cpp16
-rw-r--r--quanta/dialogs/tagdialogs/tagwidget.cpp12
-rw-r--r--quanta/dialogs/tagdialogs/tagwidget.h2
-rw-r--r--quanta/dialogs/tagdialogs/tagxml.cpp42
-rw-r--r--quanta/dialogs/tagdialogs/tagxml.h9
65 files changed, 730 insertions, 711 deletions
diff --git a/quanta/dialogs/actionconfigdialog.cpp b/quanta/dialogs/actionconfigdialog.cpp
index de63fc3e..d823fc1f 100644
--- a/quanta/dialogs/actionconfigdialog.cpp
+++ b/quanta/dialogs/actionconfigdialog.cpp
@@ -50,10 +50,10 @@
#include "tagaction.h"
#include "toolbartabwidget.h"
-ActionConfigDialog::ActionConfigDialog(const TQDict<ToolbarEntry> &toolbarList, KMainWindow* parent, const char* name, bool modal, WFlags fl, const TQString& defaultAction )
- :ActionConfigDialogS( parent, name, modal, fl )
+ActionConfigDialog::ActionConfigDialog(const TQDict<ToolbarEntry> &toolbarList, KMainWindow* tqparent, const char* name, bool modal, WFlags fl, const TQString& defaultAction )
+ :ActionConfigDialogS( tqparent, name, modal, fl )
{
- m_mainWindow = parent;
+ m_mainWindow = tqparent;
m_toolbarList = toolbarList;
buttonOk->setIconSet(SmallIconSet("button_ok"));
buttonCancel->setIconSet(SmallIconSet("button_cancel"));
@@ -89,7 +89,7 @@ ActionConfigDialog::ActionConfigDialog(const TQDict<ToolbarEntry> &toolbarList,
for (int i = 0; i < tb->count(); i++)
{
toolbarName = tb->label(i);
- toolbarName.replace(r, "");
+ toolbarName.tqreplace(r, "");
item = new KListViewItem(actionTreeView, oldItem, i18n(toolbarName.utf8()));
actionTreeView->insertItem(item);
@@ -106,13 +106,13 @@ ActionConfigDialog::ActionConfigDialog(const TQDict<ToolbarEntry> &toolbarList,
action = ac->action(node.toElement().attribute("name").ascii());
if (action)
{
- oldActionItem = new KListViewItem(item, oldActionItem, action->text().replace(r,""), action->shortcut().toString(), action->name());
+ oldActionItem = new KListViewItem(item, oldActionItem, action->text().tqreplace(r,""), action->shortcut().toString(), action->name());
oldActionItem->setPixmap(0, SmallIcon(action->icon()) );
}
}
node = node.nextSibling();
}
- if (tb->label(tb->currentPageIndex()).replace(r, "") == toolbarName)
+ if (tb->label(tb->currentPageIndex()).tqreplace(r, "") == toolbarName)
{
item->setOpen(true);
if (item->firstChild())
@@ -142,7 +142,7 @@ ActionConfigDialog::ActionConfigDialog(const TQDict<ToolbarEntry> &toolbarList,
for (uint i = 0; i < acCount; i++)
{
action = ac->action(i);
- item = new KListViewItem(allActionsItem, action->text().replace(r, ""), action->shortcut().toString(), action->name());
+ item = new KListViewItem(allActionsItem, action->text().tqreplace(r, ""), action->shortcut().toString(), action->name());
item->setPixmap(0, SmallIcon(action->icon()) );
}
allActionsItem->sortChildItems(0, true);
@@ -168,11 +168,11 @@ void ActionConfigDialog::slotAddToolbar()
for (int i = 0; i < tb->count(); i++)
{
toolbarName = tb->label(i);
- if (!actionTreeView->findItem(toolbarName, 0))
+ if (!actionTreeView->tqfindItem(toolbarName, 0))
{
item = actionTreeView->lastItem();
- if (item->parent())
- item = item->parent();
+ if (item->tqparent())
+ item = item->tqparent();
new KListViewItem(actionTreeView, item, i18n(toolbarName.utf8()));
break;
}
@@ -183,14 +183,14 @@ void ActionConfigDialog::slotRemoveToolbar()
{
TQListViewItem *item = actionTreeView->currentItem();
TQString s = item->text(0);
- if (item->parent())
+ if (item->tqparent())
{
- item = item->parent();
+ item = item->tqparent();
s = item->text(0);
}
if (s != i18n("All"))
{
- if ( KMessageBox::warningContinueCancel(this, i18n("Do you really want to remove the \"%1\" toolbar?").arg(s),TQString::null,KStdGuiItem::del()) == KMessageBox::Continue )
+ if ( KMessageBox::warningContinueCancel(this, i18n("Do you really want to remove the \"%1\" toolbar?").tqarg(s),TQString(),KStdGuiItem::del()) == KMessageBox::Continue )
{
m_toolbarItem = item;
connect(m_mainWindow, TQT_SIGNAL(toolbarRemoved(const TQString&)), TQT_SLOT(slotToolbarRemoved(const TQString&)));
@@ -213,8 +213,8 @@ void ActionConfigDialog::slotEditToolbar()
TQString toolbarId;
TQListViewItem *oldItem;
TQListViewItem *item = actionTreeView->currentItem();
- if (item->parent())
- item = item->parent();
+ if (item->tqparent())
+ item = item->tqparent();
toolbarName = item->text(0);
if ( toolbarName != i18n("All"))
{
@@ -231,7 +231,7 @@ void ActionConfigDialog::slotEditToolbar()
ToolbarEntry *p_toolbar = m_toolbarList[toolbarId];
if (p_toolbar)
{
- oldItem = actionTreeView->findItem(toolbarName, 0);
+ oldItem = actionTreeView->tqfindItem(toolbarName, 0);
item = new KListViewItem(actionTreeView, oldItem, toolbarName);
item->setOpen(oldItem->isOpen());
delete oldItem;
@@ -243,7 +243,7 @@ void ActionConfigDialog::slotEditToolbar()
action = ac->action(node.toElement().attribute("name").ascii());
if (action)
{
- oldItem = new KListViewItem(item, oldItem, action->text().replace(TQRegExp("\\&(?!\\&)"),""), action->shortcut().toString(), action->name());
+ oldItem = new KListViewItem(item, oldItem, action->text().tqreplace(TQRegExp("\\&(?!\\&)"),""), action->shortcut().toString(), action->name());
oldItem->setPixmap(0, SmallIcon(action->icon()));
}
}
@@ -266,7 +266,7 @@ void ActionConfigDialog::slotSelectionChanged(TQListViewItem *item)
if (currentAction && currentAction->inherits("TagAction"))
{
if ( buttonApply->isEnabled() &&
- KMessageBox::questionYesNo(this, i18n("Do you want to save the changes made to this action?"), TQString::null, KStdGuiItem::save(), KStdGuiItem::discard()) == KMessageBox::Yes )
+ KMessageBox::questionYesNo(this, i18n("Do you want to save the changes made to this action?"), TQString(), KStdGuiItem::save(), KStdGuiItem::discard()) == KMessageBox::Yes )
{
saveCurrentAction();
}
@@ -309,7 +309,7 @@ void ActionConfigDialog::slotSelectionChanged(TQListViewItem *item)
actionIcon->setIcon(s);
}
TQString actionText = el.attribute("text");
- actionText.replace(TQRegExp("\\&(?!\\&)"),"");
+ actionText.tqreplace(TQRegExp("\\&(?!\\&)"),"");
lineText->setText(actionText);
lineToolTip->setText( el.attribute("tooltip") );
selectedShortcut = action->shortcut();
@@ -344,7 +344,7 @@ void ActionConfigDialog::slotSelectionChanged(TQListViewItem *item)
node.toElement().attribute("name") == el.attribute("name"))
{
toolbarListBox->insertItem(toolbarName);
- if (item->parent()->text(0) == toolbarName)
+ if (item->tqparent()->text(0) == toolbarName)
current = count;
count++;
}
@@ -406,7 +406,7 @@ void ActionConfigDialog::slotSelectionChanged(TQListViewItem *item)
{
outputBox->setCurrentItem(2);
} else
- if (s == "replace")
+ if (s == "tqreplace")
{
outputBox->setCurrentItem(3);
} else
@@ -431,7 +431,7 @@ void ActionConfigDialog::slotSelectionChanged(TQListViewItem *item)
{
errorBox->setCurrentItem(2);
} else
- if (s == "replace")
+ if (s == "tqreplace")
{
errorBox->setCurrentItem(3);
} else
@@ -472,7 +472,7 @@ void ActionConfigDialog::saveCurrentAction()
currentAction->setIcon(s);
TQString oldText = el.attribute("text");
s = lineText->text();
- s.replace('&', "&&");
+ s.tqreplace('&', "&&");
el.setAttribute("text", s);
currentAction->setText(s);
s = lineToolTip->text();
@@ -549,7 +549,7 @@ void ActionConfigDialog::saveCurrentAction()
case 2:{ item.setAttribute("output", "selection");
break;
}
- case 3:{ item.setAttribute("output", "replace");
+ case 3:{ item.setAttribute("output", "tqreplace");
break;
}
case 4:{ item.setAttribute("output", "new");
@@ -570,7 +570,7 @@ void ActionConfigDialog::saveCurrentAction()
case 2:{ item.setAttribute("error", "selection");
break;
}
- case 3:{ item.setAttribute("error", "replace");
+ case 3:{ item.setAttribute("error", "tqreplace");
break;
}
case 4:{ item.setAttribute("error", "new");
@@ -618,7 +618,7 @@ void ActionConfigDialog::saveCurrentAction()
if (p_toolbar)
{
TQDomNode node = p_toolbar->guiClient->domDocument().firstChild().firstChild().firstChild();
- bool placeOnToolbar = toolbarListBox->findItem(toolbarName, Qt::ExactMatch);
+ bool placeOnToolbar = toolbarListBox->tqfindItem(toolbarName, TQt::ExactMatch);
while (!node.isNull())
{
if (node.nodeName() == "Action" &&
@@ -630,12 +630,12 @@ void ActionConfigDialog::saveCurrentAction()
{
currentAction->unplug(tb->page(i));
currentAction->unplug(p_toolbar->menu);
- node.parentNode().removeChild(node);
+ node.tqparentNode().removeChild(node);
TQListViewItemIterator iter(actionTreeView);
while (iter.current())
{
listItem = iter.current();
- if (listItem->depth() > 0 && listItem->parent()->text(0) == toolbarName
+ if (listItem->depth() > 0 && listItem->tqparent()->text(0) == toolbarName
&& listItem->text(2) == el.attribute("name"))
{
delete listItem;
@@ -658,7 +658,7 @@ void ActionConfigDialog::saveCurrentAction()
item.setAttribute("name",el.attribute("name"));
p_toolbar->guiClient->domDocument().firstChild().firstChild().appendChild(item);
//put it also in the treeview
- listItem = actionTreeView->findItem(toolbarName, 0);
+ listItem = actionTreeView->tqfindItem(toolbarName, 0);
if (listItem)
{
TQListViewItem *after = listItem->firstChild();
@@ -682,7 +682,7 @@ void ActionConfigDialog::saveCurrentAction()
p_toolbar->guiClient->xmlFile(), p_toolbar->guiClient->instance());
}
TQWidget *toolBar = tb->page(i);
- if (toolBar->minimumSizeHint().height() > 20)
+ if (toolBar->tqminimumSizeHint().height() > 20)
{
toolBar->adjustSize();
toolBar->setGeometry(0,0, tb->width(), toolBar->height());
@@ -698,29 +698,29 @@ void ActionConfigDialog::slotShortcutCaptured(const KShortcut &shortcut)
{
TQString shortcutText = shortcut.toString();
TQString shortcutText2;
- int pos = shortcutText.find(';');
+ int pos = shortcutText.tqfind(';');
if (pos != -1)
{
shortcutText2 = shortcutText.mid(pos + 1);
shortcutText = shortcutText.left(pos);
}
TQString s = shortcutText;
- s.replace('+', "\\+");
+ s.tqreplace('+', "\\+");
TQRegExp shortcutRx("\\(" + s + "\\)|" + s + "$|" + s + ";");
s = shortcutText2;
- s.replace('+', "\\+");
+ s.tqreplace('+', "\\+");
TQRegExp shortcutRx2("\\(" + s + "\\)|" + s + "$|" + s + ";");
TQString global;
//check for conflicting global shortcuts
TQMap<TQString, TQString>::Iterator it;
for ( it = globalShortcuts.begin(); it != globalShortcuts.end(); ++it )
{
- if (it.data().contains(shortcutRx))
+ if (it.data().tqcontains(shortcutRx))
{
global = it.key();
break;
}
- if (!shortcutText2.isEmpty() && it.data().contains(shortcutRx2))
+ if (!shortcutText2.isEmpty() && it.data().tqcontains(shortcutRx2))
{
shortcutText = shortcutText2;
global = it.key();
@@ -737,12 +737,12 @@ void ActionConfigDialog::slotShortcutCaptured(const KShortcut &shortcut)
for (uint i = 0; i < ac->count(); i++)
{
KAction *action = ac->action(i);
- if (action != currentAction && action->shortcut().toString().contains(shortcutRx))
+ if (action != currentAction && action->shortcut().toString().tqcontains(shortcutRx))
{
global = action->text();
break;
}
- if (!shortcutText2.isEmpty() && action != currentAction && action->shortcut().toString().contains(shortcutRx))
+ if (!shortcutText2.isEmpty() && action != currentAction && action->shortcut().toString().tqcontains(shortcutRx))
{
shortcutText = shortcutText2;
global = action->text();
@@ -761,11 +761,11 @@ void ActionConfigDialog::slotShortcutCaptured(const KShortcut &shortcut)
selectedShortcut = shortcut;
} else
{
- global.replace('&',"");
+ global.tqreplace('&',"");
TQString s = i18n("The '%1' key combination has already been allocated "
"to the \"%2\" action.\n"
"Please choose a unique key combination.").
- arg(shortcutText).arg(global);
+ tqarg(shortcutText).tqarg(global);
KMessageBox::sorry( this, s, i18n("Conflicting Shortcuts"));
}
}
@@ -779,7 +779,7 @@ void ActionConfigDialog::accept()
void ActionConfigDialog::reject()
{
- if (buttonApply->isEnabled() && KMessageBox::questionYesNo(this, i18n("Do you want to save the changes made to this action?"), TQString::null, KStdGuiItem::save(), KStdGuiItem::discard()) == KMessageBox::Yes )
+ if (buttonApply->isEnabled() && KMessageBox::questionYesNo(this, i18n("Do you want to save the changes made to this action?"), TQString(), KStdGuiItem::save(), KStdGuiItem::discard()) == KMessageBox::Yes )
saveCurrentAction();
ActionConfigDialogS::reject();
}
@@ -805,29 +805,29 @@ void ActionConfigDialog::slotNewAction()
static_cast<TagAction*>(currentAction)->setModified(true);
TQListViewItem *currentItem = actionTreeView->currentItem();
TQListViewItem *item = new KListViewItem(allActionsItem);
- TQString actionText = TQString("Action_%1").arg(m_mainWindow->actionCollection()->count());
+ TQString actionText = TQString("Action_%1").tqarg(m_mainWindow->actionCollection()->count());
currentAction->setText(actionText);
item->setText(2, currentAction->name());
item->setText(0, actionText);
item->setPixmap(0, SmallIcon("ball"));
allActionsItem->sortChildItems(0, true);
- if (currentItem->parent() && currentItem->parent() == allActionsItem)
+ if (currentItem->tqparent() && currentItem->tqparent() == allActionsItem)
{
actionTreeView->setCurrentItem(item);
} else
{
- TQListViewItem *parentItem = currentItem->parent();
- if (!parentItem)
- parentItem = currentItem;
+ TQListViewItem *tqparentItem = currentItem->tqparent();
+ if (!tqparentItem)
+ tqparentItem = currentItem;
- item = new KListViewItem(parentItem, currentItem);
+ item = new KListViewItem(tqparentItem, currentItem);
item->setText(0, actionText);
item->setText(2, currentAction->name());
item->setPixmap(0, SmallIcon("ball"));
actionTreeView->setCurrentItem(item);
- if (parentItem != allActionsItem)
+ if (tqparentItem != allActionsItem)
{
- toolbarListBox->insertItem(parentItem->text(0));
+ toolbarListBox->insertItem(tqparentItem->text(0));
toolbarListBox->setCurrentItem(0);
toolbarListBox->setSelected(0, true);
}
@@ -838,7 +838,7 @@ void ActionConfigDialog::slotNewAction()
void ActionConfigDialog::slotDeleteAction()
{
- if ( KMessageBox::warningContinueCancel(this, i18n("<qt>Removing the action removes all the references to it.\nAre you sure you want to remove the <b>%1</b> action?</qt>").arg(currentAction->text()),TQString::null,KStdGuiItem::del()) == KMessageBox::Continue )
+ if ( KMessageBox::warningContinueCancel(this, i18n("<qt>Removing the action removes all the references to it.\nAre you sure you want to remove the <b>%1</b> action?</qt>").tqarg(currentAction->text()),TQString(),KStdGuiItem::del()) == KMessageBox::Continue )
{
TQString actionName = currentAction->name();
emit deleteUserAction(currentAction);
@@ -876,7 +876,7 @@ void ActionConfigDialog::slotAddContainerToolbar()
TQStringList lst;
for (i = 0; i < tb->count(); i++)
{
- if (!toolbarListBox->findItem(tb->label(i), Qt::ExactMatch))
+ if (!toolbarListBox->tqfindItem(tb->label(i), TQt::ExactMatch))
lst << tb->label(i);
}
diff --git a/quanta/dialogs/actionconfigdialog.h b/quanta/dialogs/actionconfigdialog.h
index d0bee34e..cbe44d1d 100644
--- a/quanta/dialogs/actionconfigdialog.h
+++ b/quanta/dialogs/actionconfigdialog.h
@@ -42,10 +42,11 @@ struct ToolbarEntry {
class ActionConfigDialog: public ActionConfigDialogS
{
Q_OBJECT
+ TQ_OBJECT
public:
- ActionConfigDialog(const TQDict<ToolbarEntry> &toolbarList, KMainWindow* parent = 0, const char* name = 0, bool modal = true, WFlags fl = 0 , const TQString& defaultAction = TQString::null);
+ ActionConfigDialog(const TQDict<ToolbarEntry> &toolbarList, KMainWindow* tqparent = 0, const char* name = 0, bool modal = true, WFlags fl = 0 , const TQString& defaultAction = TQString());
~ActionConfigDialog();
void createScriptAction(const TQString& a_name, const TQString& a_script);
diff --git a/quanta/dialogs/actionconfigdialogs.ui b/quanta/dialogs/actionconfigdialogs.ui
index baeb41bd..c5002777 100644
--- a/quanta/dialogs/actionconfigdialogs.ui
+++ b/quanta/dialogs/actionconfigdialogs.ui
@@ -11,7 +11,7 @@
***************************************************************************/
</comment>
<author>Andras Mantia &lt;[email protected]&gt;</author>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>ActionConfigDialogS</cstring>
</property>
@@ -30,16 +30,16 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QSplitter" row="0" column="0">
+ <widget class="TQSplitter" row="0" column="0">
<property name="name">
<cstring>splitter2</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout17</cstring>
+ <cstring>tqlayout17</cstring>
</property>
<grid>
<property name="name">
@@ -56,7 +56,7 @@
<string>&amp;Delete Action</string>
</property>
</widget>
- <widget class="QPushButton" row="2" column="1">
+ <widget class="TQPushButton" row="2" column="1">
<property name="name">
<cstring>addAction</cstring>
</property>
@@ -77,7 +77,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
@@ -94,14 +94,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="4">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="4">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -158,9 +158,9 @@
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout9</cstring>
+ <cstring>tqlayout9</cstring>
</property>
<grid>
<property name="name">
@@ -177,7 +177,7 @@
<string>&amp;Apply</string>
</property>
</widget>
- <widget class="QPushButton" row="1" column="4">
+ <widget class="TQPushButton" row="1" column="4">
<property name="name">
<cstring>buttonCancel</cstring>
</property>
@@ -198,7 +198,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
@@ -209,7 +209,7 @@
<property name="name">
<cstring>buttonOk</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>90</width>
<height>0</height>
@@ -225,7 +225,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QButtonGroup" row="0" column="1" rowspan="1" colspan="4">
+ <widget class="TQButtonGroup" row="0" column="1" rowspan="1" colspan="4">
<property name="name">
<cstring>actionProperties</cstring>
</property>
@@ -239,7 +239,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QPushButton" row="6" column="3" rowspan="1" colspan="2">
+ <widget class="TQPushButton" row="6" column="3" rowspan="1" colspan="2">
<property name="name">
<cstring>addToolbar</cstring>
</property>
@@ -247,7 +247,7 @@
<string>&amp;Add...</string>
</property>
</widget>
- <widget class="QPushButton" row="7" column="3" rowspan="1" colspan="2">
+ <widget class="TQPushButton" row="7" column="3" rowspan="1" colspan="2">
<property name="name">
<cstring>removeToolbar</cstring>
</property>
@@ -265,14 +265,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QLabel" row="2" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
@@ -283,12 +283,12 @@
<cstring>lineToolTip</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="2" rowspan="1" colspan="3">
+ <widget class="TQLineEdit" row="2" column="2" rowspan="1" colspan="3">
<property name="name">
<cstring>lineToolTip</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>TextLabel1_2</cstring>
</property>
@@ -311,13 +311,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>32</width>
<height>32</height>
@@ -330,12 +330,12 @@
<number>22</number>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="2" rowspan="1" colspan="2">
+ <widget class="TQLineEdit" row="1" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>lineText</cstring>
</property>
</widget>
- <widget class="QButtonGroup" row="4" column="0" rowspan="1" colspan="5">
+ <widget class="TQButtonGroup" row="4" column="0" rowspan="1" colspan="5">
<property name="name">
<cstring>buttonGroup4_2</cstring>
</property>
@@ -346,7 +346,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="0" column="1">
+ <widget class="TQRadioButton" row="0" column="1">
<property name="name">
<cstring>customShortcut</cstring>
</property>
@@ -365,7 +365,7 @@
<string>None</string>
</property>
</widget>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>noShortcut</cstring>
</property>
@@ -383,7 +383,7 @@
<cstring>toolbarListBox</cstring>
</property>
</widget>
- <widget class="QLabel" row="5" column="0" rowspan="1" colspan="3">
+ <widget class="TQLabel" row="5" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -391,7 +391,7 @@
<string>Container toolbars:</string>
</property>
</widget>
- <widget class="QComboBox" row="0" column="2" rowspan="1" colspan="3">
+ <widget class="TQComboBox" row="0" column="2" rowspan="1" colspan="3">
<item>
<property name="text">
<string>Tag</string>
@@ -419,7 +419,7 @@
</sizepolicy>
</property>
</widget>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -430,7 +430,7 @@
<cstring>typeCombo</cstring>
</property>
</widget>
- <widget class="QButtonGroup" row="8" column="0" rowspan="1" colspan="5">
+ <widget class="TQButtonGroup" row="8" column="0" rowspan="1" colspan="5">
<property name="name">
<cstring>buttonGroup13</cstring>
</property>
@@ -441,11 +441,11 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QWidgetStack" row="0" column="0">
+ <widget class="TQWidgetStack" row="0" column="0">
<property name="name">
<cstring>widgetStack1</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>page</cstring>
</property>
@@ -456,7 +456,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel5_2_2_2</cstring>
</property>
@@ -464,17 +464,17 @@
<string>&lt;tag&gt; :</string>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>lineTag</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1">
+ <widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>lineClosingTag</cstring>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="0">
+ <widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>useClosingTag</cstring>
</property>
@@ -485,7 +485,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QCheckBox" row="2" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>useActionDialog</cstring>
</property>
@@ -498,7 +498,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>page</cstring>
</property>
@@ -521,14 +521,14 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>64</width>
<height>20</height>
</size>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -547,7 +547,7 @@
<cstring>inputBox</cstring>
</property>
</widget>
- <widget class="QComboBox" row="1" column="1">
+ <widget class="TQComboBox" row="1" column="1">
<item>
<property name="text">
<string>None</string>
@@ -575,7 +575,7 @@
</sizepolicy>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
@@ -594,7 +594,7 @@
<cstring>outputBox</cstring>
</property>
</widget>
- <widget class="QComboBox" row="2" column="1">
+ <widget class="TQComboBox" row="2" column="1">
<item>
<property name="text">
<string>None</string>
@@ -640,7 +640,7 @@
<number>5</number>
</property>
</widget>
- <widget class="QComboBox" row="3" column="1">
+ <widget class="TQComboBox" row="3" column="1">
<item>
<property name="text">
<string>None</string>
@@ -686,7 +686,7 @@
<number>5</number>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel3_2</cstring>
</property>
@@ -707,7 +707,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>page</cstring>
</property>
@@ -718,7 +718,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QMultiLineEdit" row="0" column="0">
+ <widget class="TQMultiLineEdit" row="0" column="0">
<property name="name">
<cstring>textEdit</cstring>
</property>
@@ -740,7 +740,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>55</width>
<height>20</height>
@@ -976,7 +976,7 @@
<include location="global" impldecl="in implementation">kkeybutton.h</include>
<include location="global" impldecl="in implementation">kpushbutton.h</include>
</includes>
-<slots>
+<Q_SLOTS>
<slot>buttonOk_clicked()</slot>
<slot>slotNewAction()</slot>
<slot>slotDeleteAction()</slot>
@@ -989,8 +989,8 @@
<slot>shortcutKeyButton_toggled(bool)</slot>
<slot>slotToggled(bool)</slot>
<slot>slotTextChanged()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klistview.h</includehint>
<includehint>kicondialog.h</includehint>
diff --git a/quanta/dialogs/casewidget.ui b/quanta/dialogs/casewidget.ui
index f7f064f9..916332dd 100644
--- a/quanta/dialogs/casewidget.ui
+++ b/quanta/dialogs/casewidget.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>CaseWidget</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>CaseWidget</cstring>
</property>
@@ -12,7 +12,7 @@
<height>158</height>
</rect>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>500</width>
<height>100</height>
@@ -22,7 +22,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QButtonGroup" row="0" column="0">
+ <widget class="TQButtonGroup" row="0" column="0">
<property name="name">
<cstring>buttonGroup2</cstring>
</property>
@@ -33,7 +33,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>upperTag</cstring>
</property>
@@ -41,7 +41,7 @@
<string>Upper case</string>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="0">
+ <widget class="TQRadioButton" row="1" column="0">
<property name="name">
<cstring>lowerTag</cstring>
</property>
@@ -49,7 +49,7 @@
<string>Lower case</string>
</property>
</widget>
- <widget class="QRadioButton" row="2" column="0">
+ <widget class="TQRadioButton" row="2" column="0">
<property name="name">
<cstring>unchangedTag</cstring>
</property>
@@ -62,7 +62,7 @@
</widget>
</grid>
</widget>
- <widget class="QButtonGroup" row="0" column="1">
+ <widget class="TQButtonGroup" row="0" column="1">
<property name="name">
<cstring>buttonGroup3</cstring>
</property>
@@ -73,7 +73,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>upperAttr</cstring>
</property>
@@ -81,7 +81,7 @@
<string>Upper case</string>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="0">
+ <widget class="TQRadioButton" row="1" column="0">
<property name="name">
<cstring>lowerAttr</cstring>
</property>
@@ -89,7 +89,7 @@
<string>Lower case</string>
</property>
</widget>
- <widget class="QRadioButton" row="2" column="0">
+ <widget class="TQRadioButton" row="2" column="0">
<property name="name">
<cstring>unchangedAttr</cstring>
</property>
@@ -104,5 +104,5 @@
</widget>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/dialogs/copyto.cpp b/quanta/dialogs/copyto.cpp
index 9f66cb11..7a4c596d 100644
--- a/quanta/dialogs/copyto.cpp
+++ b/quanta/dialogs/copyto.cpp
@@ -46,9 +46,9 @@ KURL CopyTo::copy(const KURL& urlToCopy, const KURL& destination)
targetDirURL.adjustPath(1);
bool doCopy = true;
- if (!QExtFileInfo::exists(targetDirURL, false, 0L))
+ if (!TQExtFileInfo::exists(targetDirURL, false, 0L))
{
- doCopy = QExtFileInfo::createDir(targetDirURL, 0L);
+ doCopy = TQExtFileInfo::createDir(targetDirURL, 0L);
}
KURL destURL;
@@ -93,9 +93,9 @@ KURL::List CopyTo::copy(const KURL::List& sourceList, const KURL& destination )
targetDirURL = destination;
}
bool doCopy = true;
- if (!QExtFileInfo::exists(targetDirURL, false, 0L))
+ if (!TQExtFileInfo::exists(targetDirURL, false, 0L))
{
- doCopy = QExtFileInfo::createDir(targetDirURL, 0L);
+ doCopy = TQExtFileInfo::createDir(targetDirURL, 0L);
}
KIO::UDSEntry entry;
diff --git a/quanta/dialogs/copyto.h b/quanta/dialogs/copyto.h
index 452919aa..b46947db 100644
--- a/quanta/dialogs/copyto.h
+++ b/quanta/dialogs/copyto.h
@@ -28,8 +28,9 @@
class KURL;
-class CopyTo : public QObject{
+class CopyTo : public TQObject{
Q_OBJECT
+ TQ_OBJECT
public:
CopyTo(const KURL& dirURL);
~CopyTo();
diff --git a/quanta/dialogs/debuggeroptionss.ui b/quanta/dialogs/debuggeroptionss.ui
index 8e1910f4..d44b604e 100644
--- a/quanta/dialogs/debuggeroptionss.ui
+++ b/quanta/dialogs/debuggeroptionss.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>DebuggerOptionsS</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>DebuggerOptionsS</cstring>
</property>
@@ -20,7 +20,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>350</width>
<height>220</height>
@@ -36,7 +36,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QCheckBox" row="0" column="0">
+ <widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>checkDebugger</cstring>
</property>
@@ -47,7 +47,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QButtonGroup" row="1" column="0">
+ <widget class="TQButtonGroup" row="1" column="0">
<property name="name">
<cstring>ButtonGroup1</cstring>
</property>
@@ -72,7 +72,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>radioPhp3</cstring>
</property>
@@ -80,7 +80,7 @@
<string>PHP3 listener</string>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="0">
+ <widget class="TQRadioButton" row="1" column="0">
<property name="name">
<cstring>radioPhp4</cstring>
</property>
@@ -101,7 +101,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -120,7 +120,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -137,5 +137,5 @@
<slot>setEnabled(bool)</slot>
</connection>
</connections>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/dialogs/dirtydialog.ui b/quanta/dialogs/dirtydialog.ui
index 3d46130e..d339ebdc 100644
--- a/quanta/dialogs/dirtydialog.ui
+++ b/quanta/dialogs/dirtydialog.ui
@@ -9,7 +9,7 @@
***************************************************************************/
</comment>
<author>(C) 2002 Andras Mantia &lt;[email protected]&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>DirtyDialog</cstring>
</property>
@@ -29,7 +29,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>400</width>
<height>220</height>
@@ -42,7 +42,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel</cstring>
</property>
@@ -58,7 +58,7 @@
<string>The file was changed outside of the Quanta editor.</string>
</property>
</widget>
- <widget class="QButtonGroup" row="1" column="0">
+ <widget class="TQButtonGroup" row="1" column="0">
<property name="name">
<cstring>ButtonGroup2</cstring>
</property>
@@ -75,7 +75,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QRadioButton" row="2" column="0" rowspan="1" colspan="2">
+ <widget class="TQRadioButton" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>buttonIgnore</cstring>
</property>
@@ -83,7 +83,7 @@
<string>&amp;Do not load the modified version from disk</string>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQRadioButton" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>buttonLoad</cstring>
</property>
@@ -91,7 +91,7 @@
<string>&amp;Use the version from disk (will lose the current content)</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="1">
+ <widget class="TQLabel" row="3" column="1">
<property name="name">
<cstring>warningLabel</cstring>
</property>
@@ -106,7 +106,7 @@
<property name="text">
<string>(If you later save the document, you will lose what was on the disk.)</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@@ -120,14 +120,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QRadioButton" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQRadioButton" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>buttonCompare</cstring>
</property>
@@ -150,5 +150,5 @@
<tabstop>buttonIgnore</tabstop>
<tabstop>buttonLoad</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/dialogs/dirtydlg.cpp b/quanta/dialogs/dirtydlg.cpp
index 70d06c86..18301045 100644
--- a/quanta/dialogs/dirtydlg.cpp
+++ b/quanta/dialogs/dirtydlg.cpp
@@ -34,14 +34,14 @@
#include "resource.h"
#include "qextfileinfo.h"
-DirtyDlg::DirtyDlg(const TQString& srcName, const TQString& destName, bool createBackup, TQWidget *parent, const char *name ) : KDialogBase(parent, name, true, i18n("File Changed"), KDialogBase::Ok)
+DirtyDlg::DirtyDlg(const TQString& srcName, const TQString& destName, bool createBackup, TQWidget *tqparent, const char *name ) : KDialogBase(tqparent, name, true, i18n("File Changed"), KDialogBase::Ok)
{
m_src.setPath(srcName);
m_dest.setPath(destName);
m_busy = false;
m_createBackup = createBackup;
m_mainWidget = new DirtyDialog(this);
- m_mainWidget->textLabel->setText(i18n("<qt>The file <b>%1</b> was changed outside of the Quanta editor.</qt>").arg(srcName));
+ m_mainWidget->textLabel->setText(i18n("<qt>The file <b>%1</b> was changed outside of the Quanta editor.</qt>").tqarg(srcName));
setMainWidget(m_mainWidget);
}
@@ -78,7 +78,7 @@ void DirtyDlg::slotCompareDone(KProcess* proc)
{
KURL backupURL = m_src;
backupURL.setPath(backupURL.path()+".backup");
- QExtFileInfo::copy(m_src, backupURL, -1, true, false, this);
+ TQExtFileInfo::copy(m_src, backupURL, -1, true, false, this);
}
KIO::UDSEntry entry;
diff --git a/quanta/dialogs/dirtydlg.h b/quanta/dialogs/dirtydlg.h
index ec457d25..c850ab25 100644
--- a/quanta/dialogs/dirtydlg.h
+++ b/quanta/dialogs/dirtydlg.h
@@ -28,9 +28,10 @@ class TQCloseEvent;
class DirtyDlg : public KDialogBase {
Q_OBJECT
+ TQ_OBJECT
public:
- DirtyDlg(const TQString& srcName, const TQString& destName, bool createBackup = false, TQWidget *parent=0, const char *name=0);
+ DirtyDlg(const TQString& srcName, const TQString& destName, bool createBackup = false, TQWidget *tqparent=0, const char *name=0);
~DirtyDlg();
protected slots: // Protected slots
diff --git a/quanta/dialogs/donationdialog.ui b/quanta/dialogs/donationdialog.ui
index e5aab152..0921fa98 100644
--- a/quanta/dialogs/donationdialog.ui
+++ b/quanta/dialogs/donationdialog.ui
@@ -9,7 +9,7 @@
***************************************************************************/
</comment>
<author>(C) 2002, 2003 Andras Mantia &lt;[email protected]&gt;, (C) 2002, 2003, 2004 Eric Laffoon &lt;[email protected]&gt;</author>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>DonationDialog</cstring>
</property>
@@ -86,7 +86,7 @@ is the future of software, but it is no guarantee of success. How many open sour
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>365</width>
<height>20</height>
@@ -108,13 +108,13 @@ is the future of software, but it is no guarantee of success. How many open sour
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>32767</width>
<height>40</height>
@@ -143,10 +143,10 @@ is the future of software, but it is no guarantee of success. How many open sour
<tabstop>KTextBrowser2</tabstop>
<tabstop>closeButton</tabstop>
</tabstops>
-<slots>
+<Q_SLOTS>
<slot>init()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kpushbutton.h</includehint>
<includehint>ktextbrowser.h</includehint>
diff --git a/quanta/dialogs/dtdselectdialog.ui b/quanta/dialogs/dtdselectdialog.ui
index 525a0429..60c47e20 100644
--- a/quanta/dialogs/dtdselectdialog.ui
+++ b/quanta/dialogs/dtdselectdialog.ui
@@ -9,7 +9,7 @@
***************************************************************************/
</comment>
<author>(C) 2002, 2003 Andras Mantia &lt;[email protected]&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>DTDSelectDialog</cstring>
</property>
@@ -21,7 +21,7 @@
<height>161</height>
</rect>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>440</width>
<height>160</height>
@@ -34,7 +34,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>messageLabel</cstring>
</property>
@@ -45,16 +45,16 @@ Dialog message2:</string>
<property name="scaledContents">
<bool>true</bool>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
- <widget class="QComboBox" row="1" column="1">
+ <widget class="TQComboBox" row="1" column="1">
<property name="name">
<cstring>dtdCombo</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel</cstring>
</property>
@@ -62,7 +62,7 @@ Dialog message2:</string>
<string>Current DTD:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>comboLabel</cstring>
</property>
@@ -70,7 +70,7 @@ Dialog message2:</string>
<string>Select DTD:</string>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="1">
+ <widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>currentDTD</cstring>
</property>
@@ -78,7 +78,7 @@ Dialog message2:</string>
<bool>true</bool>
</property>
</widget>
- <widget class="QCheckBox" row="3" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="3" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>convertDTD</cstring>
</property>
@@ -86,7 +86,7 @@ Dialog message2:</string>
<string>Conver&amp;t the document to the selected DTD</string>
</property>
</widget>
- <widget class="QCheckBox" row="4" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>useClosestMatching</cstring>
</property>
@@ -105,8 +105,8 @@ Dialog message2:</string>
<includes>
<include location="local" impldecl="in implementation">dtdselectdialog.ui.h</include>
</includes>
-<slots>
+<Q_SLOTS>
<slot>init()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/dialogs/dtepeditdlg.cpp b/quanta/dialogs/dtepeditdlg.cpp
index c2595716..72759a00 100644
--- a/quanta/dialogs/dtepeditdlg.cpp
+++ b/quanta/dialogs/dtepeditdlg.cpp
@@ -40,8 +40,8 @@
#include "resource.h"
#include "quantacommon.h"
-DTEPEditDlg::DTEPEditDlg(const TQString& descriptionFile, TQWidget *parent, const char *name)
- : DTEPEditDlgS(parent, name)
+DTEPEditDlg::DTEPEditDlg(const TQString& descriptionFile, TQWidget *tqparent, const char *name)
+ : DTEPEditDlgS(tqparent, name)
{
nameEdit->setFocus();
m_descriptionFile = descriptionFile;
@@ -94,7 +94,7 @@ void DTEPEditDlg::readGeneral()
TQString inherits = m_config->readEntry("Inherits");
TQStringList lst(DTDs::ref()->nameList());
inheritsCombo->insertStringList(lst);
- int idx = lst.findIndex(inherits);
+ int idx = lst.tqfindIndex(inherits);
if (idx == -1)
inheritsCombo->insertItem(inherits, 0);
else
@@ -113,9 +113,9 @@ void DTEPEditDlg::readGeneral()
void DTEPEditDlg::readPages()
{
int i = 1;
- while (m_config->hasGroup(TQString("Page%1").arg(i)) && i < 6)
+ while (m_config->hasGroup(TQString("Page%1").tqarg(i)) && i < 6)
{
- m_config->setGroup(TQString("Page%1").arg(i));
+ m_config->setGroup(TQString("Page%1").tqarg(i));
TQString title = m_config->readEntry("Title");
TQString groups = m_config->readEntry("Groups");
if (i == 1)
@@ -203,7 +203,7 @@ void DTEPEditDlg::saveResult()
{
if (f.exists())
{
- if (KMessageBox::questionYesNo(this, i18n("<qt>The file <b>%1</b> is not writable.<br>Do you want to save the configuration to a different file?</qt>").arg(f.filePath()),i18n("Save As"),i18n("Save to Different File"), i18n("Do Not Save")) == KMessageBox::Yes)
+ if (KMessageBox::questionYesNo(this, i18n("<qt>The file <b>%1</b> is not writable.<br>Do you want to save the configuration to a different file?</qt>").tqarg(f.filePath()),i18n("Save As"),i18n("Save to Different File"), i18n("Do Not Save")) == KMessageBox::Yes)
{
targetFile = KFileDialog::getSaveFileName(locateLocal("data", resourceDir + "dtep/description.rc"), i18n("*.rc|DTEP Description"), this, i18n("Save Description As"));
} else
@@ -255,35 +255,35 @@ void DTEPEditDlg::writePages(KConfig *config)
if (enablePage1->isChecked())
{
num++;
- config->setGroup(TQString("Page%1").arg(num));
+ config->setGroup(TQString("Page%1").tqarg(num));
writeEntry(config, "Title", pageTitleEdit1->text());
writeEntry(config, "Groups", groupsEdit1->text());
}
if (enablePage2->isChecked())
{
num++;
- config->setGroup(TQString("Page%1").arg(num));
+ config->setGroup(TQString("Page%1").tqarg(num));
writeEntry(config, "Title", pageTitleEdit2->text());
writeEntry(config, "Groups", groupsEdit2->text());
}
if (enablePage3->isChecked())
{
num++;
- config->setGroup(TQString("Page%1").arg(num));
+ config->setGroup(TQString("Page%1").tqarg(num));
writeEntry(config, "Title", pageTitleEdit3->text());
writeEntry(config, "Groups", groupsEdit3->text());
}
if (enablePage4->isChecked())
{
num++;
- config->setGroup(TQString("Page%1").arg(num));
+ config->setGroup(TQString("Page%1").tqarg(num));
writeEntry(config, "Title", pageTitleEdit4->text());
writeEntry(config, "Groups", groupsEdit4->text());
}
if (enablePage5->isChecked())
{
num++;
- config->setGroup(TQString("Page%1").arg(num));
+ config->setGroup(TQString("Page%1").tqarg(num));
writeEntry(config, "Title", pageTitleEdit5->text());
writeEntry(config, "Groups", groupsEdit5->text());
}
@@ -343,10 +343,10 @@ void DTEPEditDlg::readStructures()
int objectGroupId = m_config->readNumEntry("ObjectGroupIndex", -1);
int i = 1;
- while (m_config->hasGroup(TQString("StructGroup_%1").arg(i)))
+ while (m_config->hasGroup(TQString("StructGroup_%1").tqarg(i)))
{
StructGroup group;
- m_config->setGroup(TQString("StructGroup_%1").arg(i));
+ m_config->setGroup(TQString("StructGroup_%1").tqarg(i));
group.name = m_config->readEntry("Name");
group.noName = m_config->readEntry("No_Name");
group.icon = m_config->readEntry("Icon");
@@ -354,7 +354,7 @@ void DTEPEditDlg::readStructures()
group.hasFileName = m_config->readBoolEntry("HasFileName", false);
group.fileNameRx = m_config->readEntry("FileNameRx");
group.appendToTags = m_config->readBoolEntry("AppendToTags", false);
- group.parentGroup = m_config->readEntry("ParentGroup");
+ group.tqparentGroup = m_config->readEntry("ParentGroup");
group.definitionRx = m_config->readEntry("DefinitionRx");
group.definitionRxMinimal = m_config->readBoolEntry("DefinitionRx_Minimal", false);
group.usageRx = m_config->readEntry("UsageRx");
@@ -387,7 +387,7 @@ void DTEPEditDlg::writeStructures(KConfig *config)
for (TQValueList<StructGroup>::ConstIterator it = m_structGroups.constBegin(); it != m_structGroups.constEnd(); ++it)
{
StructGroup group = *it;
- config->setGroup(TQString("StructGroup_%1").arg(i));
+ config->setGroup(TQString("StructGroup_%1").tqarg(i));
writeEntry(config, "Name", group.name);
writeEntry(config, "No_Name", group.noName);
writeEntry(config, "Icon", group.icon);
@@ -397,7 +397,7 @@ void DTEPEditDlg::writeStructures(KConfig *config)
config->writeEntry("AppendToTags", group.appendToTags);
if (m_family == 1)
{
- writeEntry(config, "ParentGroup", group.parentGroup);
+ writeEntry(config, "ParentGroup", group.tqparentGroup);
writeEntry(config, "DefinitionRx", group.definitionRx);
config->writeEntry("DefinitionRx_Minimal", group.definitionRxMinimal);
writeEntry(config, "UsageRx", group.usageRx);
@@ -453,7 +453,7 @@ void DTEPEditDlg::slotEditStructGroup()
structDlg.hasFilename->setChecked(group.hasFileName);
structDlg.fileNameRxEdit->setText(group.fileNameRx);
structDlg.appendToTags->setChecked(group.appendToTags);
- structDlg.parentGroupEdit->setText(group.parentGroup);
+ structDlg.tqparentGroupEdit->setText(group.tqparentGroup);
for (int i = 0; i < structDlg.tagTypeCombo->count(); i++)
{
if (structDlg.tagTypeCombo->text(i) == group.tagType)
@@ -513,7 +513,7 @@ StructGroup DTEPEditDlg::readFromStructDlg(DTEPStructureEditDlgS *structDlg)
group.hasFileName = structDlg->hasFilename->isChecked();
group.fileNameRx = structDlg->fileNameRxEdit->text();
group.appendToTags = structDlg->appendToTags->isChecked();
- group.parentGroup = structDlg->parentGroupEdit->text();
+ group.tqparentGroup = structDlg->tqparentGroupEdit->text();
group.tagType = structDlg->tagTypeCombo->currentText();
group.definitionRx = structDlg->definitionRxEdit->text();
group.definitionRxMinimal = structDlg->definitionRxMinimal->isChecked();
@@ -536,7 +536,7 @@ void DTEPEditDlg::slotDeleteStructGroup()
int currentItem = structuresList->currentItem();
if (currentItem != -1)
{
- if (KMessageBox::warningContinueCancel(this, i18n("<qt>Do you really want to delete the <b>%1</b> group?</qt>").arg(structuresList->currentText()), i18n("Delete Group"),KStdGuiItem::del()) == KMessageBox::Continue)
+ if (KMessageBox::warningContinueCancel(this, i18n("<qt>Do you really want to delete the <b>%1</b> group?</qt>").tqarg(structuresList->currentText()), i18n("Delete Group"),KStdGuiItem::del()) == KMessageBox::Continue)
{
m_structGroups.remove(m_structGroups.at(currentItem));
structuresList->removeItem(currentItem);
diff --git a/quanta/dialogs/dtepeditdlg.h b/quanta/dialogs/dtepeditdlg.h
index ed921a5a..6906e40d 100644
--- a/quanta/dialogs/dtepeditdlg.h
+++ b/quanta/dialogs/dtepeditdlg.h
@@ -37,7 +37,7 @@ struct StructGroup {
bool hasFileName;
TQString fileNameRx;
bool appendToTags;
- TQString parentGroup;
+ TQString tqparentGroup;
TQString definitionRx;
bool definitionRxMinimal;
TQString usageRx;
@@ -56,8 +56,9 @@ struct StructGroup {
class DTEPEditDlg : public DTEPEditDlgS
{
Q_OBJECT
+ TQ_OBJECT
public:
- DTEPEditDlg(const TQString& descriptionFile, TQWidget *parent = 0, const char *name = 0);
+ DTEPEditDlg(const TQString& descriptionFile, TQWidget *tqparent = 0, const char *name = 0);
~DTEPEditDlg();
void saveResult();
void slotFamilyChanged(int family);
diff --git a/quanta/dialogs/dtepeditdlgs.ui b/quanta/dialogs/dtepeditdlgs.ui
index 739ffcc5..3b36feeb 100644
--- a/quanta/dialogs/dtepeditdlgs.ui
+++ b/quanta/dialogs/dtepeditdlgs.ui
@@ -9,7 +9,7 @@
***************************************************************************/
</comment>
<author>(C) 2005 Andras Mantia &lt;[email protected]&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>DTEPEditDlgS</cstring>
</property>
@@ -28,11 +28,11 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QTabWidget" row="0" column="0">
+ <widget class="TQTabWidget" row="0" column="0">
<property name="name">
<cstring>tabWidget</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -43,7 +43,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -68,7 +68,7 @@
<string>The real name of the DTEP. In case of XML DTEPs this should be the DTD definition string, like -&lt;i&gt;//W3C//DTD&amp;nbsp;HTML&amp;nbsp;4.01&amp;nbsp;Transitional//EN&lt;/i&gt;.</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -103,7 +103,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -158,14 +158,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>50</height>
</size>
</property>
</spacer>
- <widget class="QGroupBox" row="8" column="0" rowspan="1" colspan="6">
+ <widget class="TQGroupBox" row="8" column="0" rowspan="1" colspan="6">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -176,11 +176,11 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QWidgetStack" row="0" column="0">
+ <widget class="TQWidgetStack" row="0" column="0">
<property name="name">
<cstring>generalWidgetStack</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
@@ -191,7 +191,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -208,7 +208,7 @@
<string>URL pointing to the DTD definiton file, like &lt;i&gt;http://www.w3.org/TR/html4/loose.dtd&lt;/i&gt;.</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0" rowspan="2" colspan="1">
+ <widget class="TQLabel" row="1" column="0" rowspan="2" colspan="1">
<property name="name">
<cstring>textLabel4</cstring>
</property>
@@ -251,14 +251,14 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
<attribute name="id">
<number>1</number>
</attribute>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>topLevel</cstring>
</property>
@@ -284,7 +284,7 @@
</widget>
</grid>
</widget>
- <widget class="QLabel" row="5" column="0">
+ <widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>textLabel9</cstring>
</property>
@@ -312,7 +312,7 @@
<string>The name of the folder where the toolbars are stored. This is a relative name to &lt;br&gt;&lt;i&gt;$KDEDIR(&amp;nbsp;or&amp;nbsp;$KDEHOME)/share/apps/quanta/toolbars&lt;/i&gt; .</string>
</property>
</widget>
- <widget class="QLabel" row="6" column="0">
+ <widget class="TQLabel" row="6" column="0">
<property name="name">
<cstring>textLabel10</cstring>
</property>
@@ -340,7 +340,7 @@
<string>Comma separated list of toolbars from the toolbar folder that will be loaded when a document with this DTEP is loaded.</string>
</property>
</widget>
- <widget class="QCheckBox" row="7" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="7" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>caseSensitive</cstring>
</property>
@@ -365,7 +365,7 @@
<string>Indicates whether the DTEP has case sensitive tags. In case of XML this should be checked, but for example HTML variants are not case sensitive.</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel7</cstring>
</property>
@@ -388,7 +388,7 @@
&lt;p&gt;&lt;b&gt;Pseudo type&lt;/b&gt;:DTEP describing some other language, where the notion of a tag is not the same as in XML. Examples are &lt;i&gt;PHP, JavaScript, CSS&lt;/i&gt;.&lt;/p&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel8</cstring>
</property>
@@ -432,7 +432,7 @@
&lt;p&gt;&lt;b&gt;Pseudo type&lt;/b&gt;:DTEP describing some other language, where the notion of a tag is not the same as in XML. Examples are &lt;i&gt;PHP, JavaScript, CSS&lt;/i&gt;.&lt;/p&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -484,7 +484,7 @@
<string>The default extension of files belonging to this DTEP</string>
</property>
</widget>
- <widget class="QLabel" row="4" column="4">
+ <widget class="TQLabel" row="4" column="4">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
@@ -505,7 +505,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -514,7 +514,7 @@
</spacer>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -535,14 +535,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>50</height>
</size>
</property>
</spacer>
- <widget class="QCheckBox" row="0" column="0" rowspan="1" colspan="3">
+ <widget class="TQCheckBox" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>enablePage1</cstring>
</property>
@@ -556,7 +556,7 @@
<string>Every tab edit dialog will have one more extra page aside of the main page. You can configure what will be on this page in the below fields.</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel11</cstring>
</property>
@@ -573,7 +573,7 @@
<string>The title of the page, like &lt;b&gt;Core &amp;&amp; i18n&lt;/b&gt;. As you see, the ampersand must be doubled.</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel12</cstring>
</property>
@@ -595,7 +595,7 @@
&lt;/b&gt;&lt;/p&gt;</string>
</property>
</widget>
- <widget class="QCheckBox" row="3" column="0" rowspan="1" colspan="3">
+ <widget class="TQCheckBox" row="3" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>enablePage2</cstring>
</property>
@@ -609,7 +609,7 @@
<string>See the tooltip and "What's This?" information for the first checkbox</string>
</property>
</widget>
- <widget class="QCheckBox" row="6" column="0" rowspan="1" colspan="3">
+ <widget class="TQCheckBox" row="6" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>enablePage3</cstring>
</property>
@@ -623,7 +623,7 @@
<string>See the tooltip and "What's This?" information for the first checkbox</string>
</property>
</widget>
- <widget class="QCheckBox" row="9" column="0" rowspan="1" colspan="3">
+ <widget class="TQCheckBox" row="9" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>enablePage4</cstring>
</property>
@@ -637,7 +637,7 @@
<string>See the tooltip and "What's This?" information for the first checkbox</string>
</property>
</widget>
- <widget class="QCheckBox" row="12" column="0" rowspan="1" colspan="3">
+ <widget class="TQCheckBox" row="12" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>enablePage5</cstring>
</property>
@@ -695,7 +695,7 @@
<string>See the tooltip and "What's This?" information for the first page fields</string>
</property>
</widget>
- <widget class="QLabel" row="8" column="0">
+ <widget class="TQLabel" row="8" column="0">
<property name="name">
<cstring>textLabel12_3</cstring>
</property>
@@ -720,7 +720,7 @@
<string>See the tooltip and "What's This?" information for the first page fields</string>
</property>
</widget>
- <widget class="QLabel" row="10" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="10" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel11_3_2</cstring>
</property>
@@ -734,7 +734,7 @@
<string>See the tooltip and "What's This?" information for the first page fields</string>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel11_2</cstring>
</property>
@@ -748,7 +748,7 @@
<string>See the tooltip and "What's This?" information for the first page fields</string>
</property>
</widget>
- <widget class="QLabel" row="5" column="0">
+ <widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>textLabel12_2</cstring>
</property>
@@ -762,7 +762,7 @@
<string>See the tooltip and "What's This?" information for the first page fields</string>
</property>
</widget>
- <widget class="QLabel" row="7" column="0">
+ <widget class="TQLabel" row="7" column="0">
<property name="name">
<cstring>textLabel11_3</cstring>
</property>
@@ -776,7 +776,7 @@
<string>See the tooltip and "What's This?" information for the first page fields</string>
</property>
</widget>
- <widget class="QLabel" row="11" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="11" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel12_3_2</cstring>
</property>
@@ -801,7 +801,7 @@
<string>See the tooltip and "What's This?" information for the first page fields</string>
</property>
</widget>
- <widget class="QLabel" row="13" column="0">
+ <widget class="TQLabel" row="13" column="0">
<property name="name">
<cstring>textLabel11_5</cstring>
</property>
@@ -826,7 +826,7 @@
<string>See the tooltip and "What's This?" information for the first page fields</string>
</property>
</widget>
- <widget class="QLabel" row="14" column="0">
+ <widget class="TQLabel" row="14" column="0">
<property name="name">
<cstring>textLabel12_5</cstring>
</property>
@@ -886,7 +886,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>TabPage</cstring>
</property>
@@ -897,7 +897,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="1" column="0" rowspan="1" colspan="5">
+ <widget class="TQCheckBox" row="1" column="0" rowspan="1" colspan="5">
<property name="name">
<cstring>enableMinusInWords</cstring>
</property>
@@ -911,7 +911,7 @@
<string>If enabled &lt;b&gt;this-is-a-word&lt;/b&gt; is treated like a word. Otherwise it is treated like 4 words.</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel13</cstring>
</property>
@@ -929,7 +929,7 @@
Example: &lt;b&gt;//&amp;nbsp;EOL,&amp;nbsp;/*&amp;nbsp;*/&lt;/b&gt;</string>
</property>
</widget>
- <widget class="QGroupBox" row="0" column="0" rowspan="1" colspan="5">
+ <widget class="TQGroupBox" row="0" column="0" rowspan="1" colspan="5">
<property name="name">
<cstring>groupBox7</cstring>
</property>
@@ -948,11 +948,11 @@ Example: &lt;b&gt;//&amp;nbsp;EOL,&amp;nbsp;/*&amp;nbsp;*/&lt;/b&gt;</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QWidgetStack" row="0" column="0">
+ <widget class="TQWidgetStack" row="0" column="0">
<property name="name">
<cstring>rulesWidgetStack</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
@@ -963,7 +963,7 @@ Example: &lt;b&gt;//&amp;nbsp;EOL,&amp;nbsp;/*&amp;nbsp;*/&lt;/b&gt;</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="4" column="0" rowspan="1" colspan="7">
+ <widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="7">
<property name="name">
<cstring>xmlStyleTags</cstring>
</property>
@@ -980,7 +980,7 @@ Example: &lt;b&gt;//&amp;nbsp;EOL,&amp;nbsp;/*&amp;nbsp;*/&lt;/b&gt;</string>
<string>Check to use XML style single tags (&lt;b&gt;&amp;lt;single_tag /&amp;gt;&lt;/b&gt;), otherwise HTML style single tags (&lt;b&gt;&amp;lt;single_tag&amp;gt;&lt;/b&gt;) are used.</string>
</property>
</widget>
- <widget class="QCheckBox" row="5" column="0" rowspan="1" colspan="7">
+ <widget class="TQCheckBox" row="5" column="0" rowspan="1" colspan="7">
<property name="name">
<cstring>useCommonRules</cstring>
</property>
@@ -1002,7 +1002,7 @@ Example: &lt;b&gt;//&amp;nbsp;EOL,&amp;nbsp;/*&amp;nbsp;*/&lt;/b&gt;</string>
&lt;/b&gt;&lt;/p&gt;</string>
</property>
</widget>
- <widget class="QCheckBox" row="3" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="3" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>extendedBooleans</cstring>
</property>
@@ -1059,7 +1059,7 @@ See the &lt;b&gt;True&lt;/b&gt; and &lt;b&gt;False&lt;/b&gt; boxes to define the
<string>The value of "true" in case of extended booleans</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="5">
+ <widget class="TQLabel" row="3" column="5">
<property name="name">
<cstring>textLabel39</cstring>
</property>
@@ -1069,11 +1069,11 @@ See the &lt;b&gt;True&lt;/b&gt; and &lt;b&gt;False&lt;/b&gt; boxes to define the
<property name="text">
<string>False:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
- <widget class="QLabel" row="3" column="3">
+ <widget class="TQLabel" row="3" column="3">
<property name="name">
<cstring>textLabel38</cstring>
</property>
@@ -1083,7 +1083,7 @@ See the &lt;b&gt;True&lt;/b&gt; and &lt;b&gt;False&lt;/b&gt; boxes to define the
<property name="text">
<string>True:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -1097,7 +1097,7 @@ See the &lt;b&gt;True&lt;/b&gt; and &lt;b&gt;False&lt;/b&gt; boxes to define the
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -1117,7 +1117,7 @@ See the &lt;b&gt;True&lt;/b&gt; and &lt;b&gt;False&lt;/b&gt; boxes to define the
A special area can be a pseudo DTD, a comment or something like that, for example &lt;i&gt;&amp;lt;!--&amp;nbsp;--&amp;gt;&lt;/i&gt;.</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel27</cstring>
</property>
@@ -1144,7 +1144,7 @@ See the &lt;b&gt;True&lt;/b&gt; and &lt;b&gt;False&lt;/b&gt; boxes to define the
<string>Comma-separated list of the names for the above-defined special areas</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel28</cstring>
</property>
@@ -1158,7 +1158,7 @@ See the &lt;b&gt;True&lt;/b&gt; and &lt;b&gt;False&lt;/b&gt; boxes to define the
<string>Comma-separated list of the names for the above-defined special areas</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel40</cstring>
</property>
@@ -1187,7 +1187,7 @@ Example:&lt;b&gt;script(language)&lt;/b&gt; means that any &lt;b&gt;&amp;lt;scri
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
@@ -1198,7 +1198,7 @@ Example:&lt;b&gt;script(language)&lt;/b&gt; means that any &lt;b&gt;&amp;lt;scri
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel21</cstring>
</property>
@@ -1212,14 +1212,14 @@ Example:&lt;b&gt;script(language)&lt;/b&gt; means that any &lt;b&gt;&amp;lt;scri
<string>Tags and attributes defining this DTEP</string>
</property>
<property name="whatsThis" stdset="0">
- <string>Comma separated list of tags that define this DTEP. The format used is &lt;i&gt;tagname(attribute[defaultvalue])&lt;/i&gt;. If the parent (a real) DTEP has a tag with &lt;i&gt;tagname&lt;/i&gt; and
+ <string>Comma separated list of tags that define this DTEP. The format used is &lt;i&gt;tagname(attribute[defaultvalue])&lt;/i&gt;. If the tqparent (a real) DTEP has a tag with &lt;i&gt;tagname&lt;/i&gt; and
the &lt;i&gt;attribute value&lt;/i&gt; of this tag is equal with the name of this DTEP, the tag area
is parsed according to the rules of this DTEP.&lt;br&gt;
If &lt;i&gt;[defaultvalue]&lt;/i&gt; is present, it means that if the attribute is not present in the tag it is taken as present with &lt;i&gt;value = defaultvalue&lt;/i&gt;.&lt;br&gt;
Example: &lt;b&gt;Tags=style(type[text/css])&lt;/b&gt; means that both &lt;b&gt;&amp;lt;style&amp;gt;&lt;/b&gt; and &lt;b&gt;&amp;lt;style&amp;nbsp;type="text/css"&amp;gt;&lt;/b&gt; are treated the same way and the DTEP defined by this tag is named &lt;b&gt;text/css&lt;/b&gt;.</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel20</cstring>
</property>
@@ -1237,7 +1237,7 @@ Example: &lt;b&gt;Tags=style(type[text/css])&lt;/b&gt; means that both &lt;b&gt;
&lt;b&gt;&amp;lt;?&amp;nbsp;?&amp;gt;,&amp;nbsp;&amp;lt;*&amp;nbsp;*&amp;gt;,&amp;nbsp;&amp;lt;%&amp;nbsp;%&amp;gt;&lt;/b&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel22</cstring>
</property>
@@ -1254,7 +1254,7 @@ Example: &lt;b&gt;Tags=style(type[text/css])&lt;/b&gt; means that both &lt;b&gt;
<string>Comma separated list of structure keywords. The keywords used here are used to create new node (nodes for structures) in the structure tree, like for a function, class or if block.</string>
</property>
</widget>
- <widget class="QLabel" row="5" column="0">
+ <widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>textLabel26</cstring>
</property>
@@ -1271,7 +1271,7 @@ Example: &lt;b&gt;Tags=style(type[text/css])&lt;/b&gt; means that both &lt;b&gt;
<string>Regular expression that finds the beginning or end of a structure. This is usually the combination of &lt;b&gt;Structure beginning&lt;/b&gt; and &lt;b&gt;Structure end&lt;/b&gt;, like &lt;b&gt;\{&amp;nbsp;|&amp;nbsp;\}&lt;/b&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel24</cstring>
</property>
@@ -1288,7 +1288,7 @@ Example: &lt;b&gt;Tags=style(type[text/css])&lt;/b&gt; means that both &lt;b&gt;
<string>A string specifying the beginning of a structure, like &lt;b&gt;{&lt;/b&gt; in many cases.</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel23</cstring>
</property>
@@ -1302,7 +1302,7 @@ Example: &lt;b&gt;Tags=style(type[text/css])&lt;/b&gt; means that both &lt;b&gt;
<string>Comma separated list of the local scope defining keywords</string>
</property>
<property name="whatsThis" stdset="0">
- <string>Comma separated list of the local scope defining keywords. Other structure group elements found under a structure node that was created based on a keyword from this list are treated as local elements. For example if this list contains &lt;b&gt;function&lt;/b&gt;, it means that elements, like variables found under a &lt;b&gt;function&lt;/b&gt; are local, relative to the node that holds the &lt;b&gt;function&lt;/b&gt;.</string>
+ <string>Comma separated list of the local scope defining keywords. Other structure group elements found under a structure node that was created based on a keyword from this list are treated as local elements. For example if this list tqcontains &lt;b&gt;function&lt;/b&gt;, it means that elements, like variables found under a &lt;b&gt;function&lt;/b&gt; are local, relative to the node that holds the &lt;b&gt;function&lt;/b&gt;.</string>
</property>
</widget>
<widget class="KLineEdit" row="3" column="1" rowspan="1" colspan="3">
@@ -1313,7 +1313,7 @@ Example: &lt;b&gt;Tags=style(type[text/css])&lt;/b&gt; means that both &lt;b&gt;
<string>Comma separated list of the local scope defining keywords</string>
</property>
<property name="whatsThis" stdset="0">
- <string>Comma separated list of the local scope defining keywords. Other structure group elements found under a structure node that was created based on a keyword from this list are treated as local elements. For example if this list contains &lt;b&gt;function&lt;/b&gt;, it means that elements, like variables found under a &lt;b&gt;function&lt;/b&gt; are local, relative to the node that holds the &lt;b&gt;function&lt;/b&gt;.</string>
+ <string>Comma separated list of the local scope defining keywords. Other structure group elements found under a structure node that was created based on a keyword from this list are treated as local elements. For example if this list tqcontains &lt;b&gt;function&lt;/b&gt;, it means that elements, like variables found under a &lt;b&gt;function&lt;/b&gt; are local, relative to the node that holds the &lt;b&gt;function&lt;/b&gt;.</string>
</property>
</widget>
<widget class="KLineEdit" row="2" column="1" rowspan="1" colspan="3">
@@ -1335,7 +1335,7 @@ Example: &lt;b&gt;Tags=style(type[text/css])&lt;/b&gt; means that both &lt;b&gt;
<string>Tags and attributes defining this DTEP</string>
</property>
<property name="whatsThis" stdset="0">
- <string>Comma separated list of tags that define this DTEP. The format used is &lt;i&gt;tagname(attribute[defaultvalue])&lt;/i&gt;. If the parent (a real) DTEP has a tag with &lt;i&gt;tagname&lt;/i&gt; and
+ <string>Comma separated list of tags that define this DTEP. The format used is &lt;i&gt;tagname(attribute[defaultvalue])&lt;/i&gt;. If the tqparent (a real) DTEP has a tag with &lt;i&gt;tagname&lt;/i&gt; and
the &lt;i&gt;attribute value&lt;/i&gt; of this tag is equal with the name of this DTEP, the tag area
is parsed according to the rules of this DTEP.&lt;br&gt;
If &lt;i&gt;[defaultvalue]&lt;/i&gt; is present, it means that if the attribute is not present in the tag it is taken as present with &lt;i&gt;value = defaultvalue&lt;/i&gt;.&lt;br&gt;
@@ -1365,7 +1365,7 @@ Example: &lt;b&gt;Tags=style(type[text/css])&lt;/b&gt; means that both &lt;b&gt;
<string>A string specifying the end of a structure, like &lt;b&gt;}&lt;/b&gt; in many cases.</string>
</property>
</widget>
- <widget class="QLabel" row="4" column="2">
+ <widget class="TQLabel" row="4" column="2">
<property name="name">
<cstring>textLabel25</cstring>
</property>
@@ -1393,7 +1393,7 @@ Example: &lt;b&gt;Tags=style(type[text/css])&lt;/b&gt; means that both &lt;b&gt;
<string>A string specifying the beginning of a structure, like &lt;b&gt;{&lt;/b&gt; in many cases.</string>
</property>
</widget>
- <widget class="QLabel" row="7" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="7" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel19</cstring>
</property>
@@ -1424,7 +1424,7 @@ Example:&lt;br&gt;
The regular expression must be terminated with &lt;b&gt;$&lt;/b&gt; (match end of line).</string>
</property>
</widget>
- <widget class="QLabel" row="6" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="6" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel18</cstring>
</property>
@@ -1487,7 +1487,7 @@ Example:&lt;br&gt;
</widget>
</grid>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel15</cstring>
</property>
@@ -1516,7 +1516,7 @@ Example:&lt;br&gt;
Example: &lt;b&gt;//&amp;nbsp;EOL,&amp;nbsp;/*&amp;nbsp;*/&lt;/b&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="5" column="0">
+ <widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>textLabel17</cstring>
</property>
@@ -1533,7 +1533,7 @@ Example: &lt;b&gt;//&amp;nbsp;EOL,&amp;nbsp;/*&amp;nbsp;*/&lt;/b&gt;</string>
<string>Comma-separated list of DTEPs that can be present inside this DTEP. The list consist usually of pseudo DTEPs.</string>
</property>
</widget>
- <widget class="QLabel" row="4" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="4" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel16</cstring>
</property>
@@ -1577,7 +1577,7 @@ Example: &lt;b&gt;//&amp;nbsp;EOL,&amp;nbsp;/*&amp;nbsp;*/&lt;/b&gt;</string>
<string>The character specifying the end of a tag. See the information for the attribute separator for details.</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="3">
+ <widget class="TQLabel" row="3" column="3">
<property name="name">
<cstring>textLabel14</cstring>
</property>
@@ -1615,7 +1615,7 @@ Example: &lt;b&gt;//&amp;nbsp;EOL,&amp;nbsp;/*&amp;nbsp;*/&lt;/b&gt;</string>
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>TabPage</cstring>
</property>
@@ -1626,7 +1626,7 @@ Example: &lt;b&gt;//&amp;nbsp;EOL,&amp;nbsp;/*&amp;nbsp;*/&lt;/b&gt;</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel29</cstring>
</property>
@@ -1647,7 +1647,7 @@ Example: &lt;b&gt;//&amp;nbsp;EOL,&amp;nbsp;/*&amp;nbsp;*/&lt;/b&gt;</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>270</height>
@@ -1678,7 +1678,7 @@ Example: &lt;b&gt;//&amp;nbsp;EOL,&amp;nbsp;/*&amp;nbsp;*/&lt;/b&gt;</string>
<string>&amp;Delete</string>
</property>
</widget>
- <widget class="QListBox" row="1" column="0" rowspan="1" colspan="3">
+ <widget class="TQListBox" row="1" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>structuresList</cstring>
</property>
@@ -1957,11 +1957,11 @@ Example: &lt;b&gt;//&amp;nbsp;EOL,&amp;nbsp;/*&amp;nbsp;*/&lt;/b&gt;</string>
<tabstop>editStructButton</tabstop>
<tabstop>deleteStructButton</tabstop>
</tabstops>
-<slots>
+<Q_SLOTS>
<slot access="protected">slotEditStructGroup()</slot>
<slot>slotAddStructGroup()</slot>
<slot>slotDeleteStructGroup()</slot>
<slot>slotFamilyChanged(int)</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/dialogs/dtepstructureeditdlgs.ui b/quanta/dialogs/dtepstructureeditdlgs.ui
index 12abe665..2e2e4153 100644
--- a/quanta/dialogs/dtepstructureeditdlgs.ui
+++ b/quanta/dialogs/dtepstructureeditdlgs.ui
@@ -9,7 +9,7 @@
***************************************************************************/
</comment>
<author>(C) 2005 Andras Mantia &lt;[email protected]&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>DTEPStructureEditDlgS</cstring>
</property>
@@ -28,7 +28,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel30</cstring>
</property>
@@ -50,14 +50,14 @@
<string>The user visible name of the group. It will be shown in the structure tree as a top node when there are elements belonging to this group in the document.</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="4">
+ <widget class="TQLabel" row="0" column="4">
<property name="name">
<cstring>textLabel32</cstring>
</property>
<property name="text">
<string>&amp;Icon:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@@ -76,13 +76,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>50</width>
<height>50</height>
@@ -92,7 +92,7 @@
<string></string>
</property>
</widget>
- <widget class="QLabel" row="5" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="5" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel34</cstring>
</property>
@@ -112,7 +112,7 @@
<string>Regular expression to get the filename. The expression is used to &lt;b&gt;remove&lt;/b&gt; the unnecessary strings from the element's text.</string>
</property>
</widget>
- <widget class="QCheckBox" row="4" column="0" rowspan="1" colspan="3">
+ <widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>hasFilename</cstring>
</property>
@@ -137,7 +137,7 @@
<string>Regular expression to get the filename. The expression is used to &lt;b&gt;remove&lt;/b&gt; the unnecessary strings from the element's text.</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel33</cstring>
</property>
@@ -154,7 +154,7 @@
<string>Defines which tags belong to this group. The format is &lt;i&gt;tagname(attribute1, attribute2, ...)&lt;/i&gt;. Tags with name &lt;i&gt;tagname&lt;/i&gt; will appear under this group. The item text of the corresponding node in the tree will be &lt;i&gt;attribute1_value | attribute2_value | ...&lt;/i&gt;Currently only one tag may be listed here.</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel31</cstring>
</property>
@@ -206,14 +206,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
- <widget class="QCheckBox" row="6" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="6" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>appendToTags</cstring>
</property>
@@ -227,7 +227,7 @@
<string>Treat elements as new tags, so they will show up during tag autocompletion.</string>
</property>
</widget>
- <widget class="QGroupBox" row="7" column="0" rowspan="1" colspan="6">
+ <widget class="TQGroupBox" row="7" column="0" rowspan="1" colspan="6">
<property name="name">
<cstring>pseudoGroupBox</cstring>
</property>
@@ -250,11 +250,11 @@
Example (simplified):&lt;br&gt;
&lt;b&gt;DefinitionRx=\$+([a-zA-Z]+)=new\\s[a-zA-Z]+;&lt;br&gt;
TypeRx=new\\s([a-zA-Z]+);&lt;/b&gt;&lt;br&gt;&lt;br&gt;
-This will match strings like &lt;b&gt;$fooObj=new foo;&lt;/b&gt;. Now this string is searched and it will find &lt;b&gt;new foo;&lt;/b&gt;, where &lt;b&gt;foo&lt;/b&gt; is the first captured text (the regular expression matching &lt;b&gt;foo&lt;/b&gt; is between brackets).&lt;br&gt;
+This will match strings like &lt;b&gt;$fooObj=new foo;&lt;/b&gt;. Now this string is searched and it will tqfind &lt;b&gt;new foo;&lt;/b&gt;, where &lt;b&gt;foo&lt;/b&gt; is the first captured text (the regular expression matching &lt;b&gt;foo&lt;/b&gt; is between brackets).&lt;br&gt;
So the type of &lt;b&gt;$fooObj&lt;/b&gt; is &lt;b&gt;foo&lt;/b&gt;.</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel36</cstring>
</property>
@@ -280,7 +280,7 @@ Example 3:&lt;br&gt;
- variables are used as &lt;b&gt;$i&lt;/b&gt;. In this case &lt;i&gt;UsageRx &lt;/i&gt;is the same as &lt;i&gt;DefinitionRx&lt;/i&gt;.</string>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel37</cstring>
</property>
@@ -298,11 +298,11 @@ Example 3:&lt;br&gt;
Example (simplified):&lt;br&gt;
&lt;b&gt;DefinitionRx=\$+([a-zA-Z]+)=new\\s[a-zA-Z]+;&lt;br&gt;
TypeRx=new\\s([a-zA-Z]+);&lt;/b&gt;&lt;br&gt;&lt;br&gt;
-This will match strings like &lt;b&gt;$fooObj=new foo;&lt;/b&gt;. Now this string is searched and it will find &lt;b&gt;new foo;&lt;/b&gt;, where &lt;b&gt;foo&lt;/b&gt; is the first captured text (the regular expression matching &lt;b&gt;foo&lt;/b&gt; is between brackets).&lt;br&gt;
+This will match strings like &lt;b&gt;$fooObj=new foo;&lt;/b&gt;. Now this string is searched and it will tqfind &lt;b&gt;new foo;&lt;/b&gt;, where &lt;b&gt;foo&lt;/b&gt; is the first captured text (the regular expression matching &lt;b&gt;foo&lt;/b&gt; is between brackets).&lt;br&gt;
So the type of &lt;b&gt;$fooObj&lt;/b&gt; is &lt;b&gt;foo&lt;/b&gt;.</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel35</cstring>
</property>
@@ -342,7 +342,7 @@ Example 3:&lt;br&gt;
- variables are used as &lt;b&gt;$i&lt;/b&gt;. In this case &lt;i&gt;UsageRx &lt;/i&gt;is the same as &lt;i&gt;DefinitionRx&lt;/i&gt;.</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel41</cstring>
</property>
@@ -350,24 +350,24 @@ Example 3:&lt;br&gt;
<string>Parent group:</string>
</property>
<property name="toolTip" stdset="0">
- <string>The name of the group that may be the parent of this</string>
+ <string>The name of the group that may be the tqparent of this</string>
</property>
<property name="whatsThis" stdset="0">
- <string>The name of the group that may be the parent of this. For example &lt;b&gt;classes&lt;/b&gt; might be a parent of &lt;b&gt;functions&lt;/b&gt; in case of member functions. This entry indicates this possible relationship and is used to provide functionality like member autocompletion.</string>
+ <string>The name of the group that may be the tqparent of this. For example &lt;b&gt;classes&lt;/b&gt; might be a tqparent of &lt;b&gt;functions&lt;/b&gt; in case of member functions. This entry indicates this possible relationship and is used to provide functionality like member autocompletion.</string>
</property>
</widget>
<widget class="KLineEdit" row="0" column="1" rowspan="1" colspan="4">
<property name="name">
- <cstring>parentGroupEdit</cstring>
+ <cstring>tqparentGroupEdit</cstring>
</property>
<property name="toolTip" stdset="0">
- <string>The name of the group that may be the parent of this</string>
+ <string>The name of the group that may be the tqparent of this</string>
</property>
<property name="whatsThis" stdset="0">
- <string>The name of the group that may be the parent of this. For example &lt;b&gt;classes&lt;/b&gt; might be a parent of &lt;b&gt;functions&lt;/b&gt; in case of member functions. This entry indicates this possible relationship and is used to provide functionality like member autocompletion.</string>
+ <string>The name of the group that may be the tqparent of this. For example &lt;b&gt;classes&lt;/b&gt; might be a tqparent of &lt;b&gt;functions&lt;/b&gt; in case of member functions. This entry indicates this possible relationship and is used to provide functionality like member autocompletion.</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel42</cstring>
</property>
@@ -378,7 +378,7 @@ Example 3:&lt;br&gt;
<string>Only tags of this type can be part of the group</string>
</property>
</widget>
- <widget class="QLabel" row="6" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="6" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel44</cstring>
</property>
@@ -389,7 +389,7 @@ Example 3:&lt;br&gt;
<string>Regular expression used to remove unwanted strings from the completion text</string>
</property>
</widget>
- <widget class="QLabel" row="5" column="0">
+ <widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>textLabel43</cstring>
</property>
@@ -482,14 +482,14 @@ Example:&lt;b&gt;\bnew[\\s]+$&lt;/b&gt; tells that after typing &lt;b&gt;new&amp
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>340</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QCheckBox" row="7" column="0">
+ <widget class="TQCheckBox" row="7" column="0">
<property name="name">
<cstring>parseFile</cstring>
</property>
@@ -503,7 +503,7 @@ Example:&lt;b&gt;\bnew[\\s]+$&lt;/b&gt; tells that after typing &lt;b&gt;new&amp
<string>Check if the filename that is in the elements text should be parsed. This makes sense only if the element may contain a filename and the &lt;i&gt;FileNameRx&lt;/i&gt; is specified.</string>
</property>
</widget>
- <widget class="QButtonGroup" row="8" column="0" rowspan="1" colspan="5">
+ <widget class="TQButtonGroup" row="8" column="0" rowspan="1" colspan="5">
<property name="name">
<cstring>buttonGroup1</cstring>
</property>
@@ -514,7 +514,7 @@ Example:&lt;b&gt;\bnew[\\s]+$&lt;/b&gt; tells that after typing &lt;b&gt;new&amp
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>simpleGroup</cstring>
</property>
@@ -525,7 +525,7 @@ Example:&lt;b&gt;\bnew[\\s]+$&lt;/b&gt; tells that after typing &lt;b&gt;new&amp
<string>This is a simple group, nothing special</string>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="0">
+ <widget class="TQRadioButton" row="1" column="0">
<property name="name">
<cstring>variableGroup</cstring>
</property>
@@ -536,7 +536,7 @@ Example:&lt;b&gt;\bnew[\\s]+$&lt;/b&gt; tells that after typing &lt;b&gt;new&amp
<string>The group's elements are variables</string>
</property>
</widget>
- <widget class="QRadioButton" row="0" column="1">
+ <widget class="TQRadioButton" row="0" column="1">
<property name="name">
<cstring>functionGroup</cstring>
</property>
@@ -547,7 +547,7 @@ Example:&lt;b&gt;\bnew[\\s]+$&lt;/b&gt; tells that after typing &lt;b&gt;new&amp
<string>The group's elements are functions</string>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="1">
+ <widget class="TQRadioButton" row="1" column="1">
<property name="name">
<cstring>classGroup</cstring>
</property>
@@ -558,7 +558,7 @@ Example:&lt;b&gt;\bnew[\\s]+$&lt;/b&gt; tells that after typing &lt;b&gt;new&amp
<string>The group's elements are classes</string>
</property>
</widget>
- <widget class="QRadioButton" row="0" column="2">
+ <widget class="TQRadioButton" row="0" column="2">
<property name="name">
<cstring>objectGroup</cstring>
</property>
@@ -585,7 +585,7 @@ Example for a &lt;i&gt;class&lt;/i&gt; group:&lt;br&gt;
The first captured area (between "&lt;b&gt;(&lt;/b&gt;" and "&lt;b&gt;)&lt;/b&gt;") holds the class name.</string>
</property>
</widget>
- <widget class="QCheckBox" row="2" column="4">
+ <widget class="TQCheckBox" row="2" column="4">
<property name="name">
<cstring>definitionRxMinimal</cstring>
</property>
@@ -624,7 +624,7 @@ The first captured area (between "&lt;b&gt;(&lt;/b&gt;" and "&lt;b&gt;)&lt;/b&gt
<tabstop>hasFilename</tabstop>
<tabstop>fileNameRxEdit</tabstop>
<tabstop>appendToTags</tabstop>
- <tabstop>parentGroupEdit</tabstop>
+ <tabstop>tqparentGroupEdit</tabstop>
<tabstop>tagTypeCombo</tabstop>
<tabstop>definitionRxEdit</tabstop>
<tabstop>definitionRxMinimal</tabstop>
@@ -639,7 +639,7 @@ The first captured area (between "&lt;b&gt;(&lt;/b&gt;" and "&lt;b&gt;)&lt;/b&gt
<tabstop>variableGroup</tabstop>
<tabstop>classGroup</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kicondialog.h</includehint>
</includehints>
diff --git a/quanta/dialogs/filecombo.cpp b/quanta/dialogs/filecombo.cpp
index 63fd1e58..818df7ac 100644
--- a/quanta/dialogs/filecombo.cpp
+++ b/quanta/dialogs/filecombo.cpp
@@ -29,13 +29,13 @@
#include "filecombo.h"
#include "qextfileinfo.h"
-FileCombo::FileCombo(const KURL& a_baseURL, TQWidget *parent, const char *name )
- :TQWidget(parent,name)
+FileCombo::FileCombo(const KURL& a_baseURL, TQWidget *tqparent, const char *name )
+ :TQWidget(tqparent,name)
{
baseURL = a_baseURL;
m_absolutePath = false;
- TQHBoxLayout *layout = new TQHBoxLayout(this);
+ TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
combo = new TQComboBox(true,this);
combo->setEditable(true);
@@ -44,8 +44,8 @@ FileCombo::FileCombo(const KURL& a_baseURL, TQWidget *parent, const char *name )
button ->setFixedSize(35,25);
button ->setText(i18n("..."));
- layout ->addWidget( combo );
- layout ->addWidget( button );
+ tqlayout ->addWidget( combo );
+ tqlayout ->addWidget( button );
connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFileSelect()) );
connect( combo, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(slotComboActivated(const TQString&)));
@@ -53,12 +53,12 @@ FileCombo::FileCombo(const KURL& a_baseURL, TQWidget *parent, const char *name )
setFocusProxy(combo);
}
-FileCombo::FileCombo( TQWidget *parent, const char *name )
- :TQWidget( parent, name )
+FileCombo::FileCombo( TQWidget *tqparent, const char *name )
+ :TQWidget( tqparent, name )
{
baseURL.setPath(".");
- TQHBoxLayout *layout = new TQHBoxLayout(this);
+ TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
combo = new TQComboBox(true,this);
button = new TQPushButton(this);
@@ -66,8 +66,8 @@ FileCombo::FileCombo( TQWidget *parent, const char *name )
button ->setFixedSize(35,25);
button ->setText(i18n("..."));
- layout ->addWidget( combo );
- layout ->addWidget( button );
+ tqlayout ->addWidget( combo );
+ tqlayout ->addWidget( button );
connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFileSelect()) );
connect( combo, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(slotComboActivated(const TQString&)));
@@ -97,7 +97,7 @@ void FileCombo::slotFileSelect()
delete dlg;
if ( !url.isEmpty() )
{
- if (!m_absolutePath) url = QExtFileInfo::toRelative(url, baseURL);
+ if (!m_absolutePath) url = TQExtFileInfo::toRelative(url, baseURL);
combo->setEditText( url.path() );
}
}
diff --git a/quanta/dialogs/filecombo.h b/quanta/dialogs/filecombo.h
index 6991243b..e8610816 100644
--- a/quanta/dialogs/filecombo.h
+++ b/quanta/dialogs/filecombo.h
@@ -31,9 +31,10 @@ class KURL;
class FileCombo : public TQWidget {
Q_OBJECT
+ TQ_OBJECT
public:
- FileCombo(const KURL& a_baseURL, TQWidget *parent=0, const char *name=0);
- FileCombo(TQWidget *parent=0, const char *name=0);
+ FileCombo(const KURL& a_baseURL, TQWidget *tqparent=0, const char *name=0);
+ FileCombo(TQWidget *tqparent=0, const char *name=0);
~FileCombo();
TQString text() const;
diff --git a/quanta/dialogs/fourbuttonmessagebox.ui b/quanta/dialogs/fourbuttonmessagebox.ui
index fba27fc4..22ef785f 100644
--- a/quanta/dialogs/fourbuttonmessagebox.ui
+++ b/quanta/dialogs/fourbuttonmessagebox.ui
@@ -9,7 +9,7 @@
***************************************************************************/
</comment>
<author>(C) 2003 Andras Mantia &lt;[email protected]&gt;</author>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>FourButtonMessageBox</cstring>
</property>
@@ -21,7 +21,7 @@
<height>150</height>
</rect>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>150</height>
@@ -31,18 +31,18 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>pixmapLabel</cstring>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
</widget>
- <widget class="QLabel" row="0" column="1">
+ <widget class="TQLabel" row="0" column="1">
<property name="name">
<cstring>textLabel</cstring>
</property>
@@ -50,9 +50,9 @@
<string></string>
</property>
</widget>
- <widget class="QLayoutWidget" row="2" column="0" rowspan="1" colspan="2">
+ <widget class="TQLayoutWidget" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<hbox>
<property name="name">
@@ -110,7 +110,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -151,14 +151,14 @@
<variables>
<variable>int m_status;</variable>
</variables>
-<slots>
+<Q_SLOTS>
<slot>cancelButton_clicked()</slot>
<slot>user1Button_clicked()</slot>
<slot>user2Button_clicked()</slot>
<slot>user3Button_clicked()</slot>
-</slots>
+</Q_SLOTS>
<functions>
<function specifier="non virtual" returnType="int">status()</function>
</functions>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/dialogs/fourbuttonmessagebox.ui.h b/quanta/dialogs/fourbuttonmessagebox.ui.h
index 00f31046..85f8c148 100644
--- a/quanta/dialogs/fourbuttonmessagebox.ui.h
+++ b/quanta/dialogs/fourbuttonmessagebox.ui.h
@@ -3,7 +3,7 @@
** ui.h extension file, included from the uic-generated form implementation.
**
** If you wish to add, delete or rename functions or slots use
-** Qt Designer which will update this file, preserving your code. Create an
+** TQt Designer which will update this file, preserving your code. Create an
** init() function in place of a constructor, and a destroy() function in
** place of a destructor.
*****************************************************************************/
diff --git a/quanta/dialogs/loadentitydlgs.ui b/quanta/dialogs/loadentitydlgs.ui
index dffdaa17..b2684e01 100644
--- a/quanta/dialogs/loadentitydlgs.ui
+++ b/quanta/dialogs/loadentitydlgs.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>LoadEntityDlgS</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>LoadEntityDlgS</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -27,7 +27,7 @@
<string>Source DTD:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -59,7 +59,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>40</height>
@@ -68,5 +68,5 @@
</spacer>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/dialogs/settings/abbreviation.cpp b/quanta/dialogs/settings/abbreviation.cpp
index 79dc4bc1..1f1728ae 100644
--- a/quanta/dialogs/settings/abbreviation.cpp
+++ b/quanta/dialogs/settings/abbreviation.cpp
@@ -41,8 +41,8 @@
#include "dtds.h"
-AbbreviationDlg::AbbreviationDlg(TQWidget *parent, const char *name):
- AbbreviationDlgS(parent, name)
+AbbreviationDlg::AbbreviationDlg(TQWidget *tqparent, const char *name):
+ AbbreviationDlgS(tqparent, name)
{
m_oldItem = 0L;
m_currentAbbrev = 0L;
@@ -76,8 +76,8 @@ void AbbreviationDlg::slotGroupChanged(const TQString& newGroupName)
for ( it = m_currentAbbrev->abbreviations.constBegin(); it != m_currentAbbrev->abbreviations.constEnd(); ++it )
{
templateStr = it.key();
- templateName = templateStr.mid(templateStr.find(' ') + 1);
- templateStr = templateStr.left(templateStr.find(' '));
+ templateName = templateStr.mid(templateStr.tqfind(' ') + 1);
+ templateStr = templateStr.left(templateStr.tqfind(' '));
new KListViewItem(templatesList, templateStr, templateName);
}
for ( TQStringList::ConstIterator dtepit = m_currentAbbrev->dteps.constBegin(); dtepit != m_currentAbbrev->dteps.constEnd(); ++dtepit )
@@ -95,9 +95,9 @@ void AbbreviationDlg::slotNewGroup()
TQString groupName = KInputDialog::getText(i18n("New Abbreviation Group"), i18n("Group name:"), "", &ok, this);
if (ok && !groupName.isEmpty())
{
- if (qConfig.abbreviations.contains(groupName))
+ if (qConfig.abbreviations.tqcontains(groupName))
{
- KMessageBox::error(this, i18n("<qt>There is already an abbreviation group called <b>%1</b>. Choose an unique name for the new group.</qt>").arg(groupName), i18n("Group already exists"));
+ KMessageBox::error(this, i18n("<qt>There is already an abbreviation group called <b>%1</b>. Choose an unique name for the new group.</qt>").tqarg(groupName), i18n("Group already exists"));
TQTimer::singleShot(0, this, TQT_SLOT(slotNewGroup()));
} else
{
@@ -187,7 +187,7 @@ void AbbreviationDlg::slotRemoveTemplate()
{
TQListViewItem *item = templatesList->currentItem();
if (item &&
- KMessageBox::warningContinueCancel(this, i18n("<qt>Do you really want to remove the <b>%1</b> template?</qt>").arg(item->text(1)),TQString::null,KStdGuiItem::del()) == KMessageBox::Continue)
+ KMessageBox::warningContinueCancel(this, i18n("<qt>Do you really want to remove the <b>%1</b> template?</qt>").tqarg(item->text(1)),TQString(),KStdGuiItem::del()) == KMessageBox::Continue)
{
m_currentAbbrev->abbreviations.remove(item->text(0)+" "+item->text(1));
delete item;
@@ -248,7 +248,7 @@ void AbbreviationDlg::saveTemplates()
el.setAttribute("code", it.data());
s = it.key();
s2 = "";
- pos = s.find(' ');
+ pos = s.tqfind(' ');
if (pos != -1)
{
s2 = s.mid(pos+1);
@@ -270,7 +270,7 @@ void AbbreviationDlg::saveTemplates()
f.close();
} else
{
- KMessageBox::error(this, i18n("<qt>Cannot open the file <b>%1</b> for writing.\nModified abbreviations will be lost when you quit Quanta.</qt>").arg(s));
+ KMessageBox::error(this, i18n("<qt>Cannot open the file <b>%1</b> for writing.\nModified abbreviations will be lost when you quit Quanta.</qt>").tqarg(s));
}
}
diff --git a/quanta/dialogs/settings/abbreviation.h b/quanta/dialogs/settings/abbreviation.h
index d2ba7ea6..949ad663 100644
--- a/quanta/dialogs/settings/abbreviation.h
+++ b/quanta/dialogs/settings/abbreviation.h
@@ -27,8 +27,9 @@ struct DTDStruct;
class AbbreviationDlg : public AbbreviationDlgS
{
Q_OBJECT
+ TQ_OBJECT
public:
- AbbreviationDlg(TQWidget *parent, const char *name = 0);
+ AbbreviationDlg(TQWidget *tqparent, const char *name = 0);
~AbbreviationDlg();
void saveTemplates();
diff --git a/quanta/dialogs/settings/abbreviations.ui b/quanta/dialogs/settings/abbreviations.ui
index 9274fdc6..8e115d0f 100644
--- a/quanta/dialogs/settings/abbreviations.ui
+++ b/quanta/dialogs/settings/abbreviations.ui
@@ -9,7 +9,7 @@
***************************************************************************/
</comment>
<author>(C) 2003 Andras Mantia &lt;[email protected]&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>AbbreviationDlgS</cstring>
</property>
@@ -52,7 +52,7 @@
<string>&amp;New...</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -71,7 +71,7 @@
<cstring>groupCombo</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -103,7 +103,7 @@
</sizepolicy>
</property>
</widget>
- <widget class="QTextEdit" row="10" column="0" rowspan="1" colspan="4">
+ <widget class="TQTextEdit" row="10" column="0" rowspan="1" colspan="4">
<property name="name">
<cstring>codeEdit</cstring>
</property>
@@ -152,7 +152,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton" row="5" column="2" rowspan="1" colspan="2">
+ <widget class="TQPushButton" row="5" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>addButton</cstring>
</property>
@@ -170,14 +170,14 @@
<property name="sizeType">
<enum>Preferred</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>30</height>
</size>
</property>
</spacer>
- <widget class="QPushButton" row="6" column="2" rowspan="1" colspan="2">
+ <widget class="TQPushButton" row="6" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>removeButton</cstring>
</property>
@@ -185,7 +185,7 @@
<string>&amp;Remove</string>
</property>
</widget>
- <widget class="QPushButton" row="7" column="2" rowspan="1" colspan="2">
+ <widget class="TQPushButton" row="7" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>editButton</cstring>
</property>
@@ -193,7 +193,7 @@
<string>&amp;Edit...</string>
</property>
</widget>
- <widget class="QLabel" row="9" column="0" rowspan="1" colspan="3">
+ <widget class="TQLabel" row="9" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -210,7 +210,7 @@
<cstring>codeEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -255,7 +255,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>40</height>
@@ -269,9 +269,9 @@
<connections>
<connection>
<sender>templatesList</sender>
- <signal>selectionChanged(QListViewItem*)</signal>
+ <signal>selectionChanged(TQListViewItem*)</signal>
<receiver>AbbreviationDlgS</receiver>
- <slot>slotTemplateSelectionChanged(QListViewItem*)</slot>
+ <slot>slotTemplateSelectionChanged(TQListViewItem*)</slot>
</connection>
<connection>
<sender>addButton</sender>
@@ -317,7 +317,7 @@
</connection>
<connection>
<sender>templatesList</sender>
- <signal>doubleClicked(QListViewItem*)</signal>
+ <signal>doubleClicked(TQListViewItem*)</signal>
<receiver>AbbreviationDlgS</receiver>
<slot>slotEditTemplate()</slot>
</connection>
@@ -334,19 +334,19 @@
<tabstop>editButton</tabstop>
<tabstop>codeEdit</tabstop>
</tabstops>
-<slots>
- <slot>slotTemplateSelectionChanged(QListViewItem*)</slot>
+<Q_SLOTS>
+ <slot>slotTemplateSelectionChanged(TQListViewItem*)</slot>
<slot>dtdCombo_activated(const QString&amp;)</slot>
<slot>slotGroupChanged(const QString&amp;)</slot>
<slot>slotAddTemplate()</slot>
<slot>slotRemoveTemplate()</slot>
- <slot>templatesList_currentChanged(QListViewItem*)</slot>
+ <slot>templatesList_currentChanged(TQListViewItem*)</slot>
<slot>slotEditTemplate()</slot>
<slot>slotAddDTEP()</slot>
<slot>slotRemoveDTEP()</slot>
<slot>slotNewGroup()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klistview.h</includehint>
<includehint>klistbox.h</includehint>
diff --git a/quanta/dialogs/settings/codetemplatedlgs.ui b/quanta/dialogs/settings/codetemplatedlgs.ui
index 5aa9254f..733b66eb 100644
--- a/quanta/dialogs/settings/codetemplatedlgs.ui
+++ b/quanta/dialogs/settings/codetemplatedlgs.ui
@@ -9,7 +9,7 @@
***************************************************************************/
</comment>
<author>(C) 2003 by Andras Mantia &lt;[email protected]&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>CodeTemplateDlgS</cstring>
</property>
@@ -21,7 +21,7 @@
<height>72</height>
</rect>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>400</width>
<height>70</height>
@@ -34,7 +34,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -45,7 +45,7 @@
<cstring>templateEdit</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -56,12 +56,12 @@
<cstring>descriptionEdit</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="3">
+ <widget class="TQLineEdit" row="0" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>templateEdit</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1" rowspan="1" colspan="3">
+ <widget class="TQLineEdit" row="1" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>descriptionEdit</cstring>
</property>
@@ -72,10 +72,10 @@
<tabstop>templateEdit</tabstop>
<tabstop>descriptionEdit</tabstop>
</tabstops>
-<slots>
+<Q_SLOTS>
<slot>accept()</slot>
<slot>reject()</slot>
<slot>pushButton4_clicked()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/dialogs/settings/filemasks.cpp b/quanta/dialogs/settings/filemasks.cpp
index fee135f8..5f96a2eb 100644
--- a/quanta/dialogs/settings/filemasks.cpp
+++ b/quanta/dialogs/settings/filemasks.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- filesmask.cpp - description
+ filestqmask.cpp - description
-------------------
begin : Fri May 19 2000
copyright : (C) 2000 by Yacovlev Alexander & Dmitry Poplavsky <[email protected]>
@@ -23,15 +23,15 @@
//kde includes
#include <kmimetype.h>
-FileMasks::FileMasks(TQWidget *parent, const char *name)
- :FileMasksS(parent,name)
+FileMasks::FileMasks(TQWidget *tqparent, const char *name)
+ :FileMasksS(tqparent,name)
{
connect(buttonDefault, TQT_SIGNAL(clicked()), this, TQT_SLOT(setToDefault()));
}
FileMasks::~FileMasks(){
}
-/** set masks to default */
+/** set tqmasks to default */
void FileMasks::setToDefault()
{
KMimeType::List list = KMimeType::allMimeTypes();
@@ -43,12 +43,12 @@ void FileMasks::setToDefault()
for ( it = list.begin(); it != list.end(); ++it )
{
name = (*it)->name();
- if (name.contains("text"))
+ if (name.tqcontains("text"))
{
- if (!markup.contains(name) && !script.contains(name))
+ if (!markup.tqcontains(name) && !script.tqcontains(name))
text += name+"; ";
}
- if (name.contains("image"))
+ if (name.tqcontains("image"))
{
image += name +"; ";
}
diff --git a/quanta/dialogs/settings/filemasks.h b/quanta/dialogs/settings/filemasks.h
index 965eb190..cc596259 100644
--- a/quanta/dialogs/settings/filemasks.h
+++ b/quanta/dialogs/settings/filemasks.h
@@ -1,5 +1,5 @@
/***************************************************************************
- filesmask.h - description
+ filestqmask.h - description
-------------------
begin : Fri May 19 2000
copyright : (C) 2000 by Yacovlev Alexander & Dmitry Poplavsky <[email protected]>
@@ -24,8 +24,9 @@
class FileMasks : public FileMasksS
{
Q_OBJECT
+ TQ_OBJECT
public:
- FileMasks(TQWidget *parent=0, const char *name=0);
+ FileMasks(TQWidget *tqparent=0, const char *name=0);
~FileMasks();
public slots:
diff --git a/quanta/dialogs/settings/filemaskss.ui b/quanta/dialogs/settings/filemaskss.ui
index f8cdb4f6..fb7d322a 100644
--- a/quanta/dialogs/settings/filemaskss.ui
+++ b/quanta/dialogs/settings/filemaskss.ui
@@ -9,7 +9,7 @@
* *
***************************************************************************/
</comment>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>FileMasksS</cstring>
</property>
@@ -29,7 +29,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -39,12 +39,12 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QComboBox" row="1" column="1">
+ <widget class="TQComboBox" row="1" column="1">
<property name="name">
<cstring>encodingCombo</cstring>
</property>
</widget>
- <widget class="QComboBox" row="2" column="1">
+ <widget class="TQComboBox" row="2" column="1">
<property name="name">
<cstring>defaultDTDCombo</cstring>
</property>
@@ -52,7 +52,7 @@
<string>New files will have the extension and highlighting according to this setting</string>
</property>
</widget>
- <widget class="QGroupBox" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQGroupBox" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>GroupBox1</cstring>
</property>
@@ -69,23 +69,23 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="2">
+ <widget class="TQLineEdit" row="0" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>lineMarkup</cstring>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignLeft</set>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="1" rowspan="1" colspan="2">
+ <widget class="TQLineEdit" row="2" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>lineImage</cstring>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignLeft</set>
</property>
</widget>
- <widget class="QPushButton" row="4" column="2">
+ <widget class="TQPushButton" row="4" column="2">
<property name="name">
<cstring>buttonDefault</cstring>
</property>
@@ -93,7 +93,7 @@
<string>&amp;Reset to Default</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>TextLabel4_2</cstring>
</property>
@@ -104,7 +104,7 @@
<cstring>lineText</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1_3</cstring>
</property>
@@ -115,7 +115,7 @@
<cstring>lineMarkup</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel3_2</cstring>
</property>
@@ -126,15 +126,15 @@
<cstring>lineImage</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="3" column="1" rowspan="1" colspan="2">
+ <widget class="TQLineEdit" row="3" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>lineText</cstring>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignLeft</set>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel2_2</cstring>
</property>
@@ -146,7 +146,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -172,38 +172,38 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>153</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QLineEdit" row="1" column="1" rowspan="1" colspan="2">
+ <widget class="TQLineEdit" row="1" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>lineScript</cstring>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignLeft</set>
</property>
</widget>
</grid>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel1_2</cstring>
</property>
<property name="text">
<string>Default character &amp;encoding:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignLeft</set>
</property>
<property name="buddy" stdset="0">
<cstring>encodingCombo</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel1_2_3</cstring>
</property>
@@ -224,14 +224,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>50</height>
</size>
</property>
</spacer>
- <widget class="QButtonGroup" row="5" column="0" rowspan="1" colspan="2">
+ <widget class="TQButtonGroup" row="5" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>buttonGroup7</cstring>
</property>
@@ -242,7 +242,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="3" column="0">
+ <widget class="TQCheckBox" row="3" column="0">
<property name="name">
<cstring>reloadFiles</cstring>
</property>
@@ -250,7 +250,7 @@
<string>L&amp;oad last-opened files</string>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="0">
+ <widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>showSplash</cstring>
</property>
@@ -258,7 +258,7 @@
<string>S&amp;how splashscreen</string>
</property>
</widget>
- <widget class="QCheckBox" row="2" column="0">
+ <widget class="TQCheckBox" row="2" column="0">
<property name="name">
<cstring>reloadProject</cstring>
</property>
@@ -268,15 +268,15 @@
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget" row="4" column="0">
+ <widget class="TQLayoutWidget" row="4" column="0">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>tlAutoSave</cstring>
</property>
@@ -284,7 +284,7 @@
<string>Create backups every</string>
</property>
</widget>
- <widget class="QSpinBox">
+ <widget class="TQSpinBox">
<property name="name">
<cstring>sbAutoSave</cstring>
</property>
@@ -298,7 +298,7 @@
<number>15</number>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -308,7 +308,7 @@
</widget>
</hbox>
</widget>
- <widget class="QCheckBox" row="3" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="3" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>showDTDSelectDialog</cstring>
</property>
@@ -332,5 +332,5 @@
<tabstop>reloadProject</tabstop>
<tabstop>reloadFiles</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/dialogs/settings/parseroptions.cpp b/quanta/dialogs/settings/parseroptions.cpp
index 24e3c6a6..c38e2875 100644
--- a/quanta/dialogs/settings/parseroptions.cpp
+++ b/quanta/dialogs/settings/parseroptions.cpp
@@ -22,11 +22,11 @@
#include <kconfig.h>
/*
- * Constructs a ParserOptions which is a child of 'parent', with the
+ * Constructs a ParserOptions which is a child of 'tqparent', with the
* name 'name' and widget flags set to 'f'
*/
-ParserOptions::ParserOptions( KConfig *a_config, TQWidget* parent, const char* name )
- : ParserOptionsUI( parent, name )
+ParserOptions::ParserOptions( KConfig *a_config, TQWidget* tqparent, const char* name )
+ : ParserOptionsUI( tqparent, name )
{
config = a_config;
config->setGroup("Parser options");
@@ -70,7 +70,7 @@ ParserOptions::ParserOptions( KConfig *a_config, TQWidget* parent, const char*
*/
ParserOptions::~ParserOptions()
{
- // no need to delete child widgets, Qt does it all for us
+ // no need to delete child widgets, TQt does it all for us
}
diff --git a/quanta/dialogs/settings/parseroptions.h b/quanta/dialogs/settings/parseroptions.h
index a4c5f6f3..55710161 100644
--- a/quanta/dialogs/settings/parseroptions.h
+++ b/quanta/dialogs/settings/parseroptions.h
@@ -23,9 +23,10 @@ class KConfig;
class ParserOptions : public ParserOptionsUI
{
Q_OBJECT
+ TQ_OBJECT
public:
- ParserOptions( KConfig *config, TQWidget* parent = 0, const char* name = 0);
+ ParserOptions( KConfig *config, TQWidget* tqparent = 0, const char* name = 0);
~ParserOptions();
void updateConfig();
diff --git a/quanta/dialogs/settings/parseroptionsui.ui b/quanta/dialogs/settings/parseroptionsui.ui
index 34a54cd6..2a5fed0b 100644
--- a/quanta/dialogs/settings/parseroptionsui.ui
+++ b/quanta/dialogs/settings/parseroptionsui.ui
@@ -9,7 +9,7 @@
***************************************************************************/
</comment>
<author>(C) 2002 Andras Mantia &lt;[email protected]&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ParserOptionsUI</cstring>
</property>
@@ -29,7 +29,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -39,7 +39,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QButtonGroup" row="1" column="0">
+ <widget class="TQButtonGroup" row="1" column="0">
<property name="name">
<cstring>buttonGroup1</cstring>
</property>
@@ -50,7 +50,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QSpinBox" row="3" column="2">
+ <widget class="TQSpinBox" row="3" column="2">
<property name="name">
<cstring>refreshFrequency</cstring>
</property>
@@ -74,14 +74,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>122</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QCheckBox" row="2" column="0" rowspan="1" colspan="3">
+ <widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>instantUpdate</cstring>
</property>
@@ -102,14 +102,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>122</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QCheckBox" row="1" column="0" rowspan="1" colspan="3">
+ <widget class="TQCheckBox" row="1" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>showClosingTags</cstring>
</property>
@@ -117,7 +117,7 @@
<string>Show closing tags</string>
</property>
</widget>
- <widget class="QCheckBox" row="0" column="0" rowspan="1" colspan="3">
+ <widget class="TQCheckBox" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>showEmptyNodes</cstring>
</property>
@@ -125,7 +125,7 @@
<string>Show empt&amp;y nodes and groups</string>
</property>
</widget>
- <widget class="QSpinBox" row="4" column="2">
+ <widget class="TQSpinBox" row="4" column="2">
<property name="name">
<cstring>spinExpand</cstring>
</property>
@@ -136,7 +136,7 @@
<string>Set to 0 in order to expand the whole tree</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>TextLabel1_5</cstring>
</property>
@@ -144,7 +144,7 @@
<string>Refresh frequency (in seconds):</string>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>TextLabel2_2</cstring>
</property>
@@ -154,7 +154,7 @@
</widget>
</grid>
</widget>
- <widget class="QGroupBox" row="0" column="0">
+ <widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>GroupBox1</cstring>
</property>
@@ -168,7 +168,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QComboBox" row="3" column="1">
+ <widget class="TQComboBox" row="3" column="1">
<item>
<property name="text">
<string>Select Tag Area</string>
@@ -183,7 +183,7 @@
<cstring>comboDoubleClick</cstring>
</property>
</widget>
- <widget class="QComboBox" row="0" column="1">
+ <widget class="TQComboBox" row="0" column="1">
<item>
<property name="text">
<string>Find Tag</string>
@@ -198,7 +198,7 @@
<cstring>comboLBM</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -206,7 +206,7 @@
<string>Left button:</string>
</property>
</widget>
- <widget class="QComboBox" row="2" column="1">
+ <widget class="TQComboBox" row="2" column="1">
<item>
<property name="text">
<string>Popup Menu</string>
@@ -216,7 +216,7 @@
<cstring>comboRBM</cstring>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>TextLabel1_4</cstring>
</property>
@@ -224,7 +224,7 @@
<string>Double click:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel1_2</cstring>
</property>
@@ -232,7 +232,7 @@
<string>Middle button:</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel1_3</cstring>
</property>
@@ -240,7 +240,7 @@
<string>Right button:</string>
</property>
</widget>
- <widget class="QComboBox" row="1" column="1">
+ <widget class="TQComboBox" row="1" column="1">
<item>
<property name="text">
<string>Find Tag &amp; Open Tree</string>
@@ -282,7 +282,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>40</height>
@@ -310,5 +310,5 @@
<tabstop>refreshFrequency</tabstop>
<tabstop>spinExpand</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/dialogs/settings/previewoptions.cpp b/quanta/dialogs/settings/previewoptions.cpp
index 2df03ea9..3c0e3c1b 100644
--- a/quanta/dialogs/settings/previewoptions.cpp
+++ b/quanta/dialogs/settings/previewoptions.cpp
@@ -23,17 +23,17 @@
#include <klocale.h>
#include <kmessagebox.h>
-PreviewOptions::PreviewOptions(TQWidget *parent, const char *name)
- : PreviewOptionsS(parent,name)
+PreviewOptions::PreviewOptions(TQWidget *tqparent, const char *name)
+ : PreviewOptionsS(tqparent,name)
{
}
PreviewOptions::~PreviewOptions(){
}
-void PreviewOptions::setWindowLayout(const TQString& layout )
+void PreviewOptions::setWindowLayout(const TQString& tqlayout )
{
- if ( layout == "Default") resetLayout->setChecked(true);
+ if ( tqlayout == "Default") resetLayout->setChecked(true);
else resetLayout->setChecked(false);
}
@@ -64,12 +64,12 @@ TQString PreviewOptions::docPosition()
return position;
}
-TQString PreviewOptions::layout()
+TQString PreviewOptions::tqlayout()
{
- TQString layout = "Custom";
+ TQString tqlayout = "Custom";
if ( resetLayout->isChecked() )
- layout = "Default";
- return layout;
+ tqlayout = "Default";
+ return tqlayout;
}
TQString PreviewOptions::closeButtons()
diff --git a/quanta/dialogs/settings/previewoptions.h b/quanta/dialogs/settings/previewoptions.h
index 3cc5b820..ebddcc32 100644
--- a/quanta/dialogs/settings/previewoptions.h
+++ b/quanta/dialogs/settings/previewoptions.h
@@ -24,12 +24,13 @@ class KConfig;
class PreviewOptions : public PreviewOptionsS {
Q_OBJECT
+ TQ_OBJECT
public:
- PreviewOptions(TQWidget *parent=0, const char *name=0);
+ PreviewOptions(TQWidget *tqparent=0, const char *name=0);
~PreviewOptions();
TQString position();
- TQString layout();
+ TQString tqlayout();
TQString closeButtons();
TQString docPosition();
uint toolviewTabs();
diff --git a/quanta/dialogs/settings/previewoptionss.ui b/quanta/dialogs/settings/previewoptionss.ui
index a27a164b..e3743258 100644
--- a/quanta/dialogs/settings/previewoptionss.ui
+++ b/quanta/dialogs/settings/previewoptionss.ui
@@ -9,7 +9,7 @@
* *
***************************************************************************/
</comment>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>PreviewOptionsS</cstring>
</property>
@@ -21,7 +21,7 @@
<height>512</height>
</rect>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>350</width>
<height>220</height>
@@ -31,15 +31,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="2" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>resetLayout</cstring>
</property>
<property name="text">
- <string>Reset window layout to the default on the next startup</string>
+ <string>Reset window tqlayout to the default on the next startup</string>
</property>
</widget>
- <widget class="QCheckBox" row="3" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="3" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>showHidden</cstring>
</property>
@@ -47,7 +47,7 @@
<string>Show hidden files in files tree</string>
</property>
</widget>
- <widget class="QCheckBox" row="4" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>saveLocalTrees</cstring>
</property>
@@ -55,7 +55,7 @@
<string>Save tree status for local trees</string>
</property>
</widget>
- <widget class="QButtonGroup" row="1" column="0">
+ <widget class="TQButtonGroup" row="1" column="0">
<property name="name">
<cstring>buttonGroup3</cstring>
</property>
@@ -66,7 +66,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="1" column="0">
+ <widget class="TQRadioButton" row="1" column="0">
<property name="name">
<cstring>radioShowCloseButtons</cstring>
</property>
@@ -77,7 +77,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>radioNoCloseButtons</cstring>
</property>
@@ -85,7 +85,7 @@
<string>&amp;Do not show</string>
</property>
</widget>
- <widget class="QRadioButton" row="2" column="0">
+ <widget class="TQRadioButton" row="2" column="0">
<property name="name">
<cstring>radioDelayedCloseButtons</cstring>
</property>
@@ -95,7 +95,7 @@
</widget>
</grid>
</widget>
- <widget class="QButtonGroup" row="0" column="1">
+ <widget class="TQButtonGroup" row="0" column="1">
<property name="name">
<cstring>buttonGroup3_2</cstring>
</property>
@@ -106,7 +106,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>radioNewDocTab</cstring>
</property>
@@ -117,7 +117,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="0">
+ <widget class="TQRadioButton" row="1" column="0">
<property name="name">
<cstring>radioSeparateDocView</cstring>
</property>
@@ -127,7 +127,7 @@
</widget>
</grid>
</widget>
- <widget class="QButtonGroup" row="1" column="1">
+ <widget class="TQButtonGroup" row="1" column="1">
<property name="name">
<cstring>buttonGroup4</cstring>
</property>
@@ -138,7 +138,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>radioIconText</cstring>
</property>
@@ -149,7 +149,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QRadioButton" row="2" column="0">
+ <widget class="TQRadioButton" row="2" column="0">
<property name="name">
<cstring>radioText</cstring>
</property>
@@ -157,7 +157,7 @@
<string>Text</string>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="0">
+ <widget class="TQRadioButton" row="1" column="0">
<property name="name">
<cstring>radioIcon</cstring>
</property>
@@ -167,7 +167,7 @@
</widget>
</grid>
</widget>
- <widget class="QButtonGroup" row="0" column="0">
+ <widget class="TQButtonGroup" row="0" column="0">
<property name="name">
<cstring>ButtonGroup1</cstring>
</property>
@@ -184,7 +184,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QRadioButton" row="1" column="0">
+ <widget class="TQRadioButton" row="1" column="0">
<property name="name">
<cstring>radioToolview</cstring>
</property>
@@ -192,7 +192,7 @@
<string>Separate toolview</string>
</property>
</widget>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>radioEditor</cstring>
</property>
@@ -215,14 +215,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>30</height>
</size>
</property>
</spacer>
- <widget class="QButtonGroup" row="5" column="0" rowspan="1" colspan="2">
+ <widget class="TQButtonGroup" row="5" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>buttonGroup1</cstring>
</property>
@@ -233,7 +233,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="0" column="0">
+ <widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>warnBinaryOpening</cstring>
</property>
@@ -241,7 +241,7 @@
<string>Warn about opening binar&amp;y/unknown files</string>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="0">
+ <widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>warnEventActions</cstring>
</property>
@@ -249,7 +249,7 @@
<string>Warn when executing &amp;actions associated with events</string>
</property>
</widget>
- <widget class="QCheckBox" row="2" column="0">
+ <widget class="TQCheckBox" row="2" column="0">
<property name="name">
<cstring>warnAll</cstring>
</property>
@@ -276,5 +276,5 @@
<tabstop>radioNoCloseButtons</tabstop>
<tabstop>radioDelayedCloseButtons</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/dialogs/settings/styleoptionss.ui b/quanta/dialogs/settings/styleoptionss.ui
index 13ed198d..242e7e7c 100644
--- a/quanta/dialogs/settings/styleoptionss.ui
+++ b/quanta/dialogs/settings/styleoptionss.ui
@@ -9,7 +9,7 @@
* *
***************************************************************************/
</comment>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>StyleOptionsS</cstring>
</property>
@@ -29,7 +29,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>410</width>
<height>250</height>
@@ -39,7 +39,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel3</cstring>
</property>
@@ -47,7 +47,7 @@
<string>Attribute quotation:</string>
</property>
</widget>
- <widget class="QComboBox" row="2" column="1">
+ <widget class="TQComboBox" row="2" column="1">
<item>
<property name="text">
<string>Double Quotes</string>
@@ -62,7 +62,7 @@
<cstring>attributeQuotation</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -70,7 +70,7 @@
<string>Tag case:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
@@ -78,7 +78,7 @@
<string>Attribute case:</string>
</property>
</widget>
- <widget class="QComboBox" row="1" column="1">
+ <widget class="TQComboBox" row="1" column="1">
<item>
<property name="text">
<string>Default Case</string>
@@ -98,7 +98,7 @@
<cstring>attributeCase</cstring>
</property>
</widget>
- <widget class="QCheckBox" row="3" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="3" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>optionalTagAutoClose</cstring>
</property>
@@ -106,7 +106,7 @@
<string>Auto-close o&amp;ptional tags</string>
</property>
</widget>
- <widget class="QComboBox" row="0" column="1">
+ <widget class="TQComboBox" row="0" column="1">
<item>
<property name="text">
<string>Default Case</string>
@@ -126,7 +126,7 @@
<cstring>tagCase</cstring>
</property>
</widget>
- <widget class="QCheckBox" row="4" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>tagAutoClose</cstring>
</property>
@@ -144,14 +144,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>30</height>
</size>
</property>
</spacer>
- <widget class="QCheckBox" row="6" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="6" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>tagUpdateClosing</cstring>
</property>
@@ -159,7 +159,7 @@
<string>&amp;Update opening/closing tag automatically</string>
</property>
</widget>
- <widget class="QCheckBox" row="5" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="5" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>useAutoCompletion</cstring>
</property>
@@ -175,7 +175,7 @@
<string>Use &amp;auto-completion</string>
</property>
</widget>
- <widget class="QCheckBox" row="7" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="7" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>replaceAccented</cstring>
</property>
@@ -183,8 +183,8 @@
<string>Automatic &amp;replacement of the accented characters</string>
</property>
<property name="whatsThis" stdset="0">
- <string>If this option is turned on the accented characters, like &lt;b&gt;&amp;#225;&lt;/b&gt;, will be automatically replaced by their unicode style notation, for the above case with &lt;b&gt;&amp;#038;#225;&lt;/b&gt;.&lt;br&gt;
-We suggest to leave this option off and use an unicode or locale encoding for your documents.</string>
+ <string>If this option is turned on the accented characters, like &lt;b&gt;&amp;#225;&lt;/b&gt;, will be automatically replaced by their tqunicode style notation, for the above case with &lt;b&gt;&amp;#038;#225;&lt;/b&gt;.&lt;br&gt;
+We suggest to leave this option off and use an tqunicode or locale encoding for your documents.</string>
</property>
</widget>
</grid>
@@ -197,5 +197,5 @@ We suggest to leave this option off and use an unicode or locale encoding for yo
<tabstop>tagAutoClose</tabstop>
<tabstop>useAutoCompletion</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/dialogs/specialchardialog.cpp b/quanta/dialogs/specialchardialog.cpp
index 200b5afe..2caa497e 100644
--- a/quanta/dialogs/specialchardialog.cpp
+++ b/quanta/dialogs/specialchardialog.cpp
@@ -28,8 +28,8 @@
#include "specialchardialog.h"
#include "resource.h"
-SpecialCharDialog::SpecialCharDialog( TQWidget* parent, const char* name, bool modal, WFlags fl)
- :SpecialCharDialogS( parent, name, modal, fl )
+SpecialCharDialog::SpecialCharDialog( TQWidget* tqparent, const char* name, bool modal, WFlags fl)
+ :SpecialCharDialogS( tqparent, name, modal, fl )
{
connect ( FilterLineEdit, TQT_SIGNAL(textChanged(const TQString&)),
TQT_SLOT(filterChars(const TQString&)) );
@@ -52,7 +52,7 @@ void SpecialCharDialog::filterChars(const TQString& filter)
CharsListBox->insertStringList(charList);
else {
for (TQStringList::ConstIterator it = charList.begin(); it != charList.end(); ++it)
- if ( (*it).contains(filter, false) )
+ if ( (*it).tqcontains(filter, false) )
CharsListBox->insertItem(*it);
}
if (CharsListBox->currentItem() == -1 && CharsListBox->count())
@@ -67,8 +67,8 @@ TQString SpecialCharDialog::selection()
void SpecialCharDialog::insertCode()
{
TQString selected = CharsListBox->text(CharsListBox->currentItem());
- int begin = selected.find("(&")+1;
- int length = selected.find(";)") - begin + 1;
+ int begin = selected.tqfind("(&")+1;
+ int length = selected.tqfind(";)") - begin + 1;
m_selection = selected.mid(begin, length);
done(TQDialog::Accepted);
}
diff --git a/quanta/dialogs/specialchardialog.h b/quanta/dialogs/specialchardialog.h
index 4155e081..dec3320e 100644
--- a/quanta/dialogs/specialchardialog.h
+++ b/quanta/dialogs/specialchardialog.h
@@ -24,10 +24,11 @@
class SpecialCharDialog : public SpecialCharDialogS
{
Q_OBJECT
+ TQ_OBJECT
public:
- SpecialCharDialog( TQWidget* parent = 0, const char* name = 0, bool modal = true, WFlags fl = 0);
+ SpecialCharDialog( TQWidget* tqparent = 0, const char* name = 0, bool modal = true, WFlags fl = 0);
~SpecialCharDialog();
TQString selection();
diff --git a/quanta/dialogs/specialchardialogs.ui b/quanta/dialogs/specialchardialogs.ui
index acc52e53..c0ed272f 100644
--- a/quanta/dialogs/specialchardialogs.ui
+++ b/quanta/dialogs/specialchardialogs.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>SpecialCharDialogS</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>SpecialCharDialogS</cstring>
</property>
@@ -22,19 +22,19 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="2" column="0">
+ <widget class="TQLayoutWidget" row="2" column="0">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonOk</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>100</width>
<height>0</height>
@@ -50,11 +50,11 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonChar</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>100</width>
<height>0</height>
@@ -74,18 +74,18 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>112</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonCancel</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>100</width>
<height>0</height>
@@ -103,15 +103,15 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -145,7 +145,7 @@
<tabstop>buttonChar</tabstop>
<tabstop>buttonCancel</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>klistbox.h</includehint>
diff --git a/quanta/dialogs/tagdialogs/colorcombo.cpp b/quanta/dialogs/tagdialogs/colorcombo.cpp
index 878216e3..10ea4273 100644
--- a/quanta/dialogs/tagdialogs/colorcombo.cpp
+++ b/quanta/dialogs/tagdialogs/colorcombo.cpp
@@ -21,10 +21,10 @@
//
// 1999-09-27 Espen Sand <[email protected]>
// KColorDialog is now subclassed from KDialogBase. I have also extended
-// KColorDialog::getColor() so that in contains a parent argument. This
+// KColorDialog::getColor() so that in contains a tqparent argument. This
// improves centering capability.
//
-// layout management added Oct 1997 by Mario Weilguni
+// tqlayout management added Oct 1997 by Mario Weilguni
//
@@ -66,8 +66,8 @@
#define STANDARD_PAL_SIZE 17
-ColorCombo::ColorCombo( TQWidget *parent, const char *name )
- : TQComboBox( parent, name )
+ColorCombo::ColorCombo( TQWidget *tqparent, const char *name )
+ : TQComboBox( tqparent, name )
{
customColor.setRgb( 255, 255, 255 );
internalcolor.setRgb( 255, 255, 255 );
@@ -165,7 +165,7 @@ void ColorCombo::slotActivated( int index )
TQPainter painter;
TQPen pen;
- if ( qGray( customColor.rgb() ) < 128 )
+ if ( tqGray( customColor.rgb() ) < 128 )
pen.setColor( white );
else
pen.setColor( black );
@@ -219,7 +219,7 @@ void ColorCombo::addColors()
insertItem( i18n("None") );
- if ( qGray( customColor.rgb() ) < 128 )
+ if ( tqGray( customColor.rgb() ) < 128 )
pen.setColor( white );
else
pen.setColor( black );
@@ -270,23 +270,23 @@ void ColorCombo::createStandardPalette()
int i = 0;
- standardPalette[i++] = Qt::red;
- standardPalette[i++] = Qt::green;
- standardPalette[i++] = Qt::blue;
- standardPalette[i++] = Qt::cyan;
- standardPalette[i++] = Qt::magenta;
- standardPalette[i++] = Qt::yellow;
- standardPalette[i++] = Qt::darkRed;
- standardPalette[i++] = Qt::darkGreen;
- standardPalette[i++] = Qt::darkBlue;
- standardPalette[i++] = Qt::darkCyan;
- standardPalette[i++] = Qt::darkMagenta;
- standardPalette[i++] = Qt::darkYellow;
- standardPalette[i++] = Qt::white;
- standardPalette[i++] = Qt::lightGray;
- standardPalette[i++] = Qt::gray;
- standardPalette[i++] = Qt::darkGray;
- standardPalette[i++] = Qt::black;
+ standardPalette[i++] = TQt::red;
+ standardPalette[i++] = TQt::green;
+ standardPalette[i++] = TQt::blue;
+ standardPalette[i++] = TQt::cyan;
+ standardPalette[i++] = TQt::magenta;
+ standardPalette[i++] = TQt::yellow;
+ standardPalette[i++] = TQt::darkRed;
+ standardPalette[i++] = TQt::darkGreen;
+ standardPalette[i++] = TQt::darkBlue;
+ standardPalette[i++] = TQt::darkCyan;
+ standardPalette[i++] = TQt::darkMagenta;
+ standardPalette[i++] = TQt::darkYellow;
+ standardPalette[i++] = TQt::white;
+ standardPalette[i++] = TQt::lightGray;
+ standardPalette[i++] = TQt::gray;
+ standardPalette[i++] = TQt::darkGray;
+ standardPalette[i++] = TQt::black;
standardPaletteNames = new TQString [STANDARD_PAL_SIZE];
diff --git a/quanta/dialogs/tagdialogs/colorcombo.h b/quanta/dialogs/tagdialogs/colorcombo.h
index b6f851e0..a1f92a31 100644
--- a/quanta/dialogs/tagdialogs/colorcombo.h
+++ b/quanta/dialogs/tagdialogs/colorcombo.h
@@ -19,7 +19,7 @@
//-----------------------------------------------------------------------------
// KDE color selection combo box
-// layout management added Oct 1997 by Mario Weilguni
+// tqlayout management added Oct 1997 by Mario Weilguni
@@ -37,11 +37,12 @@
/**
* Combobox for colours.
*/
-class ColorCombo : public QComboBox
+class ColorCombo : public TQComboBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- ColorCombo( TQWidget *parent = 0L, const char *name = 0L );
+ ColorCombo( TQWidget *tqparent = 0L, const char *name = 0L );
~ColorCombo();
void setColor( const TQColor &col );
diff --git a/quanta/dialogs/tagdialogs/corewidgetdlg.cpp b/quanta/dialogs/tagdialogs/corewidgetdlg.cpp
index 8e52ae01..f45eea8f 100644
--- a/quanta/dialogs/tagdialogs/corewidgetdlg.cpp
+++ b/quanta/dialogs/tagdialogs/corewidgetdlg.cpp
@@ -21,8 +21,8 @@
#include <tqdict.h>
#include <tqlineedit.h>
-CoreWidgetDlg::CoreWidgetDlg(TQWidget *parent, const char *name)
- :CoreWidgetDlgS(parent,name), TagWidget(parent,name)
+CoreWidgetDlg::CoreWidgetDlg(TQWidget *tqparent, const char *name)
+ :CoreWidgetDlgS(tqparent,name), TagWidget(tqparent,name)
{
}
@@ -48,13 +48,13 @@ void CoreWidgetDlg::writeAttributes( TQDict<TQString> *d )
dict = d;
TQString *t; // value of attr.
- if (( t=d->find("id") )) setValue(*t, lineId);
- if (( t=d->find("class") )) setValue(*t, lineClass);
- if (( t=d->find("style") )) setValue(*t, lineStyle);
- if (( t=d->find("title") )) setValue(*t, lineTitle);
+ if (( t=d->tqfind("id") )) setValue(*t, lineId);
+ if (( t=d->tqfind("class") )) setValue(*t, lineClass);
+ if (( t=d->tqfind("style") )) setValue(*t, lineStyle);
+ if (( t=d->tqfind("title") )) setValue(*t, lineTitle);
- if (( t=d->find("lang") )) setValue(*t, lineLang);
- if (( t=d->find("dir") )) setValue(*t, lineDir);
+ if (( t=d->tqfind("lang") )) setValue(*t, lineLang);
+ if (( t=d->tqfind("dir") )) setValue(*t, lineDir);
}
diff --git a/quanta/dialogs/tagdialogs/listdlg.cpp b/quanta/dialogs/tagdialogs/listdlg.cpp
index 713ccf2c..a7954793 100644
--- a/quanta/dialogs/tagdialogs/listdlg.cpp
+++ b/quanta/dialogs/tagdialogs/listdlg.cpp
@@ -24,8 +24,8 @@
#include <tqstring.h>
#include <tqstringlist.h>
-ListDlg::ListDlg(TQStringList &entryList,TQWidget* parent, const char *name )
- :KDialogBase(parent,name), listbox(new KListBox(this))
+ListDlg::ListDlg(TQStringList &entryList,TQWidget* tqparent, const char *name )
+ :KDialogBase(tqparent,name), listbox(new KListBox(this))
{
Q_CHECK_PTR(listbox);
setMainWidget(listbox);
@@ -40,7 +40,7 @@ ListDlg::ListDlg(TQStringList &entryList,TQWidget* parent, const char *name )
}
listbox->setMinimumSize(350,150);
adjustSize();
- resize(sizeHint());
+ resize(tqsizeHint());
connect(listbox,TQT_SIGNAL(doubleClicked( TQListBoxItem * )), TQT_SLOT(slotOk()));
}
diff --git a/quanta/dialogs/tagdialogs/listdlg.h b/quanta/dialogs/tagdialogs/listdlg.h
index ea455d70..4615e495 100644
--- a/quanta/dialogs/tagdialogs/listdlg.h
+++ b/quanta/dialogs/tagdialogs/listdlg.h
@@ -32,8 +32,9 @@ selected item with the getEntry() method.
class ListDlg : public KDialogBase {
Q_OBJECT
+ TQ_OBJECT
public:
- ListDlg(TQStringList &entryList,TQWidget* parent=0, const char *name =0);
+ ListDlg(TQStringList &entryList,TQWidget* tqparent=0, const char *name =0);
~ListDlg();
TQString getEntry();
int getEntryNum();
diff --git a/quanta/dialogs/tagdialogs/pictureview.cpp b/quanta/dialogs/tagdialogs/pictureview.cpp
index 65102ba8..7579c47a 100644
--- a/quanta/dialogs/tagdialogs/pictureview.cpp
+++ b/quanta/dialogs/tagdialogs/pictureview.cpp
@@ -20,7 +20,7 @@
#include "tqpainter.h"
#include <tqimage.h>
-PictureView::PictureView(TQWidget *parent, char *file, const char *name ) : TQFrame(parent,name)
+PictureView::PictureView(TQWidget *tqparent, char *file, const char *name ) : TQFrame(tqparent,name)
{
if ( file ) {
pix = new TQImage(file);
@@ -69,7 +69,7 @@ void PictureView::slotSetImage(const TQString& file)
picheight = pix->height();
scale();
- repaint();
+ tqrepaint();
}
/** try scale image */
diff --git a/quanta/dialogs/tagdialogs/pictureview.h b/quanta/dialogs/tagdialogs/pictureview.h
index 59a71609..e8fadc31 100644
--- a/quanta/dialogs/tagdialogs/pictureview.h
+++ b/quanta/dialogs/tagdialogs/pictureview.h
@@ -29,8 +29,9 @@ used by TagImgDlg
class PictureView : public TQFrame {
Q_OBJECT
+ TQ_OBJECT
public:
- PictureView(TQWidget *parent=0, char *file=0, const char *name=0);
+ PictureView(TQWidget *tqparent=0, char *file=0, const char *name=0);
/** try scale image */
void scale();
public slots: // Public slots
diff --git a/quanta/dialogs/tagdialogs/tagattr.cpp b/quanta/dialogs/tagdialogs/tagattr.cpp
index 251c4b8b..1ab0bdde 100644
--- a/quanta/dialogs/tagdialogs/tagattr.cpp
+++ b/quanta/dialogs/tagdialogs/tagattr.cpp
@@ -39,7 +39,7 @@ TQString Attr::attrName() const
}
-Attr_list::Attr_list( TQDomElement const& el, TQWidget *w, QTag *dtdTag )
+Attr_list::Attr_list( TQDomElement const& el, TQWidget *w, TQTag *dtdTag )
: Attr(el, w, dtdTag)
{
combo = (TQComboBox *)w;
@@ -50,7 +50,7 @@ Attr_list::Attr_list( TQDomElement const& el, TQWidget *w, QTag *dtdTag )
TQString method = el.attribute("method");
TQString interface = el.attribute("interface", "QuantaIf");
TQString arguments = el.attribute("arguments");
- arguments.replace("%tagname%", m_dtdTag->name());
+ arguments.tqreplace("%tagname%", m_dtdTag->name());
DCOPReply reply = QuantaCommon::callDCOPMethod(interface, method, arguments);
if (reply.isValid())
{
@@ -87,9 +87,9 @@ void Attr_list::setValue(const TQString &value)
}
-TQDomNode findChild( TQDomNode &parent, const TQString &name )
+TQDomNode tqfindChild( TQDomNode &tqparent, const TQString &name )
{
- for ( TQDomNode n = parent.firstChild(); !n.isNull(); n = n.nextSibling() )
+ for ( TQDomNode n = tqparent.firstChild(); !n.isNull(); n = n.nextSibling() )
if ( n.nodeName() == name )
return n;
return TQDomNode();
diff --git a/quanta/dialogs/tagdialogs/tagattr.h b/quanta/dialogs/tagdialogs/tagattr.h
index bbd562c6..c9567eda 100644
--- a/quanta/dialogs/tagdialogs/tagattr.h
+++ b/quanta/dialogs/tagdialogs/tagattr.h
@@ -34,16 +34,16 @@
class TQDomElement;
class TQWidget;
-class QTag;
+class TQTag;
-TQDomNode findChild( TQDomNode &parent, const TQString &name );
+TQDomNode tqfindChild( TQDomNode &tqparent, const TQString &name );
class Attr
{
public:
- Attr( TQDomElement const& el, TQWidget *, QTag *dtdTag )
+ Attr( TQDomElement const& el, TQWidget *, TQTag *dtdTag )
: domEl(el), name(domEl.attribute("name","")), m_dtdTag(dtdTag) {}
//{ domEl = el; name = domEl->attribute("name",""); m_dtdTag = dtdTag;}
virtual ~Attr(){}
@@ -57,7 +57,7 @@ class Attr
protected:
TQDomElement domEl;
TQString name;
- QTag *m_dtdTag;
+ TQTag *m_dtdTag;
};
@@ -67,7 +67,7 @@ class Attr_line : public Attr
TQLineEdit *line;
public:
- Attr_line( TQDomElement const& el, TQWidget *w, QTag *dtdTag ) : Attr(el, w, dtdTag)
+ Attr_line( TQDomElement const& el, TQWidget *w, TQTag *dtdTag ) : Attr(el, w, dtdTag)
{ line = (TQLineEdit *)w; }
virtual ~Attr_line(){};
@@ -82,7 +82,7 @@ class Attr_color : public Attr
ColorCombo *color;
public:
- Attr_color( TQDomElement const& el, TQWidget *w, QTag *dtdTag ) : Attr(el, w, dtdTag)
+ Attr_color( TQDomElement const& el, TQWidget *w, TQTag *dtdTag ) : Attr(el, w, dtdTag)
{ color = (ColorCombo *)w; }
virtual ~Attr_color(){};
@@ -96,7 +96,7 @@ class Attr_file : public Attr
FileCombo *file;
public:
- Attr_file( TQDomElement const& el, TQWidget *w , QTag * dtdTag ) : Attr(el, w, dtdTag)
+ Attr_file( TQDomElement const& el, TQWidget *w , TQTag * dtdTag ) : Attr(el, w, dtdTag)
{ file = (FileCombo *)w; }
virtual ~Attr_file(){};
@@ -110,7 +110,7 @@ class Attr_list : public Attr
TQComboBox *combo;
public:
- Attr_list( TQDomElement const& el, TQWidget *w, QTag *dtdTag );
+ Attr_list( TQDomElement const& el, TQWidget *w, TQTag *dtdTag );
virtual ~Attr_list(){};
virtual TQString value() { return combo->currentText(); }
@@ -124,7 +124,7 @@ class Attr_check : public Attr
TQCheckBox *check;
public:
- Attr_check( TQDomElement const& el, TQWidget *w, QTag *dtdTag ) : Attr(el, w, dtdTag)
+ Attr_check( TQDomElement const& el, TQWidget *w, TQTag *dtdTag ) : Attr(el, w, dtdTag)
{ check = (TQCheckBox *)w; }
virtual ~Attr_check(){};
diff --git a/quanta/dialogs/tagdialogs/tagdialog.cpp b/quanta/dialogs/tagdialogs/tagdialog.cpp
index bc5800ae..12ecec0d 100644
--- a/quanta/dialogs/tagdialogs/tagdialog.cpp
+++ b/quanta/dialogs/tagdialogs/tagdialog.cpp
@@ -42,7 +42,7 @@
#include "qtag.h"
#include "kafkacommon.h"
-TagDialog::TagDialog(QTag* dtdTag, Tag *tag, KURL a_baseURL)
+TagDialog::TagDialog(TQTag* dtdTag, Tag *tag, KURL a_baseURL)
: TQTabDialog( 0L, "tagdialog", true)
{
init(dtdTag, a_baseURL);
@@ -60,7 +60,7 @@ TagDialog::TagDialog(QTag* dtdTag, Tag *tag, KURL a_baseURL)
}
-TagDialog::TagDialog(QTag* dtdTag, Tag *tag, const TQString& selection, KURL a_baseURL)
+TagDialog::TagDialog(TQTag* dtdTag, Tag *tag, const TQString& selection, KURL a_baseURL)
: TQTabDialog( 0L, "tagdialog", true), m_selection(selection)
{
init(dtdTag, a_baseURL);
@@ -77,7 +77,7 @@ TagDialog::TagDialog(QTag* dtdTag, Tag *tag, const TQString& selection, KURL a_b
parseTag();
}
-TagDialog::TagDialog(QTag* dtdTag, TQString attrs, KURL a_baseURL)
+TagDialog::TagDialog(TQTag* dtdTag, TQString attrs, KURL a_baseURL)
: TQTabDialog( 0L, "tagdialog", true)
{
init(dtdTag, a_baseURL);
@@ -90,7 +90,7 @@ TagDialog::TagDialog(QTag* dtdTag, TQString attrs, KURL a_baseURL)
parseTag();
}
-TagDialog::TagDialog(QTag* dtdTag, const TQString& selection, TQString attrs, KURL a_baseURL)
+TagDialog::TagDialog(TQTag* dtdTag, const TQString& selection, TQString attrs, KURL a_baseURL)
: TQTabDialog( 0L, "tagdialog", true), m_selection(selection)
{
init(dtdTag, a_baseURL);
@@ -113,7 +113,7 @@ TagDialog::~TagDialog()
}
-void TagDialog::init(QTag *a_dtdTag, KURL a_baseURL)
+void TagDialog::init(TQTag *a_dtdTag, KURL a_baseURL)
{
setOkButton(KStdGuiItem::ok().text());
setCancelButton(KStdGuiItem::cancel().text());
@@ -123,7 +123,7 @@ void TagDialog::init(QTag *a_dtdTag, KURL a_baseURL)
if (!a_dtdTag) //the tag is invalid, let's create a default one
{
- dtdTag = new QTag();
+ dtdTag = new TQTag();
dtdTag->setName(i18n("Unknown tag"));
deleteTag = true;
} else
@@ -148,7 +148,7 @@ void TagDialog::parseTag()
TQDomDocument doc;
if (dtdTag->name().lower() == "img") //NOTE: HTML specific code!
{
- mainDlg = new TagImgDlg(dtdTag->parentDTD, this);
+ mainDlg = new TagImgDlg(dtdTag->tqparentDTD, this);
((TagImgDlg *)mainDlg)->writeAttributes( dict );
}
//read the tag file it is available
@@ -164,7 +164,7 @@ void TagDialog::parseTag()
{
TQDomNode n = nodeList.item(i);
TQString nodeTagName = n.toElement().attribute("name");
- if (!dtdTag->parentDTD->caseSensitive)
+ if (!dtdTag->tqparentDTD->caseSensitive)
nodeTagName = nodeTagName.upper();
if (nodeTagName == tagName && n.toElement().elementsByTagName("attr").count() > 0) //read a tag
{
@@ -179,7 +179,7 @@ void TagDialog::parseTag()
else
{
TQString docString = "<!DOCTYPE TAGS>\n<TAGS>\n";
- docString += TQString("<tag name=\"%1\">\n").arg(dtdTag->name());
+ docString += TQString("<tag name=\"%1\">\n").tqarg(dtdTag->name());
docString += QuantaCommon::xmlFromAttributes(dtdTag->attributes());
docString += "</tag>\n</TAGS>\n";
doc.setContent(docString);
@@ -192,7 +192,7 @@ void TagDialog::parseTag()
addTab( mainDlg, i18n("Main") );
}
- KConfig *dtdConfig = new KConfig(dtdTag->parentDTD->fileName);
+ KConfig *dtdConfig = new KConfig(dtdTag->tqparentDTD->fileName);
dtdConfig->setGroup("General");
int numOfPages = dtdConfig->readNumEntry("NumOfPages");
extraPageList = new TQPtrList<Tagxml>();
@@ -200,14 +200,14 @@ void TagDialog::parseTag()
for (int i = 1; i <= numOfPages; i++)
{
Tagxml *extraPage = 0L;
- dtdConfig->setGroup(TQString("Page%1").arg(i));
+ dtdConfig->setGroup(TQString("Page%1").tqarg(i));
TQString title = dtdConfig->readEntry("Title");
TQStringList groupList;
groupList = dtdConfig->readListEntry("Groups");
TQDomDocument extraDoc; //build an internal tag XML for the groups
bool addPage = false;
TQString docString = "<!DOCTYPE TAGS>\n<TAGS>\n";
- docString += TQString("<tag name=\"Page%1\">\n").arg(i);
+ docString += TQString("<tag name=\"Page%1\">\n").tqarg(i);
for (uint j = 0; j < groupList.count(); j++)
{
groupList[j] = groupList[j].stripWhiteSpace();
@@ -226,7 +226,7 @@ void TagDialog::parseTag()
{
TQDomNode node = nodeList.item(j);
TQString nodeTagName = node.toElement().attribute("name");
- if (groupList.contains(nodeTagName) && dtdTag->commonGroups.contains(nodeTagName)) //add the attributes of this common tag to a new tab
+ if (groupList.tqcontains(nodeTagName) && dtdTag->commonGroups.tqcontains(nodeTagName)) //add the attributes of this common tag to a new tab
{
TQString s;
TQTextStream str(&s, IO_ReadWrite);
@@ -325,15 +325,15 @@ TQString TagDialog::getAttributeString()
TQString TagDialog::getAttribute(const TQString& attr)
{
TQString attrStr = getAttributeString()+" ";
- int pos = attrStr.upper().find(attr.upper());
+ int pos = attrStr.upper().tqfind(attr.upper());
if (pos != -1)
{
- pos = attrStr.find("=",pos+1) + 1;
- return attrStr.mid(pos, attrStr.find(" ",pos) - pos);
+ pos = attrStr.tqfind("=",pos+1) + 1;
+ return attrStr.mid(pos, attrStr.tqfind(" ",pos) - pos);
}
else
{
- return TQString::null;
+ return TQString();
}
}
@@ -429,7 +429,7 @@ void TagDialog::insertTag(Document *w, bool insertInLine)
TQString newTag = getAttributeString();
newTag = TQString("<")+QuantaCommon::tagCase(dtdTag->name())+newTag;
- if ( dtdTag->parentDTD->singleTagStyle == "xml" &&
+ if ( dtdTag->tqparentDTD->singleTagStyle == "xml" &&
(dtdTag->isSingle() || (!qConfig.closeOptionalTags && dtdTag->isOptional()))
)
{
diff --git a/quanta/dialogs/tagdialogs/tagdialog.h b/quanta/dialogs/tagdialogs/tagdialog.h
index c715085f..c3e6c2d4 100644
--- a/quanta/dialogs/tagdialogs/tagdialog.h
+++ b/quanta/dialogs/tagdialogs/tagdialog.h
@@ -32,13 +32,14 @@
class Document;
class TagWidget;
class Tagxml;
-class QTag;
+class TQTag;
class Tag;
class KURL;
class TQShowEvent;
class TagDialog : public TQTabDialog {
Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -50,10 +51,10 @@ public:
</a>
*/
- TagDialog(QTag* dtdTag, Tag* tag, KURL a_baseURL = KURL());
- TagDialog(QTag* dtdTag, Tag* tag, const TQString& selection, KURL a_baseURL = KURL());
- TagDialog(QTag* dtdTag, TQString attrs=TQString::null, KURL a_baseURL = KURL());
- TagDialog(QTag* dtdTag, const TQString& selection, TQString attrs=TQString::null, KURL a_baseURL = KURL());
+ TagDialog(TQTag* dtdTag, Tag* tag, KURL a_baseURL = KURL());
+ TagDialog(TQTag* dtdTag, Tag* tag, const TQString& selection, KURL a_baseURL = KURL());
+ TagDialog(TQTag* dtdTag, TQString attrs=TQString(), KURL a_baseURL = KURL());
+ TagDialog(TQTag* dtdTag, const TQString& selection, TQString attrs=TQString(), KURL a_baseURL = KURL());
~TagDialog();
/** Insert an attribute to dict*/
void insertAttribute(TQString *attr, TQString *value);
@@ -90,12 +91,12 @@ protected slots:
private:
bool deleteTag;
Tag *m_tag;
- QTag* dtdTag;
+ TQTag* dtdTag;
TQString m_selection;
TQPtrList<Tagxml> *extraPageList;
- void init(QTag* dtdTag, KURL a_baseURL);
+ void init(TQTag* dtdTag, KURL a_baseURL);
void parseAttributes(const TQString &attrs);
};
diff --git a/quanta/dialogs/tagdialogs/tagimgdlg.cpp b/quanta/dialogs/tagdialogs/tagimgdlg.cpp
index 9448f48d..b8f08324 100644
--- a/quanta/dialogs/tagdialogs/tagimgdlg.cpp
+++ b/quanta/dialogs/tagdialogs/tagimgdlg.cpp
@@ -35,8 +35,8 @@
#include "tagimgdlg.moc"
-TagImgDlg::TagImgDlg(const DTDStruct *dtd, TQWidget *parent, const char *name)
- : TQWidget(parent,name), TagWidget(parent,name)
+TagImgDlg::TagImgDlg(const DTDStruct *dtd, TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent,name), TagWidget(TQT_TQOBJECT(tqparent),name)
{
m_dtd = dtd;
img = 0L;
@@ -108,7 +108,7 @@ void TagImgDlg::slotFileSelect()
if ( !url.isEmpty() )
{
slotImageSet( url );
- url = QExtFileInfo::toRelative(url, baseURL);
+ url = TQExtFileInfo::toRelative(url, baseURL);
lineImgSource->setText( url.path() );
}
}
@@ -145,26 +145,26 @@ void TagImgDlg::writeAttributes( TQDict<TQString> *d )
dict = d;
TQString *t; // value of attr.
- if (( t=d->find("src") ))
+ if (( t=d->tqfind("src") ))
{
lineImgSource->setText(*t);
KURL url = baseURL;
QuantaCommon::setUrl(url, *t);
- url = QExtFileInfo::toAbsolute(url, baseURL);
+ url = TQExtFileInfo::toAbsolute(url, baseURL);
slotImageSet( url );
}
- if ( (t=d->find("alt")) )
+ if ( (t=d->tqfind("alt")) )
setValue(*t, lineAltText);
- if ( (t=d->find("width")) && lineWidth )
+ if ( (t=d->tqfind("width")) && lineWidth )
setValue(*t, lineWidth);
- if ( (t=d->find("height")) && lineHeight )
+ if ( (t=d->tqfind("height")) && lineHeight )
setValue(*t, lineHeight);
- if ( (t=d->find("hspace")) && lineHSpace)
+ if ( (t=d->tqfind("hspace")) && lineHSpace)
setValue(*t, lineHSpace);
- if ( (t=d->find("vspace")) && lineVSpace )
+ if ( (t=d->tqfind("vspace")) && lineVSpace )
setValue(*t, lineVSpace);
- if ( (t=d->find("align")) && comboAlign )
+ if ( (t=d->tqfind("align")) && comboAlign )
setValue(*t, comboAlign);
- if ( (t=d->find("border")) && spinBorder )
+ if ( (t=d->tqfind("border")) && spinBorder )
setValue(*t, spinBorder);
}
diff --git a/quanta/dialogs/tagdialogs/tagimgdlg.h b/quanta/dialogs/tagdialogs/tagimgdlg.h
index 9f67d0f9..488d2377 100644
--- a/quanta/dialogs/tagdialogs/tagimgdlg.h
+++ b/quanta/dialogs/tagdialogs/tagimgdlg.h
@@ -40,8 +40,9 @@ class TQImage;
class TagImgDlg : public TQWidget, TagWidget {
Q_OBJECT
+ TQ_OBJECT
public:
- TagImgDlg(const DTDStruct *dtd, TQWidget *parent=0, const char *name=0);
+ TagImgDlg(const DTDStruct *dtd, TQWidget *tqparent=0, const char *name=0);
~TagImgDlg();
public:
@@ -51,19 +52,19 @@ public:
KLineEdit *lineImgSource;
TQPushButton *buttonImgSource;
TQPushButton *buttonRecalcImgSize;
- TQLabel *QLabel_4;
+ TQLabel *TQLabel_4;
KLineEdit *lineWidth;
- TQLabel *QLabel_5;
+ TQLabel *TQLabel_5;
KLineEdit *lineHeight;
- TQLabel *QLabel_6;
+ TQLabel *TQLabel_6;
KLineEdit *lineHSpace;
- TQLabel *QLabel_7;
+ TQLabel *TQLabel_7;
KLineEdit *lineVSpace;
- TQLabel *QLabel_8;
+ TQLabel *TQLabel_8;
KLineEdit *lineAltText;
- TQLabel *QLabel_9;
+ TQLabel *TQLabel_9;
TQSpinBox *spinBorder;
- TQLabel *QLabel_10;
+ TQLabel *TQLabel_10;
TQComboBox *comboAlign;
PictureView *widgetImg;
TQPushButton *buttonOk;
diff --git a/quanta/dialogs/tagdialogs/tagimgdlgdata.cpp b/quanta/dialogs/tagdialogs/tagimgdlgdata.cpp
index 69d6a72e..07a44394 100644
--- a/quanta/dialogs/tagdialogs/tagimgdlgdata.cpp
+++ b/quanta/dialogs/tagdialogs/tagimgdlgdata.cpp
@@ -34,7 +34,7 @@ void TagImgDlg::initDialog(){
buttonImgSource->setText(i18n("..."));
grid->addMultiCellWidget(buttonImgSource, 0, 0, 4, 4);
- QTag *imgTag = m_dtd->tagsList->find("img");
+ TQTag *imgTag = m_dtd->tagsList->tqfind("img");
if (!imgTag)
return;
@@ -42,9 +42,9 @@ void TagImgDlg::initDialog(){
lineWidth = 0L;
if (imgTag->attribute("width"))
{
- QLabel_4= new TQLabel(this,"NoName");
- QLabel_4->setText(i18n("Width:"));
- grid->addMultiCellWidget(QLabel_4, 1, 1, 0, 0);
+ TQLabel_4= new TQLabel(this,"NoName");
+ TQLabel_4->setText(i18n("Width:"));
+ grid->addMultiCellWidget(TQLabel_4, 1, 1, 0, 0);
lineWidth= new KLineEdit(this,"NoName");
lineWidth->setValidator( new KFloatValidator( lineWidth ) );
@@ -54,9 +54,9 @@ void TagImgDlg::initDialog(){
lineHeight = 0L;
if (imgTag->attribute("height"))
{
- QLabel_5= new TQLabel(this,"NoName");
- QLabel_5->setText(i18n("Height:"));
- grid->addMultiCellWidget(QLabel_5, 1, 1, 2, 2);
+ TQLabel_5= new TQLabel(this,"NoName");
+ TQLabel_5->setText(i18n("Height:"));
+ grid->addMultiCellWidget(TQLabel_5, 1, 1, 2, 2);
lineHeight= new KLineEdit(this,"NoName");
lineHeight->setValidator( new KFloatValidator( lineHeight ) );
@@ -70,9 +70,9 @@ void TagImgDlg::initDialog(){
lineHSpace = 0L;
if (imgTag->attribute("hspace"))
{
- QLabel_6= new TQLabel(this,"NoName");
- QLabel_6->setText(i18n("HSpace:"));
- grid->addMultiCellWidget(QLabel_6, 2, 2, 0, 0);
+ TQLabel_6= new TQLabel(this,"NoName");
+ TQLabel_6->setText(i18n("HSpace:"));
+ grid->addMultiCellWidget(TQLabel_6, 2, 2, 0, 0);
lineHSpace= new KLineEdit(this,"NoName");
grid->addMultiCellWidget(lineHSpace, 2, 2, 1, 1);
@@ -81,17 +81,17 @@ void TagImgDlg::initDialog(){
lineVSpace = 0L;
if (imgTag->attribute("vspace"))
{
- QLabel_7= new TQLabel(this,"NoName");
- QLabel_7->setText(i18n("VSpace:"));
- grid->addMultiCellWidget(QLabel_7, 2, 2, 2, 2);
+ TQLabel_7= new TQLabel(this,"NoName");
+ TQLabel_7->setText(i18n("VSpace:"));
+ grid->addMultiCellWidget(TQLabel_7, 2, 2, 2, 2);
lineVSpace= new KLineEdit(this,"NoName");
grid->addMultiCellWidget(lineVSpace, 2, 2, 3, 3);
}
- QLabel_8= new TQLabel(this,"NoName");
- QLabel_8->setText(i18n("Alternate text:"));
- grid->addMultiCellWidget(QLabel_8, 3, 3, 0, 0);
+ TQLabel_8= new TQLabel(this,"NoName");
+ TQLabel_8->setText(i18n("Alternate text:"));
+ grid->addMultiCellWidget(TQLabel_8, 3, 3, 0, 0);
lineAltText= new KLineEdit(this,"NoName");
grid->addMultiCellWidget(lineAltText, 3, 3, 1, 4);
@@ -99,9 +99,9 @@ void TagImgDlg::initDialog(){
spinBorder = 0L;
if (imgTag->attribute("border"))
{
- QLabel_9= new TQLabel(this,"NoName");
- QLabel_9->setText(i18n("Border:"));
- grid->addMultiCellWidget(QLabel_9, 4, 4, 0, 0);
+ TQLabel_9= new TQLabel(this,"NoName");
+ TQLabel_9->setText(i18n("Border:"));
+ grid->addMultiCellWidget(TQLabel_9, 4, 4, 0, 0);
spinBorder= new TQSpinBox(this,"NoName");
spinBorder->setRange(0,20);
@@ -111,9 +111,9 @@ void TagImgDlg::initDialog(){
comboAlign = 0L;
if (imgTag->attribute("align"))
{
- QLabel_10= new TQLabel(this,"NoName");
- QLabel_10->setText(i18n("Align:"));
- grid->addMultiCellWidget(QLabel_10, 4, 4, 2, 2);
+ TQLabel_10= new TQLabel(this,"NoName");
+ TQLabel_10->setText(i18n("Align:"));
+ grid->addMultiCellWidget(TQLabel_10, 4, 4, 2, 2);
comboAlign= new TQComboBox(this,"NoName");
grid->addMultiCellWidget(comboAlign, 4, 4, 3, 4);
diff --git a/quanta/dialogs/tagdialogs/tagmail.ui b/quanta/dialogs/tagdialogs/tagmail.ui
index 1ec00314..d3e03fd5 100644
--- a/quanta/dialogs/tagdialogs/tagmail.ui
+++ b/quanta/dialogs/tagdialogs/tagmail.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>TagMail</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>TagMail</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>AddressLabel</cstring>
</property>
@@ -27,7 +27,7 @@
<string>Email address:</string>
</property>
</widget>
- <widget class="QPushButton" row="0" column="4">
+ <widget class="TQPushButton" row="0" column="4">
<property name="name">
<cstring>buttonAddressSelect</cstring>
</property>
@@ -39,7 +39,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>32</width>
<height>32767</height>
@@ -49,17 +49,17 @@
<string>...</string>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="3">
+ <widget class="TQLineEdit" row="0" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>lineEmail</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1" rowspan="1" colspan="3">
+ <widget class="TQLineEdit" row="1" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>lineSubject</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>SubjectLabel</cstring>
</property>
@@ -67,7 +67,7 @@
<string>Subject:</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TitleLabel</cstring>
</property>
@@ -83,7 +83,7 @@
<string>Title:</string>
</property>
</widget>
- <widget class="QTextEdit" row="2" column="1" rowspan="1" colspan="4">
+ <widget class="TQTextEdit" row="2" column="1" rowspan="1" colspan="4">
<property name="name">
<cstring>titleEdit</cstring>
</property>
@@ -117,7 +117,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -126,5 +126,5 @@
</spacer>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/dialogs/tagdialogs/tagmaildlg.cpp b/quanta/dialogs/tagdialogs/tagmaildlg.cpp
index 3ed62c57..0aa689d2 100644
--- a/quanta/dialogs/tagdialogs/tagmaildlg.cpp
+++ b/quanta/dialogs/tagdialogs/tagmaildlg.cpp
@@ -34,8 +34,8 @@
#include <tqregexp.h>
-TagMailDlg::TagMailDlg(TQWidget *parent, const char *name)
- :TagMail(parent, name)
+TagMailDlg::TagMailDlg(TQWidget *tqparent, const char *name)
+ :TagMail(tqparent, name)
{
setCaption(name);
setModal(true);
@@ -68,18 +68,18 @@ void TagMailDlg::slotSelectAddress()
n = n.simplifyWhiteSpace();
for( unsigned int i = 0; i < emails.count(); ++i ) {
if (!emails[i].isEmpty()) {
- if (n.isEmpty() || (emails[i].find( "<" ) != -1))
+ if (n.isEmpty() || (emails[i].tqfind( "<" ) != -1))
addr = "";
else { /* do we really need quotes around this name ? */
- if (n.find(TQRegExp("[^ 0-9A-Za-z\\x0080-\\xFFFF]")) != -1)
+ if (n.tqfind(TQRegExp("[^ 0-9A-Za-z\\x0080-\\xFFFF]")) != -1)
addr = qConfig.attrValueQuotation + n + qConfig.attrValueQuotation + " ";
else
addr = n + " ";
}
email = emails[i];
- if (!addr.isEmpty() && (email.find( "<" ) == -1)
- && (email.find( ">" ) == -1)
- && (email.find( "," ) == -1))
+ if (!addr.isEmpty() && (email.tqfind( "<" ) == -1)
+ && (email.tqfind( ">" ) == -1)
+ && (email.tqfind( "," ) == -1))
addr += "<" + email + ">";
else
addr += email;
diff --git a/quanta/dialogs/tagdialogs/tagmaildlg.h b/quanta/dialogs/tagdialogs/tagmaildlg.h
index 32dffaa5..1b739954 100644
--- a/quanta/dialogs/tagdialogs/tagmaildlg.h
+++ b/quanta/dialogs/tagdialogs/tagmaildlg.h
@@ -24,8 +24,9 @@
class TagMailDlg : public TagMail {
Q_OBJECT
+ TQ_OBJECT
public:
- TagMailDlg(TQWidget *parent=0, const char *name=0);
+ TagMailDlg(TQWidget *tqparent=0, const char *name=0);
~TagMailDlg();
private slots: // Private slots
/** Select a mail address, using the KABC */
diff --git a/quanta/dialogs/tagdialogs/tagmisc.ui b/quanta/dialogs/tagdialogs/tagmisc.ui
index 39f044c9..4d39033d 100644
--- a/quanta/dialogs/tagdialogs/tagmisc.ui
+++ b/quanta/dialogs/tagdialogs/tagmisc.ui
@@ -9,7 +9,7 @@
***************************************************************************/
</comment>
<author>(C) 2001, 2003 Andras Mantia &lt;[email protected]&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>TagMisc</cstring>
</property>
@@ -21,7 +21,7 @@
<height>61</height>
</rect>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>350</width>
<height>60</height>
@@ -34,12 +34,12 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>elementName</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -47,7 +47,7 @@
<string>Element name:</string>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>addClosingTag</cstring>
</property>
@@ -64,5 +64,5 @@
<tabstop>elementName</tabstop>
<tabstop>addClosingTag</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/quanta/dialogs/tagdialogs/tagmiscdlg.cpp b/quanta/dialogs/tagdialogs/tagmiscdlg.cpp
index 9313bb08..70c5600c 100644
--- a/quanta/dialogs/tagdialogs/tagmiscdlg.cpp
+++ b/quanta/dialogs/tagdialogs/tagmiscdlg.cpp
@@ -19,8 +19,8 @@
#include <tqlineedit.h>
#include <tqcheckbox.h>
-TagMiscDlg::TagMiscDlg( TQWidget* parent, const char* name, bool addClosingTag, const TQString &element )
- :KDialogBase( parent, name, true, i18n("Misc. Tag"), KDialogBase::Ok | KDialogBase::Cancel )
+TagMiscDlg::TagMiscDlg( TQWidget* tqparent, const char* name, bool addClosingTag, const TQString &element )
+ :KDialogBase( tqparent, name, true, i18n("Misc. Tag"), KDialogBase::Ok | KDialogBase::Cancel )
{
miscWidget = new TagMisc(this);
connect( miscWidget->elementName, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotMiscTagChanged(const TQString & ) ) );
diff --git a/quanta/dialogs/tagdialogs/tagmiscdlg.h b/quanta/dialogs/tagdialogs/tagmiscdlg.h
index e8d68c3d..4ac7c2a8 100644
--- a/quanta/dialogs/tagdialogs/tagmiscdlg.h
+++ b/quanta/dialogs/tagdialogs/tagmiscdlg.h
@@ -24,9 +24,10 @@ class TagMisc;
class TagMiscDlg : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- TagMiscDlg( TQWidget* parent = 0, const char* name = 0, bool addClosingTag=true, const TQString &element=TQString::null );
+ TagMiscDlg( TQWidget* tqparent = 0, const char* name = 0, bool addClosingTag=true, const TQString &element=TQString() );
~TagMiscDlg();
TQString elementTagName() const;
diff --git a/quanta/dialogs/tagdialogs/tagquicklistdlg.cpp b/quanta/dialogs/tagdialogs/tagquicklistdlg.cpp
index 7a9edbdb..2b116855 100644
--- a/quanta/dialogs/tagdialogs/tagquicklistdlg.cpp
+++ b/quanta/dialogs/tagdialogs/tagquicklistdlg.cpp
@@ -23,8 +23,8 @@
#include <tqradiobutton.h>
#include <tqgroupbox.h>
-TagQuickListDlg::TagQuickListDlg(TQWidget *parent, const char *name)
- : TQDialog(parent,name,true)
+TagQuickListDlg::TagQuickListDlg(TQWidget *tqparent, const char *name)
+ : TQDialog(tqparent,name,true)
{
setCaption(name);
diff --git a/quanta/dialogs/tagdialogs/tagquicklistdlg.h b/quanta/dialogs/tagdialogs/tagquicklistdlg.h
index 15f0f21d..e9c13189 100644
--- a/quanta/dialogs/tagdialogs/tagquicklistdlg.h
+++ b/quanta/dialogs/tagdialogs/tagquicklistdlg.h
@@ -15,8 +15,8 @@
* *
***************************************************************************/
-#ifndef TAGQUICKLISTDLG_H
-#define TAGQUICKLISTDLG_H
+#ifndef TAGTQUICKLISTDLG_H
+#define TAGTQUICKLISTDLG_H
#include <tqwidget.h>
@@ -33,16 +33,17 @@ class TQButtonGroup;
class TagQuickListDlg : public TQDialog {
Q_OBJECT
+ TQ_OBJECT
public:
- TagQuickListDlg(TQWidget *parent=0, const char *name=0);
+ TagQuickListDlg(TQWidget *tqparent=0, const char *name=0);
~TagQuickListDlg();
public:
void initDialog();
- TQLabel *QLabel_1;
+ TQLabel *TQLabel_1;
TQSpinBox *spinBoxRows;
TQPushButton *buttonOk;
- TQLabel *QLabel_2;
+ TQLabel *TQLabel_2;
TQRadioButton *radioOrdered;
TQRadioButton *radioUnordered;
TQPushButton *buttonCancel;
diff --git a/quanta/dialogs/tagdialogs/tagquicklistdlgdata.cpp b/quanta/dialogs/tagdialogs/tagquicklistdlgdata.cpp
index f7e7b713..7f499c14 100644
--- a/quanta/dialogs/tagdialogs/tagquicklistdlgdata.cpp
+++ b/quanta/dialogs/tagdialogs/tagquicklistdlgdata.cpp
@@ -21,10 +21,10 @@ void TagQuickListDlg::initDialog()
{
resize(230,150);
- QLabel_1= new TQLabel(this,"NoName");
- QLabel_1->setGeometry(10,10,100,30);
- QLabel_1->setMinimumSize(0,0);
- QLabel_1->setText(i18n("Rows:"));
+ TQLabel_1= new TQLabel(this,"NoName");
+ TQLabel_1->setGeometry(10,10,100,30);
+ TQLabel_1->setMinimumSize(0,0);
+ TQLabel_1->setText(i18n("Rows:"));
spinBoxRows= new TQSpinBox(this,"NoName");
spinBoxRows->setGeometry(120,10,100,25);
@@ -35,10 +35,10 @@ void TagQuickListDlg::initDialog()
buttonOk->setGeometry(10,110,100,30);
buttonOk->setMinimumSize(0,0);
- QLabel_2= new TQLabel(this,"NoName");
- QLabel_2->setGeometry(10,40,100,30);
- QLabel_2->setMinimumSize(0,0);
- QLabel_2->setText(i18n("Style:"));
+ TQLabel_2= new TQLabel(this,"NoName");
+ TQLabel_2->setGeometry(10,40,100,30);
+ TQLabel_2->setMinimumSize(0,0);
+ TQLabel_2->setText(i18n("Style:"));
buttonCancel= new TQPushButton(this,"NoName");
buttonCancel->setGeometry(120,110,100,30);
diff --git a/quanta/dialogs/tagdialogs/tagwidget.cpp b/quanta/dialogs/tagdialogs/tagwidget.cpp
index 014549bc..4eb79f24 100644
--- a/quanta/dialogs/tagdialogs/tagwidget.cpp
+++ b/quanta/dialogs/tagdialogs/tagwidget.cpp
@@ -30,9 +30,9 @@
#include "tagdialog.h"
#include "resource.h"
-TagWidget::TagWidget(TQObject *parent, const char *)
+TagWidget::TagWidget(TQObject *tqparent, const char *)
{
- baseURL = ((TagDialog *)parent)->baseURL();
+ baseURL = ((TagDialog *)tqparent)->baseURL();
}
TagWidget::~TagWidget(){
@@ -47,7 +47,7 @@ void TagWidget::updateDict(const TQString &attr, TQComboBox *combo )
delete s;
}
else
- dict->replace(attr, s);
+ dict->tqreplace(attr, s);
}
void TagWidget::setValue(const TQString &val, TQComboBox *combo)
@@ -92,7 +92,7 @@ void TagWidget::updateDict(const TQString &attr, TQLineEdit *line )
delete s;
}
else
- dict->replace(attr, s);
+ dict->tqreplace(attr, s);
}
void TagWidget::updateDict(const TQString &attr, TQSpinBox *spin )
@@ -104,7 +104,7 @@ void TagWidget::updateDict(const TQString &attr, TQSpinBox *spin )
delete s;
}
else
- dict->replace(attr, s);
+ dict->tqreplace(attr, s);
}
void TagWidget::updateDict(const TQString &attr, TQCheckBox *check )
@@ -113,7 +113,7 @@ void TagWidget::updateDict(const TQString &attr, TQCheckBox *check )
dict->remove(attr);
else
{
- if (!dict->find(attr))
+ if (!dict->tqfind(attr))
dict->insert(attr, new TQString(""));
}
}
diff --git a/quanta/dialogs/tagdialogs/tagwidget.h b/quanta/dialogs/tagdialogs/tagwidget.h
index b73c6782..38f67877 100644
--- a/quanta/dialogs/tagdialogs/tagwidget.h
+++ b/quanta/dialogs/tagdialogs/tagwidget.h
@@ -33,7 +33,7 @@ class KURL;
class TagWidget {
public:
- TagWidget(TQObject *parent=0, const char *name=0);
+ TagWidget(TQObject *tqparent=0, const char *name=0);
virtual ~TagWidget();
virtual void readAttributes(TQDict<TQString> *) {};
diff --git a/quanta/dialogs/tagdialogs/tagxml.cpp b/quanta/dialogs/tagdialogs/tagxml.cpp
index 5c07b341..41388efc 100644
--- a/quanta/dialogs/tagdialogs/tagxml.cpp
+++ b/quanta/dialogs/tagdialogs/tagxml.cpp
@@ -29,14 +29,14 @@
#include "styleeditor.h"
-Tagxml::Tagxml( TQDomNode &d, QTag *dtdTag, TQWidget *parent, const char *name)
- :TQWidget(parent,name), TagWidget(parent,name), doc(d)
+Tagxml::Tagxml( TQDomNode &d, TQTag *dtdTag, TQWidget *tqparent, const char *name)
+ :TQWidget(tqparent,name), TagWidget(TQT_TQOBJECT(tqparent),name), doc(d)
{
initialize(d, dtdTag);
}
-Tagxml::Tagxml( TQDomNode &d, QTag *dtdTag, const TQString& selection, TQWidget *parent, const char *name)
- : TQWidget(parent,name), TagWidget(parent,name), doc(d), m_selection(selection)
+Tagxml::Tagxml( TQDomNode &d, TQTag *dtdTag, const TQString& selection, TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent,name), TagWidget(TQT_TQOBJECT(tqparent),name), doc(d), m_selection(selection)
{
initialize(d, dtdTag);
}
@@ -45,9 +45,9 @@ Tagxml::~Tagxml()
{
}
-void Tagxml::initialize(TQDomNode &d, QTag *dtdTag)
+void Tagxml::initialize(TQDomNode &d, TQTag *dtdTag)
{
- m_dtd = dtdTag->parentDTD;
+ m_dtd = dtdTag->tqparentDTD;
m_dtdTag = dtdTag;
TQGridLayout *grid = new TQGridLayout( this );
grid->setSpacing( 13 );
@@ -56,7 +56,7 @@ void Tagxml::initialize(TQDomNode &d, QTag *dtdTag)
//parse the tag XML file, in order to build up the dialog
for ( TQDomNode n = d.firstChild(); !n.isNull(); n = n.nextSibling() )
{
- TQDomNode location = findChild(n,"location");
+ TQDomNode location = tqfindChild(n,"location");
if ( location.isNull() )
continue;
@@ -69,7 +69,7 @@ void Tagxml::initialize(TQDomNode &d, QTag *dtdTag)
int colspan = el.attribute("colspan","1").toInt()-1;
int rowspan = el.attribute("rowspan","1").toInt()-1;
- location = findChild(n,"textlocation");
+ location = tqfindChild(n,"textlocation");
el = location.toElement();
int textrow = el.attribute("row","0").toInt();
int textcol = el.attribute("col","0").toInt();
@@ -79,7 +79,7 @@ void Tagxml::initialize(TQDomNode &d, QTag *dtdTag)
// qDebug("%s col:%d row:%d cs:%d, rs:%d", n.nodeName().data(), col,row,colspan,rowspan );
TQString tip;
- TQDomNode tooltip = findChild( n ,"tooltip" );
+ TQDomNode tooltip = tqfindChild( n ,"tooltip" );
if ( !tooltip.isNull() ) {
if ( tooltip.firstChild().isText() ) {
TQDomText text = tooltip.firstChild().toText();
@@ -87,7 +87,7 @@ void Tagxml::initialize(TQDomNode &d, QTag *dtdTag)
}
}
TQString whatsThis;
- TQDomNode what = findChild( n ,"whatsthis" );
+ TQDomNode what = tqfindChild( n ,"whatsthis" );
if ( !what.isNull() ) {
if ( what.firstChild().isText() ) {
TQDomText text = what.firstChild().toText();
@@ -98,7 +98,7 @@ void Tagxml::initialize(TQDomNode &d, QTag *dtdTag)
if ( n.nodeName() == "label" ) //a static label
{
TQLabel *label = new TQLabel(this);
- TQDomElement ltext = findChild(n,"text").toElement();
+ TQDomElement ltext = tqfindChild(n,"text").toElement();
if ( !ltext.isNull() )
label->setText( ltext.text().isEmpty() ? TQString("") : (ltext.text()+":") );
@@ -116,7 +116,7 @@ void Tagxml::initialize(TQDomNode &d, QTag *dtdTag)
TQDomElement el(n.toElement());
TQString type = el.attribute("type","input");
- TQDomElement ltext = findChild(n,"text").toElement();
+ TQDomElement ltext = tqfindChild(n,"text").toElement();
if ( !ltext.isNull() && (type != "check") ) //if there is a text label for the attribute
{
TQLabel *label = new TQLabel(this);
@@ -152,7 +152,7 @@ void Tagxml::initialize(TQDomNode &d, QTag *dtdTag)
TQCheckBox *w = new TQCheckBox(this);
grid->addMultiCellWidget( w, row, row+rowspan, col, col+colspan );
- TQDomElement ltext = findChild(n,"text").toElement();
+ TQDomElement ltext = tqfindChild(n,"text").toElement();
if ( !ltext.isNull() )
w->setText( ltext.text() );
if ( !tip.isNull() )
@@ -270,10 +270,10 @@ void Tagxml::readAttributes( TQDict<TQString> *d )
{
if (m_dtd->booleanAttributes == "simple")
{
- d->replace(name, new TQString("") );
+ d->tqreplace(name, new TQString("") );
} else
{
- d->replace(name, new TQString(m_dtd->booleanTrue)); //it seems that browsers don't like <input disabled="false">, so if a checkbox is false, don't put in the tag at all
+ d->tqreplace(name, new TQString(m_dtd->booleanTrue)); //it seems that browsers don't like <input disabled="false">, so if a checkbox is false, don't put in the tag at all
}
}
else
@@ -283,16 +283,16 @@ void Tagxml::readAttributes( TQDict<TQString> *d )
/* } else
{
value = (value == "checked")?m_dtd->booleanTrue:m_dtd->booleanFalse;
- d->replace(name, new TQString(value));
+ d->tqreplace(name, new TQString(value));
} */
} else
if (dynamic_cast<Attr_file *>(attr))
{
// value = KURL::encode_string(value);
- d->replace(name, new TQString(value));
+ d->tqreplace(name, new TQString(value));
} else {
- value.replace(TQRegExp("&(?!amp;)"), "&amp;");
- d->replace(name, new TQString(value) );
+ value.tqreplace(TQRegExp("&(?!amp;)"), "&amp;");
+ d->tqreplace(name, new TQString(value) );
}
}
@@ -313,9 +313,9 @@ void Tagxml::writeAttributes( TQDict<TQString> *d )
name = attr->attrName();
- TQString *v = d->find(name);
+ TQString *v = d->tqfind(name);
if ( v ) {
- v->replace("&amp;","&");
+ v->tqreplace("&amp;","&");
if ( dynamic_cast<Attr_check *>(attr) ) // checkbox
value = "checked";
else
diff --git a/quanta/dialogs/tagdialogs/tagxml.h b/quanta/dialogs/tagdialogs/tagxml.h
index 780b6b91..c08853a0 100644
--- a/quanta/dialogs/tagdialogs/tagxml.h
+++ b/quanta/dialogs/tagdialogs/tagxml.h
@@ -28,10 +28,11 @@
class Tagxml : public TQWidget, TagWidget {
Q_OBJECT
+ TQ_OBJECT
public:
/** construtor */
- Tagxml(TQDomNode &d, QTag *dtdTag, TQWidget* parent=0, const char *name=0);
- Tagxml(TQDomNode &d, QTag *dtdTag, const TQString& selection, TQWidget* parent=0, const char *name=0);
+ Tagxml(TQDomNode &d, TQTag *dtdTag, TQWidget* tqparent=0, const char *name=0);
+ Tagxml(TQDomNode &d, TQTag *dtdTag, const TQString& selection, TQWidget* tqparent=0, const char *name=0);
/** destructor */
~Tagxml();
@@ -42,12 +43,12 @@ class Tagxml : public TQWidget, TagWidget {
void focusToFirstItem();
private:
- void initialize(TQDomNode &d, QTag *dtdTag);
+ void initialize(TQDomNode &d, TQTag *dtdTag);
TQDomNode doc;
const DTDStruct *m_dtd;
TQWidget *m_firstItem;
- QTag *m_dtdTag;
+ TQTag *m_dtdTag;
TQString m_selection;
};