kplato

kptprojectdialog.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002 Bo Thorsen  bo@sonofthor.dk
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KPTPROJECTDIALOG_H
00021 #define KPTPROJECTDIALOG_H
00022 
00023 #include "kptresource.h"
00024 #include "kptprojectdialogbase.h"
00025 //#include "kptresourcespanel.h"
00026 
00027 #include <kdialogbase.h>
00028 
00029 #include <qstring.h>
00030 
00031 namespace KPlato
00032 {
00033 
00034 class Project;
00035 class ProjectDialogImpl;
00036 class ResourcesPanel;
00037 
00038 class ProjectDialogImpl : public ProjectDialogBase {
00039     Q_OBJECT
00040 public:
00041     ProjectDialogImpl (QWidget *parent);
00042 
00043 private slots:
00044     void slotCheckAllFieldsFilled();
00045     void slotSchedulingChanged(int activated);
00046     void slotChooseLeader();
00047 
00048 signals:
00049     void obligatedFieldsFilled(bool yes);
00050     void schedulingTypeChanged(int activated);
00051 };
00052 
00053 class ProjectDialog : public KDialogBase {
00054     Q_OBJECT
00055 public:
00056     ProjectDialog(Project &project, QWidget *parent=0,
00057              const char *name=0);
00058 
00059 
00060 protected slots:
00061     void slotOk();
00062     void slotSchedulingChanged(int activated);
00063 
00064 private:
00065     Project &project;
00066     ProjectDialogImpl *dia;
00067     ResourcesPanel *resourcesTab;
00068 };
00069 
00070 }  //KPlato namespace
00071 
00072 #endif // PROJECTDIALOG_H
KDE Home | KDE Accessibility Home | Description of Access Keys