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