kplato

kptprojectdialog.h
1/* This file is part of the KDE project
2 Copyright (C) 2002 Bo Thorsen bo@sonofthor.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 KPTPROJECTDIALOG_H
21#define KPTPROJECTDIALOG_H
22
23#include "kptresource.h"
24#include "kptprojectdialogbase.h"
25//#include "kptresourcespanel.h"
26
27#include <kdialogbase.h>
28
29#include <tqstring.h>
30
31namespace KPlato
32{
33
34class Project;
35class ProjectDialogImpl;
36class ResourcesPanel;
37
38class ProjectDialogImpl : public ProjectDialogBase {
39 TQ_OBJECT
40
41public:
42 ProjectDialogImpl (TQWidget *parent);
43
44private slots:
45 void slotCheckAllFieldsFilled();
46 void slotSchedulingChanged(int activated);
47 void slotChooseLeader();
48
49signals:
50 void obligatedFieldsFilled(bool yes);
51 void schedulingTypeChanged(int activated);
52};
53
54class ProjectDialog : public KDialogBase {
55 TQ_OBJECT
56
57public:
58 ProjectDialog(Project &project, TQWidget *parent=0,
59 const char *name=0);
60
61
62protected slots:
63 void slotOk();
64 void slotSchedulingChanged(int activated);
65
66private:
67 Project &project;
68 ProjectDialogImpl *dia;
69 ResourcesPanel *resourcesTab;
70};
71
72} //KPlato namespace
73
74#endif // PROJECTDIALOG_H
Project is the main node in a project, it contains child nodes and possibly sub-projects.
Definition kptproject.h:52