kplato

kptmainprojectpanel.h
1/* This file is part of the KDE project
2 Copyright (C) 2004, 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;
7 version 2 of the License
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 KPTMAINPROJECTPANEL_H
21#define KPTMAINPROJECTPANEL_H
22
23#include "kptmainprojectpanelbase.h"
24
25#include <tqdatetime.h>
26
27class TQWidget;
28
29class KCommand;
30
31namespace KPlato
32{
33
34class Project;
35class Part;
36
37class MainProjectPanelImpl : public MainProjectPanelBase {
38 TQ_OBJECT
39
40public:
41 MainProjectPanelImpl(TQWidget *parent=0, const char *name=0);
42
43 virtual TQDateTime startDateTime();
44 virtual TQDateTime endDateTime();
45
46public slots:
47 virtual void slotCheckAllFieldsFilled();
48 virtual void slotChooseLeader();
49 virtual void slotStartDateClicked();
50 virtual void slotEndDateClicked();
51 virtual void enableDateTime();
52 virtual void slotBaseline();
53
54signals:
55 void obligatedFieldsFilled(bool);
56 void changed();
57
58};
59
60class MainProjectPanel : public MainProjectPanelImpl {
61 TQ_OBJECT
62
63public:
64 MainProjectPanel(Project &project, TQWidget *parent=0, const char *name=0);
65
66 KCommand *buildCommand(Part *part);
67
68 bool ok();
69
70private:
71 Project &project;
72};
73
74} //KPlato namespace
75
76#endif // MAINPROJECTPANEL_H