KPlato::TaskProgressPanel Class Reference

#include <kpttaskprogresspanel.h>

Inherits KPlato::TaskProgressPanelImpl.

Inheritance diagram for KPlato::TaskProgressPanel:

[legend]
List of all members.

Public Member Functions

 TaskProgressPanel (Task &task, StandardWorktime *workTime=0, QWidget *parent=0, const char *name=0)
KCommand * buildCommand (Part *part)
bool ok ()

Protected Member Functions

void setEstimateScales (int day)

Private Attributes

Taskm_task
int m_dayLength
Task::Progress m_progress

Detailed Description

Definition at line 58 of file kpttaskprogresspanel.h.


Constructor & Destructor Documentation

KPlato::TaskProgressPanel::TaskProgressPanel ( Task task,
StandardWorktime workTime = 0,
QWidget *  parent = 0,
const char *  name = 0 
)

Definition at line 44 of file kpttaskprogresspanel.cc.

References KPlato::TaskProgressPanelImpl::actualEffort, KPlato::Task::actualEffort(), KPlato::DurationWidget::Days, KPlato::StandardWorktime::durationDay(), KPlato::Node::effort(), KPlato::TaskProgressPanelImpl::enableWidgets(), KPlato::Node::endTime(), KPlato::Effort::expected(), KPlato::Task::Progress::finished, KPlato::Task::Progress::finishTime, KPlato::DurationWidget::Hours, KPlato::Duration::hours(), m_dayLength, m_progress, KPlato::DurationWidget::Minutes, KPlato::Task::Progress::percentFinished, KPlato::Task::progress(), KPlato::Task::Progress::remainingEffort, KPlato::TaskProgressPanelImpl::remainingEffort, KPlato::TaskProgressPanelImpl::scheduledEffort, setEstimateScales(), KPlato::DurationWidget::setFieldUnit(), KPlato::DurationWidget::setValue(), KPlato::DurationWidget::setVisibleFields(), KPlato::Task::Progress::started, KPlato::Node::startTime(), KPlato::Task::Progress::startTime, and KPlato::Task::Progress::totalPerformed.


Member Function Documentation

KCommand * KPlato::TaskProgressPanel::buildCommand ( Part part  ) 

Definition at line 101 of file kpttaskprogresspanel.cc.

References m_progress, m_task, and KPlato::Task::progress().

Referenced by KPlato::TaskProgressDialog::buildCommand().

bool KPlato::TaskProgressPanel::ok (  ) 

Definition at line 90 of file kpttaskprogresspanel.cc.

References KPlato::TaskProgressPanelImpl::actualEffort, KPlato::Task::Progress::finished, KPlato::Task::Progress::finishTime, m_progress, KPlato::Task::Progress::percentFinished, KPlato::TaskProgressPanelImpl::remainingEffort, KPlato::Task::Progress::remainingEffort, KPlato::Task::Progress::started, KPlato::Task::Progress::startTime, KPlato::Task::Progress::totalPerformed, and KPlato::DurationWidget::value().

Referenced by KPlato::TaskProgressDialog::slotOk().

void KPlato::TaskProgressPanel::setEstimateScales ( int  day  )  [protected]

Definition at line 110 of file kpttaskprogresspanel.cc.

References KPlato::TaskProgressPanelImpl::actualEffort, KPlato::TaskProgressPanelImpl::remainingEffort, KPlato::TaskProgressPanelImpl::scheduledEffort, KPlato::DurationWidget::setFieldLeftscale(), KPlato::DurationWidget::setFieldRightscale(), and KPlato::DurationWidget::setFieldScale().

Referenced by TaskProgressPanel().


Member Data Documentation

Task& KPlato::TaskProgressPanel::m_task [private]

Definition at line 71 of file kpttaskprogresspanel.h.

Referenced by buildCommand().

int KPlato::TaskProgressPanel::m_dayLength [private]

Definition at line 72 of file kpttaskprogresspanel.h.

Referenced by TaskProgressPanel().

struct Task::Progress KPlato::TaskProgressPanel::m_progress [private]

Definition at line 73 of file kpttaskprogresspanel.h.

Referenced by buildCommand(), ok(), and TaskProgressPanel().


The documentation for this class was generated from the following files:
Generated on Wed Nov 22 23:21:52 2006 for KPlato by  doxygen 1.5.1-p1