From 8362bf63dea22bbf6736609b0f49c152f975eb63 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 20 Jan 2010 01:29:50 +0000 Subject: Added old abandoned KDE3 version of koffice git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kplato/KPtViewIface.cc | 88 + kplato/KPtViewIface.h | 43 + kplato/Makefile.am | 131 ++ kplato/TODO | 187 ++ kplato/intervalitem.h | 48 + kplato/kplato.desktop | 64 + kplato/kplato.dtd | 100 + kplato/kplato.kdevelop | 163 ++ kplato/kplato.rc | 152 ++ kplato/kplato_readonly.rc | 24 + kplato/kplatopart.desktop | 106 ++ kplato/kptaboutdata.h | 49 + kplato/kptaccount.cc | 512 ++++++ kplato/kptaccount.h | 226 +++ kplato/kptaccountsdialog.cc | 50 + kplato/kptaccountsdialog.h | 52 + kplato/kptaccountspanel.cc | 452 +++++ kplato/kptaccountspanel.h | 99 + kplato/kptaccountspanelbase.ui | 130 ++ kplato/kptaccountsview.cc | 451 +++++ kplato/kptaccountsview.h | 131 ++ kplato/kptaccountsviewconfigdialog.cc | 85 + kplato/kptaccountsviewconfigdialog.h | 64 + kplato/kptaccountsviewconfigurepanelbase.ui | 68 + kplato/kptappointment.cc | 734 ++++++++ kplato/kptappointment.h | 269 +++ kplato/kptcalendar.cc | 1036 +++++++++++ kplato/kptcalendar.h | 401 ++++ kplato/kptcalendaredit.cc | 283 +++ kplato/kptcalendaredit.h | 66 + kplato/kptcalendareditbase.cc | 142 ++ kplato/kptcalendareditbase.h | 80 + kplato/kptcalendarlistdialog.cc | 433 +++++ kplato/kptcalendarlistdialog.h | 107 ++ kplato/kptcalendarlistdialogbase.cc | 56 + kplato/kptcalendarlistdialogbase.h | 57 + kplato/kptcalendarlistpanel.ui | 129 ++ kplato/kptcalendarpanel.cc | 603 ++++++ kplato/kptcalendarpanel.h | 232 +++ kplato/kptcanvasitem.cc | 922 ++++++++++ kplato/kptcanvasitem.h | 288 +++ kplato/kptcommand.cc | 1918 ++++++++++++++++++++ kplato/kptcommand.h | 1052 +++++++++++ kplato/kptconfig.cc | 87 + kplato/kptconfig.h | 61 + kplato/kptconfigbehaviorpanel.cc | 72 + kplato/kptconfigbehaviorpanel.h | 51 + kplato/kptconfigbehaviorpanelbase.ui | 102 ++ kplato/kptconfigbehaviorpanelbase.ui.h | 35 + kplato/kptconfigdialog.cc | 102 ++ kplato/kptconfigdialog.h | 55 + kplato/kptconfigtaskpanelbase.ui | 361 ++++ kplato/kptcontext.cc | 163 ++ kplato/kptcontext.h | 87 + kplato/kptdatetable.cc | 1076 +++++++++++ kplato/kptdatetable.h | 427 +++++ kplato/kptdatetime.cc | 84 + kplato/kptdatetime.h | 76 + kplato/kptdoublelistviewbase.cc | 511 ++++++ kplato/kptdoublelistviewbase.h | 183 ++ kplato/kptduration.cc | 257 +++ kplato/kptduration.h | 146 ++ kplato/kptdurationwidget.cw | 25 + kplato/kptdurationwidget.ui | 420 +++++ kplato/kptdurationwidget.ui.h | 455 +++++ kplato/kpteffortcostmap.h | 193 ++ kplato/kptfactory.cc | 101 ++ kplato/kptfactory.h | 51 + kplato/kptganttview.cc | 1240 +++++++++++++ kplato/kptganttview.h | 211 +++ kplato/kptintervaledit.cc | 101 ++ kplato/kptintervaledit.h | 61 + kplato/kptintervaleditbase.ui | 124 ++ kplato/kptmainprojectdialog.cc | 67 + kplato/kptmainprojectdialog.h | 52 + kplato/kptmainprojectpanel.cc | 240 +++ kplato/kptmainprojectpanel.h | 74 + kplato/kptmainprojectpanelbase.ui | 287 +++ kplato/kptmap.h | 162 ++ kplato/kptmilestoneprogressdialog.cc | 71 + kplato/kptmilestoneprogressdialog.h | 52 + kplato/kptmilestoneprogresspanel.cc | 103 ++ kplato/kptmilestoneprogresspanel.h | 65 + kplato/kptmilestoneprogresspanelbase.ui | 63 + kplato/kptnode.cc | 1011 +++++++++++ kplato/kptnode.h | 642 +++++++ kplato/kptpart.cc | 419 +++++ kplato/kptpart.h | 123 ++ kplato/kptpertcanvas.cc | 436 +++++ kplato/kptpertcanvas.h | 105 ++ kplato/kptpertview.cc | 140 ++ kplato/kptpertview.h | 81 + kplato/kptproject.cc | 1104 +++++++++++ kplato/kptproject.h | 281 +++ kplato/kptprojectdialog.cc | 145 ++ kplato/kptprojectdialog.h | 72 + kplato/kptprojectdialogbase.ui | 260 +++ kplato/kptrelation.cc | 142 ++ kplato/kptrelation.h | 115 ++ kplato/kptrelationdialog.cc | 122 ++ kplato/kptrelationdialog.h | 79 + kplato/kptreportview.cc | 732 ++++++++ kplato/kptreportview.h | 139 ++ kplato/kptrequestresourcespanel.cc | 266 +++ kplato/kptrequestresourcespanel.h | 122 ++ kplato/kptresource.cc | 1260 +++++++++++++ kplato/kptresource.h | 579 ++++++ kplato/kptresourceappointmentsview.cc | 233 +++ kplato/kptresourceappointmentsview.h | 102 ++ kplato/kptresourcedialog.cc | 241 +++ kplato/kptresourcedialog.h | 92 + kplato/kptresourcesdialog.cc | 71 + kplato/kptresourcesdialog.h | 53 + kplato/kptresourcespanel.cc | 561 ++++++ kplato/kptresourcespanel.h | 90 + kplato/kptresourceview.cc | 611 +++++++ kplato/kptresourceview.h | 107 ++ kplato/kptschedule.cc | 681 +++++++ kplato/kptschedule.h | 325 ++++ kplato/kptstandardworktimedialog.cc | 292 +++ kplato/kptstandardworktimedialog.h | 94 + kplato/kptsummarytaskdialog.cc | 69 + kplato/kptsummarytaskdialog.h | 72 + kplato/kptsummarytaskgeneralpanel.cc | 126 ++ kplato/kptsummarytaskgeneralpanel.h | 59 + kplato/kptsummarytaskgeneralpanelbase.ui | 248 +++ kplato/kpttask.cc | 1542 ++++++++++++++++ kplato/kpttask.h | 306 ++++ kplato/kpttaskappointmentsview.cc | 182 ++ kplato/kpttaskappointmentsview.h | 95 + kplato/kpttaskappointmentsview.ui.h | 114 ++ kplato/kpttaskcostpanel.cc | 151 ++ kplato/kpttaskcostpanel.h | 73 + kplato/kpttaskcostpanelbase.ui | 231 +++ kplato/kpttaskdefaultpanel.cc | 515 ++++++ kplato/kpttaskdefaultpanel.h | 113 ++ kplato/kpttaskdialog.cc | 96 + kplato/kpttaskdialog.h | 83 + kplato/kpttaskgeneralpanel.cc | 566 ++++++ kplato/kpttaskgeneralpanel.h | 116 ++ kplato/kpttaskgeneralpanelbase.ui | 547 ++++++ kplato/kpttasknotespanelbase.ui | 51 + kplato/kpttaskprogressdialog.cc | 71 + kplato/kpttaskprogressdialog.h | 53 + kplato/kpttaskprogresspanel.cc | 190 ++ kplato/kpttaskprogresspanel.h | 71 + kplato/kpttaskprogresspanelbase.ui | 431 +++++ kplato/kpttaskresourcespanelbase.ui | 111 ++ kplato/kpttaskresourcespanelbase.ui.h | 35 + kplato/kptview.cc | 1519 ++++++++++++++++ kplato/kptview.h | 275 +++ kplato/kptwbsdefinition.cc | 188 ++ kplato/kptwbsdefinition.h | 95 + kplato/kptwbsdefinitiondialog.cc | 68 + kplato/kptwbsdefinitiondialog.h | 50 + kplato/kptwbsdefinitionpanel.cc | 173 ++ kplato/kptwbsdefinitionpanel.h | 61 + kplato/kptwbsdefinitionpanelbase.ui | 185 ++ kplato/kptxmlloaderobject.h | 100 + kplato/main.cc | 50 + kplato/pics/Makefile.am | 1 + kplato/pics/cr128-app-kplato.png | Bin 0 -> 7376 bytes kplato/pics/cr16-app-kplato.png | Bin 0 -> 756 bytes kplato/pics/cr22-app-kplato.png | Bin 0 -> 1034 bytes kplato/pics/cr32-app-kplato.png | Bin 0 -> 1430 bytes kplato/pics/cr48-app-kplato.png | Bin 0 -> 1968 bytes kplato/pics/cr64-app-kplato.png | Bin 0 -> 3051 bytes kplato/pics/crsc-app-kplato.svgz | Bin 0 -> 3260 bytes kplato/relationpanel.ui | 284 +++ kplato/reports/Makefile.am | 7 + kplato/reports/README | 41 + kplato/reports/resourcelist.desktop | 45 + kplato/reports/resourcelist.ktf | 252 +++ kplato/reports/tasklist.desktop | 46 + kplato/reports/tasklist.ktf | 225 +++ kplato/resourcedialogbase.ui | 397 ++++ kplato/resourcespanelbase.ui | 195 ++ kplato/standardworktimedialogbase.ui | 290 +++ kplato/templates/Makefile.am | 1 + kplato/templates/Simple/.directory | 60 + .../templates/Simple/8HourDay-40HourWeek.desktop | 44 + .../templates/Simple/8HourDay-40HourWeek.kplatot | 27 + kplato/templates/Simple/Makefile.am | 9 + kplato/templates/Simple/Plain.desktop | 70 + kplato/templates/Simple/Plain.kplatot | 4 + .../Simple/cr48-action-template_timechart.png | Bin 0 -> 1104 bytes .../Simple/crsc-action-template_timechart.svgz | Bin 0 -> 1872 bytes kplato/tests/CalendarTester.cpp | 125 ++ kplato/tests/CalendarTester.h | 30 + kplato/tests/DateTimeTester.cpp | 53 + kplato/tests/DateTimeTester.h | 37 + kplato/tests/DurationTester.cpp | 53 + kplato/tests/DurationTester.h | 28 + kplato/tests/Makefile.am | 29 + kplato/toolbar/Makefile.am | 2 + kplato/toolbar/cr22-action-accounts.png | Bin 0 -> 938 bytes kplato/toolbar/cr22-action-add_milestone.png | Bin 0 -> 773 bytes kplato/toolbar/cr22-action-add_sub_task.png | Bin 0 -> 770 bytes kplato/toolbar/cr22-action-add_task.png | Bin 0 -> 741 bytes kplato/toolbar/cr22-action-gantt_chart.png | Bin 0 -> 798 bytes kplato/toolbar/cr22-action-indent_task.png | Bin 0 -> 410 bytes kplato/toolbar/cr22-action-move_task_down.png | Bin 0 -> 378 bytes kplato/toolbar/cr22-action-move_task_up.png | Bin 0 -> 328 bytes kplato/toolbar/cr22-action-pert_chart.png | Bin 0 -> 856 bytes kplato/toolbar/cr22-action-project_calculate.png | Bin 0 -> 1031 bytes kplato/toolbar/cr22-action-resources.png | Bin 0 -> 1247 bytes kplato/toolbar/cr22-action-unindent_task.png | Bin 0 -> 399 bytes 207 files changed, 43801 insertions(+) create mode 100644 kplato/KPtViewIface.cc create mode 100644 kplato/KPtViewIface.h create mode 100644 kplato/Makefile.am create mode 100644 kplato/TODO create mode 100644 kplato/intervalitem.h create mode 100644 kplato/kplato.desktop create mode 100644 kplato/kplato.dtd create mode 100644 kplato/kplato.kdevelop create mode 100644 kplato/kplato.rc create mode 100644 kplato/kplato_readonly.rc create mode 100644 kplato/kplatopart.desktop create mode 100644 kplato/kptaboutdata.h create mode 100644 kplato/kptaccount.cc create mode 100644 kplato/kptaccount.h create mode 100644 kplato/kptaccountsdialog.cc create mode 100644 kplato/kptaccountsdialog.h create mode 100644 kplato/kptaccountspanel.cc create mode 100644 kplato/kptaccountspanel.h create mode 100644 kplato/kptaccountspanelbase.ui create mode 100644 kplato/kptaccountsview.cc create mode 100644 kplato/kptaccountsview.h create mode 100644 kplato/kptaccountsviewconfigdialog.cc create mode 100644 kplato/kptaccountsviewconfigdialog.h create mode 100644 kplato/kptaccountsviewconfigurepanelbase.ui create mode 100644 kplato/kptappointment.cc create mode 100644 kplato/kptappointment.h create mode 100644 kplato/kptcalendar.cc create mode 100644 kplato/kptcalendar.h create mode 100644 kplato/kptcalendaredit.cc create mode 100644 kplato/kptcalendaredit.h create mode 100644 kplato/kptcalendareditbase.cc create mode 100644 kplato/kptcalendareditbase.h create mode 100644 kplato/kptcalendarlistdialog.cc create mode 100644 kplato/kptcalendarlistdialog.h create mode 100644 kplato/kptcalendarlistdialogbase.cc create mode 100644 kplato/kptcalendarlistdialogbase.h create mode 100644 kplato/kptcalendarlistpanel.ui create mode 100644 kplato/kptcalendarpanel.cc create mode 100644 kplato/kptcalendarpanel.h create mode 100644 kplato/kptcanvasitem.cc create mode 100644 kplato/kptcanvasitem.h create mode 100644 kplato/kptcommand.cc create mode 100644 kplato/kptcommand.h create mode 100644 kplato/kptconfig.cc create mode 100644 kplato/kptconfig.h create mode 100644 kplato/kptconfigbehaviorpanel.cc create mode 100644 kplato/kptconfigbehaviorpanel.h create mode 100644 kplato/kptconfigbehaviorpanelbase.ui create mode 100644 kplato/kptconfigbehaviorpanelbase.ui.h create mode 100644 kplato/kptconfigdialog.cc create mode 100644 kplato/kptconfigdialog.h create mode 100644 kplato/kptconfigtaskpanelbase.ui create mode 100644 kplato/kptcontext.cc create mode 100644 kplato/kptcontext.h create mode 100644 kplato/kptdatetable.cc create mode 100644 kplato/kptdatetable.h create mode 100644 kplato/kptdatetime.cc create mode 100644 kplato/kptdatetime.h create mode 100644 kplato/kptdoublelistviewbase.cc create mode 100644 kplato/kptdoublelistviewbase.h create mode 100644 kplato/kptduration.cc create mode 100644 kplato/kptduration.h create mode 100644 kplato/kptdurationwidget.cw create mode 100644 kplato/kptdurationwidget.ui create mode 100644 kplato/kptdurationwidget.ui.h create mode 100644 kplato/kpteffortcostmap.h create mode 100644 kplato/kptfactory.cc create mode 100644 kplato/kptfactory.h create mode 100644 kplato/kptganttview.cc create mode 100644 kplato/kptganttview.h create mode 100644 kplato/kptintervaledit.cc create mode 100644 kplato/kptintervaledit.h create mode 100644 kplato/kptintervaleditbase.ui create mode 100644 kplato/kptmainprojectdialog.cc create mode 100644 kplato/kptmainprojectdialog.h create mode 100644 kplato/kptmainprojectpanel.cc create mode 100644 kplato/kptmainprojectpanel.h create mode 100644 kplato/kptmainprojectpanelbase.ui create mode 100644 kplato/kptmap.h create mode 100644 kplato/kptmilestoneprogressdialog.cc create mode 100644 kplato/kptmilestoneprogressdialog.h create mode 100644 kplato/kptmilestoneprogresspanel.cc create mode 100644 kplato/kptmilestoneprogresspanel.h create mode 100644 kplato/kptmilestoneprogresspanelbase.ui create mode 100644 kplato/kptnode.cc create mode 100644 kplato/kptnode.h create mode 100644 kplato/kptpart.cc create mode 100644 kplato/kptpart.h create mode 100644 kplato/kptpertcanvas.cc create mode 100644 kplato/kptpertcanvas.h create mode 100644 kplato/kptpertview.cc create mode 100644 kplato/kptpertview.h create mode 100644 kplato/kptproject.cc create mode 100644 kplato/kptproject.h create mode 100644 kplato/kptprojectdialog.cc create mode 100644 kplato/kptprojectdialog.h create mode 100644 kplato/kptprojectdialogbase.ui create mode 100644 kplato/kptrelation.cc create mode 100644 kplato/kptrelation.h create mode 100644 kplato/kptrelationdialog.cc create mode 100644 kplato/kptrelationdialog.h create mode 100644 kplato/kptreportview.cc create mode 100644 kplato/kptreportview.h create mode 100644 kplato/kptrequestresourcespanel.cc create mode 100644 kplato/kptrequestresourcespanel.h create mode 100644 kplato/kptresource.cc create mode 100644 kplato/kptresource.h create mode 100644 kplato/kptresourceappointmentsview.cc create mode 100644 kplato/kptresourceappointmentsview.h create mode 100644 kplato/kptresourcedialog.cc create mode 100644 kplato/kptresourcedialog.h create mode 100644 kplato/kptresourcesdialog.cc create mode 100644 kplato/kptresourcesdialog.h create mode 100644 kplato/kptresourcespanel.cc create mode 100644 kplato/kptresourcespanel.h create mode 100644 kplato/kptresourceview.cc create mode 100644 kplato/kptresourceview.h create mode 100644 kplato/kptschedule.cc create mode 100644 kplato/kptschedule.h create mode 100644 kplato/kptstandardworktimedialog.cc create mode 100644 kplato/kptstandardworktimedialog.h create mode 100644 kplato/kptsummarytaskdialog.cc create mode 100644 kplato/kptsummarytaskdialog.h create mode 100644 kplato/kptsummarytaskgeneralpanel.cc create mode 100644 kplato/kptsummarytaskgeneralpanel.h create mode 100644 kplato/kptsummarytaskgeneralpanelbase.ui create mode 100644 kplato/kpttask.cc create mode 100644 kplato/kpttask.h create mode 100644 kplato/kpttaskappointmentsview.cc create mode 100644 kplato/kpttaskappointmentsview.h create mode 100644 kplato/kpttaskappointmentsview.ui.h create mode 100644 kplato/kpttaskcostpanel.cc create mode 100644 kplato/kpttaskcostpanel.h create mode 100644 kplato/kpttaskcostpanelbase.ui create mode 100644 kplato/kpttaskdefaultpanel.cc create mode 100644 kplato/kpttaskdefaultpanel.h create mode 100644 kplato/kpttaskdialog.cc create mode 100644 kplato/kpttaskdialog.h create mode 100644 kplato/kpttaskgeneralpanel.cc create mode 100644 kplato/kpttaskgeneralpanel.h create mode 100644 kplato/kpttaskgeneralpanelbase.ui create mode 100644 kplato/kpttasknotespanelbase.ui create mode 100644 kplato/kpttaskprogressdialog.cc create mode 100644 kplato/kpttaskprogressdialog.h create mode 100644 kplato/kpttaskprogresspanel.cc create mode 100644 kplato/kpttaskprogresspanel.h create mode 100644 kplato/kpttaskprogresspanelbase.ui create mode 100644 kplato/kpttaskresourcespanelbase.ui create mode 100644 kplato/kpttaskresourcespanelbase.ui.h create mode 100644 kplato/kptview.cc create mode 100644 kplato/kptview.h create mode 100644 kplato/kptwbsdefinition.cc create mode 100644 kplato/kptwbsdefinition.h create mode 100644 kplato/kptwbsdefinitiondialog.cc create mode 100644 kplato/kptwbsdefinitiondialog.h create mode 100644 kplato/kptwbsdefinitionpanel.cc create mode 100644 kplato/kptwbsdefinitionpanel.h create mode 100644 kplato/kptwbsdefinitionpanelbase.ui create mode 100644 kplato/kptxmlloaderobject.h create mode 100644 kplato/main.cc create mode 100644 kplato/pics/Makefile.am create mode 100644 kplato/pics/cr128-app-kplato.png create mode 100644 kplato/pics/cr16-app-kplato.png create mode 100644 kplato/pics/cr22-app-kplato.png create mode 100644 kplato/pics/cr32-app-kplato.png create mode 100644 kplato/pics/cr48-app-kplato.png create mode 100644 kplato/pics/cr64-app-kplato.png create mode 100644 kplato/pics/crsc-app-kplato.svgz create mode 100644 kplato/relationpanel.ui create mode 100644 kplato/reports/Makefile.am create mode 100644 kplato/reports/README create mode 100644 kplato/reports/resourcelist.desktop create mode 100644 kplato/reports/resourcelist.ktf create mode 100644 kplato/reports/tasklist.desktop create mode 100644 kplato/reports/tasklist.ktf create mode 100644 kplato/resourcedialogbase.ui create mode 100644 kplato/resourcespanelbase.ui create mode 100644 kplato/standardworktimedialogbase.ui create mode 100644 kplato/templates/Makefile.am create mode 100644 kplato/templates/Simple/.directory create mode 100644 kplato/templates/Simple/8HourDay-40HourWeek.desktop create mode 100644 kplato/templates/Simple/8HourDay-40HourWeek.kplatot create mode 100644 kplato/templates/Simple/Makefile.am create mode 100644 kplato/templates/Simple/Plain.desktop create mode 100644 kplato/templates/Simple/Plain.kplatot create mode 100644 kplato/templates/Simple/cr48-action-template_timechart.png create mode 100644 kplato/templates/Simple/crsc-action-template_timechart.svgz create mode 100644 kplato/tests/CalendarTester.cpp create mode 100644 kplato/tests/CalendarTester.h create mode 100644 kplato/tests/DateTimeTester.cpp create mode 100644 kplato/tests/DateTimeTester.h create mode 100644 kplato/tests/DurationTester.cpp create mode 100644 kplato/tests/DurationTester.h create mode 100644 kplato/tests/Makefile.am create mode 100644 kplato/toolbar/Makefile.am create mode 100644 kplato/toolbar/cr22-action-accounts.png create mode 100644 kplato/toolbar/cr22-action-add_milestone.png create mode 100644 kplato/toolbar/cr22-action-add_sub_task.png create mode 100644 kplato/toolbar/cr22-action-add_task.png create mode 100644 kplato/toolbar/cr22-action-gantt_chart.png create mode 100644 kplato/toolbar/cr22-action-indent_task.png create mode 100644 kplato/toolbar/cr22-action-move_task_down.png create mode 100644 kplato/toolbar/cr22-action-move_task_up.png create mode 100644 kplato/toolbar/cr22-action-pert_chart.png create mode 100644 kplato/toolbar/cr22-action-project_calculate.png create mode 100644 kplato/toolbar/cr22-action-resources.png create mode 100644 kplato/toolbar/cr22-action-unindent_task.png (limited to 'kplato') diff --git a/kplato/KPtViewIface.cc b/kplato/KPtViewIface.cc new file mode 100644 index 00000000..e9a9e332 --- /dev/null +++ b/kplato/KPtViewIface.cc @@ -0,0 +1,88 @@ + +#include "KPtViewIface.h" +#include "kptview.h" + +#include +#include +#include + +namespace KPlato +{ + +/************************************************ + * + * ViewIface + * + ************************************************/ + +ViewIface::ViewIface( View* t ) + : KoViewIface( t ) +{ + m_view = t; +} + +ViewIface::~ViewIface() +{ +} + +void ViewIface::slotEditResource() +{ + m_view->slotEditResource(); +} + +void ViewIface::slotEditCut() +{ + m_view->slotEditCut(); +} + +void ViewIface::slotEditCopy() +{ + m_view->slotEditCopy(); +} + +void ViewIface::slotEditPaste() +{ + m_view->slotEditPaste(); +} + +void ViewIface::slotViewGantt() +{ + m_view->slotViewGantt(); +} + +void ViewIface::slotViewPert() +{ + m_view->slotViewPert(); +} + +void ViewIface::slotViewResources() +{ + m_view->slotViewResources(); +} + +void ViewIface::slotAddTask() +{ + m_view->slotAddTask(); +} + +void ViewIface::slotAddSubTask() +{ + m_view->slotAddSubTask(); +} + +void ViewIface::slotAddMilestone() +{ + m_view->slotAddMilestone(); +} + +void ViewIface::slotProjectEdit() +{ + m_view->slotProjectEdit(); +} + +void ViewIface::slotConfigure() +{ + m_view->slotConfigure(); +} + +} //KPlato namespace diff --git a/kplato/KPtViewIface.h b/kplato/KPtViewIface.h new file mode 100644 index 00000000..bb134b74 --- /dev/null +++ b/kplato/KPtViewIface.h @@ -0,0 +1,43 @@ + +#ifndef KPT_VIEW_IFACE_H +#define KPT_VIEW_IFACE_H + +#include + +#include +#include +#include + +namespace KPlato +{ + +class View; + +class ViewIface : public KoViewIface +{ + K_DCOP +public: + ViewIface( View* ); + ~ViewIface(); + +k_dcop: + void slotEditResource(); + void slotEditCut(); + void slotEditCopy(); + void slotEditPaste(); + void slotViewGantt(); + void slotViewPert(); + void slotViewResources(); + void slotAddTask(); + void slotAddSubTask(); + void slotAddMilestone(); + void slotProjectEdit(); + void slotConfigure(); + +private: + View* m_view; +}; + +} //KPlato namespace + +#endif diff --git a/kplato/Makefile.am b/kplato/Makefile.am new file mode 100644 index 00000000..eacfc3f0 --- /dev/null +++ b/kplato/Makefile.am @@ -0,0 +1,131 @@ +SUBDIRS = templates pics reports toolbar tests + +INCLUDES = $(KOFFICE_INCLUDES) $(KOTEXT_INCLUDES) \ + -I$(top_srcdir)/kdgantt -I$(top_srcdir)/kugar/lib \ + $(all_includes) + +libkplatopart_la_SOURCES = \ + kptsummarytaskgeneralpanelbase.ui \ + kptsummarytaskdialog.cc \ + kptsummarytaskgeneralpanel.cc \ + kptschedule.cc \ + kptappointment.cc \ + kptcalendarlistpanel.ui \ + kptresourceappointmentsview.cc \ + kpttaskappointmentsview.cc \ + kptdoublelistviewbase.cc \ + kptaccountsviewconfigdialog.cc \ + kptaccountsviewconfigurepanelbase.ui \ + kptaccountsview.cc \ + kpttaskcostpanelbase.ui \ + kpttaskcostpanel.cc \ + kptmilestoneprogresspanel.cc \ + kptmilestoneprogresspanelbase.ui \ + kptmilestoneprogressdialog.cc \ + kptaccount.cc kptaccountsdialog.cc kptaccountspanel.cc kptaccountspanelbase.ui \ + kptnode.cc kptproject.cc \ + kptrelation.cc kptresource.cc kpttask.cc \ + kptduration.cc kptfactory.cc kptpart.cc kptview.cc \ + kptdurationwidget.ui relationpanel.ui\ + kptprojectdialog.cc kpttaskdialog.cc \ + kptmainprojectdialog.cc kptmainprojectpanel.cc kptmainprojectpanelbase.ui \ + kptganttview.cc kptresourcespanel.cc \ + kptpertview.cc kptpertcanvas.cc kptrelationdialog.cc \ + kptcanvasitem.cc kptprojectdialogbase.ui \ + resourcespanelbase.ui \ + kptresourceview.cc \ + kpttaskresourcespanelbase.ui kptrequestresourcespanel.cc \ + resourcedialogbase.ui kptresourcedialog.cc \ + kpttaskgeneralpanelbase.ui \ + kpttasknotespanelbase.ui \ + kptdatetime.cc \ + kptcalendar.cc kptcalendaredit.cc kptcalendarlistdialog.cc \ + kptcalendarpanel.cc kptdatetable.cc \ + kptcalendarlistdialogbase.cc kptcalendareditbase.cc \ + kptcommand.cc KPtViewIface.cc KPtViewIface.skel \ + standardworktimedialogbase.ui kptstandardworktimedialog.cc \ + kptintervaleditbase.ui kptintervaledit.cc \ + kpttaskgeneralpanel.cc kpttaskdefaultpanel.cc \ + kptconfigtaskpanelbase.ui \ + kptconfigdialog.cc \ + kpttaskprogresspanel.cc kpttaskprogresspanelbase.ui \ + kpttaskprogressdialog.cc \ + kptconfig.cc kptcontext.cc \ + kptresourcesdialog.cc \ + kptwbsdefinitiondialog.cc kptwbsdefinitionpanel.cc kptwbsdefinitionpanelbase.ui \ + kptwbsdefinition.cc +## kptconfigbehaviorpanel.cc kptconfigbehaviorpanelbase.ui \ +## kptreportview.cc + +# (this is not used) +noinst_HEADERS = \ + kptxmlloaderobject.h \ + kptsummarytaskdialog.h \ + kptsummarytaskgeneralpanel.h \ + kptschedule.h \ + kptappointment.h \ + kptresourceappointmentsview.h \ + kpttaskappointmentsview.h \ + kptdoublelistviewbase.h \ + kptaccountsviewconfigdialog.h \ + kptaccountsview.h \ + kpttaskcostpanel.h \ + kpttaskprogresspanel.h \ + kpttaskprogressdialog.h \ + kptaccount.h kptaccountsdialog.h kptaccountspanel.h \ + kptaboutdata.h kptduration.h kptfactory.h \ + kptnode.h kptpart.h kptproject.h kptrelation.h \ + kptresource.h kpttask.h kptview.h \ + kptprojectdialog.h kpttaskdialog.h \ + kptmainprojectdialog.h \ + kptganttview.h kptcanvasitem.h \ + kptpertview.h kptpertcanvas.h kptrelationdialog.h \ + kptresourcespanel.h kptresourceview.h \ + kptrequestresourcespanel.h kptresourcedialog.h\ + kptdatetime.h kptmap.h \ + kptcalendar.h kptcalendaredit.h kptcalendarlistdialog.h \ + kptcalendarpanel.h kptdatetable.h \ + kptcalendarlistdialogbase.h kptcalendareditbase.h \ + kptcommand.h \ + kptstandardworktimedialog.h kptintervaledit.h intervalitem.h \ + kpttaskgeneralpanel.h kpttaskdefaultpanel.h \ + kptconfigdialog.h \ + kpttaskprogresspanel.h \ + kptconfig.h kptcontext.h \ + kptresourcesdialog.h \ + kptwbsdefinitiondialog.h kptwbsdefinitionpanel.h \ + kptwbsdefinition.h \ + kpteffortcostmap.h +## kptconfigbehaviorpanel.h \ +## kptreportview.h + +## The part +lib_LTLIBRARIES = +kde_module_LTLIBRARIES = libkplatopart.la +libkplatopart_la_LDFLAGS = $(KDE_LDFLAGS) $(KDE_PLUGIN) +libkplatopart_la_LIBADD = $(LIB_KABC) $(LIB_KOFFICEUI) \ + $(top_builddir)/kdgantt/libkdgantt.la +## $(top_builddir)/kugar/lib/libkugarlib.la + +libkplatopart_la_METASOURCES = AUTO + +## The kdeinit loadable module and executable +kdeinit_LTLIBRARIES = kplato.la +bin_PROGRAMS = +kplato_la_SOURCES = main.cc +kplato_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) +kplato_la_LIBADD = $(LIB_KOFFICECORE) + +xdg_apps_DATA = kplato.desktop + +rcdir = $(kde_datadir)/kplato +rc_DATA = kplato.rc kplato_readonly.rc + +## NOTE: extractattr needs