summaryrefslogtreecommitdiffstats
path: root/quanta/project/project.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/project/project.cpp')
-rw-r--r--quanta/project/project.cpp302
1 files changed, 151 insertions, 151 deletions
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);
}
}