#include <kptcalendar.h>
Public Member Functions | |
StandardWorktime () | |
StandardWorktime (StandardWorktime *worktime) | |
~StandardWorktime () | |
Duration | durationYear () const |
The work time of a normal year. | |
double | year () const |
The work time of a normal year. | |
void | setYear (const Duration year) |
Set the work time of a normal year. | |
void | setYear (double hours) |
Set the work time of a normal year. | |
Duration | durationMonth () const |
The work time of a normal month. | |
double | month () const |
The work time of a normal month. | |
void | setMonth (const Duration month) |
Set the work time of a normal month. | |
void | setMonth (double hours) |
Set the work time of a normal month. | |
Duration | durationWeek () const |
The work time of a normal week. | |
double | week () const |
The work time of a normal week. | |
void | setWeek (const Duration week) |
Set the work time of a normal week. | |
void | setWeek (double hours) |
Set the work time of a normal week. | |
Duration | durationDay () const |
The work time of a normal day. | |
double | day () const |
The work time of a normal day. | |
void | setDay (const Duration day) |
Set the work time of a normal day. | |
void | setDay (double hours) |
Set the work time of a normal day. | |
bool | load (QDomElement &element) |
void | save (QDomElement &element) const |
Calendar * | calendar () const |
void | printDebug (QString indent="") |
Protected Member Functions | |
void | init () |
Private Attributes | |
Duration | m_year |
Duration | m_month |
Duration | m_week |
Duration | m_day |
Calendar * | m_calendar |
Definition at line 349 of file kptcalendar.h.
KPlato::StandardWorktime::StandardWorktime | ( | ) |
KPlato::StandardWorktime::StandardWorktime | ( | StandardWorktime * | worktime | ) |
Definition at line 912 of file kptcalendar.cc.
References calendar(), durationDay(), durationMonth(), durationWeek(), durationYear(), init(), m_calendar, m_day, m_month, m_week, and m_year.
KPlato::StandardWorktime::~StandardWorktime | ( | ) |
Definition at line 924 of file kptcalendar.cc.
Duration KPlato::StandardWorktime::durationYear | ( | ) | const [inline] |
The work time of a normal year.
Definition at line 357 of file kptcalendar.h.
References m_year.
Referenced by StandardWorktime().
double KPlato::StandardWorktime::year | ( | ) | const [inline] |
The work time of a normal year.
Definition at line 359 of file kptcalendar.h.
References m_year, KPlato::Duration::toDouble(), and KPlato::Duration::Unit_h.
Referenced by KPlato::StandardWorktimeDialog::buildCommand(), setYear(), and KPlato::StandardWorktimeDialogImpl::StandardWorktimeDialogImpl().
void KPlato::StandardWorktime::setYear | ( | const Duration | year | ) | [inline] |
Set the work time of a normal year.
Definition at line 361 of file kptcalendar.h.
References m_year, and year().
Referenced by KPlato::ModifyStandardWorktimeYearCmd::execute(), and KPlato::ModifyStandardWorktimeYearCmd::unexecute().
void KPlato::StandardWorktime::setYear | ( | double | hours | ) | [inline] |
Set the work time of a normal year.
Definition at line 363 of file kptcalendar.h.
References m_year.
Duration KPlato::StandardWorktime::durationMonth | ( | ) | const [inline] |
The work time of a normal month.
Definition at line 366 of file kptcalendar.h.
References m_month.
Referenced by StandardWorktime().
double KPlato::StandardWorktime::month | ( | ) | const [inline] |
The work time of a normal month.
Definition at line 368 of file kptcalendar.h.
References m_month, KPlato::Duration::toDouble(), and KPlato::Duration::Unit_h.
Referenced by KPlato::StandardWorktimeDialog::buildCommand(), setMonth(), and KPlato::StandardWorktimeDialogImpl::StandardWorktimeDialogImpl().
void KPlato::StandardWorktime::setMonth | ( | const Duration | month | ) | [inline] |
Set the work time of a normal month.
Definition at line 370 of file kptcalendar.h.
References m_month, and month().
Referenced by KPlato::ModifyStandardWorktimeMonthCmd::execute(), and KPlato::ModifyStandardWorktimeMonthCmd::unexecute().
void KPlato::StandardWorktime::setMonth | ( | double | hours | ) | [inline] |
Set the work time of a normal month.
Definition at line 372 of file kptcalendar.h.
References m_month.
Duration KPlato::StandardWorktime::durationWeek | ( | ) | const [inline] |
The work time of a normal week.
Definition at line 375 of file kptcalendar.h.
References m_week.
Referenced by StandardWorktime().
double KPlato::StandardWorktime::week | ( | ) | const [inline] |
The work time of a normal week.
Definition at line 377 of file kptcalendar.h.
References m_week, KPlato::Duration::toDouble(), and KPlato::Duration::Unit_h.
Referenced by KPlato::StandardWorktimeDialog::buildCommand(), setWeek(), and KPlato::StandardWorktimeDialogImpl::StandardWorktimeDialogImpl().
void KPlato::StandardWorktime::setWeek | ( | const Duration | week | ) | [inline] |
Set the work time of a normal week.
Definition at line 379 of file kptcalendar.h.
References m_week, and week().
Referenced by KPlato::ModifyStandardWorktimeWeekCmd::execute(), and KPlato::ModifyStandardWorktimeWeekCmd::unexecute().
void KPlato::StandardWorktime::setWeek | ( | double | hours | ) | [inline] |
Set the work time of a normal week.
Definition at line 381 of file kptcalendar.h.
References m_week.
Duration KPlato::StandardWorktime::durationDay | ( | ) | const [inline] |
The work time of a normal day.
Definition at line 384 of file kptcalendar.h.
References m_day.
Referenced by StandardWorktime(), and KPlato::TaskProgressPanel::TaskProgressPanel().
double KPlato::StandardWorktime::day | ( | ) | const [inline] |
The work time of a normal day.
Definition at line 386 of file kptcalendar.h.
References m_day, KPlato::Duration::toDouble(), and KPlato::Duration::Unit_h.
Referenced by KPlato::StandardWorktimeDialog::buildCommand(), setDay(), KPlato::TaskGeneralPanel::setStartValues(), KPlato::TaskDefaultPanel::setStartValues(), and KPlato::StandardWorktimeDialogImpl::StandardWorktimeDialogImpl().
void KPlato::StandardWorktime::setDay | ( | const Duration | day | ) | [inline] |
Set the work time of a normal day.
Definition at line 388 of file kptcalendar.h.
Referenced by KPlato::ModifyStandardWorktimeDayCmd::execute(), and KPlato::ModifyStandardWorktimeDayCmd::unexecute().
void KPlato::StandardWorktime::setDay | ( | double | hours | ) | [inline] |
bool KPlato::StandardWorktime::load | ( | QDomElement & | element | ) |
Definition at line 945 of file kptcalendar.cc.
References KPlato::Duration::Format_Hour, KPlato::Duration::fromString(), KPlato::Calendar::load(), m_calendar, m_day, m_month, m_week, and m_year.
void KPlato::StandardWorktime::save | ( | QDomElement & | element | ) | const |
Definition at line 966 of file kptcalendar.cc.
References KPlato::Duration::Format_Hour, m_calendar, m_day, m_month, m_week, m_year, KPlato::Calendar::save(), and KPlato::Duration::toString().
Referenced by KPlato::Project::save().
Calendar* KPlato::StandardWorktime::calendar | ( | ) | const [inline] |
Definition at line 395 of file kptcalendar.h.
References m_calendar.
Referenced by KPlato::Project::defaultCalendar(), StandardWorktime(), and KPlato::StandardWorktimeDialogImpl::StandardWorktimeDialogImpl().
void KPlato::StandardWorktime::init | ( | ) | [protected] |
Definition at line 928 of file kptcalendar.cc.
References KPlato::CalendarDay::addInterval(), m_calendar, m_day, m_month, m_week, m_year, KPlato::Map::NonWorking, KPlato::Calendar::setName(), KPlato::CalendarDay::setState(), KPlato::Calendar::weekday(), and KPlato::Map::Working.
Referenced by StandardWorktime().
void KPlato::StandardWorktime::printDebug | ( | QString | indent = "" |
) |
Definition at line 1008 of file kptcalendar.cc.
References m_day, m_month, m_week, m_year, and KPlato::Duration::toString().
Referenced by KPlato::Project::printCalendarDebug().
Duration KPlato::StandardWorktime::m_year [private] |
Definition at line 401 of file kptcalendar.h.
Referenced by durationYear(), init(), load(), printDebug(), save(), setYear(), StandardWorktime(), and year().
Duration KPlato::StandardWorktime::m_month [private] |
Definition at line 402 of file kptcalendar.h.
Referenced by durationMonth(), init(), load(), month(), printDebug(), save(), setMonth(), and StandardWorktime().
Duration KPlato::StandardWorktime::m_week [private] |
Definition at line 403 of file kptcalendar.h.
Referenced by durationWeek(), init(), load(), printDebug(), save(), setWeek(), StandardWorktime(), and week().
Duration KPlato::StandardWorktime::m_day [private] |
Definition at line 404 of file kptcalendar.h.
Referenced by day(), durationDay(), init(), load(), printDebug(), save(), setDay(), and StandardWorktime().
Calendar* KPlato::StandardWorktime::m_calendar [private] |
Definition at line 406 of file kptcalendar.h.
Referenced by calendar(), init(), load(), save(), and StandardWorktime().