1/* This file is part of the KDE project
2 Copyright (C) 2004-2007 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 KPTTASKDEFAULTPANEL_H
21#define KPTTASKDEFAULTPANEL_H
22
23#include "kplato_export.h"
24
25#include "ui_kptconfigtaskpanelbase.h"
26
27
28namespace KPlato
29{
30
31class DateTime;
32class Task;
33class StandardWorktime;
34class MacroCommand;
35
36
37class ConfigTaskPanelImpl : public QWidget, public Ui_ConfigTaskPanelBase
38{
39 Q_OBJECT
40public:
41 explicit ConfigTaskPanelImpl(QWidget *parent);
42
43 void initDescription();
44
45public slots:
46 virtual void changeLeader();
47 void startDateTimeChanged( const QDateTime& );
48 void endDateTimeChanged( const QDateTime& );
49 void unitChanged( int unit );
50 void currentUnitChanged( int );
51};
52
53class KPLATO_EXPORT TaskDefaultPanel : public ConfigTaskPanelImpl
54{
55 Q_OBJECT
56public:
57 explicit TaskDefaultPanel( QWidget *parent=0 );
58
59};
60
61} //KPlato namespace
62
63#endif // TASKDEFAULTPANEL_H
64