kplato

kpttaskdialog.h
1/* This file is part of the KDE project
2 Copyright (C) 2002 Bo Thorsen bo@sonofthor.dk
3 Copyright (C) 2004 Dag Andersen <danders@get2net.dk>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KPTTASKDIALOG_H
22#define KPTTASKDIALOG_H
23
24#include <kdialogbase.h>
25
26class Duration;
27
28class KLineEdit;
29class KCommand;
30class KTextEdit;
31class KComboBox;
32class KDoubleNumInput;
33
34class TQDateTimeEdit;
35class TQSpinBox;
36class TQButtonGroup;
37class TQListBox;
38class TQTable;
39class TQDateTime;
40
41//TODO ui files are not in the KPlato namespace!!
42
43namespace KPlato
44{
45
46class Accounts;
47class TaskGeneralPanel;
48class RequestResourcesPanel;
49class TaskCostPanel;
50class Part;
51class Task;
52class StandardWorktime;
53
57class TaskDialog : public KDialogBase {
58 TQ_OBJECT
59
60public:
69 TaskDialog(Task &task, Accounts &accounts, StandardWorktime *workTime=0, bool baseline=false, TQWidget *parent=0);
70
71 KCommand *buildCommand(Part *part);
72
73protected slots:
74 void slotOk();
75
76private:
77 TaskGeneralPanel *m_generalTab;
78 RequestResourcesPanel *m_resourcesTab;
79 TaskCostPanel *m_costTab;
80};
81
82} //KPlato namespace
83
84#endif // TASKDIALOG_H
Accounts administrates all accounts.
Definition kptaccount.h:180
TaskDialog(Task &task, Accounts &accounts, StandardWorktime *workTime=0, bool baseline=false, TQWidget *parent=0)
The constructor for the task settings dialog.
A task in the scheduling software is represented by this class.
Definition kpttask.h:40