summaryrefslogtreecommitdiffstats
path: root/quanta/project
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/project')
-rw-r--r--quanta/project/eventconfigurationdlg.cpp38
-rw-r--r--quanta/project/eventconfigurationdlg.h6
-rw-r--r--quanta/project/eventeditordlg.cpp90
-rw-r--r--quanta/project/eventeditordlg.h24
-rw-r--r--quanta/project/membereditdlg.cpp42
-rw-r--r--quanta/project/membereditdlg.h6
-rw-r--r--quanta/project/project.cpp302
-rw-r--r--quanta/project/project.h82
-rw-r--r--quanta/project/projectlist.cpp30
-rw-r--r--quanta/project/projectlist.h18
-rw-r--r--quanta/project/projectnewfinal.cpp6
-rw-r--r--quanta/project/projectnewfinal.h2
-rw-r--r--quanta/project/projectnewgeneral.cpp68
-rw-r--r--quanta/project/projectnewgeneral.h14
-rw-r--r--quanta/project/projectnewlocal.cpp66
-rw-r--r--quanta/project/projectnewlocal.h6
-rw-r--r--quanta/project/projectnewweb.cpp78
-rw-r--r--quanta/project/projectnewweb.h18
-rw-r--r--quanta/project/projectprivate.cpp382
-rw-r--r--quanta/project/projectprivate.h78
-rw-r--r--quanta/project/projectupload.cpp168
-rw-r--r--quanta/project/projectupload.h40
-rw-r--r--quanta/project/projecturl.h16
-rw-r--r--quanta/project/rescanprj.cpp70
-rw-r--r--quanta/project/rescanprj.h12
-rw-r--r--quanta/project/teammembersdlg.cpp66
-rw-r--r--quanta/project/teammembersdlg.h10
-rw-r--r--quanta/project/uploadprofiles.cpp28
-rw-r--r--quanta/project/uploadprofiles.h26
29 files changed, 896 insertions, 896 deletions
diff --git a/quanta/project/eventconfigurationdlg.cpp b/quanta/project/eventconfigurationdlg.cpp
index e85ce7f6..29d23964 100644
--- a/quanta/project/eventconfigurationdlg.cpp
+++ b/quanta/project/eventconfigurationdlg.cpp
@@ -15,7 +15,7 @@
***************************************************************************/
//qt includes
-#include <qdom.h>
+#include <tqdom.h>
//kde includes
#include <kcombobox.h>
@@ -29,7 +29,7 @@
#include "eventeditordlg.h"
#include "qpevents.h"
-EventConfigurationDlg::EventConfigurationDlg(KActionCollection *actionCollection, QWidget* parent, const char* name, WFlags fl)
+EventConfigurationDlg::EventConfigurationDlg(KActionCollection *actionCollection, TQWidget* parent, const char* name, WFlags fl)
: EventConfigurationDlgS(parent,name,fl)
{
m_actionCollection = actionCollection;
@@ -41,14 +41,14 @@ EventConfigurationDlg::~EventConfigurationDlg()
void EventConfigurationDlg::initEvents(EventActions *events)
{
- QListViewItem *item;
+ TQListViewItem *item;
for (EventActions::ConstIterator it = events->constBegin(); it != events->constEnd(); ++it)
{
- QValueList<EventAction> evList = it.data();
- for (QValueList<EventAction>::ConstIterator it2 = evList.constBegin(); it2 != evList.constEnd(); ++it2)
+ TQValueList<EventAction> evList = it.data();
+ for (TQValueList<EventAction>::ConstIterator it2 = evList.constBegin(); it2 != evList.constEnd(); ++it2)
{
EventAction ev = *it2;
- item = new QListViewItem(eventsListView, QPEvents::ref()->fullEventName(it.key()), QPEvents::ref()->fullActionName(ev.action));
+ item = new TQListViewItem(eventsListView, QPEvents::ref()->fullEventName(it.key()), QPEvents::ref()->fullActionName(ev.action));
int argcount = ev.arguments.count();
if (argcount > 0)
item->setText(2, ev.arguments[0]);
@@ -62,22 +62,22 @@ void EventConfigurationDlg::initEvents(EventActions *events)
}
}
-void EventConfigurationDlg::saveEvents(QDomDocument dom)
+void EventConfigurationDlg::saveEvents(TQDomDocument dom)
{
- QDomNode projectNode = dom.firstChild().firstChild();
- QDomNode eventsNode = projectNode.namedItem("events");
+ TQDomNode projectNode = dom.firstChild().firstChild();
+ TQDomNode eventsNode = projectNode.namedItem("events");
projectNode.removeChild(eventsNode);
eventsNode = dom.createElement("events");
projectNode.appendChild(eventsNode);
- QDomElement node;
- QListViewItemIterator it(eventsListView);
- QListViewItem *item;
+ TQDomElement node;
+ TQListViewItemIterator it(eventsListView);
+ TQListViewItem *item;
while (it.current())
{
item = it.current();
node = dom.createElement("event");
eventsNode.appendChild(node);
- QDomElement el = node.toElement();
+ TQDomElement el = node.toElement();
el.setAttribute("name", QPEvents::ref()->eventName(item->text(0)));
el.setAttribute("action", QPEvents::ref()->actionName(item->text(1)));
if (el.attribute("action") == "script" || el.attribute("action") == "action")
@@ -86,10 +86,10 @@ void EventConfigurationDlg::saveEvents(QDomDocument dom)
el.setAttribute("type", "internal");
for (uint i = 2; i < 6; i++)
{
- QString s = item->text(i);
+ TQString s = item->text(i);
if (s.isEmpty())
s = "--not set--";
- QDomNode argNode = dom.createElement("argument");
+ TQDomNode argNode = dom.createElement("argument");
node.appendChild(argNode);
argNode.appendChild(dom.createTextNode(s));
}
@@ -104,7 +104,7 @@ void EventConfigurationDlg::slotAddEvent()
editDlg.setMainWidget(&eventDlg);
if (editDlg.exec())
{
- QListViewItem *item = new QListViewItem(eventsListView);
+ TQListViewItem *item = new TQListViewItem(eventsListView);
item->setText(0, eventDlg.eventCombo->currentText());
item->setText(1, eventDlg.actionCombo->currentText());
item->setText(2, eventDlg.argument1());
@@ -116,14 +116,14 @@ void EventConfigurationDlg::slotAddEvent()
void EventConfigurationDlg::slotEditEvent()
{
- QListViewItem *item = eventsListView->currentItem();
+ TQListViewItem *item = eventsListView->currentItem();
if (!item) return;
KDialogBase editDlg(this, "edit_event", true, i18n("Edit Event"), KDialogBase::Ok | KDialogBase::Cancel);
EventEditorDlg eventDlg(m_actionCollection, &editDlg);
editDlg.setMainWidget(&eventDlg);
eventDlg.setEvent(item->text(0));
eventDlg.setAction(item->text(1));
- QStringList arguments;
+ TQStringList arguments;
arguments << item->text(2) << item->text(3) << item->text(4) << item->text(5);
eventDlg.setArguments(arguments);
if (editDlg.exec())
@@ -139,7 +139,7 @@ void EventConfigurationDlg::slotEditEvent()
void EventConfigurationDlg::slotDeleteEvent()
{
- QListViewItem *item = eventsListView->currentItem();
+ TQListViewItem *item = eventsListView->currentItem();
if (!item) return;
if (KMessageBox::warningContinueCancel(this, i18n("<qt>Are you sure that you want to remove the configuration of the <b>%1</b> event?</qt>").arg(item->text(0)), i18n("Delete Event Configuration"),KStdGuiItem::del()) == KMessageBox::Continue)
{
diff --git a/quanta/project/eventconfigurationdlg.h b/quanta/project/eventconfigurationdlg.h
index b1e4c14d..170a681c 100644
--- a/quanta/project/eventconfigurationdlg.h
+++ b/quanta/project/eventconfigurationdlg.h
@@ -22,17 +22,17 @@
class QDomDocument;
class KActionCollection;
struct EventAction;
-typedef QMap<QString, QValueList<EventAction> > EventActions;
+typedef TQMap<TQString, TQValueList<EventAction> > EventActions;
class EventConfigurationDlg : public EventConfigurationDlgS
{
Q_OBJECT
public:
- EventConfigurationDlg(KActionCollection *actionCollection, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ EventConfigurationDlg(KActionCollection *actionCollection, TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~EventConfigurationDlg();
void initEvents(EventActions *events);
- void saveEvents(QDomDocument dom);
+ void saveEvents(TQDomDocument dom);
public slots:
void slotEditEvent();
diff --git a/quanta/project/eventeditordlg.cpp b/quanta/project/eventeditordlg.cpp
index d67251f0..2926f916 100644
--- a/quanta/project/eventeditordlg.cpp
+++ b/quanta/project/eventeditordlg.cpp
@@ -15,9 +15,9 @@
***************************************************************************/
//qt includes
-#include <qlabel.h>
-#include <qregexp.h>
-#include <qtooltip.h>
+#include <tqlabel.h>
+#include <tqregexp.h>
+#include <tqtooltip.h>
//kde includes
#include <kaction.h>
@@ -30,12 +30,12 @@
#include "project.h"
#include "tagaction.h"
-extern QString simpleMemberStr;
-extern QString taskLeaderStr;
-extern QString teamLeaderStr;
-extern QString subprojectLeaderStr;
+extern TQString simpleMemberStr;
+extern TQString taskLeaderStr;
+extern TQString teamLeaderStr;
+extern TQString subprojectLeaderStr;
-EventEditorDlg::EventEditorDlg(KActionCollection *actionCollection, QWidget* parent, const char* name, WFlags fl)
+EventEditorDlg::EventEditorDlg(KActionCollection *actionCollection, TQWidget* parent, const char* name, WFlags fl)
: EventEditorDlgS(parent,name,fl)
{
m_actionCollection = actionCollection;
@@ -48,7 +48,7 @@ EventEditorDlg::~EventEditorDlg()
{
}
-void EventEditorDlg::setEvent(const QString &name)
+void EventEditorDlg::setEvent(const TQString &name)
{
for (int i = 0; i < eventCombo->count(); i++)
{
@@ -60,7 +60,7 @@ void EventEditorDlg::setEvent(const QString &name)
}
}
-void EventEditorDlg::setAction(const QString &name)
+void EventEditorDlg::setAction(const TQString &name)
{
for (int i = 0; i < actionCombo->count(); i++)
{
@@ -73,12 +73,12 @@ void EventEditorDlg::setAction(const QString &name)
}
}
-QString EventEditorDlg::argument1()
+TQString EventEditorDlg::argument1()
{
if (argument1Combo->isEnabled())
{
- QString s = argument1Combo->currentText();
- QString actionType = actionCombo->currentText();
+ TQString s = argument1Combo->currentText();
+ TQString actionType = actionCombo->currentText();
if (actionType == QPEvents::ref()->fullActionName("email"))
{
if (s == i18n(teamLeaderStr.utf8()))
@@ -98,8 +98,8 @@ QString EventEditorDlg::argument1()
} else
if (actionType == QPEvents::ref()->fullActionName("script"))
{
- QString s = argument1Combo->currentText();
- for (QMap<QString, QString>::ConstIterator it = m_scriptActions.constBegin(); it != m_scriptActions.constEnd(); ++it)
+ TQString s = argument1Combo->currentText();
+ for (TQMap<TQString, TQString>::ConstIterator it = m_scriptActions.constBegin(); it != m_scriptActions.constEnd(); ++it)
{
if (it.data() == s)
{
@@ -111,8 +111,8 @@ QString EventEditorDlg::argument1()
} else
if (actionType == QPEvents::ref()->fullActionName("action"))
{
- QString s = argument1Combo->currentText();
- for (QMap<QString, QString>::ConstIterator it = m_otherActions.constBegin(); it != m_otherActions.constEnd(); ++it)
+ TQString s = argument1Combo->currentText();
+ for (TQMap<TQString, TQString>::ConstIterator it = m_otherActions.constBegin(); it != m_otherActions.constEnd(); ++it)
{
if (it.data() == s)
{
@@ -126,14 +126,14 @@ QString EventEditorDlg::argument1()
return s;
}
- return QString::null;
+ return TQString::null;
}
-QString EventEditorDlg::argument2()
+TQString EventEditorDlg::argument2()
{
if (argument2Combo->isEnabled())
{
- QString actionType = actionCombo->currentText();
+ TQString actionType = actionCombo->currentText();
if (actionType == QPEvents::ref()->fullActionName("log"))
{
int id = argument2Combo->currentItem();
@@ -152,14 +152,14 @@ QString EventEditorDlg::argument2()
}
return argument2Combo->currentText();
} else
- return QString::null;
+ return TQString::null;
}
-QString EventEditorDlg::argument3()
+TQString EventEditorDlg::argument3()
{
if (argument3Combo->isEnabled())
{
- QString actionType = actionCombo->currentText();
+ TQString actionType = actionCombo->currentText();
if (actionType == QPEvents::ref()->fullActionName("log"))
{
int id = argument3Combo->currentItem();
@@ -170,24 +170,24 @@ QString EventEditorDlg::argument3()
}
return argument3Combo->currentText();
} else
- return QString::null;
+ return TQString::null;
}
-QString EventEditorDlg::argument4()
+TQString EventEditorDlg::argument4()
{
if (argument4Combo->isEnabled())
{
return argument4Combo->currentText();
} else
- return QString::null;
+ return TQString::null;
}
-void EventEditorDlg::setArguments(const QStringList& arguments)
+void EventEditorDlg::setArguments(const TQStringList& arguments)
{
- QString actionType = actionCombo->currentText();
+ TQString actionType = actionCombo->currentText();
if (actionType == QPEvents::ref()->fullActionName("email"))
{
- QString s = arguments[0];
+ TQString s = arguments[0];
if (s == "teamleader")
s = i18n(teamLeaderStr.utf8());
else
@@ -220,7 +220,7 @@ void EventEditorDlg::setArguments(const QStringList& arguments)
} else
if (actionType == QPEvents::ref()->fullActionName("script"))
{
- QString s = arguments[0];
+ TQString s = arguments[0];
if (m_scriptActions.contains(s))
s = m_scriptActions[s];
if (argument1Combo->contains(s))
@@ -248,7 +248,7 @@ void EventEditorDlg::setArguments(const QStringList& arguments)
} else
if (actionType == QPEvents::ref()->fullActionName("action"))
{
- QString s = arguments[0];
+ TQString s = arguments[0];
if (m_otherActions.contains(s))
s = m_otherActions[s];
if (argument1Combo->contains(s))
@@ -272,7 +272,7 @@ void EventEditorDlg::setArguments(const QStringList& arguments)
{
argument1Combo->insertItem(arguments[0], 0);
argument1Combo->setCurrentItem(0);
- QString s = arguments[1];
+ TQString s = arguments[1];
if (s == "full")
argument2Combo->setCurrentItem(0);
else if (s == "minimal")
@@ -296,17 +296,17 @@ void EventEditorDlg::setArguments(const QStringList& arguments)
argument4Combo->setCurrentItem(0);
}
-void EventEditorDlg::resetArgumentWidgets(QLabel *label, KComboBox *combo)
+void EventEditorDlg::resetArgumentWidgets(TQLabel *label, KComboBox *combo)
{
label->setText(i18n("Argument:"));
label->setEnabled(false);
combo->setEnabled(false);
combo->setEditable(true);
combo->clear();
- QToolTip::remove(combo);
+ TQToolTip::remove(combo);
}
-void EventEditorDlg::slotActionChanged(const QString &name)
+void EventEditorDlg::slotActionChanged(const TQString &name)
{
resetArgumentWidgets(argument1Label, argument1Combo);
resetArgumentWidgets(argument2Label, argument2Combo);
@@ -318,14 +318,14 @@ void EventEditorDlg::slotActionChanged(const QString &name)
argument1Label->setText(i18n("Receiver:"));
argument1Combo->setEnabled(true);
argument1Combo->insertItem(i18n(teamLeaderStr.utf8()));
- QValueList<SubProject> *subprojects = Project::ref()->subprojects();
+ TQValueList<SubProject> *subprojects = Project::ref()->subprojects();
for (uint i = 0; i < subprojects->count(); i++)
{
- QString s = (*subprojects)[i].name;
+ TQString s = (*subprojects)[i].name;
if (!Project::ref()->subprojectLeader(s).name.isEmpty())
argument1Combo->insertItem(i18n(subprojectLeaderStr.utf8()) + " - " + s);
}
- QStringList tasks = Project::ref()->tasks();
+ TQStringList tasks = Project::ref()->tasks();
for (uint i = 0; i < tasks.count(); i++)
{
argument1Combo->insertItem(i18n(taskLeaderStr.utf8()) + " - " + tasks[i]);
@@ -336,7 +336,7 @@ void EventEditorDlg::slotActionChanged(const QString &name)
argument1Label->setEnabled(true);
argument1Label->setText(i18n("Log file:"));
argument1Combo->setEnabled(true);
- QToolTip::add(argument1Combo, i18n("A relative file to the project folder or a file outside of the project folder in which case the full path must be specified."));
+ TQToolTip::add(argument1Combo, i18n("A relative file to the project folder or a file outside of the project folder in which case the full path must be specified."));
argument2Label->setEnabled(true);
argument2Label->setText(i18n("Detail:"));
argument2Combo->setEnabled(true);
@@ -355,9 +355,9 @@ void EventEditorDlg::slotActionChanged(const QString &name)
argument1Label->setEnabled(true);
argument1Label->setText(i18n("Action name:"));
TagAction *action = 0L;
- QString s;
- QStringList items;
- QRegExp r("\\&(?!\\&)");
+ TQString s;
+ TQStringList items;
+ TQRegExp r("\\&(?!\\&)");
for (uint i = 0; i < m_actionCollection->count(); i++)
{
action = dynamic_cast<TagAction*>(m_actionCollection->action(i));
@@ -383,9 +383,9 @@ void EventEditorDlg::slotActionChanged(const QString &name)
argument1Label->setEnabled(true);
argument1Label->setText(i18n("Action name:"));
TagAction *action = 0L;
- QString s;
- QRegExp r("\\&(?!\\&)");
- QStringList items;
+ TQString s;
+ TQRegExp r("\\&(?!\\&)");
+ TQStringList items;
for (uint i = 0; i < m_actionCollection->count(); i++)
{
KAction *a = m_actionCollection->action(i);
diff --git a/quanta/project/eventeditordlg.h b/quanta/project/eventeditordlg.h
index a8dd6842..86ef5d08 100644
--- a/quanta/project/eventeditordlg.h
+++ b/quanta/project/eventeditordlg.h
@@ -29,24 +29,24 @@ class EventEditorDlg : public EventEditorDlgS
Q_OBJECT
public:
- EventEditorDlg(KActionCollection *actionCollection, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ EventEditorDlg(KActionCollection *actionCollection, TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~EventEditorDlg();
- void setEvent(const QString &name);
- void setAction(const QString &name);
- void setArguments(const QStringList& arguments);
- QString argument1();
- QString argument2();
- QString argument3();
- QString argument4();
+ void setEvent(const TQString &name);
+ void setAction(const TQString &name);
+ void setArguments(const TQStringList& arguments);
+ TQString argument1();
+ TQString argument2();
+ TQString argument3();
+ TQString argument4();
public slots:
- void slotActionChanged(const QString &name);
+ void slotActionChanged(const TQString &name);
protected:
- void resetArgumentWidgets(QLabel *label, KComboBox *combo);
+ void resetArgumentWidgets(TQLabel *label, KComboBox *combo);
- QMap<QString, QString> m_scriptActions;
- QMap<QString, QString> m_otherActions;
+ TQMap<TQString, TQString> m_scriptActions;
+ TQMap<TQString, TQString> m_otherActions;
KActionCollection *m_actionCollection;
protected slots:
diff --git a/quanta/project/membereditdlg.cpp b/quanta/project/membereditdlg.cpp
index 6e47d044..1b27d354 100644
--- a/quanta/project/membereditdlg.cpp
+++ b/quanta/project/membereditdlg.cpp
@@ -14,7 +14,7 @@
* *
***************************************************************************/
//qt includes
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
//kde includes
#include <kcombobox.h>
@@ -32,28 +32,28 @@
#include "subprojecteditdlgs.h"
#include "project.h"
-QString simpleMemberStr = I18N_NOOP("Simple Member");
-QString taskLeaderStr = I18N_NOOP("Task Leader");
-QString teamLeaderStr = I18N_NOOP("Team Leader");
-QString subprojectLeaderStr = I18N_NOOP("Subproject Leader");
+TQString simpleMemberStr = I18N_NOOP("Simple Member");
+TQString taskLeaderStr = I18N_NOOP("Task Leader");
+TQString teamLeaderStr = I18N_NOOP("Team Leader");
+TQString subprojectLeaderStr = I18N_NOOP("Subproject Leader");
-MemberEditDlg::MemberEditDlg(QWidget *parent, const char *name)
+MemberEditDlg::MemberEditDlg(TQWidget *parent, const char *name)
: MemberEditDlgS(parent, name)
{
- QValueList<SubProject> *subprojects = Project::ref()->subprojects();
- for (QValueList<SubProject>::ConstIterator it = subprojects->constBegin(); it != subprojects->constEnd(); ++it)
+ TQValueList<SubProject> *subprojects = Project::ref()->subprojects();
+ for (TQValueList<SubProject>::ConstIterator it = subprojects->constBegin(); it != subprojects->constEnd(); ++it)
subprojectCombo->insertItem((*it).name);
subprojectCombo->setEnabled(false);
editSubprojectsButton->setEnabled(false);
- QMap<QString, TeamMember> members = Project::ref()->allMembers();
- QStringList items;
- for (QMap<QString, TeamMember>::ConstIterator it = members.constBegin(); it != members.constEnd(); ++it)
+ TQMap<TQString, TeamMember> members = Project::ref()->allMembers();
+ TQStringList items;
+ for (TQMap<TQString, TeamMember>::ConstIterator it = members.constBegin(); it != members.constEnd(); ++it)
{
nameCombo->insertItem(it.key());
}
- nameCombo->insertItem(QString::null, 0);
+ nameCombo->insertItem(TQString::null, 0);
roleCombo->insertItem(i18n(teamLeaderStr.utf8()));
roleCombo->insertItem(i18n(subprojectLeaderStr.utf8()));
@@ -67,7 +67,7 @@ MemberEditDlg::~MemberEditDlg()
{
}
-void MemberEditDlg::slotRoleSelected(const QString &roleName)
+void MemberEditDlg::slotRoleSelected(const TQString &roleName)
{
if (roleName != i18n(subprojectLeaderStr.utf8()))
{
@@ -85,7 +85,7 @@ void MemberEditDlg::slotEditSubprojects()
KDialogBase editDlg(this, "edit_subprojects", true, i18n("Edit Subprojects"), KDialogBase::Ok | KDialogBase::Cancel);
SubprojectEditDlgS subprojectDlg(&editDlg);
editDlg.setMainWidget(&subprojectDlg);
- QValueList<SubProject> *subprojects = Project::ref()->subprojects();
+ TQValueList<SubProject> *subprojects = Project::ref()->subprojects();
int idx = 0;
SubProject subProject;
for (uint i = 0; i < subprojects->count(); i++)
@@ -103,7 +103,7 @@ void MemberEditDlg::slotEditSubprojects()
subprojectDlg.createNew->setChecked(true);
if (editDlg.exec())
{
- QString oldName = subProject.name;
+ TQString oldName = subProject.name;
subProject.name = subprojectDlg.nameEdit->text();
subProject.location = subprojectDlg.locationEdit->text();
if (subprojectDlg.createNew->isChecked() && (subProject.name != oldName))
@@ -121,15 +121,15 @@ void MemberEditDlg::slotEditSubprojects()
void MemberEditDlg::slotMemberSelected()
{
- QString name = nameCombo->currentText();
- QMap<QString, TeamMember> members = Project::ref()->allMembers();
+ TQString name = nameCombo->currentText();
+ TQMap<TQString, TeamMember> members = Project::ref()->allMembers();
if (members.contains(name))
{
emailEdit->setText(members[name].email);
}
}
-void MemberEditDlg::selectMember(const QString &name)
+void MemberEditDlg::selectMember(const TQString &name)
{
bool found = false;
for (int i = 0; i < nameCombo->count(); i++)
@@ -150,9 +150,9 @@ void MemberEditDlg::selectMember(const QString &name)
void MemberEditDlg::slotSelectFromAddrBook()
{
- QMap<QString, QString> uidMap;
- QString name;
- QStringList result;
+ TQMap<TQString, TQString> uidMap;
+ TQString name;
+ TQStringList result;
KABC::AddressBook *addressBook = KABC::StdAddressBook::self();
KABC::AddressBook::ConstIterator it;
KABC::AddressBook::ConstIterator end = addressBook->end();
diff --git a/quanta/project/membereditdlg.h b/quanta/project/membereditdlg.h
index 33669488..3c6c94a8 100644
--- a/quanta/project/membereditdlg.h
+++ b/quanta/project/membereditdlg.h
@@ -26,12 +26,12 @@ class MemberEditDlg : public MemberEditDlgS
{
Q_OBJECT
public:
- MemberEditDlg(QWidget *parent = 0, const char *name = 0);
+ MemberEditDlg(TQWidget *parent = 0, const char *name = 0);
~MemberEditDlg();
- void selectMember(const QString &name);
+ void selectMember(const TQString &name);
public slots:
- void slotRoleSelected(const QString& roleName);
+ void slotRoleSelected(const TQString& roleName);
void slotEditSubprojects();
void slotMemberSelected();
void slotSelectFromAddrBook();
diff --git a/quanta/project/project.cpp b/quanta/project/project.cpp
index 3601e628..abe47943 100644
--- a/quanta/project/project.cpp
+++ b/quanta/project/project.cpp
@@ -22,9 +22,9 @@
#include <unistd.h>
// include QT files
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
// include files for KDE
#include <kactionclasses.h>
@@ -63,16 +63,16 @@
#include "viewmanager.h"
#include "qpevents.h"
-extern QString simpleMemberStr;
-extern QString taskLeaderStr;
-extern QString teamLeaderStr;
-extern QString subprojectLeaderStr;
+extern TQString simpleMemberStr;
+extern TQString taskLeaderStr;
+extern TQString teamLeaderStr;
+extern TQString subprojectLeaderStr;
Project::Project(KMainWindow *parent)
- : QObject()
+ : TQObject()
{
d = new ProjectPrivate(this);
- connect(d, SIGNAL(eventHappened(const QString&, const QString&, const QString& )), this, SIGNAL(eventHappened(const QString&, const QString&, const QString& )));
+ connect(d, TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )), this, TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )));
d->m_mainWindow = parent;
d->m_uploadDialog = 0L;
keepPasswd = true;
@@ -86,9 +86,9 @@ Project::~Project()
}
-QStringList Project::fileNameList()
+TQStringList Project::fileNameList()
{
- QStringList list;
+ TQStringList list;
ProjectList::Iterator it( d->m_projectFiles );
for ( ; it.current(); ++it) {
if (! it.current()->fileName(false).isEmpty())
@@ -124,15 +124,15 @@ void Project::insertFile(const KURL& nameURL, bool repaint )
KURL destination = urlRequesterDlg->selectedURL();
if (destination.isLocalFile())
{
- QDir dir(destination.path());
+ TQDir dir(destination.path());
destination.setPath(dir.canonicalPath());
}
delete urlRequesterDlg;
if ( !destination.isEmpty() )
{
CopyTo *dlg = new CopyTo(d->baseURL);
- connect(dlg, SIGNAL(deleteDialog(CopyTo*)), d,
- SLOT(slotDeleteCopytoDlg(CopyTo*)));
+ connect(dlg, TQT_SIGNAL(deleteDialog(CopyTo*)), d,
+ TQT_SLOT(slotDeleteCopytoDlg(CopyTo*)));
url = dlg->copy( nameURL, destination );
}
else // Copy canceled, addition aborted
@@ -140,7 +140,7 @@ void Project::insertFile(const KURL& nameURL, bool repaint )
return;
}
}
- QDomElement el;
+ TQDomElement el;
while ( d->baseURL.isParentOf(url) )
{
if ( !d->m_projectFiles.contains(url) )
@@ -157,11 +157,11 @@ void Project::insertFile(const KURL& nameURL, bool repaint )
}
url.setPath(url.directory(false));
}
- emit eventHappened("after_project_add", url.url(), QString::null);
+ emit eventHappened("after_project_add", url.url(), TQString::null);
setModified();
if ( repaint )
{
- emit reloadTree( &(d->m_projectFiles), false, QStringList());
+ emit reloadTree( &(d->m_projectFiles), false, TQStringList());
emit newStatus();
}
}
@@ -181,33 +181,33 @@ void Project::readConfig(KConfig *config)
void Project::loadLastProject(bool reload)
{
d->config->setGroup("Projects");
- QStringList projectList = QuantaCommon::readPathListEntry(d->config, "OpenProjects");
- QStringList tempList = QuantaCommon::readPathListEntry(d->config, "ProjectTempFiles");
- QStringList sessionTempList = QuantaCommon::readPathListEntry(d->config, "ProjectSessionTempFiles");
+ TQStringList projectList = QuantaCommon::readPathListEntry(d->config, "OpenProjects");
+ TQStringList tempList = QuantaCommon::readPathListEntry(d->config, "ProjectTempFiles");
+ TQStringList sessionTempList = QuantaCommon::readPathListEntry(d->config, "ProjectSessionTempFiles");
// remove all local open projects because project and temp file are the same
for (uint i = 0; i < projectList.count(); ++i)
{
if (KURL::fromPathOrURL( projectList[i] ).isLocalFile())
{
projectList.remove( projectList.at(i) );
- QStringList::Iterator it = tempList.at(i);
+ TQStringList::Iterator it = tempList.at(i);
if (it != tempList.end())
tempList.remove(it);
- QStringList::Iterator it2 = sessionTempList.at(i);
+ TQStringList::Iterator it2 = sessionTempList.at(i);
if (it2 != sessionTempList.end())
sessionTempList.remove(it2);
--i;
}
}
- QString urlPath;
+ TQString urlPath;
KURL url;
// have we still a project left ?
while (projectList.count() > 0)
{
urlPath = projectList[0];
QuantaCommon::setUrl(url, urlPath);
- QString tempPath = tempList[0];
- QString sessionTempPath = sessionTempList[0];
+ TQString tempPath = tempList[0];
+ TQString sessionTempPath = sessionTempList[0];
// test if the remote project is available
if ( KIO::NetAccess::exists(url, false, d->m_mainWindow) )
{
@@ -262,7 +262,7 @@ void Project::slotOpenProject(const KURL &url)
{
emit hideSplash();
if (KMessageBox::questionYesNo(d->m_mainWindow,
- i18n("<qt>The file <b>%1</b> does not exist.<br> Do you want to remove it from the list?</qt>").arg(url.prettyURL(0, KURL::StripFileProtocol)), QString::null, KStdGuiItem::del(), i18n("Keep") )
+ i18n("<qt>The file <b>%1</b> does not exist.<br> Do you want to remove it from the list?</qt>").arg(url.prettyURL(0, KURL::StripFileProtocol)), TQString::null, KStdGuiItem::del(), i18n("Keep") )
== KMessageBox::Yes)
{
d->m_projectRecent->removeURL(url);
@@ -271,7 +271,7 @@ void Project::slotOpenProject(const KURL &url)
} else
{
d->loadProject ( url );
- emit eventHappened("after_project_open", url.url(), QString::null);
+ emit eventHappened("after_project_open", url.url(), TQString::null);
}
}
}
@@ -307,10 +307,10 @@ void Project::slotAddDirectory(const KURL& p_dirURL, bool showDlg)
(!destination.isEmpty()) )
{
CopyTo *dlg = new CopyTo(d->baseURL);
- connect(dlg, SIGNAL(addFilesToProject(const KURL::List&)),
- SLOT (slotInsertFilesAfterCopying(const KURL::List&)));
- connect(dlg, SIGNAL(deleteDialog(CopyTo *)), d,
- SLOT (slotDeleteCopytoDlg(CopyTo *)));
+ connect(dlg, TQT_SIGNAL(addFilesToProject(const KURL::List&)),
+ TQT_SLOT (slotInsertFilesAfterCopying(const KURL::List&)));
+ connect(dlg, TQT_SIGNAL(deleteDialog(CopyTo *)), d,
+ TQT_SLOT (slotDeleteCopytoDlg(CopyTo *)));
//if ( rdir.right(1) == "/" ) rdir.remove( rdir.length()-1,1);
dirURL = dlg->copy(dirURL, destination);
return;
@@ -324,7 +324,7 @@ void Project::slotAddDirectory(const KURL& p_dirURL, bool showDlg)
//And again, insert now directly the directory name into the project.
//It's important if rdir doesn't contain any files or subdirectories.
d->insertFiles(dirURL);
- emit reloadTree( &(d->m_projectFiles), false, QStringList() );
+ emit reloadTree( &(d->m_projectFiles), false, TQStringList() );
}
}
@@ -338,7 +338,7 @@ void Project::slotInsertFilesAfterCopying(const KURL::List& a_urlList)
//url.adjustPath(1);
d->insertFiles( url, "*" );
}
- emit reloadTree( &(d->m_projectFiles), false, QStringList() );
+ emit reloadTree( &(d->m_projectFiles), false, TQStringList() );
}
//rename the elements in the project dom tree
@@ -356,7 +356,7 @@ void Project::slotRenamed(const KURL& oldURL, const KURL& newURL)
progressBar->setValue(0);
progressBar->setTextEnabled(true);
- QDomElement el;
+ TQDomElement el;
bool isFolder = oldURL.fileName(false).isEmpty();
ProjectList::Iterator it( d->m_projectFiles );
for ( ; it.current(); ++it)
@@ -379,11 +379,11 @@ void Project::slotRenamed(const KURL& oldURL, const KURL& newURL)
progressBar->setValue(0);
progressBar->setTextEnabled(false);
- emit statusMsg(QString::null);
+ emit statusMsg(TQString::null);
if (d->m_modified)
setModified(); // there happens more than setting the flag !
- emit reloadTree(&(d->m_projectFiles), false, QStringList());
+ emit reloadTree(&(d->m_projectFiles), false, TQStringList());
emit newStatus();
}
@@ -406,7 +406,7 @@ void Project::slotRemove(const KURL& urlToRemove)
{
d->m_projectFiles.removeFromListAndXML(url);
d->m_modified = true;
- emit eventHappened("after_project_remove", url.url(), QString::null);
+ emit eventHappened("after_project_remove", url.url(), TQString::null);
if (!isFolder)
break;
}
@@ -417,26 +417,26 @@ void Project::slotRemove(const KURL& urlToRemove)
progressBar->setValue(0);
progressBar->setTextEnabled(false);
- emit statusMsg(QString::null);
+ emit statusMsg(TQString::null);
if (d->m_modified)
setModified(); // there happens more than setting the flag !
- emit reloadTree( &(d->m_projectFiles), false, QStringList() );
+ emit reloadTree( &(d->m_projectFiles), false, TQStringList() );
emit newStatus();
- QString urlPath = QExtFileInfo::toRelative(urlToRemove, d->baseURL).path();
- QString nice = urlPath;
+ TQString urlPath = QExtFileInfo::toRelative(urlToRemove, d->baseURL).path();
+ TQString nice = urlPath;
nice = KStringHandler::lsqueeze(nice, 60);
if (KMessageBox::warningContinueCancel(d->m_mainWindow, i18n("<qt>Do you want to remove <br><b>%1</b><br> from the server(s) as well?</qt>").arg(nice), i18n("Remove From Server"), KStdGuiItem::remove(), "RemoveFromServer") == KMessageBox::Continue )
{
- QDomNode profilesNode = d->m_sessionDom.firstChild().firstChild().namedItem("uploadprofiles");
- QDomNodeList profileList = profilesNode.toElement().elementsByTagName("profile");
- QDomElement e;
- QString s;
+ TQDomNode profilesNode = d->m_sessionDom.firstChild().firstChild().namedItem("uploadprofiles");
+ TQDomNodeList profileList = profilesNode.toElement().elementsByTagName("profile");
+ TQDomElement e;
+ TQString s;
for (uint i = 0; i < profileList.count(); i++)
{
e = profileList.item(i).toElement();
- QString path = e.attribute("remote_path","");
+ TQString path = e.attribute("remote_path","");
if (!path.startsWith("/"))
path.prepend("/");
KURL baseUrl;
@@ -445,7 +445,7 @@ void Project::slotRemove(const KURL& urlToRemove)
baseUrl.setHost(e.attribute("remote_host",""));
baseUrl.setPath(path);
baseUrl.setUser(e.attribute("user",""));
- QString passwd = password(e.attribute("remote_protocol") + "://" + e.attribute("user") + "@" + e.attribute("remote_host"));
+ TQString passwd = password(e.attribute("remote_protocol") + "://" + e.attribute("user") + "@" + e.attribute("remote_host"));
baseUrl.setPass(passwd);
baseUrl.addPath(urlPath);
KIO::NetAccess::del(baseUrl, d->m_mainWindow);
@@ -462,9 +462,9 @@ void Project::slotOptions()
// optionsDlg.setMainWidget(&optionsPage);
//add the main options page
- QFrame *page = optionsDlg.addPage(i18n("Options"));
+ TQFrame *page = optionsDlg.addPage(i18n("Options"));
ProjectOptions optionsPage(page);
- QVBoxLayout *topLayout = new QVBoxLayout( page, 0, KDialog::spacingHint() );
+ TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, KDialog::spacingHint() );
topLayout->addWidget(&optionsPage);
optionsPage.linePrjName->setText( d->projectName );
@@ -477,10 +477,10 @@ void Project::slotOptions()
optionsPage.lineEmail->setText( d->email );
// Signals to handle debugger settings
- connect(optionsPage.buttonDebuggerOptions, SIGNAL(clicked()),
- d, SLOT(slotDebuggerOptions()));
- connect(optionsPage.comboDebuggerClient, SIGNAL(activated(const QString &)),
- d, SLOT(slotDebuggerChanged(const QString &)));
+ connect(optionsPage.buttonDebuggerOptions, TQT_SIGNAL(clicked()),
+ d, TQT_SLOT(slotDebuggerOptions()));
+ connect(optionsPage.comboDebuggerClient, TQT_SIGNAL(activated(const TQString &)),
+ d, TQT_SLOT(slotDebuggerChanged(const TQString &)));
// Debuggers Combo
@@ -505,7 +505,7 @@ void Project::slotOptions()
optionsPage.checkDebuggerPersistentBreakpoints->setChecked(d->m_debuggerPersistentBreakpoints);
optionsPage.checkDebuggerPersistentWatches->setChecked(d->m_debuggerPersistentWatches);
- QString excludeStr;
+ TQString excludeStr;
for (uint i = 0; i < d->excludeList.count(); i++)
{
excludeStr.append(d->excludeList[i]);
@@ -515,7 +515,7 @@ void Project::slotOptions()
optionsPage.checkCvsignore->setChecked(d->m_excludeCvsignore);
optionsPage.linePrefix->setText(d->previewPrefix.prettyURL());
- QStringList lst = DTDs::ref()->nickNameList(true);
+ TQStringList lst = DTDs::ref()->nickNameList(true);
uint pos = 0;
for (uint i = 0; i < lst.count(); i++)
{
@@ -526,9 +526,9 @@ void Project::slotOptions()
optionsPage.dtdCombo->setCurrentItem(pos);
- QStringList availableEncodingNames(KGlobal::charsets()->availableEncodingNames());
+ TQStringList availableEncodingNames(KGlobal::charsets()->availableEncodingNames());
optionsPage.encodingCombo->insertStringList( availableEncodingNames );
- QStringList::ConstIterator iter;
+ TQStringList::ConstIterator iter;
int iIndex = -1;
for (iter = availableEncodingNames.begin(); iter != availableEncodingNames.end(); ++iter)
{
@@ -541,8 +541,8 @@ void Project::slotOptions()
}
- QStringList list = d->projectViewList();
- QString defaultView = d->dom.firstChild().firstChild().namedItem("autoload").toElement().attribute("projectview");
+ TQStringList list = d->projectViewList();
+ TQString defaultView = d->dom.firstChild().firstChild().namedItem("autoload").toElement().attribute("projectview");
if (list.count() > 0)
{
optionsPage.viewCombo->insertStringList(list);
@@ -566,39 +566,39 @@ void Project::slotOptions()
//add upload profiles page
page = optionsDlg.addPage(i18n("Up&load Profiles"));
UploadProfilesPage uploadProfilesPage(page);
- topLayout = new QVBoxLayout( page, 0, KDialog::spacingHint() );
+ topLayout = new TQVBoxLayout( page, 0, KDialog::spacingHint() );
topLayout->addWidget(&uploadProfilesPage);
- QDomElement uploadEl = d->m_sessionDom.firstChild().firstChild().namedItem("uploadprofiles").toElement();
+ TQDomElement uploadEl = d->m_sessionDom.firstChild().firstChild().namedItem("uploadprofiles").toElement();
uploadProfilesPage.profileLabel->setText(uploadEl.attribute("defaultProfile"));
uploadProfilesPage.checkShowUploadTreeviews->setChecked(d->m_showUploadTreeviews);
//add the team members page
page = optionsDlg.addPage(i18n("Team Configuration"));
TeamMembersDlg membersPage(page);
- topLayout = new QVBoxLayout( page, 0, KDialog::spacingHint() );
+ topLayout = new TQVBoxLayout( page, 0, KDialog::spacingHint() );
topLayout->addWidget(&membersPage);
- QListViewItem *item;
+ TQListViewItem *item;
if (!teamLeader().name.isEmpty())
{
TeamMember member = teamLeader();
- item = new QListViewItem(membersPage.membersListView, member.name, member.nickName, member.email, i18n("Team Leader"), member.task);
+ item = new TQListViewItem(membersPage.membersListView, member.name, member.nickName, member.email, i18n("Team Leader"), member.task);
membersPage.membersListView->insertItem(item);
}
- for (QMap<QString, TeamMember>::ConstIterator it = d->m_subprojectLeaders.constBegin(); it != d->m_subprojectLeaders.constEnd(); ++it)
+ for (TQMap<TQString, TeamMember>::ConstIterator it = d->m_subprojectLeaders.constBegin(); it != d->m_subprojectLeaders.constEnd(); ++it)
{
TeamMember member = it.data();
- item = new QListViewItem(membersPage.membersListView, member.name, member.nickName, member.email, i18n("Subproject Leader"), member.task, it.key());
+ item = new TQListViewItem(membersPage.membersListView, member.name, member.nickName, member.email, i18n("Subproject Leader"), member.task, it.key());
}
- for (QMap<QString, TeamMember>::ConstIterator it = d->m_taskLeaders.constBegin(); it != d->m_taskLeaders.constEnd(); ++it)
+ for (TQMap<TQString, TeamMember>::ConstIterator it = d->m_taskLeaders.constBegin(); it != d->m_taskLeaders.constEnd(); ++it)
{
TeamMember member = it.data();
- item = new QListViewItem(membersPage.membersListView, member.name, member.nickName, member.email, i18n("Task Leader"), it.key());
+ item = new TQListViewItem(membersPage.membersListView, member.name, member.nickName, member.email, i18n("Task Leader"), it.key());
}
- for (QValueList<TeamMember>::ConstIterator it = d->m_simpleMembers.constBegin(); it != d->m_simpleMembers.constEnd(); ++it)
+ for (TQValueList<TeamMember>::ConstIterator it = d->m_simpleMembers.constBegin(); it != d->m_simpleMembers.constEnd(); ++it)
{
TeamMember member = *it;
- item = new QListViewItem(membersPage.membersListView, member.name, member.nickName, member.email, i18n("Simple Member"), member.task);
+ item = new TQListViewItem(membersPage.membersListView, member.name, member.nickName, member.email, i18n("Simple Member"), member.task);
}
membersPage.mailingListEdit->setText(d->m_mailingList);
membersPage.setYourself(d->m_yourself);
@@ -606,7 +606,7 @@ void Project::slotOptions()
//add the event configuration page
page = optionsDlg.addPage(i18n("Event Configuration"));
EventConfigurationDlg eventsPage(d->m_mainWindow->actionCollection(), page);
- topLayout = new QVBoxLayout( page, 0, KDialog::spacingHint() );
+ topLayout = new TQVBoxLayout( page, 0, KDialog::spacingHint() );
topLayout->addWidget(&eventsPage);
eventsPage.initEvents(d->m_events);
eventsPage.enableEventsBox->setChecked(d->m_eventsEnabled);
@@ -645,8 +645,8 @@ void Project::slotOptions()
d->usePreviewPrefix = optionsPage.checkPrefix->isChecked();
d->m_persistentBookmarks = optionsPage.checkPersistentBookmarks->isChecked();
- QDomNode projectNode = d->dom.firstChild().firstChild();
- QDomElement el;
+ TQDomNode projectNode = d->dom.firstChild().firstChild();
+ TQDomElement el;
el = projectNode.toElement();
el.setAttribute("name",d->projectName);
@@ -747,24 +747,24 @@ void Project::slotOptions()
}
uploadEl.setAttribute("showtreeviews", uploadProfilesPage.checkShowUploadTreeviews->isChecked() ? "true" : "false");
- QDomNode teamNode = projectNode.namedItem("teamdata");
+ TQDomNode teamNode = projectNode.namedItem("teamdata");
if (!teamNode.isNull())
projectNode.removeChild(teamNode);
teamNode = d->dom.createElement("teamdata");
- QDomNode taskLeadersNode = d->dom.createElement("taskleaders");
+ TQDomNode taskLeadersNode = d->dom.createElement("taskleaders");
teamNode.appendChild(taskLeadersNode);
- QDomNode subLeadersNode = d->dom.createElement("subprojectleaders");
+ TQDomNode subLeadersNode = d->dom.createElement("subprojectleaders");
teamNode.appendChild(subLeadersNode);
- QListViewItemIterator it(membersPage.membersListView);
- QListViewItem *item;
- QStringList savedSubprojects;
+ TQListViewItemIterator it(membersPage.membersListView);
+ TQListViewItem *item;
+ TQStringList savedSubprojects;
while (it.current())
{
item = it.current();
- QString role = item->text(3);
+ TQString role = item->text(3);
if (role == i18n(teamLeaderStr.utf8()))
{
- QDomElement leaderEl = d->dom.createElement("leader");
+ TQDomElement leaderEl = d->dom.createElement("leader");
teamNode.appendChild(leaderEl);
el = d->dom.createElement("name");
leaderEl.appendChild(el);
@@ -778,9 +778,9 @@ void Project::slotOptions()
} else
if (role == i18n(subprojectLeaderStr.utf8()))
{
- QString prjName = item->text(5);
+ TQString prjName = item->text(5);
savedSubprojects.append(prjName);
- QDomElement subEl = d->dom.createElement("subproject");
+ TQDomElement subEl = d->dom.createElement("subproject");
for (uint i = 0; i < d->m_subprojects.count(); i++)
{
if (d->m_subprojects[i].name == prjName)
@@ -808,7 +808,7 @@ void Project::slotOptions()
} else
if (role == i18n(simpleMemberStr.utf8()))
{
- QDomElement memberEl = d->dom.createElement("member");
+ TQDomElement memberEl = d->dom.createElement("member");
memberEl.setAttribute("task", item->text(4));
teamNode.appendChild(memberEl);
el = d->dom.createElement("name");
@@ -863,13 +863,13 @@ void Project::slotUpload()
if (!d->m_uploadDialog)
{
d->m_uploadDialog = new ProjectUpload(KURL(), "", false, false, false, i18n("Upload project items..."));
- connect(d->m_uploadDialog, SIGNAL(eventHappened(const QString&, const QString&, const QString& )), this, SIGNAL(eventHappened(const QString&, const QString&, const QString& )));
+ connect(d->m_uploadDialog, TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )), this, TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )));
d->m_uploadDialog->show();
} else
d->m_uploadDialog->raise();
}
-void Project::slotUploadURL(const KURL& urlToUpload, const QString& profileName, bool quickUpload, bool markOnly)
+void Project::slotUploadURL(const KURL& urlToUpload, const TQString& profileName, bool quickUpload, bool markOnly)
{
if (!ViewManager::ref()->saveAll())
return;
@@ -878,14 +878,14 @@ void Project::slotUploadURL(const KURL& urlToUpload, const QString& profileName,
if (!d->m_uploadDialog)
{
d->m_uploadDialog = new ProjectUpload(url, profileName, false, quickUpload, markOnly, i18n("Upload project items..."));
- connect(d->m_uploadDialog, SIGNAL(eventHappened(const QString&, const QString&, const QString& )), this, SIGNAL(eventHappened(const QString&, const QString&, const QString& )));
+ connect(d->m_uploadDialog, TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )), this, TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )));
d->m_uploadDialog->show();
} else
d->m_uploadDialog->raise();
}
-void Project::slotGetMessages(const QString& data)
+void Project::slotGetMessages(const TQString& data)
{
emit messages(data);
}
@@ -898,7 +898,7 @@ void Project::slotRescanPrjDir()
{
d->insertFiles(dlg->files());
setModified();
- emit reloadTree(&(d->m_projectFiles), false, QStringList());
+ emit reloadTree(&(d->m_projectFiles), false, TQStringList());
}
delete dlg;
}
@@ -928,13 +928,13 @@ bool Project::contains(const KURL& url)
return d->m_projectFiles.contains(url);
}
-void Project::slotFileDescChanged(const KURL& url, const QString& desc)
+void Project::slotFileDescChanged(const KURL& url, const TQString& desc)
{
ProjectURL *proUrl = d->m_projectFiles.find(url);
if (! proUrl)
return;
- QDomElement el = proUrl->domElement;
+ TQDomElement el = proUrl->domElement;
el.setAttribute("desc", desc);
proUrl->fileDesc = desc;
setModified();
@@ -945,8 +945,8 @@ void Project::slotUploadStatusChanged(const KURL& url, int status)
if (! d->m_projectFiles.contains(url))
return;
- QDomElement el;
- QString urlStr = url.url();
+ TQDomElement el;
+ TQString urlStr = url.url();
ProjectList::Iterator it( d->m_projectFiles );
for ( ; it.current(); ++it)
{
@@ -966,7 +966,7 @@ void Project::slotChangeDocumentFolderStatus(const KURL &url, bool status)
if (! proUrl)
return;
- QDomElement el = proUrl->domElement;
+ TQDomElement el = proUrl->domElement;
el.setAttribute("documentFolder", (status ? "true" : "false"));
proUrl->documentFolder = status;
setModified();
@@ -994,7 +994,7 @@ KURL Project::projectBaseURL()
return result;
}
-void Project::savePassword(const QString &entry, const QString &passwd, bool store)
+void Project::savePassword(const TQString &entry, const TQString &passwd, bool store)
{
d->m_passwdList[entry] = passwd;
KConfig *config = kapp->config();
@@ -1011,7 +1011,7 @@ void Project::savePassword(const QString &entry, const QString &passwd, bool sto
config->sync();
}
-QString Project::password(const QString &entry)
+TQString Project::password(const TQString &entry)
{
if (d->m_passwdList.contains(entry))
return d->m_passwdList[entry];
@@ -1019,18 +1019,18 @@ QString Project::password(const QString &entry)
{
KConfig *config = kapp->config();
config->setGroup("Projects");
- QString passwd = KStringHandler::obscure(config->readEntry(d->projectName + " | " + entry,""));
-// QString passwd = config->readEntry(d->projectName + " | " + entry,"");
+ TQString passwd = KStringHandler::obscure(config->readEntry(d->projectName + " | " + entry,""));
+// TQString passwd = config->readEntry(d->projectName + " | " + entry,"");
return passwd;
}
}
-bool Project::passwordSaved(const QString &entry)
+bool Project::passwordSaved(const TQString &entry)
{
KConfig *config = kapp->config();
config->setGroup("Projects");
- QString passwd = KStringHandler::obscure(config->readEntry(d->projectName + " | " + entry,""));
-// QString passwd = config->readEntry(d->projectName + " | " + entry,"");
+ TQString passwd = KStringHandler::obscure(config->readEntry(d->projectName + " | " + entry,""));
+// TQString passwd = config->readEntry(d->projectName + " | " + entry,"");
return !passwd.isEmpty();
}
@@ -1052,12 +1052,12 @@ void Project::slotReloadProjectDocs()
{
delete d->m_dirWatch;
d->m_dirWatch = new KDirWatch(this);
- connect(d->m_dirWatch, SIGNAL(dirty(const QString &)), SIGNAL(reloadProjectDocs()));
- connect(d->m_dirWatch, SIGNAL(deleted(const QString &)), SIGNAL(reloadProjectDocs()));
+ connect(d->m_dirWatch, TQT_SIGNAL(dirty(const TQString &)), TQT_SIGNAL(reloadProjectDocs()));
+ connect(d->m_dirWatch, TQT_SIGNAL(deleted(const TQString &)), TQT_SIGNAL(reloadProjectDocs()));
if (d->baseURL.isLocalFile())
d->m_dirWatch->addDir(d->baseURL.path() + "/doc");
KURL url;
- QString path;
+ TQString path;
ProjectList::Iterator it( d->m_projectFiles );
for ( ; it.current(); ++it) {
url = *(it.current());
@@ -1077,18 +1077,18 @@ bool Project::hasProject()
return !d->projectName.isNull();
}
-QString Project::projectName()
+TQString Project::projectName()
{
return d->projectName;
}
-const QString& Project::defaultDTD()
+const TQString& Project::defaultDTD()
{
return d->m_defaultDTD;
}
-const QString& Project::defaultEncoding()
+const TQString& Project::defaultEncoding()
{
return d->m_defaultEncoding;
}
@@ -1106,22 +1106,22 @@ KURL Project::templateURL()
}
-QString Project::email()
+TQString Project::email()
{
return d->email;
}
-QDomDocument* Project::dom()
+TQDomDocument* Project::dom()
{
return &d->dom;
}
-QDomDocument* Project::sessionDom()
+TQDomDocument* Project::sessionDom()
{
return &d->m_sessionDom;
}
-QString Project::debuggerClient()
+TQString Project::debuggerClient()
{
return d->debuggerClient;
}
@@ -1151,27 +1151,27 @@ EventActions* Project::events()
return 0L;
}
-QString Project::yourself()
+TQString Project::yourself()
{
return d->m_yourself;
}
-QStringList Project::yourRoles()
+TQStringList Project::yourRoles()
{
- QStringList roles;
+ TQStringList roles;
if (d->m_yourself.isEmpty())
return roles;
- QString yourNick = d->m_yourself.lower();
+ TQString yourNick = d->m_yourself.lower();
if (d->m_teamLeader.nickName.lower() == yourNick)
roles += "team leader";
- QValueList<SubProject>::ConstIterator end = d->m_subprojects.constEnd();
- for (QValueList<SubProject>::ConstIterator it = d->m_subprojects.constBegin(); it != end; ++it)
+ TQValueList<SubProject>::ConstIterator end = d->m_subprojects.constEnd();
+ for (TQValueList<SubProject>::ConstIterator it = d->m_subprojects.constBegin(); it != end; ++it)
{
if (subprojectLeader((*it).name).nickName.lower() == yourNick)
roles += "subproject leader:" + (*it).name.lower();
}
- for (QMap<QString, TeamMember>::ConstIterator it = d->m_taskLeaders.constBegin(); it != d->m_taskLeaders.constEnd(); ++it)
+ for (TQMap<TQString, TeamMember>::ConstIterator it = d->m_taskLeaders.constBegin(); it != d->m_taskLeaders.constEnd(); ++it)
{
if (it.data().nickName.lower() == yourNick)
roles += "task leader:" + it.key().lower();
@@ -1185,7 +1185,7 @@ TeamMember Project::teamLeader()
return d->m_teamLeader;
}
-TeamMember Project::subprojectLeader(const QString &name)
+TeamMember Project::subprojectLeader(const TQString &name)
{
if (d->m_subprojectLeaders.contains(name))
return d->m_subprojectLeaders[name];
@@ -1193,7 +1193,7 @@ TeamMember Project::subprojectLeader(const QString &name)
return TeamMember();
}
-TeamMember Project::taskLeader(const QString &name)
+TeamMember Project::taskLeader(const TQString &name)
{
if (d->m_taskLeaders.contains(name))
return d->m_taskLeaders[name];
@@ -1201,45 +1201,45 @@ TeamMember Project::taskLeader(const QString &name)
return TeamMember();
}
-QValueList<TeamMember> Project::simpleMembers()
+TQValueList<TeamMember> Project::simpleMembers()
{
return d->m_simpleMembers;
}
-QString Project::mailingList()
+TQString Project::mailingList()
{
return d->m_mailingList;
}
-QValueList<SubProject>* Project::subprojects()
+TQValueList<SubProject>* Project::subprojects()
{
return &d->m_subprojects;
}
-QStringList Project::tasks()
+TQStringList Project::tasks()
{
- QStringList result;
- for (QMap<QString, TeamMember>::ConstIterator it = d->m_taskLeaders.constBegin(); it != d->m_taskLeaders.constEnd(); ++it)
+ TQStringList result;
+ for (TQMap<TQString, TeamMember>::ConstIterator it = d->m_taskLeaders.constBegin(); it != d->m_taskLeaders.constEnd(); ++it)
{
result << it.key();
}
return result;
}
-QMap<QString, TeamMember> Project::allMembers()
+TQMap<TQString, TeamMember> Project::allMembers()
{
- QMap<QString, TeamMember> members;
- for (QValueList<TeamMember>::ConstIterator it = d->m_simpleMembers.constBegin(); it != d->m_simpleMembers.constEnd(); ++it)
+ TQMap<TQString, TeamMember> members;
+ for (TQValueList<TeamMember>::ConstIterator it = d->m_simpleMembers.constBegin(); it != d->m_simpleMembers.constEnd(); ++it)
{
members[(*it).name] = *it;
}
if (!d->m_teamLeader.name.isEmpty())
members[d->m_teamLeader.name] = d->m_teamLeader;
- for (QMap<QString, TeamMember>::ConstIterator it = d->m_subprojectLeaders.constBegin(); it != d->m_subprojectLeaders.constEnd(); ++it)
+ for (TQMap<TQString, TeamMember>::ConstIterator it = d->m_subprojectLeaders.constBegin(); it != d->m_subprojectLeaders.constEnd(); ++it)
{
members[it.data().name] = it.data();
}
- for (QMap<QString, TeamMember>::ConstIterator it = d->m_taskLeaders.constBegin(); it != d->m_taskLeaders.constEnd(); ++it)
+ for (TQMap<TQString, TeamMember>::ConstIterator it = d->m_taskLeaders.constBegin(); it != d->m_taskLeaders.constEnd(); ++it)
{
members[it.data().name] = it.data();
}
@@ -1257,7 +1257,7 @@ bool Project::queryClose()
bool canExit = true;
if (hasProject())
{
- emit eventHappened("before_project_close", d->baseURL.url(), QString::null);
+ emit eventHappened("before_project_close", d->baseURL.url(), TQString::null);
d->config->setGroup("Projects");
KURL url = d->projectURL.url();
url.setPass("");
@@ -1270,18 +1270,18 @@ bool Project::queryClose()
}
if (canExit)
{
- emit eventHappened("after_project_close", d->baseURL.url(), QString::null);
+ emit eventHappened("after_project_close", d->baseURL.url(), TQString::null);
// empty dom tree
d->dom.clear();
d->m_sessionDom.clear();
d->m_events->clear();
d->init();
newProjectLoaded(d->projectName, d->baseURL, d->templateURL);
- reloadTree( &(d->m_projectFiles), true, QStringList());
+ reloadTree( &(d->m_projectFiles), true, TQStringList());
d->adjustActions();
d->m_projectRecent->setCurrentItem(-1);
newStatus();
-// kapp->processEvents(QEventLoop::ExcludeUserInput | QEventLoop::ExcludeSocketNotifiers);
+// kapp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers);
}
}
return canExit;
@@ -1296,7 +1296,7 @@ void Project::slotShowProjectToolbar(bool show)
{
if (d->m_mainWindow && d->m_mainWindow->factory())
{
- QWidget *w = d->m_mainWindow->factory()->container("project_toolbar", d->m_mainWindow);
+ TQWidget *w = d->m_mainWindow->factory()->container("project_toolbar", d->m_mainWindow);
if (w)
{
if (show && m_projectToolbarVisible)
@@ -1315,16 +1315,16 @@ void Project::loadBookmarks(const KURL &url, KTextEditor::MarkInterface *markIf)
{
if (!markIf || !hasProject() || !contains(url) || !d->m_persistentBookmarks)
return;
- QDomNodeList nl = d->dom.elementsByTagName("item");
- QDomElement el;
+ TQDomNodeList nl = d->dom.elementsByTagName("item");
+ TQDomElement el;
KURL u = QExtFileInfo::toRelative(url, d->baseURL);
for ( uint i = 0; i < nl.count(); i++ )
{
el = nl.item(i).toElement();
if ( el.attribute("url") == QuantaCommon::qUrl(u) )
{
- QString markListStr = el.attribute("bookmarks");
- QStringList markList = QStringList::split(",", markListStr);
+ TQString markListStr = el.attribute("bookmarks");
+ TQStringList markList = TQStringList::split(",", markListStr);
for (uint j = 0; j < markList.count(); j++)
{
int line = markList[j].toInt();
@@ -1339,16 +1339,16 @@ void Project::saveBookmarks(const KURL &url, KTextEditor::MarkInterface *markIf)
{
if (!markIf || !hasProject() || !contains(url) || !d->m_persistentBookmarks)
return;
- QStringList markList;
- QPtrList<KTextEditor::Mark> marks = markIf->marks();
+ TQStringList markList;
+ TQPtrList<KTextEditor::Mark> marks = markIf->marks();
for (uint i = 0; i < marks.count(); i++)
{
KTextEditor::Mark *mark = marks.at(i);
if (mark->type == KTextEditor::MarkInterface::Bookmark)
- markList << QString("%1").arg(mark->line);
+ markList << TQString("%1").arg(mark->line);
}
- QDomNodeList nl = d->dom.elementsByTagName("item");
- QDomElement el;
+ TQDomNodeList nl = d->dom.elementsByTagName("item");
+ TQDomElement el;
KURL u = QExtFileInfo::toRelative(url, d->baseURL);
for ( uint i = 0; i < nl.count(); i++ )
{
@@ -1365,15 +1365,15 @@ void Project::loadCursorPosition(const KURL &url, KTextEditor::ViewCursorInterfa
{
if (!viewCursorIf || !hasProject() || !contains(url))
return;
- QDomNodeList nl = d->m_sessionDom.elementsByTagName("item");
- QDomElement el;
+ TQDomNodeList nl = d->m_sessionDom.elementsByTagName("item");
+ TQDomElement el;
KURL u = QExtFileInfo::toRelative(url, d->baseURL);
for ( uint i = 0; i < nl.count(); i++ )
{
el = nl.item(i).toElement();
if ( el.attribute("url") == QuantaCommon::qUrl(u) )
{
- QString s = el.attribute("line");
+ TQString s = el.attribute("line");
uint line, col;
bool ok;
line = s.toUInt(&ok, 10);
@@ -1398,8 +1398,8 @@ void Project::saveCursorPosition(const KURL &url, KTextEditor::ViewCursorInterfa
{
if (!viewCursorIf || !hasProject() || !contains(url))
return;
- QDomNodeList nl = d->m_sessionDom.elementsByTagName("item");
- QDomElement el;
+ TQDomNodeList nl = d->m_sessionDom.elementsByTagName("item");
+ TQDomElement el;
KURL u = QExtFileInfo::toRelative(url, d->baseURL);
uint line, col;
viewCursorIf->cursorPosition(&line, &col);
@@ -1421,7 +1421,7 @@ void Project::saveCursorPosition(const KURL &url, KTextEditor::ViewCursorInterfa
el.setAttribute("column", col);
el.setAttribute("line", line);
el.setAttribute("url", QuantaCommon::qUrl(u));
- QDomNode no = d->m_sessionDom.firstChild().firstChild().namedItem("itemcursorpositions");
+ TQDomNode no = d->m_sessionDom.firstChild().firstChild().namedItem("itemcursorpositions");
no.appendChild(el);
}
}
diff --git a/quanta/project/project.h b/quanta/project/project.h
index b6775da7..95995036 100644
--- a/quanta/project/project.h
+++ b/quanta/project/project.h
@@ -18,7 +18,7 @@
#ifndef PROJECT_H
#define PROJECT_H
-#include <qobject.h>
+#include <tqobject.h>
#include "projecturl.h"
@@ -30,7 +30,7 @@ namespace KTextEditor{
class ViewCursorInterface;
}
struct EventAction;
-typedef QMap<QString, QValueList<EventAction> > EventActions;
+typedef TQMap<TQString, TQValueList<EventAction> > EventActions;
/**project
*@author Yacovlev Alexander & Dmitry Poplavsky & Andras Mantia & Jens Herden
@@ -40,18 +40,18 @@ class KConfig;
class KMainWindow;
struct TeamMember {
- QString name;
- QString email;
- QString nickName;
- QString task;
+ TQString name;
+ TQString email;
+ TQString nickName;
+ TQString task;
};
struct SubProject {
- QString name;
- QString location;
+ TQString name;
+ TQString location;
};
-class Project : public QObject {
+class Project : public TQObject {
Q_OBJECT
friend class ProjectPrivate; // need this because I use the signals
@@ -73,9 +73,9 @@ public:
~Project();
bool hasProject();
- QString projectName();
+ TQString projectName();
- QStringList fileNameList();
+ TQStringList fileNameList();
KURL::List files();
void insertFile( const KURL& nameURL, bool repaint );
@@ -87,9 +87,9 @@ public:
/** Returns the relative url with the prefix inserted. */
KURL urlWithPrefix(const KURL& url);
bool contains(const KURL &url);
- /** Read property of QString defaultDTD. */
- const QString& defaultDTD();
- const QString& defaultEncoding();
+ /** Read property of TQString defaultDTD. */
+ const TQString& defaultDTD();
+ const TQString& defaultEncoding();
/** Returns the project's base URL if it exists,
* the HOME dir if there is no project and no opened document
@@ -100,17 +100,17 @@ public:
KURL documentFolderForURL(const KURL &url);
/** Saves the password for entry into a list. Stores on disc if store == true */
- void savePassword(const QString& entry, const QString& passwd, bool store);
+ void savePassword(const TQString& entry, const TQString& passwd, bool store);
/** Returns the saved password for entry */
- QString password(const QString &entry);
- bool passwordSaved(const QString &entry);
- QDomDocument *dom();
- QDomDocument *sessionDom();
- QString debuggerClient();
+ TQString password(const TQString &entry);
+ bool passwordSaved(const TQString &entry);
+ TQDomDocument *dom();
+ TQDomDocument *sessionDom();
+ TQString debuggerClient();
bool debuggerPersistentBreakpoints();
bool debuggerPersistentWatches();
bool keepPasswd;
- QString email();
+ TQString email();
KURL templateURL();
KURL toolbarURL();
EventActions* events();
@@ -118,21 +118,21 @@ public:
* Get the nickname of the current user (you)
* @return the nickname
*/
- QString yourself();
+ TQString yourself();
/**
* Get the roles of the current user in the form "role:task".
* Examples: "team leader", "project leader:subprojectname", "task leader:taskname".
* @return the roles (in lowercase)
*/
- QStringList yourRoles();
+ TQStringList yourRoles();
TeamMember teamLeader();
- TeamMember subprojectLeader(const QString &name);
- TeamMember taskLeader(const QString &name);
- QValueList<TeamMember> simpleMembers();
- QString mailingList();
- QValueList<SubProject>* subprojects();
- QStringList tasks();
- QMap<QString, TeamMember> allMembers();
+ TeamMember subprojectLeader(const TQString &name);
+ TeamMember taskLeader(const TQString &name);
+ TQValueList<TeamMember> simpleMembers();
+ TQString mailingList();
+ TQValueList<SubProject>* subprojects();
+ TQStringList tasks();
+ TQMap<TQString, TeamMember> allMembers();
bool eventsEnabled();
void setProjectToolbarVisible(bool visible) {m_projectToolbarVisible = visible;}
@@ -157,7 +157,7 @@ public slots:
void slotOpenProject(const KURL&);
void slotOptions();
void slotUpload();
- void slotUploadURL(const KURL &urlToUpload, const QString &profileName, bool quickUpload, bool markOnly);
+ void slotUploadURL(const KURL &urlToUpload, const TQString &profileName, bool quickUpload, bool markOnly);
void slotAddDirectory(const KURL& dirURL, bool showDlg = true);
void slotInsertFile(const KURL& url);
@@ -168,10 +168,10 @@ public slots:
void slotRemove(const KURL& urlToRemove);
- void slotGetMessages(const QString&);
+ void slotGetMessages(const TQString&);
void slotRescanPrjDir();
- void slotFileDescChanged(const KURL& url, const QString& desc);
+ void slotFileDescChanged(const KURL& url, const TQString& desc);
void slotUploadStatusChanged(const KURL& url, int status);
void slotChangeDocumentFolderStatus(const KURL& url, bool status);
@@ -183,28 +183,28 @@ public slots:
signals:
- void openFile( const KURL&, const QString& );
- void openFiles( const KURL::List&, const QString& );
+ void openFile( const KURL&, const TQString& );
+ void openFiles( const KURL::List&, const TQString& );
void closeFile( const KURL&);
void closeFiles();
- void reloadTree(ProjectList *, bool, const QStringList &);
+ void reloadTree(ProjectList *, bool, const TQStringList &);
- void messages(const QString& );
+ void messages(const TQString& );
void enableMessageWidget();
void newStatus();
- void statusMsg(const QString &);
+ void statusMsg(const TQString &);
/** No descriptions */
- void newProjectLoaded(const QString &, const KURL &, const KURL &);
+ void newProjectLoaded(const TQString &, const KURL &, const KURL &);
void reloadProjectDocs();
void hideSplash();
void addProjectDoc(const KURL &);
void getUserToolbarFiles(KURL::List *);
void loadToolbarFile(const KURL &);
/** ask for the tree status for saving in project */
- void getTreeStatus(QStringList *);
- void eventHappened(const QString&, const QString&, const QString& );
+ void getTreeStatus(TQStringList *);
+ void eventHappened(const TQString&, const TQString&, const TQString& );
private:
/** The constructor is privat because we use singleton patter.
diff --git a/quanta/project/projectlist.cpp b/quanta/project/projectlist.cpp
index f5fdc24e..fabec2fd 100644
--- a/quanta/project/projectlist.cpp
+++ b/quanta/project/projectlist.cpp
@@ -15,9 +15,9 @@
***************************************************************************/
// qt includes
-#include <qdom.h>
-#include <qstring.h>
-#include <qfileinfo.h>
+#include <tqdom.h>
+#include <tqstring.h>
+#include <tqfileinfo.h>
// kde includes
#include <kprogress.h>
@@ -39,19 +39,19 @@ void ProjectList::clear()
ProjectUrlList::clear();
}
-bool ProjectList::readFromXML(QDomDocument &dom, const KURL &baseURL,
- const KURL &/*templateURL*/, const QRegExp &excludeRx)
+bool ProjectList::readFromXML(TQDomDocument &dom, const KURL &baseURL,
+ const KURL &/*templateURL*/, const TQRegExp &excludeRx)
{
clear(); // empty the list
m_baseURL = baseURL; // remember this
bool modified = false;
- QDomElement el;
- QDomNodeList nl = dom.firstChild().firstChild().childNodes();
+ TQDomElement el;
+ TQDomNodeList nl = dom.firstChild().firstChild().childNodes();
progressBar->setTotalSteps(nl.count() - 1);
progressBar->setValue(0);
progressBar->setTextEnabled(true);
- QString path;
- QString tmpString;
+ TQString path;
+ TQString tmpString;
uint nlCount = nl.count();
for ( uint i = 0; i < nlCount; i++ )
{
@@ -86,7 +86,7 @@ bool ProjectList::readFromXML(QDomDocument &dom, const KURL &baseURL,
//remove non-existent local files
if ( url.isLocalFile() )
{
- QFileInfo fi( url.path() );
+ TQFileInfo fi( url.path() );
if ( !fi.exists() )
{
el.parentNode().removeChild( el );
@@ -128,7 +128,7 @@ bool ProjectList::removeFromListAndXML(const KURL &url)
{
ProjectURL *p = find(url);
if (p) {
- QDomElement el = p->domElement;
+ TQDomElement el = p->domElement;
el.parentNode().removeChild(el);
remove(url.url(-1));
return true;
@@ -162,25 +162,25 @@ bool ProjectList::isFolder(const KURL &url) const
}
-void ProjectList::insert(const QString & key, const ProjectURL * item)
+void ProjectList::insert(const TQString & key, const ProjectURL * item)
{
ProjectUrlList::insert(key, item);
}
-ProjectURL * ProjectList::find ( const QString & key ) const
+ProjectURL * ProjectList::find ( const TQString & key ) const
{
return ProjectUrlList::find(key);
}
-bool ProjectList::remove ( const QString & key )
+bool ProjectList::remove ( const TQString & key )
{
return ProjectUrlList::remove(key);
}
-void ProjectList::replace(const QString & key, const ProjectURL * item)
+void ProjectList::replace(const TQString & key, const ProjectURL * item)
{
ProjectUrlList::replace(key, item);
}
diff --git a/quanta/project/projectlist.h b/quanta/project/projectlist.h
index 505fbfd0..87593daf 100644
--- a/quanta/project/projectlist.h
+++ b/quanta/project/projectlist.h
@@ -26,7 +26,7 @@ class QDomDocument;
/**
@short Container for the project files.
- For fast lookup this container is based on QDict.
+ For fast lookup this container is based on TQDict.
The key is generated without a trailing '/' so it doesn't matter if you
search for a folder in this container with or without trailing '/'
*/
@@ -34,12 +34,12 @@ class QDomDocument;
class ProjectList : public ProjectUrlList
{
public:
- /** 1009 is a guess for maximum files in an average project, this number should be prime (@ref QDict)
+ /** 1009 is a guess for maximum files in an average project, this number should be prime (@ref TQDict)
*/
ProjectList( int size = 1009 );
~ProjectList() {};
- typedef QDictIterator<ProjectURL> Iterator;
+ typedef TQDictIterator<ProjectURL> Iterator;
/** resets @ref m_baseURL */
void clear();
@@ -49,8 +49,8 @@ public:
invalid entries gets removed!
@return true if an old structure was found
*/
- bool readFromXML(QDomDocument &dom, const KURL &baseURL,
- const KURL &templateURL, const QRegExp &excludeRx);
+ bool readFromXML(TQDomDocument &dom, const KURL &baseURL,
+ const KURL &templateURL, const TQRegExp &excludeRx);
/**
@return the relative URL
*/
@@ -93,23 +93,23 @@ private:
private because I want to control the key.
use insert(ProjectURL *url) instead.
*/
- void insert(const QString & key, const ProjectURL * item);
+ void insert(const TQString & key, const ProjectURL * item);
/**
private because I want to control the key.
use find(const KURL &url) instead.
*/
- ProjectURL *find ( const QString & key ) const;
+ ProjectURL *find ( const TQString & key ) const;
/**
private because I want to control the key.
*/
- bool remove ( const QString & key );
+ bool remove ( const TQString & key );
/**
private because I want to control the key.
*/
- void replace(const QString & key, const ProjectURL * item);
+ void replace(const TQString & key, const ProjectURL * item);
};
#endif // PROJECTFILES_H
diff --git a/quanta/project/projectnewfinal.cpp b/quanta/project/projectnewfinal.cpp
index c1901e69..b96e8b6f 100644
--- a/quanta/project/projectnewfinal.cpp
+++ b/quanta/project/projectnewfinal.cpp
@@ -16,8 +16,8 @@
***************************************************************************/
// qt includes
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
// kde includes
#include <kiconloader.h>
@@ -26,7 +26,7 @@
#include "projectnewfinal.h"
#include "projectnewfinal.moc"
-ProjectNewFinal::ProjectNewFinal(QWidget *parent, const char *name )
+ProjectNewFinal::ProjectNewFinal(TQWidget *parent, const char *name )
: ProjectNewFinalS(parent,name)
{
imagelabel->setPixmap( UserIcon("wiznewprjfin") );
diff --git a/quanta/project/projectnewfinal.h b/quanta/project/projectnewfinal.h
index 5cde0ac5..16a40791 100644
--- a/quanta/project/projectnewfinal.h
+++ b/quanta/project/projectnewfinal.h
@@ -27,7 +27,7 @@
class ProjectNewFinal : public ProjectNewFinalS {
Q_OBJECT
public:
- ProjectNewFinal(QWidget *parent=0, const char *name=0);
+ ProjectNewFinal(TQWidget *parent=0, const char *name=0);
~ProjectNewFinal();
void setMargin(int);
diff --git a/quanta/project/projectnewgeneral.cpp b/quanta/project/projectnewgeneral.cpp
index 3f5fe547..28c4b611 100644
--- a/quanta/project/projectnewgeneral.cpp
+++ b/quanta/project/projectnewgeneral.cpp
@@ -16,14 +16,14 @@
***************************************************************************/
// qt includes
-#include <qdir.h>
-#include <qevent.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qcombobox.h>
+#include <tqdir.h>
+#include <tqevent.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqcombobox.h>
// kde includes
#include <kfiledialog.h>
@@ -39,19 +39,19 @@
#include "quantacommon.h"
#include "qextfileinfo.h"
-ProjectNewGeneral::ProjectNewGeneral(QWidget *parent, const char *name )
+ProjectNewGeneral::ProjectNewGeneral(TQWidget *parent, const char *name )
: ProjectNewGeneralS(parent,name)
{
imagelabel->setPixmap( UserIcon("wiznewprjglb") );
linePrjName->setFocus();
- QStringList protocols = KProtocolInfo::protocols();
+ TQStringList protocols = KProtocolInfo::protocols();
protocols.sort();
for ( uint i=0; i<protocols.count(); i++ )
{
KURL p;
p.setProtocol(protocols[i]);
- QString protocol = protocols[i];
+ TQString protocol = protocols[i];
if ( KProtocolInfo::supportsWriting(p) &&
KProtocolInfo::supportsMakeDir(p) &&
KProtocolInfo::supportsDeleting(p) &&
@@ -67,21 +67,21 @@ ProjectNewGeneral::ProjectNewGeneral(QWidget *parent, const char *name )
linePrjTmpl->setText("templates");
linePrjToolbar->setText("toolbars");
- connect(comboProtocol, SIGNAL(activated(const QString&)), SLOT(slotProtocolChanged(const QString &)));
- connect( linePrjFile, SIGNAL(textChanged(const QString &)),
- this, SLOT(slotLinePrjFile(const QString &)));
- connect( linePrjName, SIGNAL(textChanged(const QString &)),
- this, SLOT(slotLinePrjFile(const QString &)));
- connect( linePrjDir, SIGNAL(textChanged(const QString &)),
- this, SLOT(slotLinePrjFile(const QString &)));
- connect( buttonDir, SIGNAL(clicked()),
- this, SLOT(slotButtonDir()));
- connect( linePrjName, SIGNAL(textChanged(const QString &)),
- this, SLOT(slotChangeNames(const QString &)));
- connect( linePrjTmpl, SIGNAL(textChanged(const QString &)), SLOT(slotLinePrjFile(const QString &)));
- connect( buttonTmpl, SIGNAL(clicked()), SLOT(slotButtonTmpl()));
- connect( linePrjToolbar, SIGNAL(textChanged(const QString &)), SLOT(slotLinePrjFile(const QString &)));
- connect( buttonToolbar, SIGNAL(clicked()), SLOT(slotButtonToolbar()));
+ connect(comboProtocol, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(slotProtocolChanged(const TQString &)));
+ connect( linePrjFile, TQT_SIGNAL(textChanged(const TQString &)),
+ this, TQT_SLOT(slotLinePrjFile(const TQString &)));
+ connect( linePrjName, TQT_SIGNAL(textChanged(const TQString &)),
+ this, TQT_SLOT(slotLinePrjFile(const TQString &)));
+ connect( linePrjDir, TQT_SIGNAL(textChanged(const TQString &)),
+ this, TQT_SLOT(slotLinePrjFile(const TQString &)));
+ connect( buttonDir, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotButtonDir()));
+ connect( linePrjName, TQT_SIGNAL(textChanged(const TQString &)),
+ this, TQT_SLOT(slotChangeNames(const TQString &)));
+ connect( linePrjTmpl, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(slotLinePrjFile(const TQString &)));
+ connect( buttonTmpl, TQT_SIGNAL(clicked()), TQT_SLOT(slotButtonTmpl()));
+ connect( linePrjToolbar, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(slotLinePrjFile(const TQString &)));
+ connect( buttonToolbar, TQT_SIGNAL(clicked()), TQT_SLOT(slotButtonToolbar()));
linePrjTmpl->installEventFilter(this);
linePrjToolbar->installEventFilter(this);
@@ -101,7 +101,7 @@ void ProjectNewGeneral::slotButtonDir()
}
}
-void ProjectNewGeneral::slotLinePrjFile( const QString & )
+void ProjectNewGeneral::slotLinePrjFile( const TQString & )
{
bool valid = !(linePrjFile->text().isEmpty() ||
@@ -110,7 +110,7 @@ void ProjectNewGeneral::slotLinePrjFile( const QString & )
linePrjTmpl->text().isEmpty() ||
linePrjToolbar->text().isEmpty());
KURL url;
- QString s = lineHost->text();
+ TQString s = lineHost->text();
if (! s.isEmpty())
url.setHost(s);
@@ -145,16 +145,16 @@ void ProjectNewGeneral::slotLinePrjFile( const QString & )
emit enableNextButton( this, valid );
}
-void ProjectNewGeneral::slotChangeNames( const QString &text )
+void ProjectNewGeneral::slotChangeNames( const TQString &text )
{
int i;
- QString fname = text.lower();
+ TQString fname = text.lower();
while( (i=fname.find(" ")) >=0 ) fname.remove(i,1);
linePrjFile->setText( fname+".webprj" );
}
-QString ProjectNewGeneral::type()
+TQString ProjectNewGeneral::type()
{
// if ( radioCvs ->isChecked() ) return "CVS";
if ( radioLocal->isChecked() ) return "Local";
@@ -197,7 +197,7 @@ void ProjectNewGeneral::slotButtonToolbar()
}
-void ProjectNewGeneral::slotProtocolChanged(const QString& protocol)
+void ProjectNewGeneral::slotProtocolChanged(const TQString& protocol)
{
bool status = true;
if (protocol == i18n("Local"))
@@ -214,9 +214,9 @@ void ProjectNewGeneral::slotProtocolChanged(const QString& protocol)
lineHost->clear();
}
-bool ProjectNewGeneral::eventFilter ( QObject * watched, QEvent * e )
+bool ProjectNewGeneral::eventFilter ( TQObject * watched, TQEvent * e )
{
- if (e->type() == QEvent::FocusOut)
+ if (e->type() == TQEvent::FocusOut)
{
if (watched == linePrjTmpl)
{
diff --git a/quanta/project/projectnewgeneral.h b/quanta/project/projectnewgeneral.h
index b167c15c..6f39fde6 100644
--- a/quanta/project/projectnewgeneral.h
+++ b/quanta/project/projectnewgeneral.h
@@ -29,27 +29,27 @@ class KURL;
class ProjectNewGeneral : public ProjectNewGeneralS {
Q_OBJECT
public:
- ProjectNewGeneral(QWidget *parent=0, const char *name=0);
+ ProjectNewGeneral(TQWidget *parent=0, const char *name=0);
~ProjectNewGeneral();
- QString type();
+ TQString type();
void setMargin(int);
protected:
- bool eventFilter ( QObject * watched, QEvent * e );
+ bool eventFilter ( TQObject * watched, TQEvent * e );
public slots:
void slotButtonDir();
- void slotLinePrjFile(const QString &);
- void slotChangeNames(const QString &);
+ void slotLinePrjFile(const TQString &);
+ void slotChangeNames(const TQString &);
void slotButtonTmpl();
void slotButtonToolbar();
- void slotProtocolChanged(const QString& protocol);
+ void slotProtocolChanged(const TQString& protocol);
signals:
void setBaseURL(const KURL&);
- void enableNextButton(QWidget *, bool);
+ void enableNextButton(TQWidget *, bool);
private:
KURL baseUrl;
diff --git a/quanta/project/projectnewlocal.cpp b/quanta/project/projectnewlocal.cpp
index e037b662..e2d99d30 100644
--- a/quanta/project/projectnewlocal.cpp
+++ b/quanta/project/projectnewlocal.cpp
@@ -16,14 +16,14 @@
***************************************************************************/
// qt includes
-#include <qlabel.h>
-#include <qfileinfo.h>
-#include <qlistview.h>
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
+#include <tqlabel.h>
+#include <tqfileinfo.h>
+#include <tqlistview.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
// kde includes
#include <klocale.h>
@@ -45,7 +45,7 @@
#include "resource.h"
#include "quantacommon.h"
-ProjectNewLocal::ProjectNewLocal(QWidget *parent, const char *name )
+ProjectNewLocal::ProjectNewLocal(TQWidget *parent, const char *name )
: ProjectNewLocalS(parent,name)
{
imagelabel->setPixmap( UserIcon("wiznewprjloc") );
@@ -59,13 +59,13 @@ ProjectNewLocal::ProjectNewLocal(QWidget *parent, const char *name )
checkInsertWeb->setChecked( true );
- connect( checkInsert, SIGNAL(toggled(bool)), this, SLOT(slotSetFiles(bool)));
- connect( checkInsertWeb, SIGNAL(toggled(bool)), this, SLOT(slotSetFiles(bool)));
- connect( checkInsertWithMask, SIGNAL(toggled(bool)), this, SLOT(slotSetFiles(bool)));
+ connect( checkInsert, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSetFiles(bool)));
+ connect( checkInsertWeb, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSetFiles(bool)));
+ connect( checkInsertWithMask, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSetFiles(bool)));
- connect(addFiles, SIGNAL(clicked()),this,SLOT(slotAddFiles()));
- connect(addFolder, SIGNAL(clicked()),this,SLOT(slotAddFolder()));
- connect(clearList, SIGNAL(clicked()),this,SLOT(slotClearList()));
+ connect(addFiles, TQT_SIGNAL(clicked()),this,TQT_SLOT(slotAddFiles()));
+ connect(addFolder, TQT_SIGNAL(clicked()),this,TQT_SLOT(slotAddFolder()));
+ connect(clearList, TQT_SIGNAL(clicked()),this,TQT_SLOT(slotClearList()));
}
ProjectNewLocal::~ProjectNewLocal(){
@@ -86,8 +86,8 @@ KURL::List ProjectNewLocal::files()
//return fileList;
KURL::List r;
- QListViewItem *item;
- QListViewItemIterator it(listView);
+ TQListViewItem *item;
+ TQListViewItemIterator it(listView);
for ( ; it.current(); ++it )
{
item = it.current();
@@ -116,12 +116,12 @@ KURL::List ProjectNewLocal::projectFiles()
!baseURL.path().endsWith("/") ||
!checkInsert->isChecked() ) return list;
- QString fmask = "*";
+ TQString fmask = "*";
if ( checkInsertWeb->isChecked() )
{
KMimeType::List list = KMimeType::allMimeTypes();
KMimeType::List::iterator it;
- QString name;
+ TQString name;
fmask = "";
for ( it = list.begin(); it != list.end(); ++it )
{
@@ -130,7 +130,7 @@ KURL::List ProjectNewLocal::projectFiles()
qConfig.scriptMimeTypes.contains(name) ||
qConfig.imageMimeTypes.contains(name))
{
- QStringList patterns = (*it)->patterns();
+ TQStringList patterns = (*it)->patterns();
for (uint i = 0 ; i < patterns.count(); i++)
{
fmask = fmask+patterns[i]+" ";
@@ -159,7 +159,7 @@ void ProjectNewLocal::slotSetFiles(bool)
if ( !fileList.contains(files[i]))
{
fileList.append(files[i]);
- QListViewItem *it = listView->addItem(files[i], KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
+ TQListViewItem *it = listView->addItem(files[i], KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
if (it) it->setSelected(true);
progressBar->setValue(i);
}
@@ -171,7 +171,7 @@ void ProjectNewLocal::slotSetFiles(bool)
}
}
-void ProjectNewLocal::resizeEvent ( QResizeEvent *t )
+void ProjectNewLocal::resizeEvent ( TQResizeEvent *t )
{
ProjectNewLocalS::resizeEvent(t);
listView->setColumnWidth(0,listView->width()-listView->columnWidth(1)-20);
@@ -202,10 +202,10 @@ void ProjectNewLocal::slotAddFiles()
if ( !destination.isEmpty())
{
CopyTo *dlg = new CopyTo( baseURL);
- connect(dlg, SIGNAL(addFilesToProject(const KURL::List&)),
- SLOT (slotInsertFilesAfterCopying(const KURL::List&)));
- connect(dlg, SIGNAL(deleteDialog(CopyTo *)),
- SLOT (slotDeleteCopyToDialog(CopyTo *)));
+ connect(dlg, TQT_SIGNAL(addFilesToProject(const KURL::List&)),
+ TQT_SLOT (slotInsertFilesAfterCopying(const KURL::List&)));
+ connect(dlg, TQT_SIGNAL(deleteDialog(CopyTo *)),
+ TQT_SLOT (slotDeleteCopyToDialog(CopyTo *)));
list = dlg->copy( list, destination );
return;
} else
@@ -222,7 +222,7 @@ void ProjectNewLocal::slotAddFiles()
if (!fileList.contains(list[i]))
{
fileList.append(list[i]);
- QListViewItem *it = listView->addItem(list[i], KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
+ TQListViewItem *it = listView->addItem(list[i], KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
if (it) it->setSelected(true);
progressBar->setValue(i);
}
@@ -263,10 +263,10 @@ void ProjectNewLocal::slotAddFolder()
if ( !destination.isEmpty())
{
CopyTo *dlg = new CopyTo( baseURL);
- connect(dlg, SIGNAL(addFilesToProject(const KURL::List&)),
- SLOT (slotInsertFolderAfterCopying(const KURL::List&)));
- connect(dlg, SIGNAL(deleteDialog(CopyTo *)),
- SLOT (slotDeleteCopyToDialog(CopyTo *)));
+ connect(dlg, TQT_SIGNAL(addFilesToProject(const KURL::List&)),
+ TQT_SLOT (slotInsertFolderAfterCopying(const KURL::List&)));
+ connect(dlg, TQT_SIGNAL(deleteDialog(CopyTo *)),
+ TQT_SLOT (slotDeleteCopyToDialog(CopyTo *)));
dirURL = dlg->copy(dirURL, destination);
return;
} else
@@ -304,7 +304,7 @@ void ProjectNewLocal::slotInsertFolderAfterCopying(const KURL::List& a_urlList)
{
fileList.append(u);
listView->addItem(u, KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
- QListViewItem *it = listView->itemByUrl(u);
+ TQListViewItem *it = listView->itemByUrl(u);
if (it)
{
it->setSelected(true);
@@ -332,7 +332,7 @@ void ProjectNewLocal::slotInsertFilesAfterCopying(const KURL::List& a_urlList)
if ( !fileList.contains(u))
{
fileList.append(u);
- QListViewItem *it = listView->addItem(u, KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
+ TQListViewItem *it = listView->addItem(u, KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
if (it)
{
it->setSelected(true);
diff --git a/quanta/project/projectnewlocal.h b/quanta/project/projectnewlocal.h
index 2d2d6d10..498b336d 100644
--- a/quanta/project/projectnewlocal.h
+++ b/quanta/project/projectnewlocal.h
@@ -18,7 +18,7 @@
#ifndef PROJECTNEWLOCAL_H
#define PROJECTNEWLOCAL_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kurl.h>
#include <projectnewlocals.h>
@@ -31,7 +31,7 @@ class CopyTo;
class ProjectNewLocal : public ProjectNewLocalS {
Q_OBJECT
public:
- ProjectNewLocal(QWidget *parent=0, const char *name=0);
+ ProjectNewLocal(TQWidget *parent=0, const char *name=0);
~ProjectNewLocal();
KURL::List files();
@@ -47,7 +47,7 @@ public slots:
void slotInsertFilesAfterCopying(const KURL::List&);
void slotDeleteCopyToDialog(CopyTo*);
- virtual void resizeEvent( QResizeEvent * );
+ virtual void resizeEvent( TQResizeEvent * );
private:
KURL baseURL;
diff --git a/quanta/project/projectnewweb.cpp b/quanta/project/projectnewweb.cpp
index 20685021..5959d01e 100644
--- a/quanta/project/projectnewweb.cpp
+++ b/quanta/project/projectnewweb.cpp
@@ -16,13 +16,13 @@
***************************************************************************/
// qt includes
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qstringlist.h>
-#include <qlistview.h>
-#include <qfileinfo.h>
-#include <qcombobox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqstringlist.h>
+#include <tqlistview.h>
+#include <tqfileinfo.h>
+#include <tqcombobox.h>
// kde includes
#include <klocale.h>
@@ -38,7 +38,7 @@
#include "quantacommon.h"
#include "uploadtreeview.h"
-ProjectNewWeb::ProjectNewWeb(QWidget *parent, const char *name )
+ProjectNewWeb::ProjectNewWeb(TQWidget *parent, const char *name )
: ProjectNewWebS(parent,name)
{
button->setEnabled(false);
@@ -49,14 +49,14 @@ ProjectNewWeb::ProjectNewWeb(QWidget *parent, const char *name )
listView->removeColumn(1);
listView->removeColumn(1);
- connect( commandLine, SIGNAL(textChanged(const QString&)),
- this, SLOT (enableStart(const QString&)));
- connect( siteUrl, SIGNAL(textChanged(const QString&)),
- this, SLOT (setCommandL(const QString&)));
- connect( button, SIGNAL(clicked()),
- this, SLOT (slotStart()));
- connect( protocolCombo,SIGNAL(highlighted(const QString&)),
- this, SLOT (setProtocol(const QString&)));
+ connect( commandLine, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT (enableStart(const TQString&)));
+ connect( siteUrl, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT (setCommandL(const TQString&)));
+ connect( button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT (slotStart()));
+ connect( protocolCombo,TQT_SIGNAL(highlighted(const TQString&)),
+ this, TQT_SLOT (setProtocol(const TQString&)));
start = false;
KLed1->setState(KLed::Off);
@@ -66,21 +66,21 @@ ProjectNewWeb::ProjectNewWeb(QWidget *parent, const char *name )
ProjectNewWeb::~ProjectNewWeb(){
}
-void ProjectNewWeb::enableStart(const QString&)
+void ProjectNewWeb::enableStart(const TQString&)
{
if ( !commandLine->text().isEmpty() ) button->setEnabled(true);
else button->setEnabled(false);
}
-void ProjectNewWeb::setCommandL(const QString& url)
+void ProjectNewWeb::setCommandL(const TQString& url)
{
- QString siteurl = url;
+ TQString siteurl = url;
commandLine->setText("wget -c -np -r --level=5 -nH "+ protocolCombo->currentText().lower()+ "://"+siteurl);
}
/** No descriptions */
-void ProjectNewWeb::setProtocol(const QString& protocol)
+void ProjectNewWeb::setProtocol(const TQString& protocol)
{
commandLine->setText("wget -c -np -r --level=5 -nH "+ protocol.lower()+ "://"+siteUrl->text());
}
@@ -108,25 +108,25 @@ void ProjectNewWeb::slotStart()
proc = new KProcess();
proc ->clearArguments();
- QStringList list = QStringList::split (" ", commandLine->text());
+ TQStringList list = TQStringList::split (" ", commandLine->text());
- for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it )
+ for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it )
{
*proc << *it;
}
- connect( proc, SIGNAL(receivedStdout( KProcess*,char*,int)), this,
- SLOT( slotGetWgetOutput(KProcess*,char*,int)));
- connect( proc, SIGNAL(receivedStderr( KProcess*,char*,int)), this,
- SLOT( slotGetWgetOutput(KProcess*,char*,int)));
- connect( proc, SIGNAL(processExited( KProcess *)), this,
- SLOT( slotGetWgetExited(KProcess *)));
+ connect( proc, TQT_SIGNAL(receivedStdout( KProcess*,char*,int)), this,
+ TQT_SLOT( slotGetWgetOutput(KProcess*,char*,int)));
+ connect( proc, TQT_SIGNAL(receivedStderr( KProcess*,char*,int)), this,
+ TQT_SLOT( slotGetWgetOutput(KProcess*,char*,int)));
+ connect( proc, TQT_SIGNAL(processExited( KProcess *)), this,
+ TQT_SLOT( slotGetWgetExited(KProcess *)));
if (proc->start(KProcess::NotifyOnExit, KProcess::AllOutput))
{
start = true;
button->setText( i18n("Stop") );
- emit enableNextButton((QWidget *)this->parent(),false);
+ emit enableNextButton((TQWidget *)this->parent(),false);
} else
{
KMessageBox::error(this, i18n("There was an error while trying to run the \"wget\" application.\
@@ -138,14 +138,14 @@ void ProjectNewWeb::slotStart()
KMessageBox::sorry(this,i18n("This feature is available only if the project lies on a local disk."));
start = false;
button->setText( i18n("Start") );
- emit enableNextButton((QWidget *)this->parent(),true);
+ emit enableNextButton((TQWidget *)this->parent(),true);
}
} else
{
QuantaCommon::dirCreationError(this, baseURL);
start = false;
button->setText( i18n("Start") );
- emit enableNextButton((QWidget *)this->parent(),true);
+ emit enableNextButton((TQWidget *)this->parent(),true);
}
} else {
@@ -155,7 +155,7 @@ void ProjectNewWeb::slotStart()
start = false;
button->setText( i18n("Start") );
- emit enableNextButton((QWidget *)this->parent(),true);
+ emit enableNextButton((TQWidget *)this->parent(),true);
}
}
@@ -166,18 +166,18 @@ void ProjectNewWeb::slotGetWgetExited(KProcess*)
start = false;
button->setText( i18n("Start") );
emit messages(i18n("wget finished...\n"));
- emit enableNextButton((QWidget *)this->parent(),true);
+ emit enableNextButton((TQWidget *)this->parent(),true);
}
void ProjectNewWeb::slotGetWgetOutput(KProcess *, char *buffer, int buflen)
{
- QString output = buffer;
+ TQString output = buffer;
output = output.left( buflen );
emit messages(output);
int pos;
- QString basePath = baseURL.path(1);
+ TQString basePath = baseURL.path(1);
while ( (pos = output.find("saved")) != -1 )
{
if (KLed1->state() == KLed::Off)
@@ -201,7 +201,7 @@ void ProjectNewWeb::slotGetWgetOutput(KProcess *, char *buffer, int buflen)
continue;
}
- QString fileName = output.left(endName);
+ TQString fileName = output.left(endName);
fileName = fileName.right( endName - begName-1);
output = output.remove(0,pos+1);
@@ -218,8 +218,8 @@ KURL::List ProjectNewWeb::files()
KURL::List r;
KURL u;
- QListViewItem *item;
- QListViewItemIterator it(listView);
+ TQListViewItem *item;
+ TQListViewItemIterator it(listView);
for ( ; it.current(); ++it )
{
item = it.current();
@@ -236,7 +236,7 @@ KURL::List ProjectNewWeb::files()
return r;
}
-void ProjectNewWeb::resizeEvent ( QResizeEvent *t )
+void ProjectNewWeb::resizeEvent ( TQResizeEvent *t )
{
ProjectNewWebS::resizeEvent(t);
// listView->setColumnWidth(0,listView->width()-listView->columnWidth(1)-20);
diff --git a/quanta/project/projectnewweb.h b/quanta/project/projectnewweb.h
index 62da219f..28a395b4 100644
--- a/quanta/project/projectnewweb.h
+++ b/quanta/project/projectnewweb.h
@@ -19,8 +19,8 @@
#define PROJECTNEWWEB_H
//qt includes
-#include <qwidget.h>
-#include <qstringlist.h>
+#include <tqwidget.h>
+#include <tqstringlist.h>
//app includes
#include "projectnewwebs.h"
@@ -35,12 +35,12 @@ class KURL;
class ProjectNewWeb : public ProjectNewWebS {
Q_OBJECT
public:
- ProjectNewWeb(QWidget *parent=0, const char *name=0);
+ ProjectNewWeb(TQWidget *parent=0, const char *name=0);
~ProjectNewWeb();
public slots:
- void enableStart(const QString&);
- void setCommandL(const QString&);
+ void enableStart(const TQString&);
+ void setCommandL(const TQString&);
void setBaseURL(const KURL& a_baseURL);
void slotStart();
@@ -50,15 +50,15 @@ public slots:
void slotGetWgetExited(KProcess *);
void slotGetWgetOutput(KProcess *proc, char *buffer, int buflen);
- virtual void resizeEvent( QResizeEvent * );
+ virtual void resizeEvent( TQResizeEvent * );
signals:
void enableMessagesWidget();
- void messages(const QString& );
+ void messages(const TQString& );
/** No descriptions */
- void enableNextButton(QWidget *,bool);
+ void enableNextButton(TQWidget *,bool);
private:
KURL baseURL;
@@ -69,7 +69,7 @@ private:
private slots: // Private slots
/** No descriptions */
- void setProtocol(const QString& protocol);
+ void setProtocol(const TQString& protocol);
};
#endif
diff --git a/quanta/project/projectprivate.cpp b/quanta/project/projectprivate.cpp
index c74b1dc9..86f4e221 100644
--- a/quanta/project/projectprivate.cpp
+++ b/quanta/project/projectprivate.cpp
@@ -18,13 +18,13 @@
#include "projectprivate.h"
//qt includes
-#include <qcheckbox.h>
-#include <qdir.h>
-#include <qfile.h>
-#include <qradiobutton.h>
-#include <qwidgetstack.h>
-#include <qwizard.h>
-#include <qeventloop.h>
+#include <tqcheckbox.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqradiobutton.h>
+#include <tqwidgetstack.h>
+#include <tqwizard.h>
+#include <tqeventloop.h>
//kde includes
#include <kaction.h>
@@ -63,7 +63,7 @@
#include "viewmanager.h"
ProjectPrivate::ProjectPrivate(Project *p)
- : QObject(), config(0L), m_dirWatch(0L), tempFile(0L), sessionTempFile(0L)
+ : TQObject(), config(0L), m_dirWatch(0L), tempFile(0L), sessionTempFile(0L)
{
parent = p;
m_projectFiles.setAutoDelete(true);
@@ -83,73 +83,73 @@ ProjectPrivate::~ProjectPrivate()
void ProjectPrivate::initActions(KActionCollection *ac)
{
(void) new KAction( i18n( "&New Project..." ), "window_new", 0,
- this, SLOT( slotNewProject() ),
+ this, TQT_SLOT( slotNewProject() ),
ac, "project_new" );
(void) new KAction( i18n( "&Open Project..." ), "project_open", 0,
- this, SLOT( slotOpenProject() ),
+ this, TQT_SLOT( slotOpenProject() ),
ac, "project_open" );
m_projectRecent =
- KStdAction::openRecent(parent, SLOT(slotOpenProject(const KURL&)),
+ KStdAction::openRecent(parent, TQT_SLOT(slotOpenProject(const KURL&)),
ac, "project_open_recent");
m_projectRecent->setText(i18n("Open Recent Project"));
m_projectRecent->setIcon("project_open");
m_projectRecent->setToolTip(i18n("Open/Open recent project"));
- connect(m_projectRecent, SIGNAL(activated()), this, SLOT(slotOpenProject()));
+ connect(m_projectRecent, TQT_SIGNAL(activated()), this, TQT_SLOT(slotOpenProject()));
closeprjAction = new KAction( i18n( "&Close Project" ), "fileclose", 0,
- this, SLOT( slotCloseProject() ),
+ this, TQT_SLOT( slotCloseProject() ),
ac, "project_close" );
openPrjViewAction = new KSelectAction( i18n( "Open Project &View..." ), 0,
ac, "project_view_open" );
- connect(openPrjViewAction, SIGNAL(activated(const QString &)),
- this, SLOT(slotOpenProjectView(const QString &)));
+ connect(openPrjViewAction, TQT_SIGNAL(activated(const TQString &)),
+ this, TQT_SLOT(slotOpenProjectView(const TQString &)));
openPrjViewAction->setToolTip(i18n("Open project view"));
savePrjViewAction = new KAction( i18n( "&Save Project View" ), "filesave", 0,
- this, SLOT( slotSaveProjectView() ),
+ this, TQT_SLOT( slotSaveProjectView() ),
ac, "project_view_save" );
saveAsPrjViewAction = new KAction( i18n( "Save Project View &As..." ), "filesaveas", 0,
- this, SLOT( slotSaveAsProjectView() ),
+ this, TQT_SLOT( slotSaveAsProjectView() ),
ac, "project_view_save_as" );
deletePrjViewAction = new KSelectAction( i18n( "&Delete Project View" ), "editdelete", 0,
ac, "project_view_delete" );
- connect(deletePrjViewAction, SIGNAL(activated(const QString &)),
- this, SLOT(slotDeleteProjectView(const QString &)));
+ connect(deletePrjViewAction, TQT_SIGNAL(activated(const TQString &)),
+ this, TQT_SLOT(slotDeleteProjectView(const TQString &)));
deletePrjViewAction->setToolTip(i18n("Close project view"));
insertFileAction = new KAction( i18n( "&Insert Files..." ), 0,
- this, SLOT( slotAddFiles() ),
+ this, TQT_SLOT( slotAddFiles() ),
ac, "project_insert_file" );
insertDirAction = new KAction( i18n( "Inser&t Folder..." ), 0,
- this, SLOT( slotAddDirectory() ),
+ this, TQT_SLOT( slotAddDirectory() ),
ac, "project_insert_directory" );
rescanPrjDirAction = new KAction( i18n( "&Rescan Project Folder..." ), "reload", 0,
- parent, SLOT( slotRescanPrjDir() ),
+ parent, TQT_SLOT( slotRescanPrjDir() ),
ac, "project_rescan" );
uploadProjectAction = new KAction( i18n( "&Upload Project..." ), "up", Key_F8,
- parent, SLOT( slotUpload() ),
+ parent, TQT_SLOT( slotUpload() ),
ac, "project_upload" );
projectOptionAction = new KAction( i18n( "&Project Properties" ), "configure", SHIFT + Key_F7,
- parent, SLOT( slotOptions() ),
+ parent, TQT_SLOT( slotOptions() ),
ac, "project_options" );
saveAsProjectTemplateAction =
new KAction( i18n( "Save as Project Template..." ), 0,
- m_mainWindow, SLOT( slotFileSaveAsProjectTemplate() ),
+ m_mainWindow, TQT_SLOT( slotFileSaveAsProjectTemplate() ),
ac, "save_project_template" );
saveSelectionAsProjectTemplateAction =
new KAction( i18n( "Save Selection to Project Template File..." ), 0,
- m_mainWindow, SLOT( slotFileSaveSelectionAsProjectTemplate() ),
+ m_mainWindow, TQT_SLOT( slotFileSaveSelectionAsProjectTemplate() ),
ac, "save_selection_project_template" );
adjustActions();
}
@@ -179,8 +179,8 @@ void ProjectPrivate::adjustActions()
void ProjectPrivate::adjustViewActions()
{
- QStringList viewList = projectViewList();
- QString oldItem = openPrjViewAction->currentText();
+ TQStringList viewList = projectViewList();
+ TQString oldItem = openPrjViewAction->currentText();
openPrjViewAction->clear();
openPrjViewAction->setItems(viewList);
int i = viewList.findIndex(oldItem);
@@ -193,11 +193,11 @@ void ProjectPrivate::adjustViewActions()
}
-QStringList ProjectPrivate::projectViewList()
+TQStringList ProjectPrivate::projectViewList()
{
- QStringList list;
- QDomNodeList nl = dom.elementsByTagName("projectview");
- QDomElement el;
+ TQStringList list;
+ TQDomNodeList nl = dom.elementsByTagName("projectview");
+ TQDomElement el;
for (uint i = 0; i < nl.count(); i++)
{
el = nl.item(i).cloneNode().toElement();
@@ -211,7 +211,7 @@ void ProjectPrivate::init()
{
projectURL = KURL();
templateURL = KURL();
- projectName = QString::null;
+ projectName = TQString::null;
m_modified = false;
m_defaultDTD = qConfig.defaultDocType;
excludeRx.setPattern(".*~$");
@@ -223,11 +223,11 @@ void ProjectPrivate::init()
m_debuggerPersistentBreakpoints = false;
m_debuggerPersistentWatches = false;
m_excludeCvsignore = false;
- currentProjectView = QString::null;
+ currentProjectView = TQString::null;
m_projectFiles.clear();
- m_mailingList = QString::null;
- m_teamLeader.name = QString::null;
- m_teamLeader.email = QString::null;
+ m_mailingList = TQString::null;
+ m_teamLeader.name = TQString::null;
+ m_teamLeader.email = TQString::null;
m_taskLeaders.clear();
m_subprojectLeaders.clear();
m_subprojects.clear();
@@ -241,17 +241,17 @@ void ProjectPrivate::openCurrentView()
if (currentProjectView.isEmpty())
return;
KURL::List urlsToOpen, urlsInView;
- QDomNodeList nl = dom.elementsByTagName("projectview");
- QDomElement el;
+ TQDomNodeList nl = dom.elementsByTagName("projectview");
+ TQDomElement el;
for (uint i = 0; i < nl.count(); i++)
{
el = nl.item(i).cloneNode().toElement();
if (el.attribute("name") == currentProjectView)
{
- QDomNodeList itemNodes = el.childNodes();
+ TQDomNodeList itemNodes = el.childNodes();
for (uint j = 0; j < itemNodes.count(); j++)
{
- QDomElement el2 = itemNodes.item(j).cloneNode().toElement();
+ TQDomElement el2 = itemNodes.item(j).cloneNode().toElement();
KURL url = baseURL;
QuantaCommon::setUrl(url,el2.attribute("url"));
url = QExtFileInfo::toAbsolute(url, baseURL);
@@ -280,7 +280,7 @@ void ProjectPrivate::openCurrentView()
break;
}
}
- QStringList viewList = projectViewList();
+ TQStringList viewList = projectViewList();
int i = viewList.findIndex(currentProjectView);
if (i > -1)
openPrjViewAction->setCurrentItem(i);
@@ -288,7 +288,7 @@ void ProjectPrivate::openCurrentView()
}
/** Opens a project view (toolbars & files). */
-void ProjectPrivate::slotOpenProjectView(const QString &view)
+void ProjectPrivate::slotOpenProjectView(const TQString &view)
{
currentProjectView = view;
openCurrentView();
@@ -297,8 +297,8 @@ void ProjectPrivate::slotOpenProjectView(const QString &view)
/** insert files */
void ProjectPrivate::insertFiles( KURL::List files )
{
- QDomElement el;
- QDomNodeList nl = dom.elementsByTagName("item");
+ TQDomElement el;
+ TQDomNodeList nl = dom.elementsByTagName("item");
parent->statusMsg( i18n("Adding files to the project...") );
progressBar->setTotalSteps(2 * files.count() - 2);
progressBar->setValue(0);
@@ -328,7 +328,7 @@ void ProjectPrivate::insertFiles( KURL::List files )
el.setAttribute("url", QuantaCommon::qUrl(QExtFileInfo::toRelative(url, baseURL, false)));
dom.firstChild().firstChild().appendChild(el);
m_projectFiles.insert( new ProjectURL(url, "", 1, false, el) );
- emit eventHappened("after_project_add", url.url(), QString::null);
+ emit eventHappened("after_project_add", url.url(), TQString::null);
m_modified = true;
}
url.setPath(url.directory(false));
@@ -340,7 +340,7 @@ void ProjectPrivate::insertFiles( KURL::List files )
el.setAttribute("url", QuantaCommon::qUrl(QExtFileInfo::toRelative(url, baseURL, false)));
dom.firstChild().firstChild().appendChild(el);
m_projectFiles.insert( new ProjectURL(url, "", 1, false, el) );
- emit eventHappened("after_project_add", url.url(), QString::null);
+ emit eventHappened("after_project_add", url.url(), TQString::null);
m_modified = true;
}
}
@@ -350,14 +350,14 @@ void ProjectPrivate::insertFiles( KURL::List files )
progressBar->setValue(0);
progressBar->setTextEnabled(false);
- parent->reloadTree(&(m_projectFiles), false, QStringList());
+ parent->reloadTree(&(m_projectFiles), false, TQStringList());
parent->newStatus();
- parent->statusMsg(QString::null);
+ parent->statusMsg(TQString::null);
}
/** insert files from dir recursive */
-void ProjectPrivate::insertFiles(const KURL& pathURL, const QString& mask )
+void ProjectPrivate::insertFiles(const KURL& pathURL, const TQString& mask )
{
KURL::List list;
@@ -372,10 +372,10 @@ void ProjectPrivate::loadProjectXML()
//TODO: Optimize reading. For example iterate through all the nodes and handle them
//according to the found node type
parent->statusMsg( i18n("Reading the project file...") );
- QDomNode no;
- QDomElement el;
+ TQDomNode no;
+ TQDomElement el;
KURL url;
- QDomNode projectNode = dom.firstChild().firstChild();
+ TQDomNode projectNode = dom.firstChild().firstChild();
projectName = projectNode.toElement().attribute("name");
if ( projectNode.isNull() || projectName.isEmpty() )
@@ -387,8 +387,8 @@ void ProjectPrivate::loadProjectXML()
}
m_modified = false;
- QString tmpString;
- QDomNode sessionNode;
+ TQString tmpString;
+ TQDomNode sessionNode;
if (!m_createSessionDom)
{
@@ -439,7 +439,7 @@ void ProjectPrivate::loadProjectXML()
currentProjectView = no.toElement().attribute("projectview");
if (currentProjectView.isEmpty())
{
- QStringList list = projectViewList();
+ TQStringList list = projectViewList();
if (list.count() > 0)
currentProjectView = list[0];
}
@@ -508,13 +508,13 @@ void ProjectPrivate::loadProjectXML()
no = projectNode.namedItem("exclude");
m_excludeCvsignore = (no.toElement().attribute("cvsignore", "false") == "true");
- QString excludeStr = no.firstChild().nodeValue();
- QString regExpStr = "";
- excludeList = QStringList::split(';', excludeStr);
+ TQString excludeStr = no.firstChild().nodeValue();
+ TQString regExpStr = "";
+ excludeList = TQStringList::split(';', excludeStr);
for (uint i = 0; i < excludeList.count(); i++)
{
excludeStr = excludeList[i].stripWhiteSpace();
- QString str = excludeStr;
+ TQString str = excludeStr;
if (!excludeStr.startsWith("*"))
{
if (!excludeStr.endsWith("*"))
@@ -531,10 +531,10 @@ void ProjectPrivate::loadProjectXML()
if (i+1 < excludeList.count())
regExpStr.append("|");
}
- QDomNodeList nl = dom.firstChild().firstChild().childNodes();
+ TQDomNodeList nl = dom.firstChild().firstChild().childNodes();
if (m_excludeCvsignore && projectURL.isLocalFile())
{
- QStringList cvsIgnoreList;
+ TQStringList cvsIgnoreList;
uint nlCount = nl.count();
for ( uint i = 0; i < nlCount; i++ )
{
@@ -544,18 +544,18 @@ void ProjectPrivate::loadProjectXML()
cvsIgnoreList.append(tmpString);
}
cvsIgnoreList.append("");
- for (QStringList::ConstIterator it = cvsIgnoreList.constBegin(); it != cvsIgnoreList.constEnd(); ++it)
+ for (TQStringList::ConstIterator it = cvsIgnoreList.constBegin(); it != cvsIgnoreList.constEnd(); ++it)
{
tmpString = *it;
- QString rxStr;
+ TQString rxStr;
KURL cvsIgnoreURL;
cvsIgnoreURL.setPath(baseURL.path(1) + tmpString + ".cvsignore");
- QFile f(cvsIgnoreURL.path());
+ TQFile f(cvsIgnoreURL.path());
if (f.open(IO_ReadOnly))
{
- QTextStream stream(&f);
- stream.setEncoding(QTextStream::UnicodeUTF8);
- QString line;
+ TQTextStream stream(&f);
+ stream.setEncoding(TQTextStream::UnicodeUTF8);
+ TQString line;
while (!stream.atEnd())
{
line = stream.readLine().stripWhiteSpace();
@@ -588,10 +588,10 @@ void ProjectPrivate::loadProjectXML()
else
ev.type = EventAction::External;
ev.action = el.attribute("action");
- QDomNodeList nl2 = el.elementsByTagName("argument");
+ TQDomNodeList nl2 = el.elementsByTagName("argument");
for (uint j = 0; j < nl2.count(); j++)
{
- QString s = nl2.item(j).toElement().text();
+ TQString s = nl2.item(j).toElement().text();
if (s != "--not set--" && !s.isEmpty())
ev.arguments << s;
}
@@ -600,13 +600,13 @@ void ProjectPrivate::loadProjectXML()
(*m_events)[el.attribute("name")].append(ev);
} else
{
- QValueList<EventAction> evList;
+ TQValueList<EventAction> evList;
evList.append(ev);
m_events->insert(el.attribute("name"), evList);
}
}
- QDomNode teamNode = projectNode.namedItem("teamdata");
+ TQDomNode teamNode = projectNode.namedItem("teamdata");
no = teamNode.namedItem("leader");
if (!no.isNull())
{
@@ -622,7 +622,7 @@ void ProjectPrivate::loadProjectXML()
for (uint i = 0; i < nl.count(); i++)
{
el = nl.item(i).toElement();
- QDomElement el2 = el.namedItem("subprojectleader").toElement();
+ TQDomElement el2 = el.namedItem("subprojectleader").toElement();
TeamMember member;
member.name = el2.attribute("name");
member.nickName = el2.attribute("nickName");
@@ -667,7 +667,7 @@ void ProjectPrivate::loadProjectXML()
if (m_projectFiles.readFromXML(dom, baseURL, templateURL, excludeRx))
m_modified = true;
- QDomNode uploadNode;
+ TQDomNode uploadNode;
if (!m_createSessionDom)
{
uploadNode = sessionNode.namedItem("uploadprofiles");
@@ -677,7 +677,7 @@ void ProjectPrivate::loadProjectXML()
sessionNode.appendChild(uploadNode);
}
- QDomElement uploadEl = uploadNode.toElement();
+ TQDomElement uploadEl = uploadNode.toElement();
m_showUploadTreeviews = uploadEl.attribute("showtreeviews", "true") == "true";
if (m_showUploadTreeviews)
{
@@ -688,7 +688,7 @@ void ProjectPrivate::loadProjectXML()
if (m_createSessionDom)
{
- QDomNode node;
+ TQDomNode node;
node = projectNode.namedItem("treestatus").cloneNode(true);
sessionNode.appendChild(node);
node = projectNode.namedItem("debuggers").cloneNode(true);
@@ -696,7 +696,7 @@ void ProjectPrivate::loadProjectXML()
}
- parent->statusMsg(QString::null);
+ parent->statusMsg(TQString::null);
parent->newProjectLoaded(projectName, baseURL, templateURL);
parent->reloadTree(&(m_projectFiles), true, treeStatusFromXML());
parent->newStatus();
@@ -708,13 +708,13 @@ void ProjectPrivate::slotAcceptCreateProject()
bool errorOccured = false;
projectName = png->linePrjName->text();
- QString basePath = png->linePrjDir ->text();
+ TQString basePath = png->linePrjDir ->text();
KURL oldBaseURL = baseURL;
baseURL = KURL::fromPathOrURL(basePath);
if (baseURL.isLocalFile())
{
- QString path = QDir(baseURL.path()).canonicalPath();
+ TQString path = TQDir(baseURL.path()).canonicalPath();
if (baseURL.path().endsWith("/"))
path.append("/");
if (!path.isEmpty())
@@ -724,7 +724,7 @@ void ProjectPrivate::slotAcceptCreateProject()
it is important to set the fields only if there is some input
otherwise you set them to an empty string and the treeview will
not recognize it as parent url because:
- QString::Null != ""
+ TQString::Null != ""
*/
if (!png->lineHost->text().isEmpty())
baseURL.setHost(png->lineHost->text());
@@ -759,7 +759,7 @@ void ProjectPrivate::slotAcceptCreateProject()
previewPrefix = KURL::fromPathOrURL( pnf->linePrefix->text() );
usePreviewPrefix = pnf->checkPrefix->isChecked();
- QDomElement el;
+ TQDomElement el;
KURL url;
el = dom.firstChild().firstChild().toElement();
@@ -877,13 +877,13 @@ void ProjectPrivate::slotSaveProjectView()
/** Deletes a project view */
-void ProjectPrivate::slotDeleteProjectView(const QString &view)
+void ProjectPrivate::slotDeleteProjectView(const TQString &view)
{
- QDomNodeList nl = dom.elementsByTagName("projectview");
- QDomElement el;
+ TQDomNodeList nl = dom.elementsByTagName("projectview");
+ TQDomElement el;
for (uint i = 0; i < nl.count(); i++)
{
- QDomNode node = nl.item(i);
+ TQDomNode node = nl.item(i);
el = node.cloneNode().toElement();
if (el.attribute("name") == view)
{
@@ -903,21 +903,21 @@ void ProjectPrivate::slotSaveAsProjectView(bool askForName)
if (askForName)
{
bool ok;
- QString newProjectView = KInputDialog::getText(i18n("Save Project View As"),
+ TQString newProjectView = KInputDialog::getText(i18n("Save Project View As"),
i18n("Enter the name of the view:"), "", &ok, m_mainWindow).lower();
if (!ok)
return;
currentProjectView = newProjectView;
}
- QDomNodeList nl = dom.elementsByTagName("projectview");
+ TQDomNodeList nl = dom.elementsByTagName("projectview");
for (uint i = 0 ;i < nl.count(); i++)
{
- QDomNode node = nl.item(i);
+ TQDomNode node = nl.item(i);
if (node.toElement().attribute("name") == currentProjectView)
{
if (!askForName ||
KMessageBox::warningContinueCancel(m_mainWindow, i18n("<qt>A project view named <b>%1</b> already exists.<br>Do you want to overwrite it?</qt>")
- .arg(currentProjectView), QString::null, i18n("Overwrite")) == KMessageBox::Continue)
+ .arg(currentProjectView), TQString::null, i18n("Overwrite")) == KMessageBox::Continue)
{
node.parentNode().removeChild(node);
break;
@@ -928,9 +928,9 @@ void ProjectPrivate::slotSaveAsProjectView(bool askForName)
}
}
- QDomElement el = dom.createElement("projectview");
+ TQDomElement el = dom.createElement("projectview");
el.setAttribute("name", currentProjectView);
- QDomElement item;
+ TQDomElement item;
KURL::List openURLs = ViewManager::ref()->openedFiles(true); // get open urls
KURL::List::Iterator it;
for ( it = openURLs.begin(); it != openURLs.end(); ++it )
@@ -961,7 +961,7 @@ void ProjectPrivate::slotSaveAsProjectView(bool askForName)
}
-void ProjectPrivate::slotSelectProjectType(const QString &title)
+void ProjectPrivate::slotSelectProjectType(const TQString &title)
{
if ( png->radioLocal->isChecked() ) stack->raiseWidget( 0 );
if ( png->radioWeb ->isChecked() ) stack->raiseWidget( 1 );
@@ -972,9 +972,9 @@ void ProjectPrivate::slotSelectProjectType(const QString &title)
bool ProjectPrivate::createEmptyDom()
{
- QString str;
- QTextStream stream(&str, IO_WriteOnly);
- stream.setEncoding(QTextStream::UnicodeUTF8);
+ TQString str;
+ TQTextStream stream(&str, IO_WriteOnly);
+ stream.setEncoding(TQTextStream::UnicodeUTF8);
stream << "<!DOCTYPE webproject ><webproject>" << endl;
stream << "\t<project name=\"" << projectName << "\">" << endl;
@@ -982,9 +982,9 @@ bool ProjectPrivate::createEmptyDom()
stream << "\t</project>" << endl;
stream << "</webproject>" << endl;
- QString sessionStr;
- QTextStream sessionStream(&sessionStr, IO_WriteOnly);
- sessionStream.setEncoding(QTextStream::UnicodeUTF8);
+ TQString sessionStr;
+ TQTextStream sessionStream(&sessionStr, IO_WriteOnly);
+ sessionStream.setEncoding(TQTextStream::UnicodeUTF8);
sessionStream << "<!DOCTYPE webprojectsession ><webprojectsession>" << endl;
sessionStream << "\t<session>" << endl;
@@ -992,7 +992,7 @@ bool ProjectPrivate::createEmptyDom()
sessionStream << "</webprojectsession>" << endl;
KURL sessionURL = projectURL;
- QString fileName = projectURL.fileName();
+ TQString fileName = projectURL.fileName();
if (fileName.endsWith(".webprj"))
fileName.replace(".webprj", ".session");
else
@@ -1005,7 +1005,7 @@ bool ProjectPrivate::createEmptyDom()
{
tempFile = new KTempFile(tmpDir); // tempFile will get deleted in slotProjectClose()
tempFile->setAutoDelete(true);
- tempFile->textStream()->setEncoding(QTextStream::UnicodeUTF8);
+ tempFile->textStream()->setEncoding(TQTextStream::UnicodeUTF8);
*(tempFile->textStream()) << str;
tempFile->close();
result = QExtFileInfo::createDir(baseURL, m_mainWindow);
@@ -1016,7 +1016,7 @@ bool ProjectPrivate::createEmptyDom()
sessionTempFile = new KTempFile(tmpDir); // sessionTempFile will get deleted in slotProjectClose()
sessionTempFile->setAutoDelete(true);
- sessionTempFile->textStream()->setEncoding(QTextStream::UnicodeUTF8);
+ sessionTempFile->textStream()->setEncoding(TQTextStream::UnicodeUTF8);
*(sessionTempFile->textStream()) << sessionStr;
sessionTempFile->close();
result = KIO::NetAccess::upload(sessionTempFile->name(), sessionURL, m_mainWindow);
@@ -1024,11 +1024,11 @@ bool ProjectPrivate::createEmptyDom()
m_tmpSessionFile= sessionTempFile->name();
} else
{
- QFile f(projectURL.path());
+ TQFile f(projectURL.path());
if (f.open( IO_WriteOnly ))
{
- QTextStream fstream(&f);
- fstream.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream fstream(&f);
+ fstream.setEncoding(TQTextStream::UnicodeUTF8);
fstream << str;
m_tmpProjectFile = projectURL.path(); // we are local: the temp file and the projectURL are the same
} else
@@ -1041,8 +1041,8 @@ bool ProjectPrivate::createEmptyDom()
f.setName(sessionURL.path());
if (f.open(IO_WriteOnly))
{
- QTextStream fstream(&f);
- fstream.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream fstream(&f);
+ fstream.setEncoding(TQTextStream::UnicodeUTF8);
fstream << sessionStr;
m_tmpSessionFile = sessionURL.path(); // we are local: the temp file and the projectURL are the same
} else
@@ -1071,15 +1071,15 @@ bool ProjectPrivate::createEmptyDom()
}
-QStringList ProjectPrivate::treeStatusFromXML()
+TQStringList ProjectPrivate::treeStatusFromXML()
{
- QStringList folderList;
- QDomNodeList nl = m_sessionDom.elementsByTagName("treestatus");
+ TQStringList folderList;
+ TQDomNodeList nl = m_sessionDom.elementsByTagName("treestatus");
if (nl.count() > 0) {
nl = nl.item(0).childNodes();
for ( unsigned int i = 0; i < nl.count(); i++ )
{
- QString urlString = nl.item(i).toElement().attribute("url");
+ TQString urlString = nl.item(i).toElement().attribute("url");
folderList.append( baseURL.url(1) + urlString);
}
}
@@ -1090,15 +1090,15 @@ QStringList ProjectPrivate::treeStatusFromXML()
void ProjectPrivate::getStatusFromTree()
{
// remove old status
- QDomNodeList nl = m_sessionDom.elementsByTagName("treestatus");
- QDomElement el;
+ TQDomNodeList nl = m_sessionDom.elementsByTagName("treestatus");
+ TQDomElement el;
for ( unsigned int i = 0; i < nl.count(); i++ )
{
el = nl.item(i).toElement();
el.parentNode().removeChild( el );
i--;
}
- QStringList folderList;
+ TQStringList folderList;
parent->getTreeStatus( &folderList );
// toplevel folder is always open in a project and QExtFileInfo::toRelative
// creates strange output -> we remove the toplevel folder
@@ -1106,9 +1106,9 @@ void ProjectPrivate::getStatusFromTree()
folderList.remove(folderList.begin());
if (folderList.count() > 0) {
// create the root element
- QDomElement root = m_sessionDom.createElement("treestatus");
+ TQDomElement root = m_sessionDom.createElement("treestatus");
m_sessionDom.firstChild().firstChild().appendChild(root);
- for (QStringList::Iterator it = folderList.begin(); it != folderList.end(); ++it) {
+ for (TQStringList::Iterator it = folderList.begin(); it != folderList.end(); ++it) {
el = m_sessionDom.createElement("openfolder");
el.setAttribute("url", QuantaCommon::qUrl( QExtFileInfo::toRelative(KURL(*it), baseURL) ) );
root.appendChild( el );
@@ -1120,13 +1120,13 @@ void ProjectPrivate::getStatusFromTree()
/** create new project */
void ProjectPrivate::slotNewProject()
{
- QWizard *wiz = new QWizard(m_mainWindow, "new", true);
+ TQWizard *wiz = new TQWizard(m_mainWindow, "new", true);
wiz->setCaption(i18n("New Project Wizard"));
- wiz->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
+ wiz->setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum);
png = new ProjectNewGeneral(0L);
- stack = new QWidgetStack(0L);
+ stack = new TQWidgetStack(0L);
pnl = new ProjectNewLocal(stack);
pnw = new ProjectNewWeb(stack);
@@ -1145,38 +1145,38 @@ void ProjectPrivate::slotNewProject()
wiz->setNextEnabled ( pnf, false );
wiz->setFinishEnabled( pnf, true );
- connect( png, SIGNAL(enableNextButton(QWidget *,bool)),
- wiz, SLOT(setNextEnabled(QWidget*,bool)));
- connect( png, SIGNAL(setBaseURL(const KURL&)),
- pnl, SLOT( setBaseURL(const KURL&)));
- connect( png, SIGNAL(setBaseURL(const KURL&)),
- pnw, SLOT( setBaseURL(const KURL&)));
- connect( this,SIGNAL(setLocalFiles(bool)),
- pnl, SLOT(slotSetFiles(bool)));
+ connect( png, TQT_SIGNAL(enableNextButton(TQWidget *,bool)),
+ wiz, TQT_SLOT(setNextEnabled(TQWidget*,bool)));
+ connect( png, TQT_SIGNAL(setBaseURL(const KURL&)),
+ pnl, TQT_SLOT( setBaseURL(const KURL&)));
+ connect( png, TQT_SIGNAL(setBaseURL(const KURL&)),
+ pnw, TQT_SLOT( setBaseURL(const KURL&)));
+ connect( this,TQT_SIGNAL(setLocalFiles(bool)),
+ pnl, TQT_SLOT(slotSetFiles(bool)));
- connect(wiz, SIGNAL(selected(const QString &)),
- this, SLOT (slotSelectProjectType(const QString &)));
- connect(wiz, SIGNAL(helpClicked()), SLOT(slotNewProjectHelpClicked()));
-
- connect( pnw, SIGNAL(enableMessagesWidget()),
- parent, SIGNAL(enableMessageWidget()));
- connect( pnw, SIGNAL(messages(const QString&)),
- parent, SLOT (slotGetMessages(const QString&)));
- connect( pnw, SIGNAL(enableNextButton(QWidget *,bool)),
- wiz, SLOT(setNextEnabled(QWidget*,bool)));
- connect( pnw, SIGNAL(enableNextButton(QWidget *,bool)),
- wiz, SLOT(setBackEnabled(QWidget*,bool)));
-
- QStringList lst = DTDs::ref()->nickNameList(true);
+ connect(wiz, TQT_SIGNAL(selected(const TQString &)),
+ this, TQT_SLOT (slotSelectProjectType(const TQString &)));
+ connect(wiz, TQT_SIGNAL(helpClicked()), TQT_SLOT(slotNewProjectHelpClicked()));
+
+ connect( pnw, TQT_SIGNAL(enableMessagesWidget()),
+ parent, TQT_SIGNAL(enableMessageWidget()));
+ connect( pnw, TQT_SIGNAL(messages(const TQString&)),
+ parent, TQT_SLOT (slotGetMessages(const TQString&)));
+ connect( pnw, TQT_SIGNAL(enableNextButton(TQWidget *,bool)),
+ wiz, TQT_SLOT(setNextEnabled(TQWidget*,bool)));
+ connect( pnw, TQT_SIGNAL(enableNextButton(TQWidget *,bool)),
+ wiz, TQT_SLOT(setBackEnabled(TQWidget*,bool)));
+
+ TQStringList lst = DTDs::ref()->nickNameList(true);
pnf->dtdCombo->insertStringList(lst);
- QString defaultDTDName = DTDs::ref()->getDTDNickNameFromName(qConfig.defaultDocType.lower());
+ TQString defaultDTDName = DTDs::ref()->getDTDNickNameFromName(qConfig.defaultDocType.lower());
int pos = lst.findIndex(defaultDTDName);
if (pos >= 0)
pnf->dtdCombo->setCurrentItem(pos);
- QStringList availableEncodingNames(KGlobal::charsets()->availableEncodingNames());
+ TQStringList availableEncodingNames(KGlobal::charsets()->availableEncodingNames());
pnf->encodingCombo->insertStringList( availableEncodingNames );
- QStringList::ConstIterator iter;
+ TQStringList::ConstIterator iter;
int iIndex = -1;
for (iter = availableEncodingNames.begin(); iter != availableEncodingNames.end(); ++iter)
{
@@ -1204,41 +1204,41 @@ void ProjectPrivate::slotNewProject()
void ProjectPrivate::slotCloseProject()
{
if (!parent->hasProject()) return;
- connect(ViewManager::ref(), SIGNAL(filesClosed(bool)), this, SLOT(slotProceedWithCloseProject(bool)));
+ connect(ViewManager::ref(), TQT_SIGNAL(filesClosed(bool)), this, TQT_SLOT(slotProceedWithCloseProject(bool)));
parent->closeFiles();
}
void ProjectPrivate::slotProceedWithCloseProject(bool success)
{
- disconnect(ViewManager::ref(), SIGNAL(filesClosed(bool)), this, SLOT(slotProceedWithCloseProject(bool)));
+ disconnect(ViewManager::ref(), TQT_SIGNAL(filesClosed(bool)), this, TQT_SLOT(slotProceedWithCloseProject(bool)));
if (!success) return;
- emit eventHappened("before_project_close", baseURL.url(), QString::null);
+ emit eventHappened("before_project_close", baseURL.url(), TQString::null);
if (!uploadProjectFile())
{
if (KMessageBox::warningContinueCancel(m_mainWindow, i18n("Saving of project failed. Do you want to continue with closing (might cause data loss)?"), i18n("Project Saving Error"), KStdGuiItem::close()) == KMessageBox::Cancel)
return;
}
- emit eventHappened("after_project_close", baseURL.url(), QString::null);
+ emit eventHappened("after_project_close", baseURL.url(), TQString::null);
// empty dom tree
dom.clear();
m_sessionDom.clear();
m_events->clear();
config->setGroup("Projects");
- config->writePathEntry("Last Project", QString::null);
+ config->writePathEntry("Last Project", TQString::null);
init();
parent->newProjectLoaded(projectName, baseURL, templateURL);
- parent->reloadTree( &(m_projectFiles), true, QStringList());
+ parent->reloadTree( &(m_projectFiles), true, TQStringList());
adjustActions();
m_projectRecent->setCurrentItem(-1);
parent->newStatus();
- kapp->processEvents(QEventLoop::ExcludeUserInput | QEventLoop::ExcludeSocketNotifiers);
+ kapp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers);
}
/** open project file */
void ProjectPrivate::slotOpenProject()
{
- KURL url = KFileDialog::getOpenURL( QString::null,
+ KURL url = KFileDialog::getOpenURL( TQString::null,
"*.wpj *.webprj"+i18n("|Project Files\n*|All Files"), m_mainWindow,
i18n("Open Project"));
@@ -1255,8 +1255,8 @@ bool ProjectPrivate::saveProject()
if ( !parent->hasProject() ) return false;
bool result = true;
// remove old opened files
- QDomElement el;
- QDomNodeList nl = dom.firstChild().firstChild().childNodes();
+ TQDomElement el;
+ TQDomNodeList nl = dom.firstChild().firstChild().childNodes();
for ( unsigned int i = 0; i < nl.count(); i++ )
{
@@ -1268,18 +1268,18 @@ bool ProjectPrivate::saveProject()
}
}
getStatusFromTree();
- QFile f(m_tmpProjectFile);
+ TQFile f(m_tmpProjectFile);
if (f.open(IO_WriteOnly))
{
- QTextStream stream( &f );
- stream.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream stream( &f );
+ stream.setEncoding(TQTextStream::UnicodeUTF8);
dom.save(stream, 2);
f.close();
f.setName(m_tmpSessionFile);
if (f.open(IO_WriteOnly))
{
- QTextStream stream(&f);
- stream.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream stream(&f);
+ stream.setEncoding(TQTextStream::UnicodeUTF8);
m_sessionDom.save(stream, 2);
f.close();
}
@@ -1295,21 +1295,21 @@ bool ProjectPrivate::saveProject()
}
-void ProjectPrivate::loadProjectFromTemp(const KURL &url, const QString &tempFile, const QString &sessionTempFile)
+void ProjectPrivate::loadProjectFromTemp(const KURL &url, const TQString &tempFile, const TQString &sessionTempFile)
{
m_createSessionDom = true;
m_tmpProjectFile = tempFile;
if (!sessionTempFile.isEmpty())
m_tmpSessionFile = sessionTempFile;
projectURL = url;
- QFile f(tempFile);
+ TQFile f(tempFile);
if (f.open(IO_ReadOnly))
{
baseURL = url;
baseURL.setPath(url.directory(true, true));
if (baseURL.isLocalFile())
{
- QDir dir(baseURL.path());
+ TQDir dir(baseURL.path());
baseURL.setPath(dir.canonicalPath());
baseURL.adjustPath(-1);
}
@@ -1357,11 +1357,11 @@ bool ProjectPrivate::loadProject(const KURL &url)
if ( projectAlreadyOpen(url.url()) )
{
parent->hideSplash();
- if (KMessageBox::warningContinueCancel(m_mainWindow, i18n("<qt>The project<br><b>%1</b><br> seems to be used by another Quanta instance.<br>You may end up with data loss if you open the same project in two instances, modify and save them in both.<br><br>Do you want to proceed with open?</qt>").arg(url.prettyURL()), QString::null, KStdGuiItem::open()) == KMessageBox::Cancel)
+ if (KMessageBox::warningContinueCancel(m_mainWindow, i18n("<qt>The project<br><b>%1</b><br> seems to be used by another Quanta instance.<br>You may end up with data loss if you open the same project in two instances, modify and save them in both.<br><br>Do you want to proceed with open?</qt>").arg(url.prettyURL()), TQString::null, KStdGuiItem::open()) == KMessageBox::Cancel)
return false;
}
- QString projectTmpFile;
- QString sessionTmpFile;
+ TQString projectTmpFile;
+ TQString sessionTmpFile;
// test if url is writeable and download to local file
if (KIO::NetAccess::exists(url, false, m_mainWindow) &&
@@ -1372,7 +1372,7 @@ bool ProjectPrivate::loadProject(const KURL &url)
slotCloseProject();
}
KURL sessionURL = url;
- QString fileName = url.fileName();
+ TQString fileName = url.fileName();
if (fileName.endsWith(".webprj"))
fileName.replace(".webprj", ".session");
else
@@ -1382,9 +1382,9 @@ bool ProjectPrivate::loadProject(const KURL &url)
KIO::NetAccess::download(sessionURL, sessionTmpFile, m_mainWindow);
else
{
- QString sessionStr;
- QTextStream sessionStream(&sessionStr, IO_WriteOnly);
- sessionStream.setEncoding(QTextStream::UnicodeUTF8);
+ TQString sessionStr;
+ TQTextStream sessionStream(&sessionStr, IO_WriteOnly);
+ sessionStream.setEncoding(TQTextStream::UnicodeUTF8);
sessionStream << "<!DOCTYPE webprojectsession ><webprojectsession>" << endl;
sessionStream << "\t<session>" << endl;
@@ -1394,17 +1394,17 @@ bool ProjectPrivate::loadProject(const KURL &url)
{
sessionTempFile = new KTempFile(tmpDir); // sessionTempFile will get deleted in slotProjectClose()
sessionTempFile->setAutoDelete(true);
- sessionTempFile->textStream()->setEncoding(QTextStream::UnicodeUTF8);
+ sessionTempFile->textStream()->setEncoding(TQTextStream::UnicodeUTF8);
*(sessionTempFile->textStream()) << sessionStr;
sessionTempFile->close();
m_tmpSessionFile = sessionTempFile->name();
} else
{
- QFile f(sessionURL.path());
+ TQFile f(sessionURL.path());
if (f.open(IO_WriteOnly))
{
- QTextStream fstream(&f);
- fstream.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream fstream(&f);
+ fstream.setEncoding(TQTextStream::UnicodeUTF8);
fstream << sessionStr;
m_tmpSessionFile = sessionURL.path(); // we are local: the temp file and the projectURL are the same
}
@@ -1446,10 +1446,10 @@ void ProjectPrivate::slotAddFiles()
if ( !destination.isEmpty())
{
CopyTo *dlg = new CopyTo( baseURL);
- connect(dlg, SIGNAL(deleteDialog(CopyTo*)),
- SLOT (slotDeleteCopytoDlg(CopyTo*)));
- connect(dlg, SIGNAL(addFilesToProject(const KURL::List&)), parent,
- SLOT (slotInsertFilesAfterCopying(const KURL::List&)));
+ connect(dlg, TQT_SIGNAL(deleteDialog(CopyTo*)),
+ TQT_SLOT (slotDeleteCopytoDlg(CopyTo*)));
+ connect(dlg, TQT_SIGNAL(addFilesToProject(const KURL::List&)), parent,
+ TQT_SLOT (slotInsertFilesAfterCopying(const KURL::List&)));
list = dlg->copy( list, destination );
return;
}
@@ -1470,7 +1470,7 @@ void ProjectPrivate::slotAddFiles()
}
}
- parent->reloadTree( &(m_projectFiles), false, QStringList());
+ parent->reloadTree( &(m_projectFiles), false, TQStringList());
}
}
@@ -1505,15 +1505,15 @@ void ProjectPrivate::slotDebuggerOptions()
int errCode = 0;
//Workaround for dynamic_cast not working correctly on SUSE 10, gcc 4.0.2
//The correct way should be a simple:
-// DebuggerClient *dbg = KParts::ComponentFactory::createInstanceFromService<DebuggerClient>(service, this, 0, QStringList(), &errCode);
- QObject* obj = KParts::ComponentFactory::createInstanceFromService<QObject>(service, this, 0, QStringList(), &errCode);
+// DebuggerClient *dbg = KParts::ComponentFactory::createInstanceFromService<DebuggerClient>(service, this, 0, TQStringList(), &errCode);
+ TQObject* obj = KParts::ComponentFactory::createInstanceFromService<TQObject>(service, this, 0, TQStringList(), &errCode);
if (obj && obj->inherits("DebuggerClient"))
dbg = static_cast<DebuggerClient *>(obj);
if (dbg)
{
- QDomNode projectNode = m_sessionDom.firstChild().firstChild();
- QDomNode nodeThisDbg;
- QDomNode nodeDbg = projectNode.namedItem("debuggers");
+ TQDomNode projectNode = m_sessionDom.firstChild().firstChild();
+ TQDomNode nodeThisDbg;
+ TQDomNode nodeDbg = projectNode.namedItem("debuggers");
if(nodeDbg.isNull())
{
nodeDbg = m_sessionDom.createElement("debuggers");
@@ -1538,7 +1538,7 @@ void ProjectPrivate::slotDebuggerOptions()
}
}
-void ProjectPrivate::slotDebuggerChanged(const QString &debugger)
+void ProjectPrivate::slotDebuggerChanged(const TQString &debugger)
{
m_debuggerClientEdit = debugger;
}
@@ -1555,7 +1555,7 @@ void ProjectPrivate::writeConfig()
// add project to list
if (!projectURL.isEmpty())
{
- QStringList projectList = QuantaCommon::readPathListEntry(config, "OpenProjects");
+ TQStringList projectList = QuantaCommon::readPathListEntry(config, "OpenProjects");
if (projectList.contains( projectURL.url() ) == 0)
{
projectList.append( projectURL.url() );
@@ -1576,11 +1576,11 @@ void ProjectPrivate::writeConfig()
}
-void ProjectPrivate::removeFromConfig(const QString & urlStr)
+void ProjectPrivate::removeFromConfig(const TQString & urlStr)
{
config->reparseConfiguration();
config->setGroup("Projects");
- QStringList projectList = QuantaCommon::readPathListEntry(config, "OpenProjects");
+ TQStringList projectList = QuantaCommon::readPathListEntry(config, "OpenProjects");
int i = projectList.findIndex( urlStr );
if ( i > -1)
{
@@ -1601,11 +1601,11 @@ void ProjectPrivate::removeFromConfig(const QString & urlStr)
}
-bool ProjectPrivate::projectAlreadyOpen(const QString & urlStr)
+bool ProjectPrivate::projectAlreadyOpen(const TQString & urlStr)
{
config->reparseConfiguration();
config->setGroup("Projects");
- QStringList projectList = QuantaCommon::readPathListEntry(config, "OpenProjects");
+ TQStringList projectList = QuantaCommon::readPathListEntry(config, "OpenProjects");
return (projectList.contains(urlStr) != 0);
}
@@ -1616,7 +1616,7 @@ bool ProjectPrivate::uploadProjectFile()
if (m_tmpProjectFile.isNull() || !saveProject())
return false;
KURL sessionURL = projectURL;
- QString fileName = projectURL.fileName();
+ TQString fileName = projectURL.fileName();
if (fileName.endsWith(".webprj"))
fileName.replace(".webprj", ".session");
else
@@ -1632,7 +1632,7 @@ bool ProjectPrivate::uploadProjectFile()
tempFile = 0L;
delete sessionTempFile;
sessionTempFile = 0L;
- m_tmpProjectFile = QString::null;
+ m_tmpProjectFile = TQString::null;
return true;
}
if (KIO::NetAccess::upload(m_tmpProjectFile, projectURL, m_mainWindow) && KIO::NetAccess::upload(m_tmpSessionFile, sessionURL, m_mainWindow))
@@ -1659,7 +1659,7 @@ bool ProjectPrivate::uploadProjectFile()
{
if (quantaApp)
{
- parent->statusMsg(QString::null );
+ parent->statusMsg(TQString::null );
KMessageBox::error(m_mainWindow, KIO::NetAccess::lastErrorString());
}
return false;
diff --git a/quanta/project/projectprivate.h b/quanta/project/projectprivate.h
index 3ab1a20a..e09977a2 100644
--- a/quanta/project/projectprivate.h
+++ b/quanta/project/projectprivate.h
@@ -19,9 +19,9 @@
#define PROJECTPRIVATE_H
//qt includes
-#include <qmap.h>
-#include <qregexp.h>
-#include <qguardedptr.h>
+#include <tqmap.h>
+#include <tqregexp.h>
+#include <tqguardedptr.h>
//app includes
#include "project.h"
@@ -45,7 +45,7 @@ class ProjectNewWeb;
class ProjectNewFinal;
class ProjectList;
struct EventAction;
-typedef QMap<QString, QValueList<EventAction> > EventActions;
+typedef TQMap<TQString, TQValueList<EventAction> > EventActions;
class ProjectPrivate
: public QObject
@@ -59,7 +59,7 @@ public:
Project *parent;
/** Point to the .webprj file */
KURL projectURL;
- QString projectName;
+ TQString projectName;
/** Points to the directory of the .webprj file */
KURL baseURL;
/** Points to the document root inside the project. Item under this folder
@@ -71,7 +71,7 @@ upload.*/
KURL previewPrefix;
bool usePreviewPrefix;
bool m_persistentBookmarks;
- QString author;
+ TQString author;
KRecentFilesAction *m_projectRecent;
ProjectNewGeneral *png;
@@ -79,39 +79,39 @@ upload.*/
ProjectNewWeb *pnw;
ProjectNewFinal *pnf;
- QWidgetStack *stack;
- QString currentProjectView;
+ TQWidgetStack *stack;
+ TQString currentProjectView;
KConfig *config;
bool m_modified;
bool m_excludeCvsignore;
/** Default DTD for this project. */
- QString m_defaultDTD;
- QString m_defaultEncoding;
- QRegExp excludeRx;
- QStringList excludeList;
+ TQString m_defaultDTD;
+ TQString m_defaultEncoding;
+ TQRegExp excludeRx;
+ TQStringList excludeList;
KMainWindow *m_mainWindow;
- QString m_debuggerClientEdit;
- QMap<QString, QString> m_passwdList;
+ TQString m_debuggerClientEdit;
+ TQMap<TQString, TQString> m_passwdList;
ProjectList m_projectFiles; ///< the list with the _absolute_ URL's of the project
KDirWatch *m_dirWatch; ///< watches some project directories for modification
KURL toolbarURL;
KURL templateURL;
- QString email;
- QDomDocument dom;
- QDomDocument m_sessionDom;
- QString debuggerClient;
+ TQString email;
+ TQDomDocument dom;
+ TQDomDocument m_sessionDom;
+ TQString debuggerClient;
bool m_debuggerPersistentBreakpoints;
bool m_debuggerPersistentWatches;
- QGuardedPtr<ProjectUpload> m_uploadDialog;
+ TQGuardedPtr<ProjectUpload> m_uploadDialog;
TeamMember m_teamLeader;
- QMap<QString, TeamMember> m_subprojectLeaders;
- QMap<QString, TeamMember> m_taskLeaders;
- QValueList<TeamMember> m_simpleMembers;
- QValueList<SubProject> m_subprojects;
- QString m_yourself;
- QString m_mailingList;
+ TQMap<TQString, TeamMember> m_subprojectLeaders;
+ TQMap<TQString, TeamMember> m_taskLeaders;
+ TQValueList<TeamMember> m_simpleMembers;
+ TQValueList<SubProject> m_subprojects;
+ TQString m_yourself;
+ TQString m_mailingList;
bool m_showUploadTreeviews;
bool m_eventsEnabled;
@@ -124,8 +124,8 @@ upload.*/
KSelectAction *openPrjViewAction, *deletePrjViewAction;
/** the filename of the local webprj file after download */
- QString m_tmpProjectFile;
- QString m_tmpSessionFile;
+ TQString m_tmpProjectFile;
+ TQString m_tmpSessionFile;
/** used for creating a new project */
KTempFile *tempFile;
KTempFile *sessionTempFile;
@@ -138,7 +138,7 @@ upload.*/
void adjustViewActions();
- QStringList projectViewList();
+ TQStringList projectViewList();
void init();
@@ -147,7 +147,7 @@ upload.*/
void insertFiles( KURL::List files );
/** insert files from dir recursive */
- void insertFiles(const KURL& pathURL, const QString& mask );
+ void insertFiles(const KURL& pathURL, const TQString& mask );
void loadProjectXML();
@@ -165,7 +165,7 @@ upload.*/
@param tempFile the path of the already downloaded temp file
@param sessionTempFile the path of the downloaded project session file. Empty if no such file was downloaded
*/
- void loadProjectFromTemp(const KURL &url, const QString &tempFile, const QString &sessionTempFile);
+ void loadProjectFromTemp(const KURL &url, const TQString &tempFile, const TQString &sessionTempFile);
void getStatusFromTree();
@@ -185,14 +185,14 @@ upload.*/
@param the url string of the project to remove
*/
- void removeFromConfig(const QString & urlStr);
+ void removeFromConfig(const TQString & urlStr);
/**
test if a project is in the list of open projects in config
@param the url string of the project to test
*/
- bool projectAlreadyOpen(const QString & urlStr);
+ bool projectAlreadyOpen(const TQString & urlStr);
/** uploads the project file
@return false if there was nothing to upload or an error occured during upload
@@ -203,7 +203,7 @@ public slots:
void slotDebuggerOptions();
- void slotDebuggerChanged(const QString &debugger);
+ void slotDebuggerChanged(const TQString &debugger);
/** create new project */
void slotNewProject();
@@ -222,7 +222,7 @@ public slots:
void slotAddFiles();
/** Deletes a project view */
- void slotDeleteProjectView(const QString &view);
+ void slotDeleteProjectView(const TQString &view);
/** Saves a project view (group of files & toolbars) asking for a name. */
void slotSaveAsProjectView(bool askForName = true);
@@ -231,10 +231,10 @@ public slots:
void slotSaveProjectView();
/** Opens a project view (toolbars & files). */
- void slotOpenProjectView(const QString &view);
+ void slotOpenProjectView(const TQString &view);
/** for the new project wizard */
- void slotSelectProjectType(const QString &title);
+ void slotSelectProjectType(const TQString &title);
void slotDeleteCopytoDlg(CopyTo *dlg);
@@ -243,11 +243,11 @@ private slots:
signals:
void setLocalFiles(bool);
- void eventHappened(const QString&, const QString&, const QString& );
+ void eventHappened(const TQString&, const TQString&, const TQString& );
private:
- QStringList treeStatusFromXML();
- QString m_wizTitle ;
+ TQStringList treeStatusFromXML();
+ TQString m_wizTitle ;
bool m_createSessionDom;
};
diff --git a/quanta/project/projectupload.cpp b/quanta/project/projectupload.cpp
index e95f9446..ce621c07 100644
--- a/quanta/project/projectupload.cpp
+++ b/quanta/project/projectupload.cpp
@@ -18,20 +18,20 @@
//qt includes
-#include <qlistview.h>
-#include <qeventloop.h>
-#include <qfileinfo.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qstringlist.h>
-#include <qregexp.h>
-#include <qlabel.h>
-#include <qcombobox.h>
-#include <qurl.h>
-#include <qcheckbox.h>
-#include <qtimer.h>
-#include <qframe.h>
-#include <qtooltip.h>
+#include <tqlistview.h>
+#include <tqeventloop.h>
+#include <tqfileinfo.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqstringlist.h>
+#include <tqregexp.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
+#include <tqurl.h>
+#include <tqcheckbox.h>
+#include <tqtimer.h>
+#include <tqframe.h>
+#include <tqtooltip.h>
//kde includes
#include <kapplication.h>
@@ -62,7 +62,7 @@
#include "qextfileinfo.h"
#include "resource.h"
-ProjectUpload::ProjectUpload(const KURL& url, const QString& profileName, bool showOnlyProfiles, bool quickUpload, bool markOnly, const char* name)
+ProjectUpload::ProjectUpload(const KURL& url, const TQString& profileName, bool showOnlyProfiles, bool quickUpload, bool markOnly, const char* name)
:ProjectUploadS( 0L, name, false, Qt::WDestructiveClose)
{
m_quickUpload = quickUpload;
@@ -83,7 +83,7 @@ ProjectUpload::ProjectUpload(const KURL& url, const QString& profileName, bool s
{
if (markOnly)
markAsUploaded->setChecked(true);
- QTimer::singleShot(10, this, SLOT(slotBuildTree()));
+ TQTimer::singleShot(10, this, TQT_SLOT(slotBuildTree()));
currentItem = 0L;
}
}
@@ -95,20 +95,20 @@ ProjectUpload::~ProjectUpload()
delete baseUrl;
}
-void ProjectUpload::initProjectInfo(const QString& defaultProfile)
+void ProjectUpload::initProjectInfo(const TQString& defaultProfile)
{
baseUrl = new KURL();
// list->setMultiSelection(true);
- QDomDocument *dom = m_project->sessionDom();
+ TQDomDocument *dom = m_project->sessionDom();
m_profilesNode = dom->firstChild().firstChild().namedItem("uploadprofiles");
if (m_profilesNode.isNull()) //compat code, remove when upgrade from 3.2 is not supported
{
m_currentProfileElement = dom->firstChild().firstChild().namedItem("upload").toElement();
m_defaultProfile = m_currentProfileElement.attribute("user","") + "@" + m_currentProfileElement.attribute("remote_host","");
- QDomElement e = dom->createElement("uploadprofiles");
+ TQDomElement e = dom->createElement("uploadprofiles");
e.setAttribute("defaultProfile", m_defaultProfile);
- QDomElement el = dom->createElement("profile");
+ TQDomElement el = dom->createElement("profile");
el.setAttribute("remote_host", m_currentProfileElement.attribute("remote_host",""));
el.setAttribute("user", m_currentProfileElement.attribute("user",""));
el.setAttribute("remote_path", m_currentProfileElement.attribute("remote_path",""));
@@ -128,10 +128,10 @@ void ProjectUpload::initProjectInfo(const QString& defaultProfile)
m_defaultProfile = m_profilesNode.toElement().attribute("defaultProfile");
else
m_defaultProfile = defaultProfile;
- QDomNodeList profileList = m_profilesNode.toElement().elementsByTagName("profile");
- QDomElement e;
+ TQDomNodeList profileList = m_profilesNode.toElement().elementsByTagName("profile");
+ TQDomElement e;
m_currentProfileElement = profileList.item(0).toElement();
- QString s;
+ TQString s;
int defaultIdx = 0;
for (uint i = 0; i < profileList.count(); i++)
{
@@ -149,7 +149,7 @@ void ProjectUpload::initProjectInfo(const QString& defaultProfile)
buttonRemoveProfile->setEnabled(comboProfile->count() > 1);
keepPasswords->setChecked(m_project->keepPasswd);
uploadInProgress = false;
- connect( this, SIGNAL( uploadNext() ), SLOT( slotUploadNext() ) );
+ connect( this, TQT_SIGNAL( uploadNext() ), TQT_SLOT( slotUploadNext() ) );
setProfileTooltip();
}
@@ -159,12 +159,12 @@ void ProjectUpload::slotBuildTree()
emit eventHappened("upload_requested", m_project->projectBaseURL().url(), "");
loadRemoteUploadInfo();
KIO::UDSEntry entry;
- QString strUrl = QuantaCommon::qUrl(startUrl);
+ TQString strUrl = QuantaCommon::qUrl(startUrl);
bool isDirectory = strUrl.endsWith("/");
bool forceUpload = !startUrl.isEmpty();
- QString s;
- QDomElement el;
- QDomNodeList nl = m_project->dom()->elementsByTagName("item");
+ TQString s;
+ TQDomElement el;
+ TQDomNodeList nl = m_project->dom()->elementsByTagName("item");
totalProgress->setTotalSteps(nl.count() - 1 );
totalProgress->setValue(0);
totalText->setText(i18n("Scanning project files..."));
@@ -174,7 +174,7 @@ void ProjectUpload::slotBuildTree()
{
u = QExtFileInfo::toAbsolute(startUrl, u);
}
- QDict<KFileItem> projectDirFiles;
+ TQDict<KFileItem> projectDirFiles;
if (startUrl.isEmpty() || strUrl.endsWith("/")) //upload a folder
{
@@ -184,7 +184,7 @@ void ProjectUpload::slotBuildTree()
projectDirFiles.insert(u.url(), new KFileItem(KFileItem::Unknown, KFileItem::Unknown, u, true));
}
- QTime t;
+ TQTime t;
t.start();
u = m_project->projectBaseURL();
@@ -245,8 +245,8 @@ void ProjectUpload::slotBuildTree()
void ProjectUpload::buildSelectedItemList()
{
- QListViewItem *item;
- QListViewItemIterator it(list);
+ TQListViewItem *item;
+ TQListViewItemIterator it(list);
toUpload.clear();
needsConfirmation.clear();
for ( ; it.current(); ++it )
@@ -274,7 +274,7 @@ void ProjectUpload::buildSelectedItemList()
void ProjectUpload::initBaseUrl()
{
- QString path = m_currentProfileElement.attribute("remote_path","");
+ TQString path = m_currentProfileElement.attribute("remote_path","");
if (!path.startsWith("/"))
path.prepend("/");
@@ -283,7 +283,7 @@ void ProjectUpload::initBaseUrl()
baseUrl->setHost(m_currentProfileElement.attribute("remote_host",""));
baseUrl->setPath(path);
baseUrl->setUser(m_currentProfileElement.attribute("user",""));
- QString password;
+ TQString password;
if (keepPasswords->isChecked())
{
m_project->keepPasswd = true;
@@ -304,16 +304,16 @@ void ProjectUpload::startUpload()
{
if (m_profilesOnly)
{
- QDialog::accept();
+ TQDialog::accept();
return;
}
stopUpload = false;
initBaseUrl();
if (markAsUploaded->isChecked())
{
- QStringList selectedList;
- QListViewItem *item;
- QListViewItemIterator it(list);
+ TQStringList selectedList;
+ TQListViewItem *item;
+ TQListViewItemIterator it(list);
for ( ; it.current(); ++it )
{
item = it.current();
@@ -333,8 +333,8 @@ void ProjectUpload::startUpload()
}
}
//update upload time
- QDomNodeList nl = m_project->dom()->elementsByTagName("item");
- QDomElement el;
+ TQDomNodeList nl = m_project->dom()->elementsByTagName("item");
+ TQDomElement el;
for ( uint i = 0; i < nl.count(); i++ )
{
el = nl.item(i).toElement();
@@ -351,14 +351,14 @@ void ProjectUpload::startUpload()
int confirmCount = needsConfirmation.count();
if (confirmCount > 0)
{
- QValueList<QListViewItem*>::Iterator it;
- QStringList confirmList;
+ TQValueList<TQListViewItem*>::Iterator it;
+ TQStringList confirmList;
for (it = needsConfirmation.begin(); it != needsConfirmation.end(); ++it)
{
confirmList.append(((UploadTreeFile*)(*it))->url().prettyURL(0, KURL::StripFileProtocol));
}
bool ok;
- QStringList confirmedList = KInputDialog::getItemList(i18n("Confirm Upload"), i18n("Confirm that you want to upload the following files (unselect the files you do not want to upload):"), confirmList, confirmList, true, &ok, this);
+ TQStringList confirmedList = KInputDialog::getItemList(i18n("Confirm Upload"), i18n("Confirm that you want to upload the following files (unselect the files you do not want to upload):"), confirmList, confirmList, true, &ok, this);
if (!ok) return;
for (it = needsConfirmation.begin(); it != needsConfirmation.end(); ++it)
{
@@ -382,7 +382,7 @@ void ProjectUpload::startUpload()
} else
{
if (KMessageBox::warningContinueCancel(this, i18n("<qt><b>%1</b> seems to be unaccessible.<br>Do you want to proceed with upload?</qt>")
- .arg(u.prettyURL(0, KURL::StripFileProtocol)),QString::null,KStdGuiItem::cont()) == KMessageBox::Continue)
+ .arg(u.prettyURL(0, KURL::StripFileProtocol)),TQString::null,KStdGuiItem::cont()) == KMessageBox::Continue)
{
upload();
return;
@@ -456,12 +456,12 @@ void ProjectUpload::upload()
emit eventHappened("before_upload", from.url(), to.url());
KIO::FileCopyJob *job = KIO::file_copy( from, to, fileItem->permissions(), true, false, false );
- connect( job, SIGNAL( result( KIO::Job * ) ),this,
- SLOT( uploadFinished( KIO::Job * ) ) );
- connect( job, SIGNAL( percent( KIO::Job *,unsigned long ) ),
- this, SLOT( uploadProgress( KIO::Job *,unsigned long ) ) );
- connect( job, SIGNAL( infoMessage( KIO::Job *,const QString& ) ),
- this, SLOT( uploadMessage( KIO::Job *,const QString& ) ) );
+ connect( job, TQT_SIGNAL( result( KIO::Job * ) ),this,
+ TQT_SLOT( uploadFinished( KIO::Job * ) ) );
+ connect( job, TQT_SIGNAL( percent( KIO::Job *,unsigned long ) ),
+ this, TQT_SLOT( uploadProgress( KIO::Job *,unsigned long ) ) );
+ connect( job, TQT_SIGNAL( infoMessage( KIO::Job *,const TQString& ) ),
+ this, TQT_SLOT( uploadMessage( KIO::Job *,const TQString& ) ) );
labelCurFile->setText(i18n("Current: %1").arg(currentURL.fileName()));
currentProgress->setProgress( 0 );
@@ -500,7 +500,7 @@ void ProjectUpload::uploadProgress ( KIO::Job *, unsigned long percent )
currentProgress->setProgress( percent );
}
-void ProjectUpload::uploadMessage ( KIO::Job *, const QString & msg )
+void ProjectUpload::uploadMessage ( KIO::Job *, const TQString & msg )
{
labelCurFile->setText( currentURL.fileName() + " : " + msg );
}
@@ -515,7 +515,7 @@ void ProjectUpload::selectModified()
{
for ( KURL::List::Iterator file = modified.begin(); file != modified.end(); ++file )
{
- QListViewItem *it = list->findItem( (*file).path() );
+ TQListViewItem *it = list->findItem( (*file).path() );
it->setSelected(true);
it->repaint();
}
@@ -544,7 +544,7 @@ void ProjectUpload::collapseAll()
list->collapseAll();
}
-void ProjectUpload::resizeEvent ( QResizeEvent *t )
+void ProjectUpload::resizeEvent ( TQResizeEvent *t )
{
ProjectUploadS::resizeEvent(t);
list->setColumnWidth(0,list->width()-list->columnWidth(1)-list->columnWidth(2)-20);
@@ -556,8 +556,8 @@ void ProjectUpload::slotUploadNext()
if (!suspendUpload)
{
totalProgress->setProgress(totalProgress->progress()+1);
- // QListViewItem *it = list->findItem( currentURL.path() );
- QListViewItem *it = currentItem;
+ // TQListViewItem *it = list->findItem( currentURL.path() );
+ TQListViewItem *it = currentItem;
if (it)
{
it->setSelected(false);
@@ -569,8 +569,8 @@ void ProjectUpload::slotUploadNext()
toUpload.remove( it );
//update upload time
- QDomNodeList nl = m_project->dom()->elementsByTagName("item");
- QDomElement el;
+ TQDomNodeList nl = m_project->dom()->elementsByTagName("item");
+ TQDomElement el;
for ( uint i = 0; i < nl.count(); i++ )
{
el = nl.item(i).toElement();
@@ -587,10 +587,10 @@ void ProjectUpload::slotUploadNext()
void ProjectUpload::clearProjectModified()
{
- QDomNodeList nl = m_project->dom()->elementsByTagName("item");
+ TQDomNodeList nl = m_project->dom()->elementsByTagName("item");
for ( unsigned int i=0; i<nl.count(); i++ )
{
- QDomElement el = nl.item(i).toElement();
+ TQDomElement el = nl.item(i).toElement();
m_uploadTimeList[el.attribute("url")] = el.attribute("modified_time").toInt();
}
modified.clear();
@@ -601,7 +601,7 @@ void ProjectUpload::clearProjectModified()
void ProjectUpload::slotNewProfile()
{
UploadProfileDlgS *profileDlg = new UploadProfileDlgS(this);
- QDomElement el = m_currentProfileElement;
+ TQDomElement el = m_currentProfileElement;
m_currentProfileElement = m_project->dom()->createElement("profile");
fillProfileDlg(profileDlg);
if (profileDlg->exec())
@@ -638,7 +638,7 @@ void ProjectUpload::slotRemoveProfile()
KMessageBox::error(this, i18n("You cannot remove the last profile."), i18n("Profile Removal Error") );
} else
{
- QString profileName = comboProfile->currentText();
+ TQString profileName = comboProfile->currentText();
if (KMessageBox::warningContinueCancel(this, i18n("<qt>Do you really want to remove the <b>%1</b> upload profile?</qt>").arg(profileName),
i18n("Profile Removal"), KStdGuiItem::del()) == KMessageBox::Continue)
{
@@ -648,7 +648,7 @@ void ProjectUpload::slotRemoveProfile()
if (newIdx >= comboProfile->count())
newIdx = idx - 1;
comboProfile->setCurrentItem(newIdx);
- QString currentProfile = comboProfile->currentText();
+ TQString currentProfile = comboProfile->currentText();
slotNewProfileSelected(currentProfile);
if (profileName == defaultProfile())
{
@@ -669,13 +669,13 @@ void ProjectUpload::fillProfileDlg(UploadProfileDlgS *profileDlg)
profileDlg->lineUser->setText(m_currentProfileElement.attribute("user",""));
profileDlg->linePath->setText(m_currentProfileElement.attribute("remote_path",""));
profileDlg->port->setText( m_currentProfileElement.attribute("remote_port","") );
- QString def_p = m_currentProfileElement.attribute("remote_protocol","ftp");
+ TQString def_p = m_currentProfileElement.attribute("remote_protocol","ftp");
- QStringList protocols = KProtocolInfo::protocols();
+ TQStringList protocols = KProtocolInfo::protocols();
protocols.sort();
for ( uint i=0; i<protocols.count(); i++ )
{
- QString protocol = protocols[i];
+ TQString protocol = protocols[i];
KURL p;
p.setProtocol(protocol);
if ( KProtocolInfo::supportsWriting(p) &&
@@ -687,7 +687,7 @@ void ProjectUpload::fillProfileDlg(UploadProfileDlgS *profileDlg)
profileDlg->comboProtocol->setCurrentItem(profileDlg->comboProtocol->count()-1 );
}
}
- QString entry = profileDlg->comboProtocol->currentText() + "://" + profileDlg->lineUser->text() + "@" + profileDlg->lineHost->text();
+ TQString entry = profileDlg->comboProtocol->currentText() + "://" + profileDlg->lineUser->text() + "@" + profileDlg->lineHost->text();
if (m_project->keepPasswd || m_project->passwordSaved(entry))
{
profileDlg->linePasswd->insert(m_project->password(entry));
@@ -703,7 +703,7 @@ void ProjectUpload::fillProfileDlg(UploadProfileDlgS *profileDlg)
void ProjectUpload::readProfileDlg(UploadProfileDlgS *profileDlg)
{
- QString path = profileDlg->linePath->text();
+ TQString path = profileDlg->linePath->text();
if (path.startsWith("~/"))
{
KUser user;
@@ -715,7 +715,7 @@ void ProjectUpload::readProfileDlg(UploadProfileDlgS *profileDlg)
m_currentProfileElement.setAttribute("remote_path", path);
m_currentProfileElement.setAttribute("remote_port", profileDlg->port->text());
m_currentProfileElement.setAttribute("remote_protocol", profileDlg->comboProtocol->currentText());
- QString passwd = QString(profileDlg->linePasswd->password());
+ TQString passwd = TQString(profileDlg->linePasswd->password());
m_project->savePassword(profileDlg->comboProtocol->currentText() + "://" + profileDlg->lineUser->text() + "@" + profileDlg->lineHost->text(), passwd, profileDlg->keepPasswd->isChecked());
m_lastEditedProfileElement = m_currentProfileElement;
m_lastPassword = passwd;
@@ -723,11 +723,11 @@ void ProjectUpload::readProfileDlg(UploadProfileDlgS *profileDlg)
m_profilesNode.toElement().setAttribute("defaultProfile", profileDlg->lineProfileName->text());
}
-void ProjectUpload::slotNewProfileSelected(const QString& profileName)
+void ProjectUpload::slotNewProfileSelected(const TQString& profileName)
{
- QDomNodeList profileList = m_profilesNode.toElement().elementsByTagName("profile");
- QDomElement e;
- QString s;
+ TQDomNodeList profileList = m_profilesNode.toElement().elementsByTagName("profile");
+ TQDomElement e;
+ TQString s;
for (uint i = 0; i < profileList.count(); i++)
{
e = profileList.item(i).toElement();
@@ -747,7 +747,7 @@ void ProjectUpload::slotNewProfileSelected(const QString& profileName)
}
}
-QString ProjectUpload::defaultProfile()
+TQString ProjectUpload::defaultProfile()
{
return m_profilesNode.toElement().attribute("defaultProfile");
}
@@ -767,47 +767,47 @@ void ProjectUpload::reject()
}
}
- QDialog::reject();
+ TQDialog::reject();
}
void ProjectUpload::setProfileTooltip()
{
- QString tip = m_currentProfileElement.attribute("remote_protocol","ftp") + "://";
- QString user = m_currentProfileElement.attribute("user","");
+ TQString tip = m_currentProfileElement.attribute("remote_protocol","ftp") + "://";
+ TQString user = m_currentProfileElement.attribute("user","");
if (! user.isEmpty()) {
tip += user + "@";
}
tip += m_currentProfileElement.attribute("remote_host","");
- QString port = m_currentProfileElement.attribute("remote_port","");
+ TQString port = m_currentProfileElement.attribute("remote_port","");
if (! port.isEmpty()) {
tip += ":" + port;
}
tip += m_currentProfileElement.attribute("remote_path","");
- QToolTip::add(comboProfile, tip);
+ TQToolTip::add(comboProfile, tip);
}
void ProjectUpload::loadRemoteUploadInfo()
{
- QDomNodeList nl = m_currentProfileElement.elementsByTagName("uploadeditem");
+ TQDomNodeList nl = m_currentProfileElement.elementsByTagName("uploadeditem");
for (uint i = 0; i < nl.count(); i++)
{
- QDomElement el = nl.item(i).toElement();
+ TQDomElement el = nl.item(i).toElement();
m_uploadTimeList[el.attribute("url")] = el.attribute("upload_time").toInt();
}
}
void ProjectUpload::saveRemoteUploadInfo()
{
- QDomNode parent = m_currentProfileElement.parentNode();
- QDomNode profileNode = m_currentProfileElement.cloneNode(false);
+ TQDomNode parent = m_currentProfileElement.parentNode();
+ TQDomNode profileNode = m_currentProfileElement.cloneNode(false);
parent.removeChild(m_currentProfileElement);
parent.appendChild(profileNode);
- QMap<QString, int>::ConstIterator it;
+ TQMap<TQString, int>::ConstIterator it;
for (it = m_uploadTimeList.constBegin(); it != m_uploadTimeList.constEnd(); ++it)
{
- QDomElement el = m_uploadStatusDom.createElement("uploadeditem");
+ TQDomElement el = m_uploadStatusDom.createElement("uploadeditem");
el.setAttribute("url", it.key());
el.setAttribute("upload_time", it.data());
profileNode.appendChild(el);
diff --git a/quanta/project/projectupload.h b/quanta/project/projectupload.h
index 375898ec..d76d1767 100644
--- a/quanta/project/projectupload.h
+++ b/quanta/project/projectupload.h
@@ -21,9 +21,9 @@
#include "projectuploads.h"
#include "project.h"
-#include <qdom.h>
-#include <qptrlist.h>
-#include <qstringlist.h>
+#include <tqdom.h>
+#include <tqptrlist.h>
+#include <tqstringlist.h>
#include <kio/job.h>
@@ -44,9 +44,9 @@ public:
If quickUpload is true, the upload starts immediately without checking
for modifications or confirmation from the user. The url will be
uploaded to the default profile */
- ProjectUpload(const KURL& url, const QString& profileName = QString::null, bool showOnlyProfiles = false, bool quickUpload = false, bool markOnly = false, const char * name = 0);
+ ProjectUpload(const KURL& url, const TQString& profileName = TQString::null, bool showOnlyProfiles = false, bool quickUpload = false, bool markOnly = false, const char * name = 0);
~ProjectUpload();
- QString defaultProfile();
+ TQString defaultProfile();
public slots: // Public slots
/** No descriptions */
@@ -57,7 +57,7 @@ protected slots:
void upload();
void uploadFinished( KIO::Job *job );
void uploadProgress ( KIO::Job *job, unsigned long percent );
- void uploadMessage ( KIO::Job *, const QString & msg );
+ void uploadMessage ( KIO::Job *, const TQString & msg );
void slotUploadNext();
void clearSelection();
@@ -71,16 +71,16 @@ protected slots:
void slotNewProfile();
void slotEditProfile();
void slotRemoveProfile();
- void slotNewProfileSelected(const QString &profileName);
+ void slotNewProfileSelected(const TQString &profileName);
- virtual void resizeEvent( QResizeEvent * );
+ virtual void resizeEvent( TQResizeEvent * );
virtual void reject();
signals: // Signals
/** No descriptions */
void uploadNext();
- void eventHappened(const QString&, const QString&, const QString&);
+ void eventHappened(const TQString&, const TQString&, const TQString&);
private:
void buildSelectedItemList();
@@ -89,13 +89,13 @@ private:
void setProfileTooltip();
void loadRemoteUploadInfo();
void saveRemoteUploadInfo();
- void initProjectInfo(const QString& defaultProfile);
+ void initProjectInfo(const TQString& defaultProfile);
void initBaseUrl(); /// Reads the current profile setting and initialize the baseUrl from it
KURL::List modified; // modified files
- QValueList<QListViewItem*> needsConfirmation;
- QPtrList<QListViewItem> toUpload; // list of files , still didn't uploaded
- QListViewItem *currentItem;
+ TQValueList<TQListViewItem*> needsConfirmation;
+ TQPtrList<TQListViewItem> toUpload; // list of files , still didn't uploaded
+ TQListViewItem *currentItem;
KURL currentURL;
KURL::List madeDirs;
KURL *baseUrl;
@@ -103,14 +103,14 @@ private:
bool stopUpload;
bool uploadInProgress;
bool suspendUpload;
- QString m_lastPassword;
+ TQString m_lastPassword;
Project *m_project;
- QString m_defaultProfile;
- QDomElement m_currentProfileElement;
- QDomElement m_lastEditedProfileElement;
- QDomNode m_profilesNode;
- QDomDocument m_uploadStatusDom;
- QMap<QString, int> m_uploadTimeList;
+ TQString m_defaultProfile;
+ TQDomElement m_currentProfileElement;
+ TQDomElement m_lastEditedProfileElement;
+ TQDomNode m_profilesNode;
+ TQDomDocument m_uploadStatusDom;
+ TQMap<TQString, int> m_uploadTimeList;
bool m_profilesOnly;
bool m_quickUpload;
};
diff --git a/quanta/project/projecturl.h b/quanta/project/projecturl.h
index 67299d90..cf3eae66 100644
--- a/quanta/project/projecturl.h
+++ b/quanta/project/projecturl.h
@@ -17,9 +17,9 @@
#ifndef PROJECT_URL_H
#define PROJECT_URL_H
-#include <qdom.h>
-#include <qdict.h>
-#include <qstring.h>
+#include <tqdom.h>
+#include <tqdict.h>
+#include <tqstring.h>
#include <kurl.h>
@@ -31,10 +31,10 @@
class ProjectURL : public KURL
{
public:
- QString fileDesc;
+ TQString fileDesc;
int uploadStatus; ///< The upload state, see UploadStatus
bool documentFolder;
- QDomElement domElement;
+ TQDomElement domElement;
ProjectURL()
: KURL(), uploadStatus(1), documentFolder(false) {}
@@ -42,10 +42,10 @@ public:
ProjectURL(const KURL& url)
: KURL(url), uploadStatus(1), documentFolder(false) {}
- ProjectURL(const KURL& url, const QString& desc, int status, bool docFolder)
+ ProjectURL(const KURL& url, const TQString& desc, int status, bool docFolder)
: KURL(url), fileDesc(desc), uploadStatus(status), documentFolder(docFolder) {}
- ProjectURL(const KURL& url, const QString& desc, int status, bool docFolder, QDomElement el)
+ ProjectURL(const KURL& url, const TQString& desc, int status, bool docFolder, TQDomElement el)
: KURL(url), fileDesc(desc), uploadStatus(status), documentFolder(docFolder), domElement(el) {}
virtual ~ProjectURL() {}
@@ -59,6 +59,6 @@ public:
};
};
-typedef QDict<ProjectURL> ProjectUrlList;
+typedef TQDict<ProjectURL> ProjectUrlList;
#endif // PROJECT_URL_H
diff --git a/quanta/project/rescanprj.cpp b/quanta/project/rescanprj.cpp
index fe0bb588..1c467c7d 100644
--- a/quanta/project/rescanprj.cpp
+++ b/quanta/project/rescanprj.cpp
@@ -16,10 +16,10 @@
***************************************************************************/
// qt includes
-#include <qlistview.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlistview.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
// kde includes
#include <kdebug.h>
@@ -39,8 +39,8 @@
#include "projectlist.h"
-RescanPrj::RescanPrj(const ProjectList &p_prjFileList, const KURL& p_baseURL, const QRegExp &p_excludeRx,
- QWidget *parent, const char *name, bool modal )
+RescanPrj::RescanPrj(const ProjectList &p_prjFileList, const KURL& p_baseURL, const TQRegExp &p_excludeRx,
+ TQWidget *parent, const char *name, bool modal )
: RescanPrjDir(parent,name,modal)
{
setCaption(name);
@@ -56,22 +56,22 @@ RescanPrj::RescanPrj(const ProjectList &p_prjFileList, const KURL& p_baseURL, co
KIO::ListJob *job = KIO::listRecursive( baseURL, false );
m_listJobCount = 1;
- connect( job, SIGNAL(entries(KIO::Job *,const KIO::UDSEntryList &)),
- this,SLOT (addEntries(KIO::Job *,const KIO::UDSEntryList &)));
- connect( job, SIGNAL(result(KIO::Job *)),
- this,SLOT (slotListDone(KIO::Job *)));
-
-
- connect( buttonSelect, SIGNAL(clicked()),
- this, SLOT(slotSelect()));
- connect( buttonDeselect, SIGNAL(clicked()),
- this, SLOT(slotDeselect()));
- connect( buttonInvert, SIGNAL(clicked()),
- this, SLOT(slotInvert()));
- connect( buttonExpand, SIGNAL(clicked()),
- this, SLOT(slotExpand()));
- connect( buttonCollapse, SIGNAL(clicked()),
- this, SLOT(slotCollapse()));
+ connect( job, TQT_SIGNAL(entries(KIO::Job *,const KIO::UDSEntryList &)),
+ this,TQT_SLOT (addEntries(KIO::Job *,const KIO::UDSEntryList &)));
+ connect( job, TQT_SIGNAL(result(KIO::Job *)),
+ this,TQT_SLOT (slotListDone(KIO::Job *)));
+
+
+ connect( buttonSelect, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotSelect()));
+ connect( buttonDeselect, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotDeselect()));
+ connect( buttonInvert, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotInvert()));
+ connect( buttonExpand, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotExpand()));
+ connect( buttonCollapse, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotCollapse()));
}
RescanPrj::~RescanPrj()
@@ -88,15 +88,15 @@ void RescanPrj::addEntries(KIO::Job *job,const KIO::UDSEntryList &list)
KURL url = static_cast<KIO::ListJob *>(job)->url();
url.adjustPath(-1);
// avoid creating these QStrings again and again
- static const QString& dot = KGlobal::staticQString(".");
- static const QString& dotdot = KGlobal::staticQString("..");
+ static const TQString& dot = KGlobal::staticQString(".");
+ static const TQString& dotdot = KGlobal::staticQString("..");
KIO::UDSEntryListConstIterator it = list.begin();
KIO::UDSEntryListConstIterator end = list.end();
KURL itemURL;
URLListEntry urlEntry;
- QString name;
- QPtrList<KFileItem> linkItems;
+ TQString name;
+ TQPtrList<KFileItem> linkItems;
linkItems.setAutoDelete(true);
for ( ; it != end; ++it )
{
@@ -104,7 +104,7 @@ void RescanPrj::addEntries(KIO::Job *job,const KIO::UDSEntryList &list)
name = item.name();
if (item.isDir() && item.isLink())
{
- QString linkDest = item.linkDest();
+ TQString linkDest = item.linkDest();
kdDebug(24000) << "Got link: " << name << " Points to:" << linkDest << endl;
KURL u = item.url();
if (linkDest.startsWith("."))
@@ -146,19 +146,19 @@ void RescanPrj::addEntries(KIO::Job *job,const KIO::UDSEntryList &list)
}
}
}
- for (QPtrList<KFileItem>::ConstIterator it = linkItems.constBegin(); it != linkItems.constEnd(); ++it)
+ for (TQPtrList<KFileItem>::ConstIterator it = linkItems.constBegin(); it != linkItems.constEnd(); ++it)
{
KIO::ListJob *ljob = KIO::listRecursive( (*it)->url(), false );
m_listJobCount++;
- connect( ljob, SIGNAL(entries(KIO::Job *,const KIO::UDSEntryList &)),
- this,SLOT (addEntries(KIO::Job *,const KIO::UDSEntryList &)));
- connect( ljob, SIGNAL(result(KIO::Job *)),
- this,SLOT (slotListDone(KIO::Job *)));
+ connect( ljob, TQT_SIGNAL(entries(KIO::Job *,const KIO::UDSEntryList &)),
+ this,TQT_SLOT (addEntries(KIO::Job *,const KIO::UDSEntryList &)));
+ connect( ljob, TQT_SIGNAL(result(KIO::Job *)),
+ this,TQT_SLOT (slotListDone(KIO::Job *)));
}
}
-void RescanPrj::resizeEvent ( QResizeEvent *t )
+void RescanPrj::resizeEvent ( TQResizeEvent *t )
{
RescanPrjDir::resizeEvent(t);
// listView->setColumnWidth(0,listView->width()-listView->columnWidth(1)-20);
@@ -197,8 +197,8 @@ KURL::List RescanPrj::files()
{
KURL::List r;
- QListViewItem *item;
- QListViewItemIterator it(listView);
+ TQListViewItem *item;
+ TQListViewItemIterator it(listView);
for ( ; it.current(); ++it )
{
item = it.current();
diff --git a/quanta/project/rescanprj.h b/quanta/project/rescanprj.h
index 1eb32d50..e1e61f04 100644
--- a/quanta/project/rescanprj.h
+++ b/quanta/project/rescanprj.h
@@ -18,7 +18,7 @@
#ifndef RESCANPRJ_H
#define RESCANPRJ_H
-#include <qregexp.h>
+#include <tqregexp.h>
#include <kio/job.h>
@@ -35,8 +35,8 @@ struct URLListEntry{
class RescanPrj : public RescanPrjDir {
Q_OBJECT
public:
- RescanPrj(const ProjectList &p_prjFileList, const KURL& p_baseURL, const QRegExp &p_excludeRx,
- QWidget *parent=0, const char *name=0, bool modal = true);
+ RescanPrj(const ProjectList &p_prjFileList, const KURL& p_baseURL, const TQRegExp &p_excludeRx,
+ TQWidget *parent=0, const char *name=0, bool modal = true);
~RescanPrj();
public slots:
@@ -46,7 +46,7 @@ public slots:
void slotExpand();
void slotCollapse();
- virtual void resizeEvent( QResizeEvent * );
+ virtual void resizeEvent( TQResizeEvent * );
KURL::List files();
@@ -55,8 +55,8 @@ public slots:
private:
KURL baseURL;
ProjectList prjFileList;
- QRegExp excludeRx;
- QValueList<URLListEntry> urlList;
+ TQRegExp excludeRx;
+ TQValueList<URLListEntry> urlList;
int m_listJobCount;
protected slots: // Protected slots
diff --git a/quanta/project/teammembersdlg.cpp b/quanta/project/teammembersdlg.cpp
index bd159186..ea3e415c 100644
--- a/quanta/project/teammembersdlg.cpp
+++ b/quanta/project/teammembersdlg.cpp
@@ -14,7 +14,7 @@
* *
***************************************************************************/
//qt includes
-#include <qlabel.h>
+#include <tqlabel.h>
//kde includes
#include <kcombobox.h>
@@ -37,12 +37,12 @@
#define SUBPROJECT_COL 5
-extern QString simpleMemberStr;
-extern QString taskLeaderStr;
-extern QString teamLeaderStr;
-extern QString subprojectLeaderStr;
+extern TQString simpleMemberStr;
+extern TQString taskLeaderStr;
+extern TQString teamLeaderStr;
+extern TQString subprojectLeaderStr;
-TeamMembersDlg::TeamMembersDlg(QWidget *parent, const char *name)
+TeamMembersDlg::TeamMembersDlg(TQWidget *parent, const char *name)
: TeamMembersDlgS(parent, name)
{
m_yourself = "";
@@ -63,12 +63,12 @@ void TeamMembersDlg::slotAddMember()
result = addDlg.exec();
if (result)
{
- QString name = memberDlg.nameCombo->currentText();
- QString role = memberDlg.roleCombo->currentText();
- QString task = memberDlg.taskEdit->text();
- QString subProject = memberDlg.subprojectCombo->currentText();
- QString nickName = memberDlg.nicknameEdit->text();
- QString email = memberDlg.emailEdit->text();
+ TQString name = memberDlg.nameCombo->currentText();
+ TQString role = memberDlg.roleCombo->currentText();
+ TQString task = memberDlg.taskEdit->text();
+ TQString subProject = memberDlg.subprojectCombo->currentText();
+ TQString nickName = memberDlg.nicknameEdit->text();
+ TQString email = memberDlg.emailEdit->text();
if (name.isEmpty())
{
KMessageBox::error(this, i18n("The member name cannot be empty."));
@@ -84,7 +84,7 @@ void TeamMembersDlg::slotAddMember()
addDlg.show();
} else
{
- QListViewItem *item = new QListViewItem(membersListView, name, nickName, email, role, task);
+ TQListViewItem *item = new TQListViewItem(membersListView, name, nickName, email, role, task);
if (memberDlg.subprojectCombo->isEnabled())
item->setText(SUBPROJECT_COL, subProject);
result = false;
@@ -95,14 +95,14 @@ void TeamMembersDlg::slotAddMember()
void TeamMembersDlg::slotEditMember()
{
- QListViewItem *item =membersListView->currentItem();
+ TQListViewItem *item =membersListView->currentItem();
if (!item) return;
KDialogBase editDlg(this, "edit_member", true, i18n("Edit Member"), KDialogBase::Ok | KDialogBase::Cancel);
MemberEditDlg memberDlg(&editDlg);
memberDlg.selectMember(item->text(NAME_COL));
memberDlg.nicknameEdit->setText(item->text(NICKNAME_COL));
memberDlg.emailEdit->setText(item->text(EMAIL_COL));
- QString role = item->text(ROLE_COL);
+ TQString role = item->text(ROLE_COL);
for (int i = 0; i < memberDlg.roleCombo->count(); i++)
{
if (memberDlg.roleCombo->text(i) == role)
@@ -115,8 +115,8 @@ void TeamMembersDlg::slotEditMember()
memberDlg.taskEdit->setText(item->text(TASK_COL));
int idx = 0;
int subprojectIdx = 0;
- QValueList<SubProject> *subprojects = Project::ref()->subprojects();
- for (QValueList<SubProject>::ConstIterator it = subprojects->constBegin(); it != subprojects->constEnd(); ++it)
+ TQValueList<SubProject> *subprojects = Project::ref()->subprojects();
+ for (TQValueList<SubProject>::ConstIterator it = subprojects->constBegin(); it != subprojects->constEnd(); ++it)
{
if (item->text(SUBPROJECT_COL) == (*it).name)
{
@@ -133,12 +133,12 @@ void TeamMembersDlg::slotEditMember()
result = editDlg.exec();
if (result)
{
- QString name = memberDlg.nameCombo->currentText();
- QString nickName = memberDlg.nicknameEdit->text();
- QString email = memberDlg.emailEdit->text();
- QString role = memberDlg.roleCombo->currentText();
- QString task = memberDlg.taskEdit->text();
- QString subProject = memberDlg.subprojectCombo->currentText();
+ TQString name = memberDlg.nameCombo->currentText();
+ TQString nickName = memberDlg.nicknameEdit->text();
+ TQString email = memberDlg.emailEdit->text();
+ TQString role = memberDlg.roleCombo->currentText();
+ TQString task = memberDlg.taskEdit->text();
+ TQString subProject = memberDlg.subprojectCombo->currentText();
if (name.isEmpty())
{
KMessageBox::error(this, i18n("The member name cannot be empty."));
@@ -169,11 +169,11 @@ void TeamMembersDlg::slotEditMember()
void TeamMembersDlg::slotDeleteMember()
{
- QListViewItem *item =membersListView->currentItem();
+ TQListViewItem *item =membersListView->currentItem();
if (!item) return;
bool deleteYourself = (item->text(NICKNAME_COL) == m_yourself);
- QListViewItemIterator it(membersListView);
+ TQListViewItemIterator it(membersListView);
while ( it.current() )
{
if (item != it.current() && it.current()->text(NICKNAME_COL) == m_yourself)
@@ -198,11 +198,11 @@ void TeamMembersDlg::slotDeleteMember()
}
}
-bool TeamMembersDlg::checkDuplicates(QListViewItem *item, const QString &name, const QString &nickName, const QString &email, const QString &role, const QString &task, const QString &subProject)
+bool TeamMembersDlg::checkDuplicates(TQListViewItem *item, const TQString &name, const TQString &nickName, const TQString &email, const TQString &role, const TQString &task, const TQString &subProject)
{
- QString s;
- QString nick;
- QListViewItemIterator it(membersListView);
+ TQString s;
+ TQString nick;
+ TQListViewItemIterator it(membersListView);
while ( it.current() )
{
s = it.current()->text(ROLE_COL);
@@ -213,7 +213,7 @@ bool TeamMembersDlg::checkDuplicates(QListViewItem *item, const QString &name, c
(role == i18n(subprojectLeaderStr.utf8()) && it.current()->text(SUBPROJECT_COL) == subProject)
) )
{
- if (KMessageBox::warningYesNo(this, i18n("<qt>The <b>%1</b> role is already assigned to <b>%2</b>. Do you want to reassign it to the current member?</qt>").arg(role).arg(it.current()->text(NAME_COL)), QString::null, i18n("Reassign"), i18n("Do Not Reassign")) == KMessageBox::Yes)
+ if (KMessageBox::warningYesNo(this, i18n("<qt>The <b>%1</b> role is already assigned to <b>%2</b>. Do you want to reassign it to the current member?</qt>").arg(role).arg(it.current()->text(NAME_COL)), TQString::null, i18n("Reassign"), i18n("Do Not Reassign")) == KMessageBox::Yes)
{
it.current()->setText(ROLE_COL, i18n(simpleMemberStr.utf8()));
return true;
@@ -233,13 +233,13 @@ bool TeamMembersDlg::checkDuplicates(QListViewItem *item, const QString &name, c
void TeamMembersDlg::slotSetToYourself()
{
- QListViewItem *item =membersListView->currentItem();
+ TQListViewItem *item =membersListView->currentItem();
if (!item) return;
yourselfLabel->setText(item->text(NAME_COL) + " <" + item->text(EMAIL_COL) + ">");
m_yourself = item->text(NICKNAME_COL);
}
-void TeamMembersDlg::setYourself(const QString &name)
+void TeamMembersDlg::setYourself(const TQString &name)
{
m_yourself = name;
if (name.isEmpty())
@@ -247,7 +247,7 @@ void TeamMembersDlg::setYourself(const QString &name)
yourselfLabel->setText(i18n("Please select your identity from the member list."));
return;
}
- QListViewItemIterator it(membersListView);
+ TQListViewItemIterator it(membersListView);
while ( it.current() )
{
if (it.current()->text(NICKNAME_COL).lower() == name.lower())
diff --git a/quanta/project/teammembersdlg.h b/quanta/project/teammembersdlg.h
index c3281e23..045c0a7c 100644
--- a/quanta/project/teammembersdlg.h
+++ b/quanta/project/teammembersdlg.h
@@ -26,11 +26,11 @@ class TeamMembersDlg : public TeamMembersDlgS
{
Q_OBJECT
public:
- TeamMembersDlg(QWidget *parent = 0, const char *name = 0);
+ TeamMembersDlg(TQWidget *parent = 0, const char *name = 0);
~TeamMembersDlg();
- void setYourself(const QString &name);
- QString yourself() {return m_yourself;}
+ void setYourself(const TQString &name);
+ TQString yourself() {return m_yourself;}
public slots:
void slotAddMember();
@@ -44,9 +44,9 @@ private:
of duplicate entries, it shows a dialog and if the user answer yes, the old
teamleader is set to Simple Member and the new member is set to teamleader
and the method returns true, otherwise it returns false. */
- bool checkDuplicates(QListViewItem *item, const QString &name, const QString &nickName, const QString &email, const QString &role, const QString &task, const QString &subProject);
+ bool checkDuplicates(TQListViewItem *item, const TQString &name, const TQString &nickName, const TQString &email, const TQString &role, const TQString &task, const TQString &subProject);
- QString m_yourself;
+ TQString m_yourself;
};
#endif
diff --git a/quanta/project/uploadprofiles.cpp b/quanta/project/uploadprofiles.cpp
index d32596ed..669971ce 100644
--- a/quanta/project/uploadprofiles.cpp
+++ b/quanta/project/uploadprofiles.cpp
@@ -15,7 +15,7 @@
***************************************************************************/
// qt includes
-#include <qobject.h>
+#include <tqobject.h>
// KDE includes
#include <kiconloader.h>
@@ -34,14 +34,14 @@ UploadProfiles::UploadProfiles() : UploadProfileMap()
}
-void UploadProfiles::readFromXML(const QDomDocument &dom)
+void UploadProfiles::readFromXML(const TQDomDocument &dom)
{
clear(); // empty the list
m_profilesNode = dom.firstChild().firstChild().namedItem("uploadprofiles");
if (m_profilesNode.isNull())
return;
- QDomNodeList profileList = m_profilesNode.toElement().elementsByTagName("profile");
+ TQDomNodeList profileList = m_profilesNode.toElement().elementsByTagName("profile");
UploadProfile newProfile;
for (uint i = 0; i < profileList.count(); i++)
{
@@ -53,13 +53,13 @@ void UploadProfiles::readFromXML(const QDomDocument &dom)
}
-bool UploadProfiles::removeFromMapAndXML(const QString &name)
+bool UploadProfiles::removeFromMapAndXML(const TQString &name)
{
UploadProfiles::Iterator it = find(name);
if ( it == end() )
return false;
// ok now remove
- QDomElement el = (*it).domElement;
+ TQDomElement el = (*it).domElement;
el.parentNode().removeChild(el);
erase(name);
return true;
@@ -79,9 +79,9 @@ void UploadProfiles::clear()
UploadProfileMap::clear();
}
-QWidget * UploadProfiles::createTreeview(const UploadProfile &profile)
+TQWidget * UploadProfiles::createTreeview(const UploadProfile &profile)
{
- QWidget *widget = 0L;
+ TQWidget *widget = 0L;
KURL kurl = url(profile.domElement);
if (kurl.isValid() && ! kurl.isEmpty())
{
@@ -94,26 +94,26 @@ QWidget * UploadProfiles::createTreeview(const UploadProfile &profile)
}
-KURL UploadProfiles::url(const QDomElement &e)
+KURL UploadProfiles::url(const TQDomElement &e)
{
- QString protocol = e.attribute("remote_protocol","ftp") + "://";
- QString s = protocol;
- QString host = e.attribute("remote_host","");
+ TQString protocol = e.attribute("remote_protocol","ftp") + "://";
+ TQString s = protocol;
+ TQString host = e.attribute("remote_host","");
s += host;
- QString port = e.attribute("remote_port","");
+ TQString port = e.attribute("remote_port","");
if (! port.isEmpty()) {
s += ":" + port;
}
s += e.attribute("remote_path","");
KURL url = KURL::fromPathOrURL(s);
- QString user = e.attribute("user","");
+ TQString user = e.attribute("user","");
if (!user.isEmpty()) {
url.setUser(user);
}
// check if we know the password
if ( !user.isEmpty() && Project::ref()->keepPasswd )
{
- QString password = Project::ref()->password(protocol + user + "@" + host);
+ TQString password = Project::ref()->password(protocol + user + "@" + host);
url.setPass(password);
}
return url;
diff --git a/quanta/project/uploadprofiles.h b/quanta/project/uploadprofiles.h
index 20d77b80..b04c376d 100644
--- a/quanta/project/uploadprofiles.h
+++ b/quanta/project/uploadprofiles.h
@@ -14,9 +14,9 @@
#define UPLOADPROFILES_H
// QT includes
-#include <qmap.h>
-#include <qdom.h>
-#include <qguardedptr.h>
+#include <tqmap.h>
+#include <tqdom.h>
+#include <tqguardedptr.h>
// KDE includes
#include <kurl.h>
@@ -32,13 +32,13 @@ class QObject;
struct UploadProfile
{
- QString name; ///< name of profile
- QDomElement domElement; ///< domtree element of this profile
- QGuardedPtr<QWidget> treeview; ///< treeview for this url
+ TQString name; ///< name of profile
+ TQDomElement domElement; ///< domtree element of this profile
+ TQGuardedPtr<TQWidget> treeview; ///< treeview for this url
};
/** a map for the upload profiles */
-typedef QMap<QString, UploadProfile> UploadProfileMap;
+typedef TQMap<TQString, UploadProfile> UploadProfileMap;
class UploadProfiles : public UploadProfileMap
@@ -61,7 +61,7 @@ public:
@param the dom document to parse
*/
- void readFromXML(const QDomDocument &dom);
+ void readFromXML(const TQDomDocument &dom);
/**
removes a profile from the map and the dom tree
@@ -70,7 +70,7 @@ public:
@return true if profile was found and removed
*/
- bool removeFromMapAndXML(const QString &name);
+ bool removeFromMapAndXML(const TQString &name);
/**
clears the map and removes all treeviews
@@ -91,18 +91,18 @@ private:
@return the pointer to the treeview
*/
- QWidget * createTreeview(const UploadProfile &profile);
+ TQWidget * createTreeview(const UploadProfile &profile);
/**
creates a KURL from a QDomElement
- @param e a QDomElement where the path is saved
+ @param e a TQDomElement where the path is saved
@return KURL of the location
*/
- KURL url(const QDomElement &e);
+ KURL url(const TQDomElement &e);
- QDomNode m_profilesNode; ///< under this node the profiles are saved in the dom tree
+ TQDomNode m_profilesNode; ///< under this node the profiles are saved in the dom tree
};
#endif