summaryrefslogtreecommitdiffstats
path: root/kplato/kptview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kplato/kptview.cpp')
-rw-r--r--kplato/kptview.cpp108
1 files changed, 54 insertions, 54 deletions
diff --git a/kplato/kptview.cpp b/kplato/kptview.cpp
index 519de080d..7f4d62b2f 100644
--- a/kplato/kptview.cpp
+++ b/kplato/kptview.cpp
@@ -144,7 +144,7 @@ View::View(Part* part, TQWidget* parent, const char* /*name*/)
//m_reportview = new ReportView(this, m_tab);
//m_tab->addWidget(m_reportview);
- connect(m_tab, TQT_SIGNAL(aboutToShow(TQWidget *)), TQT_TQOBJECT(this), TQT_SLOT(slotAboutToShow(TQWidget *)));
+ connect(m_tab, TQT_SIGNAL(aboutToShow(TQWidget *)), this, TQT_SLOT(slotAboutToShow(TQWidget *)));
connect(m_pertview, TQT_SIGNAL(addRelation(Node*, Node*)), TQT_SLOT(slotAddRelation(Node*, Node*)));
connect(m_pertview, TQT_SIGNAL(modifyRelation(Relation*)), TQT_SLOT(slotModifyRelation(Relation*)));
@@ -154,83 +154,83 @@ View::View(Part* part, TQWidget* parent, const char* /*name*/)
connect(m_ganttview, TQT_SIGNAL(modifyRelation(Relation*, int)), TQT_SLOT(slotModifyRelation(Relation*, int)));
connect(m_ganttview, TQT_SIGNAL(modifyRelation(Relation*)), TQT_SLOT(slotModifyRelation(Relation*)));
connect(m_ganttview, TQT_SIGNAL(itemDoubleClicked()), TQT_SLOT(slotOpenNode()));
- connect(m_ganttview, TQT_SIGNAL(itemRenamed(Node*, const TQString&)),TQT_TQOBJECT(this), TQT_SLOT(slotRenameNode(Node*, const TQString&)));
- connect(m_ganttview, TQT_SIGNAL(requestPopupMenu(const TQString&, const TQPoint &)),TQT_TQOBJECT(this), TQT_SLOT(slotPopupMenu(const TQString&, const TQPoint&)));
+ connect(m_ganttview, TQT_SIGNAL(itemRenamed(Node*, const TQString&)),this, TQT_SLOT(slotRenameNode(Node*, const TQString&)));
+ connect(m_ganttview, TQT_SIGNAL(requestPopupMenu(const TQString&, const TQPoint &)),this, TQT_SLOT(slotPopupMenu(const TQString&, const TQPoint&)));
connect(m_resourceview, TQT_SIGNAL(itemDoubleClicked()), TQT_SLOT(slotEditResource()));
// The menu items
// ------ Edit
- actionCut = KStdAction::cut( TQT_TQOBJECT(this), TQT_SLOT( slotEditCut() ), actionCollection(), "edit_cut" );
- actionCopy = KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT( slotEditCopy() ), actionCollection(), "edit_copy" );
- actionPaste = KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT( slotEditPaste() ), actionCollection(), "edit_paste" );
+ actionCut = KStdAction::cut( this, TQT_SLOT( slotEditCut() ), actionCollection(), "edit_cut" );
+ actionCopy = KStdAction::copy( this, TQT_SLOT( slotEditCopy() ), actionCollection(), "edit_copy" );
+ actionPaste = KStdAction::paste( this, TQT_SLOT( slotEditPaste() ), actionCollection(), "edit_paste" );
- actionIndentTask = new TDEAction(i18n("Indent Task"), "indent_task", 0, TQT_TQOBJECT(this),
+ actionIndentTask = new TDEAction(i18n("Indent Task"), "indent_task", 0, this,
TQT_SLOT(slotIndentTask()), actionCollection(), "indent_task");
- actionUnindentTask = new TDEAction(i18n("Unindent Task"), "unindent_task", 0, TQT_TQOBJECT(this),
+ actionUnindentTask = new TDEAction(i18n("Unindent Task"), "unindent_task", 0, this,
TQT_SLOT(slotUnindentTask()), actionCollection(), "unindent_task");
- actionMoveTaskUp = new TDEAction(i18n("Move Up"), "move_task_up", 0, TQT_TQOBJECT(this),
+ actionMoveTaskUp = new TDEAction(i18n("Move Up"), "move_task_up", 0, this,
TQT_SLOT(slotMoveTaskUp()), actionCollection(), "move_task_up");
- actionMoveTaskDown = new TDEAction(i18n("Move Down"), "move_task_down", 0, TQT_TQOBJECT(this),
+ actionMoveTaskDown = new TDEAction(i18n("Move Down"), "move_task_down", 0, this,
TQT_SLOT(slotMoveTaskDown()), actionCollection(), "move_task_down");
// ------ View
- actionViewGantt = new TDEAction(i18n("Gantt"), "gantt_chart", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGantt()), actionCollection(), "view_gantt");
+ actionViewGantt = new TDEAction(i18n("Gantt"), "gantt_chart", 0, this, TQT_SLOT(slotViewGantt()), actionCollection(), "view_gantt");
TQString group = "EstimationType";
- actionViewExpected = new TDERadioAction(i18n("Expected"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewExpected()), actionCollection(), "view_expected");
+ actionViewExpected = new TDERadioAction(i18n("Expected"), 0, 0, this, TQT_SLOT(slotViewExpected()), actionCollection(), "view_expected");
actionViewExpected->setExclusiveGroup(group);
- actionViewOptimistic = new TDERadioAction(i18n("Optimistic"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewOptimistic()), actionCollection(), "view_optimistic");
+ actionViewOptimistic = new TDERadioAction(i18n("Optimistic"), 0, 0, this, TQT_SLOT(slotViewOptimistic()), actionCollection(), "view_optimistic");
actionViewOptimistic->setExclusiveGroup(group);
- actionViewPessimistic = new TDERadioAction(i18n("Pessimistic"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewPessimistic()), actionCollection(), "view_pessimistic");
+ actionViewPessimistic = new TDERadioAction(i18n("Pessimistic"), 0, 0, this, TQT_SLOT(slotViewPessimistic()), actionCollection(), "view_pessimistic");
actionViewPessimistic->setExclusiveGroup(group);
- 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");
+ actionViewGanttResources = new TDEToggleAction(i18n("Resources"), 0, 0, this, TQT_SLOT(slotViewGanttResources()), actionCollection(), "view_gantt_showResources");
+ actionViewGanttTaskName = new TDEToggleAction(i18n("Task Name"), 0, 0, this, TQT_SLOT(slotViewGanttTaskName()), actionCollection(), "view_gantt_showTaskName");
+ actionViewGanttTaskLinks = new TDEToggleAction(i18n("Task Links"), 0, 0, this, TQT_SLOT(slotViewGanttTaskLinks()), actionCollection(), "view_gantt_showTaskLinks");
+ actionViewGanttProgress = new TDEToggleAction(i18n("Progress"), 0, 0, this, TQT_SLOT(slotViewGanttProgress()), actionCollection(), "view_gantt_showProgress");
+ actionViewGanttFloat = new TDEToggleAction(i18n("Float"), 0, 0, this, TQT_SLOT(slotViewGanttFloat()), actionCollection(), "view_gantt_showFloat");
+ actionViewGanttCriticalTasks = new TDEToggleAction(i18n("Critical Tasks"), 0, 0, this, TQT_SLOT(slotViewGanttCriticalTasks()), actionCollection(), "view_gantt_showCriticalTasks");
+ actionViewGanttCriticalPath = new TDEToggleAction(i18n("Critical Path"), 0, 0, this, TQT_SLOT(slotViewGanttCriticalPath()), actionCollection(), "view_gantt_showCriticalPath");
-// actionViewGanttNotScheduled = new TDEToggleAction(i18n("Not Scheduled"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewGanttNotScheduled()), actionCollection(), "view_gantt_showNotScheduled");
+// actionViewGanttNotScheduled = new TDEToggleAction(i18n("Not Scheduled"), 0, 0, this, TQT_SLOT(slotViewGanttNotScheduled()), actionCollection(), "view_gantt_showNotScheduled");
- actionViewTaskAppointments = new TDEToggleAction(i18n("Show Allocations"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewTaskAppointments()), actionCollection(), "view_task_appointments");
+ actionViewTaskAppointments = new TDEToggleAction(i18n("Show Allocations"), 0, 0, this, TQT_SLOT(slotViewTaskAppointments()), actionCollection(), "view_task_appointments");
- actionViewPert = new TDEAction(i18n("Network"), "pert_chart", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewPert()), actionCollection(), "view_pert");
+ actionViewPert = new TDEAction(i18n("Network"), "pert_chart", 0, this, TQT_SLOT(slotViewPert()), actionCollection(), "view_pert");
- actionViewResources = new TDEAction(i18n("Resources"), "resources", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewResources()), actionCollection(), "view_resources");
+ actionViewResources = new TDEAction(i18n("Resources"), "resources", 0, this, TQT_SLOT(slotViewResources()), actionCollection(), "view_resources");
- actionViewResourceAppointments = new TDEToggleAction(i18n("Show Allocations"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewResourceAppointments()), actionCollection(), "view_resource_appointments");
+ actionViewResourceAppointments = new TDEToggleAction(i18n("Show Allocations"), 0, 0, this, TQT_SLOT(slotViewResourceAppointments()), actionCollection(), "view_resource_appointments");
- actionViewAccounts = new TDEAction(i18n("Accounts"), "accounts", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewAccounts()), actionCollection(), "view_accounts");
+ actionViewAccounts = new TDEAction(i18n("Accounts"), "accounts", 0, this, TQT_SLOT(slotViewAccounts()), actionCollection(), "view_accounts");
- //actionViewReports = new TDEAction(i18n("Reports"), "reports", 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewReports()), actionCollection(), "view_reports");
+ //actionViewReports = new TDEAction(i18n("Reports"), "reports", 0, this, TQT_SLOT(slotViewReports()), actionCollection(), "view_reports");
// ------ Insert
- actionAddTask = new TDEAction(i18n("Task..."), "add_task", 0, TQT_TQOBJECT(this),
+ actionAddTask = new TDEAction(i18n("Task..."), "add_task", 0, this,
TQT_SLOT(slotAddTask()), actionCollection(), "add_task");
- actionAddSubtask = new TDEAction(i18n("Sub-Task..."), "add_sub_task", 0, TQT_TQOBJECT(this),
+ actionAddSubtask = new TDEAction(i18n("Sub-Task..."), "add_sub_task", 0, this,
TQT_SLOT(slotAddSubTask()), actionCollection(), "add_sub_task");
- actionAddMilestone = new TDEAction(i18n("Milestone..."), "add_milestone", 0, TQT_TQOBJECT(this),
+ actionAddMilestone = new TDEAction(i18n("Milestone..."), "add_milestone", 0, this,
TQT_SLOT(slotAddMilestone()), actionCollection(), "add_milestone");
// ------ Project
- 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");
+ actionEditMainProject = new TDEAction(i18n("Edit Main Project..."), "edit", 0, this, TQT_SLOT(slotProjectEdit()), actionCollection(), "project_edit");
+ actionEditStandardWorktime = new TDEAction(i18n("Edit Standard Worktime..."), "edit", 0, this, TQT_SLOT(slotProjectWorktime()), actionCollection(), "project_worktime");
+ actionEditCalendar = new TDEAction(i18n("Edit Calendar..."), "edit", 0, this, TQT_SLOT(slotProjectCalendar()), actionCollection(), "project_calendar");
+ actionEditAccounts = new TDEAction(i18n("Edit Accounts..."), "edit", 0, this, TQT_SLOT(slotProjectAccounts()), actionCollection(), "project_accounts");
+ actionEditResources = new TDEAction(i18n("Edit Resources..."), "edit", 0, this, TQT_SLOT(slotProjectResources()), actionCollection(), "project_resources");
actionCalculate = new TDEActionMenu(i18n("Calculate"), "project_calculate", actionCollection(), "project_calculate");
connect(actionCalculate, TQT_SIGNAL(activated()), TQT_SLOT(slotProjectCalculate()));
- actionCalculateExpected = new TDEAction(i18n("Expected"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectCalculateExpected()), actionCollection(), "project_calculate_expected");
+ actionCalculateExpected = new TDEAction(i18n("Expected"), 0, 0, this, TQT_SLOT(slotProjectCalculateExpected()), actionCollection(), "project_calculate_expected");
actionCalculate->insert(actionCalculateExpected);
- actionCalculateOptimistic = new TDEAction(i18n("Optimistic"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectCalculateOptimistic()), actionCollection(), "project_calculate_optimistic");
+ actionCalculateOptimistic = new TDEAction(i18n("Optimistic"), 0, 0, this, TQT_SLOT(slotProjectCalculateOptimistic()), actionCollection(), "project_calculate_optimistic");
actionCalculate->insert(actionCalculateOptimistic);
- actionCalculatePessimistic = new TDEAction(i18n("Pessimistic"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectCalculatePessimistic()), actionCollection(), "project_calculate_pessimistic");
+ actionCalculatePessimistic = new TDEAction(i18n("Pessimistic"), 0, 0, this, TQT_SLOT(slotProjectCalculatePessimistic()), actionCollection(), "project_calculate_pessimistic");
actionCalculate->insert(actionCalculatePessimistic);
/* // ------ Reports
@@ -245,49 +245,49 @@ View::View(Part* part, TQWidget* parent, const char* /*name*/)
m_reportview->enableNavigationBtn();*/
mainWindow()->toolBar("report")->hide();
-// new TDEAction(i18n("Design..."), "report_design", 0, TQT_TQOBJECT(this),
+// new TDEAction(i18n("Design..."), "report_design", 0, this,
// TQT_SLOT(slotReportDesign()), actionCollection(), "report_design");
// ------ Tools
actionDefineWBS =
- new TDEAction(i18n("Define WBS Pattern..."), "tools_define_wbs", 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Define WBS Pattern..."), "tools_define_wbs", 0, this,
TQT_SLOT(slotDefineWBS()), actionCollection(), "tools_generate_wbs");
actionGenerateWBS =
- new TDEAction(i18n("Generate WBS Code"), "tools_generate_wbs", 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("Generate WBS Code"), "tools_generate_wbs", 0, this,
TQT_SLOT(slotGenerateWBS()), actionCollection(), "tools_define_wbs");
// ------ Export (testing)
- //actionExportGantt = new TDEAction(i18n("Export Ganttview"), "export_gantt", 0, TQT_TQOBJECT(this),
+ //actionExportGantt = new TDEAction(i18n("Export Ganttview"), "export_gantt", 0, this,
// TQT_SLOT(slotExportGantt()), actionCollection(), "export_gantt");
// ------ Settings
- actionConfigure = new TDEAction(i18n("Configure KPlato..."), "configure", 0, TQT_TQOBJECT(this),
+ actionConfigure = new TDEAction(i18n("Configure KPlato..."), "configure", 0, this,
TQT_SLOT(slotConfigure()), actionCollection(), "configure");
// ------ Popup
- actionOpenNode = new TDEAction(i18n("Edit..."), "edit", 0, TQT_TQOBJECT(this),
+ actionOpenNode = new TDEAction(i18n("Edit..."), "edit", 0, this,
TQT_SLOT(slotOpenNode()), actionCollection(), "node_properties");
- actionTaskProgress = new TDEAction(i18n("Progress..."), "edit", 0, TQT_TQOBJECT(this),
+ actionTaskProgress = new TDEAction(i18n("Progress..."), "edit", 0, this,
TQT_SLOT(slotTaskProgress()), actionCollection(), "task_progress");
- actionDeleteTask = new TDEAction(i18n("Delete Task"), "edit-delete", 0, TQT_TQOBJECT(this),
+ actionDeleteTask = new TDEAction(i18n("Delete Task"), "edit-delete", 0, this,
TQT_SLOT(slotDeleteTask()), actionCollection(), "delete_task");
- actionEditResource = new TDEAction(i18n("Edit Resource..."), "edit", 0, TQT_TQOBJECT(this),
+ actionEditResource = new TDEAction(i18n("Edit Resource..."), "edit", 0, 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 TDEAction("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, this, TQT_SLOT(slotViewGanttNoInformation()), actionCollection(), "show_noinformation");
#ifndef NDEBUG
- //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");
+ //new TDEAction("Print Debug", CTRL+SHIFT+Key_P, this, TQT_SLOT( slotPrintDebug()), actionCollection(), "print_debug");
+ new TDEAction("Print Debug", CTRL+SHIFT+Key_P, this, TQT_SLOT(slotPrintSelectedDebug()), actionCollection(), "print_debug");
+ new TDEAction("Print Calendar Debug", CTRL+SHIFT+Key_C, this, TQT_SLOT(slotPrintCalendarDebug()), actionCollection(), "print_calendar_debug");
+// new TDEAction("Print Test Debug", CTRL+SHIFT+Key_T, this, TQT_SLOT(slotPrintTestDebug()), actionCollection(), "print_test_debug");
TDEAction* actExportGantt = new TDEAction( i18n( "Export Gantt" ), CTRL+SHIFT+Key_G,
- TQT_TQOBJECT(this), TQT_SLOT( slotExportGantt() ), actionCollection(), "export_gantt" );
+ this, TQT_SLOT( slotExportGantt() ), actionCollection(), "export_gantt" );
#endif
// Stupid compilers ;)