F:/KPlato/koffice/kplato/kpttaskprogresspanel.h

Aller à la documentation de ce fichier.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2004 - 2005 Dag Andersen <danders@get2net.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;
00007    version 2 of the License
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 KPTTASKPROGRESSPANEL_H
00021 #define KPTTASKPROGRESSPANEL_H
00022 
00023 #include "ui_kpttaskprogresspanelbase.h"
00024 #include "kpttask.h"
00025 
00026 #include <QWidget>
00027 
00028 class KCommand;
00029 
00030 namespace KPlato
00031 {
00032 
00033 class DurationWidget;
00034 class Part;
00035 class StandardWorktime;
00036 
00037 class TaskProgressPanelImpl : public QWidget, public Ui_TaskProgressPanelBase {
00038     Q_OBJECT
00039 public:
00040     TaskProgressPanelImpl(QWidget *parent=0, const char *name=0);
00041     
00042     void enableWidgets();
00043 
00044     DurationWidget *actualEffort;
00045     DurationWidget *remainingEffort;
00046     DurationWidget *scheduledEffort;
00047     
00048 signals:
00049     void changed();
00050     
00051 public slots:
00052     void slotChanged();
00053     void slotStartedChanged(bool state);
00054     void slotFinishedChanged(bool state);
00055     void slotPercentFinishedChanged(int value);
00056 };
00057 
00058 class TaskProgressPanel : public TaskProgressPanelImpl {
00059     Q_OBJECT
00060 public:
00061     TaskProgressPanel(Task &task, StandardWorktime *workTime=0, QWidget *parent=0, const char *name=0);
00062 
00063     KCommand *buildCommand(Part *part);
00064     
00065     bool ok();
00066 
00067 protected:
00068     void setEstimateScales( int day );
00069     
00070 private:
00071     Task &m_task;
00072     int m_dayLength;
00073     struct Task::Progress m_progress;
00074 };
00075 
00076 }  //KPlato namespace
00077 
00078 #endif // TASKPROGRESSPANEL_H

Généré le Wed Nov 22 23:40:58 2006 pour KPlato par  doxygen 1.5.1-p1