kplato

kpttaskappointmentsview.h
1/* This file is part of the KDE project
2 Copyright (C) 2005 Dag Andersen <danders@get2net.dk>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KPTTASKAPPOINTMENTSVIEW_H
21#define KPTTASKAPPOINTMENTSVIEW_H
22
23#include "kptcontext.h"
24#include "kptdoublelistviewbase.h"
25#include "kpteffortcostmap.h"
26
27class TQComboBox;
28class TQDateEdit;
29class TQPushButton;
30class TQSplitter;
31class TQListViewItem;
32class TQLabel;
33class TQPushButton;
34
35class TDEListView;
36class TDEListViewItem;
37class KPrinter;
38
39namespace KPlato
40{
41
42class Project;
43class Resource;
44class Task;
45
46class ResourceGroup;
47class Resource;
48class ResourceItemPrivate;
49
50class TaskAppointmentsView : public DoubleListViewBase
51{
52 TQ_OBJECT
53
54public:
55
56 TaskAppointmentsView(TQWidget *parent);
57
58 //~TaskAppointmentsView();
59
60 void zoom(double zoom);
61
62 void draw();
63 void draw(Task *task);
64 virtual void drawContents(TQPainter* painter);
65 void print(KPrinter &printer);
66 void clear();
67
68 //virtual bool setContext(Context::TaskAppointmentsView &context);
69 //virtual void getContext(Context::TaskAppointmentsView &context) const;
70
71 virtual void createSlaveItems();
72
73protected slots:
74 void slotUpdate();
75
76private:
77 class ResourceItem : public DoubleListViewBase::MasterListItem {
78 public:
79 ResourceItem(Resource *r, TQListView *parent, bool highlight=false);
80 ResourceItem(Resource *r, TQListViewItem *parent, bool highlight=false);
81 ResourceItem(TQString text, TQListViewItem *parent, bool highlight=false);
82
83 Resource *resource;
84 EffortCostMap effortMap;
85 };
86
87private:
88
89 int m_defaultFontSize;
90 Task *m_task;
91};
92
93} //KPlato namespace
94
95
96#endif // KPTTASKAPPOINTMENTSVIEW_H
The class DoubleListViewBase provides a double listview where the right listview (the slave) containe...
Project is the main node in a project, it contains child nodes and possibly sub-projects.
Definition kptproject.h:52
This class represents a group of similar resources to be assigned to a task e.g.
Definition kptresource.h:66
Any resource that is used by a task.
A task in the scheduling software is represented by this class.
Definition kpttask.h:40