summaryrefslogtreecommitdiffstats
path: root/kplato
diff options
context:
space:
mode:
Diffstat (limited to 'kplato')
-rw-r--r--kplato/kptaccountspanel.cc14
-rw-r--r--kplato/kptaccountspanelbase.ui2
-rw-r--r--kplato/kptaccountsview.h4
-rw-r--r--kplato/kptcalendarlistdialog.cc6
-rw-r--r--kplato/kptcalendarlistpanel.ui2
-rw-r--r--kplato/kptdoublelistviewbase.cc16
-rw-r--r--kplato/kptdoublelistviewbase.h10
-rw-r--r--kplato/kptreportview.cc2
-rw-r--r--kplato/kptreportview.h10
-rw-r--r--kplato/kptresourceappointmentsview.h4
-rw-r--r--kplato/kptresourcespanel.cc8
-rw-r--r--kplato/kptresourceview.cc24
-rw-r--r--kplato/kptstandardworktimedialog.cc6
-rw-r--r--kplato/kpttaskappointmentsview.h4
-rw-r--r--kplato/kptview.cc98
-rw-r--r--kplato/kptview.h114
-rw-r--r--kplato/resourcespanelbase.ui2
-rw-r--r--kplato/standardworktimedialogbase.ui2
18 files changed, 164 insertions, 164 deletions
diff --git a/kplato/kptaccountspanel.cc b/kplato/kptaccountspanel.cc
index b5082af0..6aaa4a61 100644
--- a/kplato/kptaccountspanel.cc
+++ b/kplato/kptaccountspanel.cc
@@ -37,25 +37,25 @@
namespace KPlato
{
-class AccountItem : public KListViewItem {
+class AccountItem : public TDEListViewItem {
public:
AccountItem(AccountsPanel &pan, TQListView *parent)
- : KListViewItem(parent), account(0), panel(pan)
+ : TDEListViewItem(parent), account(0), panel(pan)
{ init(); }
AccountItem(AccountsPanel &pan, TQListViewItem *parent)
- : KListViewItem(parent), account(0), panel(pan)
+ : TDEListViewItem(parent), account(0), panel(pan)
{ init(); }
AccountItem(AccountsPanel &pan, TQListView *parent, TQString label1, TQString label2 = TQString())
- : KListViewItem(parent, label1, label2), account(0), panel(pan)
+ : TDEListViewItem(parent, label1, label2), account(0), panel(pan)
{ init(); }
AccountItem(AccountsPanel &pan, TQListViewItem *parent, TQString label1, TQString label2 = TQString())
- : KListViewItem(parent, label1, label2), account(0), panel(pan)
+ : TDEListViewItem(parent, label1, label2), account(0), panel(pan)
{ init(); }
AccountItem(AccountsPanel &pan, TQListView *parent, TQListViewItem *after)
- : KListViewItem(parent, after), account(0), panel(pan)
+ : TDEListViewItem(parent, after), account(0), panel(pan)
{ init(); }
AccountItem(AccountsPanel &pan, TQListViewItem *parent, TQListViewItem *after)
- : KListViewItem(parent, after), account(0), panel(pan)
+ : TDEListViewItem(parent, after), account(0), panel(pan)
{ init(); }
Account *account;
diff --git a/kplato/kptaccountspanelbase.ui b/kplato/kptaccountspanelbase.ui
index 42b35ba9..61d83ac5 100644
--- a/kplato/kptaccountspanelbase.ui
+++ b/kplato/kptaccountspanelbase.ui
@@ -58,7 +58,7 @@
</widget>
</hbox>
</widget>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Account</string>
diff --git a/kplato/kptaccountsview.h b/kplato/kptaccountsview.h
index 3daf9057..c8f99aae 100644
--- a/kplato/kptaccountsview.h
+++ b/kplato/kptaccountsview.h
@@ -37,8 +37,8 @@ class TQListViewItem;
class TQLabel;
class TQPushButton;
-class KListView;
-class KListViewItem;
+class TDEListView;
+class TDEListViewItem;
class KPrinter;
namespace KPlato
diff --git a/kplato/kptcalendarlistdialog.cc b/kplato/kptcalendarlistdialog.cc
index c10a34b5..010e82bf 100644
--- a/kplato/kptcalendarlistdialog.cc
+++ b/kplato/kptcalendarlistdialog.cc
@@ -44,11 +44,11 @@
namespace KPlato
{
-class CalendarListViewItem : public KListViewItem
+class CalendarListViewItem : public TDEListViewItem
{
public:
CalendarListViewItem(CalendarListDialogImpl &pan, TQListView *lv, Calendar *cal, Calendar *orig=0)
- : KListViewItem(lv, cal->name()), panel(pan) {
+ : TDEListViewItem(lv, cal->name()), panel(pan) {
calendar = cal;
original = orig;
@@ -155,7 +155,7 @@ protected:
return;
}
panel.renameStopped(this);
- KListViewItem::cancelRename(col);
+ TDEListViewItem::cancelRename(col);
setRenameEnabled(col, false);
}
private:
diff --git a/kplato/kptcalendarlistpanel.ui b/kplato/kptcalendarlistpanel.ui
index 29f4a4fd..08980750 100644
--- a/kplato/kptcalendarlistpanel.ui
+++ b/kplato/kptcalendarlistpanel.ui
@@ -47,7 +47,7 @@
<string>New</string>
</property>
</widget>
- <widget class="KListView" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TDEListView" row="0" column="0" rowspan="1" colspan="2">
<column>
<property name="text">
<string>Calendar Name</string>
diff --git a/kplato/kptdoublelistviewbase.cc b/kplato/kptdoublelistviewbase.cc
index 5f641792..8a354d61 100644
--- a/kplato/kptdoublelistviewbase.cc
+++ b/kplato/kptdoublelistviewbase.cc
@@ -89,7 +89,7 @@ void ListView::paintToPrinter(TQPainter * p, int cx, int cy, int cw, int ch) {
}
DoubleListViewBase::SlaveListItem::SlaveListItem(DoubleListViewBase::MasterListItem *master, TQListView *parent, TQListViewItem *after, bool highlight)
- : KListViewItem(parent, after),
+ : TDEListViewItem(parent, after),
m_masterItem(master),
m_value(0.0),
m_highlight(highlight),
@@ -101,7 +101,7 @@ DoubleListViewBase::SlaveListItem::SlaveListItem(DoubleListViewBase::MasterListI
//kdDebug()<<"DoubleListViewBase::SlaveListItem "<<master->text(0)<<" parent="<<static_cast<DoubleListViewBase::SlaveListItem*>(parent)->m_masterItem->text(0)<<endl;
}
DoubleListViewBase::SlaveListItem::SlaveListItem(DoubleListViewBase::MasterListItem *master, TQListViewItem *parent, TQListViewItem *after, bool highlight)
- : KListViewItem(parent, after),
+ : TDEListViewItem(parent, after),
m_masterItem(master),
m_value(0.0),
m_highlight(highlight),
@@ -151,7 +151,7 @@ void DoubleListViewBase::SlaveListItem::paintCell(TQPainter *p, const TQColorGro
}
}
}
- KListViewItem::paintCell(p, g, column, width, align);
+ TDEListViewItem::paintCell(p, g, column, width, align);
}
void DoubleListViewBase::SlaveListItem::setFormat(int fieldwidth, char fmt, int prec) {
@@ -162,7 +162,7 @@ void DoubleListViewBase::SlaveListItem::setFormat(int fieldwidth, char fmt, int
//----------------------------
DoubleListViewBase::MasterListItem::MasterListItem(TQListView *parent, bool highlight)
- : KListViewItem(parent),
+ : TDEListViewItem(parent),
m_slaveItem(0),
m_value(0.0),
m_limit(0.0),
@@ -173,7 +173,7 @@ DoubleListViewBase::MasterListItem::MasterListItem(TQListView *parent, bool high
}
DoubleListViewBase::MasterListItem::MasterListItem(TQListView *parent, TQString text, bool highlight)
- : KListViewItem(parent, text),
+ : TDEListViewItem(parent, text),
m_slaveItem(0),
m_value(0.0),
m_limit(0.0),
@@ -184,7 +184,7 @@ DoubleListViewBase::MasterListItem::MasterListItem(TQListView *parent, TQString
}
DoubleListViewBase::MasterListItem::MasterListItem(TQListViewItem *parent, bool highlight)
- : KListViewItem(parent),
+ : TDEListViewItem(parent),
m_slaveItem(0),
m_value(0.0),
m_limit(0.0),
@@ -195,7 +195,7 @@ DoubleListViewBase::MasterListItem::MasterListItem(TQListViewItem *parent, bool
}
DoubleListViewBase::MasterListItem::MasterListItem(TQListViewItem *parent, TQString text, bool highlight)
- : KListViewItem(parent, text),
+ : TDEListViewItem(parent, text),
m_slaveItem(0),
m_value(0.0),
m_limit(0.0),
@@ -332,7 +332,7 @@ void DoubleListViewBase::MasterListItem::paintCell(TQPainter *p, const TQColorGr
g.setColor(TQColorGroup::Text, TQColor(green));
}
}
- KListViewItem::paintCell(p, g, column, width, align);
+ TDEListViewItem::paintCell(p, g, column, width, align);
}
void DoubleListViewBase::MasterListItem::setFormat(int fieldwidth, char fmt, int prec) {
diff --git a/kplato/kptdoublelistviewbase.h b/kplato/kptdoublelistviewbase.h
index 785e236e..9347742a 100644
--- a/kplato/kptdoublelistviewbase.h
+++ b/kplato/kptdoublelistviewbase.h
@@ -29,7 +29,7 @@
class TQListViewItem;
-class KListViewItem;
+class TDEListViewItem;
class KPrinter;
namespace KPlato
@@ -38,11 +38,11 @@ namespace KPlato
class View;
class Project;
-class ListView : public KListView
+class ListView : public TDEListView
{
public:
ListView(TQWidget *parent)
- : KListView(parent)
+ : TDEListView(parent)
{}
virtual void paintToPrinter(TQPainter * p, int cx, int cy, int cw, int ch);
@@ -86,7 +86,7 @@ public:
virtual TQSize sizeHint() const;
class MasterListItem;
- class SlaveListItem : public KListViewItem {
+ class SlaveListItem : public TDEListViewItem {
public:
SlaveListItem(MasterListItem *master, TQListView *parent, TQListViewItem *after, bool highlight=false);
SlaveListItem(MasterListItem *master, TQListViewItem *parent, TQListViewItem *after, bool highlight=false);
@@ -117,7 +117,7 @@ public:
int m_prec;
};
- class MasterListItem : public KListViewItem {
+ class MasterListItem : public TDEListViewItem {
public:
MasterListItem(TQListView *parent, bool highlight=false);
MasterListItem(TQListView *parent, TQString text, bool highlight=false);
diff --git a/kplato/kptreportview.cc b/kplato/kptreportview.cc
index 1e893ccf..cb6a84d3 100644
--- a/kplato/kptreportview.cc
+++ b/kplato/kptreportview.cc
@@ -176,7 +176,7 @@ ReportView::ReportView(View *view, TQWidget *parent)
m_reportTags(0)
{
//kdDebug()<<k_funcinfo<<endl;
- m_reportList = new KListView(this);
+ m_reportList = new TDEListView(this);
#if KDE_IS_VERSION(3,3,9)
m_reportList->setShadeSortColumn(false);
#endif
diff --git a/kplato/kptreportview.h b/kplato/kptreportview.h
index 0c9f5d12..e62c2b36 100644
--- a/kplato/kptreportview.h
+++ b/kplato/kptreportview.h
@@ -30,7 +30,7 @@
#include <klistview.h>
-class KAction;
+class TDEAction;
class KPrinter;
namespace Kugar
@@ -114,10 +114,10 @@ protected slots:
void slotReportListSelectionChanged(TQListViewItem* item);
private:
- class ReportItem : public KListViewItem {
+ class ReportItem : public TDEListViewItem {
public:
- ReportItem(KListView *p, TQString name, TQString _url)
- : KListViewItem(p, name),
+ ReportItem(TDEListView *p, TQString name, TQString _url)
+ : TDEListViewItem(p, name),
url(_url)
{}
TQString url;
@@ -126,7 +126,7 @@ private:
private:
View *m_mainview;
- KListView *m_reportList;
+ TDEListView *m_reportList;
KugarReportViewer *m_reportview;
int m_defaultFontSize;
diff --git a/kplato/kptresourceappointmentsview.h b/kplato/kptresourceappointmentsview.h
index db7049e4..cdffa912 100644
--- a/kplato/kptresourceappointmentsview.h
+++ b/kplato/kptresourceappointmentsview.h
@@ -33,8 +33,8 @@ class TQListViewItem;
class TQLabel;
class TQPushButton;
-class KListView;
-class KListViewItem;
+class TDEListView;
+class TDEListViewItem;
class KPrinter;
namespace KPlato
diff --git a/kplato/kptresourcespanel.cc b/kplato/kptresourcespanel.cc
index 99443d88..6059590b 100644
--- a/kplato/kptresourcespanel.cc
+++ b/kplato/kptresourcespanel.cc
@@ -180,10 +180,10 @@ public:
int m_state;
};
-class ResourcesPanelGroupLVItem : public KListViewItem {
+class ResourcesPanelGroupLVItem : public TDEListViewItem {
public:
- ResourcesPanelGroupLVItem(ResourcesPanel &pan, KListView *lv, GroupItem *item)
- : KListViewItem(lv, item->m_name),
+ ResourcesPanelGroupLVItem(ResourcesPanel &pan, TDEListView *lv, GroupItem *item)
+ : TDEListViewItem(lv, item->m_name),
m_group(item),
panel(pan) {
@@ -218,7 +218,7 @@ protected:
return;
}
panel.renameStopped(this);
- KListViewItem::cancelRename(col);
+ TDEListViewItem::cancelRename(col);
setRenameEnabled(col, false);
}
};
diff --git a/kplato/kptresourceview.cc b/kplato/kptresourceview.cc
index 5ce557cd..addfac34 100644
--- a/kplato/kptresourceview.cc
+++ b/kplato/kptresourceview.cc
@@ -46,10 +46,10 @@
namespace KPlato
{
-class ResListView : public KListView {
+class ResListView : public TDEListView {
public:
ResListView(TQWidget * parent = 0, const char* name=0)
- : KListView(parent, name)
+ : TDEListView(parent, name)
{}
int headerHeight() const {
@@ -278,10 +278,10 @@ protected:
};
-class ResourceItemPrivate : public KListViewItem {
+class ResourceItemPrivate : public TDEListViewItem {
public:
ResourceItemPrivate(Resource *r, TQListViewItem *parent)
- : KListViewItem(parent, r->name()),
+ : TDEListViewItem(parent, r->name()),
resource(r) {}
Resource *resource;
@@ -293,7 +293,7 @@ public:
g.setColor(TQColorGroup::HighlightedText, TQColor(red));
}
- KListViewItem::paintCell(p, g, column, width, align);
+ TDEListViewItem::paintCell(p, g, column, width, align);
}
void setColumnState(int c, int state=1) {
m_columns[c] = state;
@@ -302,16 +302,16 @@ private:
TQMap<int, int> m_columns;
};
-class NodeItemPrivate : public KListViewItem {
+class NodeItemPrivate : public TDEListViewItem {
public:
NodeItemPrivate(Task *n, TQListView *parent)
- : KListViewItem(parent, n->name()),
+ : TDEListViewItem(parent, n->name()),
node(n) {
init();
}
NodeItemPrivate(TQString name, TQListView *parent)
- : KListViewItem(parent, name),
+ : TDEListViewItem(parent, name),
node(0) {
init();
}
@@ -336,7 +336,7 @@ public:
if (columnPrio.contains(column)) {
g.setColor(TQColorGroup::Base, prioColors[columnPrio[column]]);
}
- KListViewItem::paintCell(p, g, column, width, align);
+ TDEListViewItem::paintCell(p, g, column, width, align);
}
Task *node;
@@ -351,10 +351,10 @@ private:
TQMap<int, int> columnPrio;
};
-class AppointmentItem : public KListViewItem {
+class AppointmentItem : public TDEListViewItem {
public:
AppointmentItem(Appointment *a, TQDate &d, TQListViewItem *parent)
- : KListViewItem(parent),
+ : TDEListViewItem(parent),
appointment(a),
date(d) {}
@@ -432,7 +432,7 @@ void ResourceView::draw(Project &project)
TQPtrListIterator<ResourceGroup> it(project.resourceGroups());
for (; it.current(); ++it) {
- KListViewItem *item = new KListViewItem(resList, it.current()->name());
+ TDEListViewItem *item = new TDEListViewItem(resList, it.current()->name());
item->setOpen(true);
drawResources(project, item, it.current());
}
diff --git a/kplato/kptstandardworktimedialog.cc b/kplato/kptstandardworktimedialog.cc
index d7c2c759..ff691bff 100644
--- a/kplato/kptstandardworktimedialog.cc
+++ b/kplato/kptstandardworktimedialog.cc
@@ -46,11 +46,11 @@
namespace KPlato
{
-class WeekdayListItem : public KListViewItem
+class WeekdayListItem : public TDEListViewItem
{
public:
- WeekdayListItem(Calendar *cal, int wd, KListView *parent, TQString name, KListViewItem *after)
- : KListViewItem(parent, after),
+ WeekdayListItem(Calendar *cal, int wd, TDEListView *parent, TQString name, TDEListViewItem *after)
+ : TDEListViewItem(parent, after),
original(cal->weekday(wd)),
calendar(cal),
weekday(wd)
diff --git a/kplato/kpttaskappointmentsview.h b/kplato/kpttaskappointmentsview.h
index aca847a4..7f6e7b4b 100644
--- a/kplato/kpttaskappointmentsview.h
+++ b/kplato/kpttaskappointmentsview.h
@@ -32,8 +32,8 @@ class TQListViewItem;
class TQLabel;
class TQPushButton;
-class KListView;
-class KListViewItem;
+class TDEListView;
+class TDEListViewItem;
class KPrinter;
namespace KPlato
diff --git a/kplato/kptview.cc b/kplato/kptview.cc
index 8b669252..7ebd1b2d 100644
--- a/kplato/kptview.cc
+++ b/kplato/kptview.cc
@@ -164,73 +164,73 @@ View::View(Part* part, TQWidget* parent, const char* /*name*/)
actionCopy = KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT( slotEditCopy() ), actionCollection(), "edit_copy" );
actionPaste = KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT( slotEditPaste() ), actionCollection(), "edit_paste" );
- actionIndentTask = new KAction(i18n("Indent Task"), "indent_task", 0, TQT_TQOBJECT(this),
+ actionIndentTask = new TDEAction(i18n("Indent Task"), "indent_task", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotIndentTask()), actionCollection(), "indent_task");
- actionUnindentTask = new KAction(i18n("Unindent Task"), "unindent_task", 0, TQT_TQOBJECT(this),
+ actionUnindentTask = new TDEAction(i18n("Unindent Task"), "unindent_task", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotUnindentTask()), actionCollection(), "unindent_task");
- actionMoveTaskUp = new KAction(i18n("Move Up"), "move_task_up", 0, TQT_TQOBJECT(this),
+ actionMoveTaskUp = new TDEAction(i18n("Move Up"), "move_task_up", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMoveTaskUp()), actionCollection(), "move_task_up");
- actionMoveTaskDown = new KAction(i18n("Move Down"), "move_task_down", 0, TQT_TQOBJECT(this),
+ actionMoveTaskDown = new TDEAction(i18n("Move Down"), "move_task_down", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotMoveTaskDown()), actionCollection(), "move_task_down");
// ------ View
- actionViewGantt = new KAction(i18n("Gantt"), "gantt_chart", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGantt()), actionCollection(), "view_gantt");
+ actionViewGantt = new TDEAction(i18n("Gantt"), "gantt_chart", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGantt()), actionCollection(), "view_gantt");
TQString group = "EstimationType";
- actionViewExpected = new KRadioAction(i18n("Expected"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewExpected()), actionCollection(), "view_expected");
+ actionViewExpected = new TDERadioAction(i18n("Expected"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewExpected()), actionCollection(), "view_expected");
actionViewExpected->setExclusiveGroup(group);
- actionViewOptimistic = new KRadioAction(i18n("Optimistic"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewOptimistic()), actionCollection(), "view_optimistic");
+ actionViewOptimistic = new TDERadioAction(i18n("Optimistic"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewOptimistic()), actionCollection(), "view_optimistic");
actionViewOptimistic->setExclusiveGroup(group);
- actionViewPessimistic = new KRadioAction(i18n("Pessimistic"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewPessimistic()), actionCollection(), "view_pessimistic");
+ actionViewPessimistic = new TDERadioAction(i18n("Pessimistic"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewPessimistic()), actionCollection(), "view_pessimistic");
actionViewPessimistic->setExclusiveGroup(group);
- actionViewGanttResources = new KToggleAction(i18n("Resources"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttResources()), actionCollection(), "view_gantt_showResources");
- actionViewGanttTaskName = new KToggleAction(i18n("Task Name"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttTaskName()), actionCollection(), "view_gantt_showTaskName");
- actionViewGanttTaskLinks = new KToggleAction(i18n("Task Links"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttTaskLinks()), actionCollection(), "view_gantt_showTaskLinks");
- actionViewGanttProgress = new KToggleAction(i18n("Progress"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttProgress()), actionCollection(), "view_gantt_showProgress");
- actionViewGanttFloat = new KToggleAction(i18n("Float"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttFloat()), actionCollection(), "view_gantt_showFloat");
- actionViewGanttCriticalTasks = new KToggleAction(i18n("Critical Tasks"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttCriticalTasks()), actionCollection(), "view_gantt_showCriticalTasks");
- actionViewGanttCriticalPath = new KToggleAction(i18n("Critical Path"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttCriticalPath()), actionCollection(), "view_gantt_showCriticalPath");
+ actionViewGanttResources = new TDEToggleAction(i18n("Resources"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttResources()), actionCollection(), "view_gantt_showResources");
+ actionViewGanttTaskName = new TDEToggleAction(i18n("Task Name"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttTaskName()), actionCollection(), "view_gantt_showTaskName");
+ actionViewGanttTaskLinks = new TDEToggleAction(i18n("Task Links"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttTaskLinks()), actionCollection(), "view_gantt_showTaskLinks");
+ actionViewGanttProgress = new TDEToggleAction(i18n("Progress"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttProgress()), actionCollection(), "view_gantt_showProgress");
+ actionViewGanttFloat = new TDEToggleAction(i18n("Float"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttFloat()), actionCollection(), "view_gantt_showFloat");
+ actionViewGanttCriticalTasks = new TDEToggleAction(i18n("Critical Tasks"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttCriticalTasks()), actionCollection(), "view_gantt_showCriticalTasks");
+ actionViewGanttCriticalPath = new TDEToggleAction(i18n("Critical Path"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttCriticalPath()), actionCollection(), "view_gantt_showCriticalPath");
-// actionViewGanttNotScheduled = new KToggleAction(i18n("Not Scheduled"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttNotScheduled()), actionCollection(), "view_gantt_showNotScheduled");
+// actionViewGanttNotScheduled = new TDEToggleAction(i18n("Not Scheduled"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttNotScheduled()), actionCollection(), "view_gantt_showNotScheduled");
- actionViewTaskAppointments = new KToggleAction(i18n("Show Allocations"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewTaskAppointments()), actionCollection(), "view_task_appointments");
+ actionViewTaskAppointments = new TDEToggleAction(i18n("Show Allocations"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewTaskAppointments()), actionCollection(), "view_task_appointments");
- actionViewPert = new KAction(i18n("Network"), "pert_chart", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewPert()), actionCollection(), "view_pert");
+ actionViewPert = new TDEAction(i18n("Network"), "pert_chart", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewPert()), actionCollection(), "view_pert");
- actionViewResources = new KAction(i18n("Resources"), "resources", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewResources()), actionCollection(), "view_resources");
+ actionViewResources = new TDEAction(i18n("Resources"), "resources", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewResources()), actionCollection(), "view_resources");
- actionViewResourceAppointments = new KToggleAction(i18n("Show Allocations"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewResourceAppointments()), actionCollection(), "view_resource_appointments");
+ actionViewResourceAppointments = new TDEToggleAction(i18n("Show Allocations"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewResourceAppointments()), actionCollection(), "view_resource_appointments");
- actionViewAccounts = new KAction(i18n("Accounts"), "accounts", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewAccounts()), actionCollection(), "view_accounts");
+ actionViewAccounts = new TDEAction(i18n("Accounts"), "accounts", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewAccounts()), actionCollection(), "view_accounts");
- //actionViewReports = new KAction(i18n("Reports"), "reports", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewReports()), actionCollection(), "view_reports");
+ //actionViewReports = new TDEAction(i18n("Reports"), "reports", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewReports()), actionCollection(), "view_reports");
// ------ Insert
- actionAddTask = new KAction(i18n("Task..."), "add_task", 0, TQT_TQOBJECT(this),
+ actionAddTask = new TDEAction(i18n("Task..."), "add_task", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotAddTask()), actionCollection(), "add_task");
- actionAddSubtask = new KAction(i18n("Sub-Task..."), "add_sub_task", 0, TQT_TQOBJECT(this),
+ actionAddSubtask = new TDEAction(i18n("Sub-Task..."), "add_sub_task", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotAddSubTask()), actionCollection(), "add_sub_task");
- actionAddMilestone = new KAction(i18n("Milestone..."), "add_milestone", 0, TQT_TQOBJECT(this),
+ actionAddMilestone = new TDEAction(i18n("Milestone..."), "add_milestone", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotAddMilestone()), actionCollection(), "add_milestone");
// ------ Project
- actionEditMainProject = new KAction(i18n("Edit Main Project..."), "edit", 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectEdit()), actionCollection(), "project_edit");
- actionEditStandardWorktime = new KAction(i18n("Edit Standard Worktime..."), "edit", 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectWorktime()), actionCollection(), "project_worktime");
- actionEditCalendar = new KAction(i18n("Edit Calendar..."), "edit", 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectCalendar()), actionCollection(), "project_calendar");
- actionEditAccounts = new KAction(i18n("Edit Accounts..."), "edit", 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectAccounts()), actionCollection(), "project_accounts");
- actionEditResources = new KAction(i18n("Edit Resources..."), "edit", 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectResources()), actionCollection(), "project_resources");
+ actionEditMainProject = new TDEAction(i18n("Edit Main Project..."), "edit", 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectEdit()), actionCollection(), "project_edit");
+ actionEditStandardWorktime = new TDEAction(i18n("Edit Standard Worktime..."), "edit", 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectWorktime()), actionCollection(), "project_worktime");
+ actionEditCalendar = new TDEAction(i18n("Edit Calendar..."), "edit", 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectCalendar()), actionCollection(), "project_calendar");
+ actionEditAccounts = new TDEAction(i18n("Edit Accounts..."), "edit", 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectAccounts()), actionCollection(), "project_accounts");
+ actionEditResources = new TDEAction(i18n("Edit Resources..."), "edit", 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectResources()), actionCollection(), "project_resources");
- actionCalculate = new KActionMenu(i18n("Calculate"), "project_calculate", actionCollection(), "project_calculate");
+ actionCalculate = new TDEActionMenu(i18n("Calculate"), "project_calculate", actionCollection(), "project_calculate");
connect(actionCalculate, TQT_SIGNAL(activated()), TQT_SLOT(slotProjectCalculate()));
- actionCalculateExpected = new KAction(i18n("Expected"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectCalculateExpected()), actionCollection(), "project_calculate_expected");
+ actionCalculateExpected = new TDEAction(i18n("Expected"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectCalculateExpected()), actionCollection(), "project_calculate_expected");
actionCalculate->insert(actionCalculateExpected);
- actionCalculateOptimistic = new KAction(i18n("Optimistic"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectCalculateOptimistic()), actionCollection(), "project_calculate_optimistic");
+ actionCalculateOptimistic = new TDEAction(i18n("Optimistic"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectCalculateOptimistic()), actionCollection(), "project_calculate_optimistic");
actionCalculate->insert(actionCalculateOptimistic);
- actionCalculatePessimistic = new KAction(i18n("Pessimistic"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectCalculatePessimistic()), actionCollection(), "project_calculate_pessimistic");
+ actionCalculatePessimistic = new TDEAction(i18n("Pessimistic"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectCalculatePessimistic()), actionCollection(), "project_calculate_pessimistic");
actionCalculate->insert(actionCalculatePessimistic);
/* // ------ Reports
@@ -245,48 +245,48 @@ View::View(Part* part, TQWidget* parent, const char* /*name*/)
m_reportview->enableNavigationBtn();*/
mainWindow()->toolBar("report")->hide();
-// new KAction(i18n("Design..."), "report_design", 0, TQT_TQOBJECT(this),
+// new TDEAction(i18n("Design..."), "report_design", 0, TQT_TQOBJECT(this),
// TQT_SLOT(slotReportDesign()), actionCollection(), "report_design");
// ------ Tools
actionDefineWBS =
- new KAction(i18n("Define WBS Pattern..."), "tools_define_wbs", 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Define WBS Pattern..."), "tools_define_wbs", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotDefineWBS()), actionCollection(), "tools_generate_wbs");
actionGenerateWBS =
- new KAction(i18n("Generate WBS Code"), "tools_generate_wbs", 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Generate WBS Code"), "tools_generate_wbs", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotGenerateWBS()), actionCollection(), "tools_define_wbs");
// ------ Export (testing)
- //actionExportGantt = new KAction(i18n("Export Ganttview"), "export_gantt", 0, TQT_TQOBJECT(this),
+ //actionExportGantt = new TDEAction(i18n("Export Ganttview"), "export_gantt", 0, TQT_TQOBJECT(this),
// TQT_SLOT(slotExportGantt()), actionCollection(), "export_gantt");
// ------ Settings
- actionConfigure = new KAction(i18n("Configure KPlato..."), "configure", 0, TQT_TQOBJECT(this),
+ actionConfigure = new TDEAction(i18n("Configure KPlato..."), "configure", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotConfigure()), actionCollection(), "configure");
// ------ Popup
- actionOpenNode = new KAction(i18n("Edit..."), "edit", 0, TQT_TQOBJECT(this),
+ actionOpenNode = new TDEAction(i18n("Edit..."), "edit", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotOpenNode()), actionCollection(), "node_properties");
- actionTaskProgress = new KAction(i18n("Progress..."), "edit", 0, TQT_TQOBJECT(this),
+ actionTaskProgress = new TDEAction(i18n("Progress..."), "edit", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTaskProgress()), actionCollection(), "task_progress");
- actionDeleteTask = new KAction(i18n("Delete Task"), "editdelete", 0, TQT_TQOBJECT(this),
+ actionDeleteTask = new TDEAction(i18n("Delete Task"), "editdelete", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotDeleteTask()), actionCollection(), "delete_task");
- actionEditResource = new KAction(i18n("Edit Resource..."), "edit", 0, TQT_TQOBJECT(this),
+ actionEditResource = new TDEAction(i18n("Edit Resource..."), "edit", 0, TQT_TQOBJECT(this),
TQT_SLOT(slotEditResource()), actionCollection(), "edit_resource");
// ------------------- Actions with a key binding and no GUI item
// Temporary, till we get a menu entry
- actNoInformation = new KAction("Toggle no information", CTRL+SHIFT+Key_T, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttNoInformation()), actionCollection(), "show_noinformation");
+ actNoInformation = new TDEAction("Toggle no information", CTRL+SHIFT+Key_T, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttNoInformation()), actionCollection(), "show_noinformation");
#ifndef NDEBUG
- //new KAction("Print Debug", CTRL+SHIFT+Key_P, TQT_TQOBJECT(this), TQT_SLOT( slotPrintDebug()), actionCollection(), "print_debug");
- new KAction("Print Debug", CTRL+SHIFT+Key_P, TQT_TQOBJECT(this), TQT_SLOT(slotPrintSelectedDebug()), actionCollection(), "print_debug");
- new KAction("Print Calendar Debug", CTRL+SHIFT+Key_C, TQT_TQOBJECT(this), TQT_SLOT(slotPrintCalendarDebug()), actionCollection(), "print_calendar_debug");
-// new KAction("Print Test Debug", CTRL+SHIFT+Key_T, TQT_TQOBJECT(this), TQT_SLOT(slotPrintTestDebug()), actionCollection(), "print_test_debug");
+ //new TDEAction("Print Debug", CTRL+SHIFT+Key_P, TQT_TQOBJECT(this), TQT_SLOT( slotPrintDebug()), actionCollection(), "print_debug");
+ new TDEAction("Print Debug", CTRL+SHIFT+Key_P, TQT_TQOBJECT(this), TQT_SLOT(slotPrintSelectedDebug()), actionCollection(), "print_debug");
+ new TDEAction("Print Calendar Debug", CTRL+SHIFT+Key_C, TQT_TQOBJECT(this), TQT_SLOT(slotPrintCalendarDebug()), actionCollection(), "print_calendar_debug");
+// new TDEAction("Print Test Debug", CTRL+SHIFT+Key_T, TQT_TQOBJECT(this), TQT_SLOT(slotPrintTestDebug()), actionCollection(), "print_test_debug");
- KAction* actExportGantt = new KAction( i18n( "Export Gantt" ), CTRL+SHIFT+Key_G,
+ TDEAction* actExportGantt = new TDEAction( i18n( "Export Gantt" ), CTRL+SHIFT+Key_G,
TQT_TQOBJECT(this), TQT_SLOT( slotExportGantt() ), actionCollection(), "export_gantt" );
#endif
diff --git a/kplato/kptview.h b/kplato/kptview.h
index aa1f737d..eecbeabd 100644
--- a/kplato/kptview.h
+++ b/kplato/kptview.h
@@ -30,13 +30,13 @@ class TQHBoxLayout;
class TQTabWidget;
class TQWidgetStack;
-class KListView;
+class TDEListView;
class KPrinter;
-class KAction;
-class KActionMenu;
-class KSelectAction;
-class KToggleAction;
-class KRadioAction;
+class TDEAction;
+class TDEActionMenu;
+class TDESelectAction;
+class TDEToggleAction;
+class TDERadioAction;
class KStatusBarLabel;
class DCOPObject;
@@ -200,75 +200,75 @@ private:
DCOPObject* m_dcop;
// ------ Edit
- KAction *actionCut;
- KAction *actionCopy;
- KAction *actionPaste;
-
- KAction *actionIndentTask;
- KAction *actionUnindentTask;
- KAction *actionMoveTaskUp;
- KAction *actionMoveTaskDown;
+ TDEAction *actionCut;
+ TDEAction *actionCopy;
+ TDEAction *actionPaste;
+
+ TDEAction *actionIndentTask;
+ TDEAction *actionUnindentTask;
+ TDEAction *actionMoveTaskUp;
+ TDEAction *actionMoveTaskDown;
// ------ View
- KAction *actionViewGantt;
- KRadioAction *actionViewExpected;
- KRadioAction *actionViewOptimistic;
- KRadioAction *actionViewPessimistic;
+ TDEAction *actionViewGantt;
+ TDERadioAction *actionViewExpected;
+ TDERadioAction *actionViewOptimistic;
+ TDERadioAction *actionViewPessimistic;
- KToggleAction *actionViewGanttResources;
- KToggleAction *actionViewGanttTaskName;
- KToggleAction *actionViewGanttTaskLinks;
- KToggleAction *actionViewGanttProgress;
- KToggleAction *actionViewGanttFloat;
- KToggleAction *actionViewGanttCriticalTasks;
- KToggleAction *actionViewGanttCriticalPath;
- KToggleAction *actionViewGanttNotScheduled;
- KToggleAction *actionViewTaskAppointments;
- KAction *actionViewPert;
- KAction *actionViewResources;
- KToggleAction *actionViewResourceAppointments;
- KAction *actionViewAccounts;
- KAction *actionViewReports;
+ TDEToggleAction *actionViewGanttResources;
+ TDEToggleAction *actionViewGanttTaskName;
+ TDEToggleAction *actionViewGanttTaskLinks;
+ TDEToggleAction *actionViewGanttProgress;
+ TDEToggleAction *actionViewGanttFloat;
+ TDEToggleAction *actionViewGanttCriticalTasks;
+ TDEToggleAction *actionViewGanttCriticalPath;
+ TDEToggleAction *actionViewGanttNotScheduled;
+ TDEToggleAction *actionViewTaskAppointments;
+ TDEAction *actionViewPert;
+ TDEAction *actionViewResources;
+ TDEToggleAction *actionViewResourceAppointments;
+ TDEAction *actionViewAccounts;
+ TDEAction *actionViewReports;
// ------ Insert
- KAction *actionAddTask;
- KAction *actionAddSubtask;
- KAction *actionAddMilestone;
+ TDEAction *actionAddTask;
+ TDEAction *actionAddSubtask;
+ TDEAction *actionAddMilestone;
// ------ Project
- KAction *actionEditMainProject;
- KAction *actionEditStandardWorktime;
- KAction *actionEditCalendar;
- KAction *actionEditAccounts;
- KAction *actionEditResources;
- KActionMenu *actionCalculate;
- KAction *actionCalculateExpected;
- KAction *actionCalculateOptimistic;
- KAction *actionCalculatePessimistic;
+ TDEAction *actionEditMainProject;
+ TDEAction *actionEditStandardWorktime;
+ TDEAction *actionEditCalendar;
+ TDEAction *actionEditAccounts;
+ TDEAction *actionEditResources;
+ TDEActionMenu *actionCalculate;
+ TDEAction *actionCalculateExpected;
+ TDEAction *actionCalculateOptimistic;
+ TDEAction *actionCalculatePessimistic;
// ------ Reports
- KAction *actionFirstpage;
- KAction *actionPriorpage;
- KAction *actionNextpage;
- KAction *actionLastpage;
+ TDEAction *actionFirstpage;
+ TDEAction *actionPriorpage;
+ TDEAction *actionNextpage;
+ TDEAction *actionLastpage;
// ------ Tools
- KAction *actionDefineWBS;
- KAction *actionGenerateWBS;
+ TDEAction *actionDefineWBS;
+ TDEAction *actionGenerateWBS;
// ------ Export (testing)
- KAction *actionExportGantt;
+ TDEAction *actionExportGantt;
// ------ Settings
- KAction *actionConfigure;
+ TDEAction *actionConfigure;
// ------ Popup
- KAction *actionOpenNode;
- KAction *actionTaskProgress;
- KAction *actionDeleteTask;
- KAction *actionEditResource;
+ TDEAction *actionOpenNode;
+ TDEAction *actionTaskProgress;
+ TDEAction *actionDeleteTask;
+ TDEAction *actionEditResource;
//Test
- KAction *actNoInformation;
+ TDEAction *actNoInformation;
};
} //Kplato namespace
diff --git a/kplato/resourcespanelbase.ui b/kplato/resourcespanelbase.ui
index cc47ad3f..af913ca2 100644
--- a/kplato/resourcespanelbase.ui
+++ b/kplato/resourcespanelbase.ui
@@ -34,7 +34,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Resource Group</string>
diff --git a/kplato/standardworktimedialogbase.ui b/kplato/standardworktimedialogbase.ui
index eafdca61..6843dfd8 100644
--- a/kplato/standardworktimedialogbase.ui
+++ b/kplato/standardworktimedialogbase.ui
@@ -166,7 +166,7 @@ when there is no calendar defined for a resource.</string>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Weekday</string>