KPlato::CalendarEdit Class Reference

#include <kptcalendaredit.h>

Inherits KPlato::CalendarEditBase.

Inheritance diagram for KPlato::CalendarEdit:

[legend]
List of all members.

Signals

void obligatedFieldsFilled (bool yes)
void applyClicked ()

Public Member Functions

 CalendarEdit (QWidget *parent=0, const char *name=0)
CalendargetCalendar ()
void setCalendar (Calendar *cal)
void clear ()
void clearPanel ()
void clearEditPart ()

Private Slots

void slotCheckAllFieldsFilled ()
void slotDateSelected (QDate date)
void slotWeekdaySelected (int day)
void slotStateActivated (int id)
void slotClearClicked ()
void slotAddIntervalClicked ()
void slotApplyClicked ()
void slotSelectionCleared ()

Private Attributes

Calendarm_calendar

Detailed Description

Definition at line 34 of file kptcalendaredit.h.


Constructor & Destructor Documentation

KPlato::CalendarEdit::CalendarEdit ( QWidget *  parent = 0,
const char *  name = 0 
)

Definition at line 52 of file kptcalendaredit.cc.

References KPlato::CalendarEditBase::bAddInterval, KPlato::CalendarEditBase::bApply, KPlato::CalendarEditBase::bClear, KPlato::CalendarEditBase::calendarPanel, clear(), KPlato::CalendarEditBase::intervalList, slotAddIntervalClicked(), slotApplyClicked(), slotClearClicked(), slotDateSelected(), slotSelectionCleared(), slotStateActivated(), slotWeekdaySelected(), and KPlato::CalendarEditBase::state.


Member Function Documentation

Calendar* KPlato::CalendarEdit::getCalendar (  )  [inline]

Definition at line 39 of file kptcalendaredit.h.

References m_calendar.

Referenced by KPlato::CalendarListDialogImpl::getCalendar().

void KPlato::CalendarEdit::setCalendar ( Calendar cal  ) 

Definition at line 167 of file kptcalendaredit.cc.

References KPlato::CalendarEditBase::calendarPanel, clear(), m_calendar, and KPlato::CalendarPanel::setCalendar().

Referenced by KPlato::CalendarListDialogImpl::setCalendar().

void KPlato::CalendarEdit::clear (  ) 

Definition at line 173 of file kptcalendaredit.cc.

References clearEditPart(), and clearPanel().

Referenced by CalendarEdit(), setCalendar(), and KPlato::CalendarListDialogImpl::slotSelectionChanged().

void KPlato::CalendarEdit::clearPanel (  ) 

Definition at line 178 of file kptcalendaredit.cc.

References KPlato::CalendarEditBase::calendarPanel, and KPlato::CalendarPanel::clear().

Referenced by clear().

void KPlato::CalendarEdit::clearEditPart (  ) 

Definition at line 182 of file kptcalendaredit.cc.

References KPlato::CalendarEditBase::bAddInterval, KPlato::CalendarEditBase::bApply, KPlato::CalendarEditBase::bClear, KPlato::CalendarEditBase::day, KPlato::CalendarEditBase::endTime, KPlato::CalendarEditBase::intervalList, KPlato::CalendarEditBase::startTime, and KPlato::CalendarEditBase::state.

Referenced by clear(), slotDateSelected(), slotSelectionCleared(), and slotWeekdaySelected().

void KPlato::CalendarEdit::slotCheckAllFieldsFilled (  )  [private, slot]

Definition at line 153 of file kptcalendaredit.cc.

References KPlato::CalendarEditBase::intervalList, obligatedFieldsFilled(), and KPlato::CalendarEditBase::state.

Referenced by slotApplyClicked().

void KPlato::CalendarEdit::slotDateSelected ( QDate  date  )  [private, slot]

Definition at line 197 of file kptcalendaredit.cc.

References KPlato::CalendarEditBase::bApply, clearEditPart(), KPlato::Calendar::findDay(), KPlato::CalendarEditBase::intervalList, m_calendar, KPlato::Map::NonWorking, slotStateActivated(), KPlato::CalendarDay::state(), KPlato::CalendarEditBase::state, KPlato::Map::Working, and KPlato::CalendarDay::workingIntervals().

Referenced by CalendarEdit().

void KPlato::CalendarEdit::slotWeekdaySelected ( int  day  )  [private, slot]

Definition at line 238 of file kptcalendaredit.cc.

References KPlato::CalendarEditBase::bApply, clearEditPart(), KPlato::CalendarEditBase::intervalList, m_calendar, KPlato::Map::NonWorking, slotStateActivated(), KPlato::CalendarDay::state(), KPlato::CalendarEditBase::state, KPlato::Calendar::weekday(), KPlato::Map::Working, and KPlato::CalendarDay::workingIntervals().

Referenced by CalendarEdit().

void KPlato::CalendarEdit::slotStateActivated ( int  id  )  [private, slot]

Definition at line 73 of file kptcalendaredit.cc.

References KPlato::CalendarEditBase::bAddInterval, KPlato::CalendarEditBase::bApply, KPlato::CalendarEditBase::bClear, KPlato::CalendarEditBase::endTime, KPlato::CalendarEditBase::intervalList, and KPlato::CalendarEditBase::startTime.

Referenced by CalendarEdit(), slotDateSelected(), and slotWeekdaySelected().

void KPlato::CalendarEdit::slotClearClicked (  )  [private, slot]

Definition at line 99 of file kptcalendaredit.cc.

References KPlato::CalendarEditBase::bApply, and KPlato::CalendarEditBase::intervalList.

Referenced by CalendarEdit().

void KPlato::CalendarEdit::slotAddIntervalClicked (  )  [private, slot]

Definition at line 104 of file kptcalendaredit.cc.

References KPlato::CalendarEditBase::bApply, KPlato::CalendarEditBase::endTime, KPlato::CalendarEditBase::intervalList, and KPlato::CalendarEditBase::startTime.

Referenced by CalendarEdit().

void KPlato::CalendarEdit::slotApplyClicked (  )  [private, slot]

Definition at line 111 of file kptcalendaredit.cc.

References KPlato::Calendar::addDay(), KPlato::CalendarDay::addInterval(), applyClicked(), KPlato::CalendarEditBase::calendarPanel, KPlato::CalendarDay::clearIntervals(), KPlato::Calendar::findDay(), KPlato::CalendarEditBase::intervalList, m_calendar, KPlato::CalendarPanel::markSelected(), KPlato::CalendarPanel::selectedDates(), KPlato::CalendarPanel::selectedWeekdays(), KPlato::CalendarDay::setState(), slotCheckAllFieldsFilled(), KPlato::CalendarDay::state(), KPlato::CalendarEditBase::state, KPlato::Calendar::weekday(), and KPlato::Map::Working.

Referenced by CalendarEdit().

void KPlato::CalendarEdit::slotSelectionCleared (  )  [private, slot]

Definition at line 277 of file kptcalendaredit.cc.

References clearEditPart().

Referenced by CalendarEdit().

void KPlato::CalendarEdit::obligatedFieldsFilled ( bool  yes  )  [signal]

Referenced by slotCheckAllFieldsFilled().

void KPlato::CalendarEdit::applyClicked (  )  [signal]

Referenced by slotApplyClicked().


Member Data Documentation

Calendar* KPlato::CalendarEdit::m_calendar [private]

Definition at line 61 of file kptcalendaredit.h.

Referenced by getCalendar(), setCalendar(), slotApplyClicked(), slotDateSelected(), and slotWeekdaySelected().


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