Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DateBookWeek Class Reference

#include </home/clem/local/src/opie/core/pim/datebook/datebookweek.h>

Collaboration diagram for DateBookWeek:

Collaboration graph
[legend]
List of all members.

Public Slots

void redraw ()
void slotWeekChanged (bool bStartOnMonday)
void slotClockChanged (bool a)

Signals

void showDate (int y, int m, int d)

Public Member Functions

 DateBookWeek (bool ampm, bool weekOnMonday, DateBookDBHoliday *newDB, QWidget *parent=0, const char *name=0)
void setDate (int y, int m, int d)
void setDate (QDate d)
QDate date () const
DateBookWeekViewweekView () const
void setStartViewTime (int startHere)
int startViewTime () const
int week () const
QDate weekDate () const

Protected Slots

void keyPressEvent (QKeyEvent *)

Private Slots

void showDay (int day)
void dateChanged (QDate &newdate)
void slotShowEvent (const EffectiveEvent &)
void slotHideEvent ()
void slotYearChanged (int)

Private Member Functions

void getEvents ()
void generateAllDayTooltext (QString &text)
void generateNormalTooltext (QString &text, const EffectiveEvent &ev)

Private Attributes

int year
int _week
int dow
QDate bdate
DateBookWeekHeaderheader
DateBookWeekViewview
DateBookDBHolidaydb
QLabel * lblDesc
QTimer * tHide
int startTime
bool ampm
bool bStartOnMonday

Constructor & Destructor Documentation

DateBookWeek::DateBookWeek bool  ampm,
bool  weekOnMonday,
DateBookDBHoliday newDB,
QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 355 of file datebookweek.cpp.

References ampm, bStartOnMonday, QDate::currentDate(), dateChanged(), header, lblDesc, qApp, setDate(), showDay(), slotClockChanged(), slotHideEvent(), slotShowEvent(), slotWeekChanged(), tHide, and view.


Member Function Documentation

QDate DateBookWeek::date  )  const
 

Definition at line 439 of file datebookweek.cpp.

References bdate.

Referenced by DateBook::currentDate(), keyPressEvent(), and DateBook::slotNewEventFromKey().

void DateBookWeek::dateChanged QDate newdate  )  [private, slot]
 

Definition at line 433 of file datebookweek.cpp.

References bdate, and getEvents().

Referenced by DateBookWeek().

void DateBookWeek::generateAllDayTooltext QString text  )  [private]
 

Wow that's a hell lot of code duplication in datebook. I vote for a common base class but never the less. This add a note that the Event is an all day event

Definition at line 454 of file datebookweek.cpp.

References tr.

Referenced by slotShowEvent().

void DateBookWeek::generateNormalTooltext QString text,
const EffectiveEvent ev
[private]
 

This will add the times to the text It will be shown in the Tooltip bubble

Definition at line 458 of file datebookweek.cpp.

References ampm, EffectiveEvent::endDate(), EffectiveEvent::event(), FALSE, TimeString::longDateString(), EffectiveEvent::startDate(), TimeString::timeString(), and tr.

Referenced by slotShowEvent().

void DateBookWeek::getEvents  )  [private]
 

Definition at line 444 of file datebookweek.cpp.

References QDate::addDays(), db, DateBookDBHoliday::getEffectiveEvents(), DateBookWeekView::moveToHour(), DateBookWeekView::showEvents(), startTime, view, and weekDate().

Referenced by dateChanged(), and redraw().

void DateBookWeek::keyPressEvent QKeyEvent *   )  [protected, slot]
 

Definition at line 387 of file datebookweek.cpp.

References date(), setDate(), and view.

void DateBookWeek::redraw  )  [slot]
 

Definition at line 548 of file datebookweek.cpp.

References getEvents().

Referenced by slotWeekChanged().

void DateBookWeek::setDate QDate  d  ) 
 

Definition at line 426 of file datebookweek.cpp.

References bdate, QDate::dayOfWeek(), dow, header, and DateBookWeekHeader::setDate().

void DateBookWeek::setDate int  y,
int  m,
int  d
 

Definition at line 421 of file datebookweek.cpp.

Referenced by DateBookWeek(), keyPressEvent(), and DateBook::view().

void DateBookWeek::setStartViewTime int  startHere  ) 
 

Definition at line 537 of file datebookweek.cpp.

References DateBookWeekView::moveToHour(), startTime, and view.

Referenced by DateBook::initWeek().

void DateBookWeek::showDate int  y,
int  m,
int  d
[signal]
 

Referenced by showDay().

void DateBookWeek::showDay int  day  )  [private, slot]
 

Definition at line 407 of file datebookweek.cpp.

References QDate::addDays(), bdate, bStartOnMonday, d, QDate::day(), QDate::dayOfWeek(), QDate::month(), showDate(), and QDate::year().

Referenced by DateBookWeek().

void DateBookWeek::slotClockChanged bool  a  )  [slot]
 

Definition at line 573 of file datebookweek.cpp.

References ampm.

Referenced by DateBookWeek().

void DateBookWeek::slotHideEvent  )  [private, slot]
 

Definition at line 532 of file datebookweek.cpp.

References tHide.

Referenced by DateBookWeek().

void DateBookWeek::slotShowEvent const EffectiveEvent  )  [private, slot]
 

Definition at line 472 of file datebookweek.cpp.

References EffectiveEvent::date(), EffectiveEvent::description(), EffectiveEvent::event(), QString::find(), generateAllDayTooltext(), generateNormalTooltext(), QString::insert(), lblDesc, EffectiveEvent::location(), TimeString::longDateString(), Event::Normal, EffectiveEvent::notes(), QString::remove(), str, tHide, and width.

Referenced by DateBookWeek().

void DateBookWeek::slotWeekChanged bool  bStartOnMonday  )  [slot]
 

Definition at line 565 of file datebookweek.cpp.

References bStartOnMonday, header, redraw(), DateBookWeekHeader::setStartOfWeek(), DateBookWeekView::setStartOfWeek(), and view.

Referenced by DateBookWeek().

void DateBookWeek::slotYearChanged int   )  [private, slot]
 

Definition at line 553 of file datebookweek.cpp.

References QDate::addDays(), bStartOnMonday, calcWeek(), and d.

int DateBookWeek::startViewTime  )  const
 

Definition at line 543 of file datebookweek.cpp.

References startTime.

int DateBookWeek::week  )  const [inline]
 

Definition at line 123 of file datebookweek.h.

References _week.

QDate DateBookWeek::weekDate  )  const
 

Definition at line 579 of file datebookweek.cpp.

References QDate::addDays(), bdate, bStartOnMonday, d, and QDate::dayOfWeek().

Referenced by getEvents().

DateBookWeekView* DateBookWeek::weekView  )  const [inline]
 

Definition at line 120 of file datebookweek.h.

References view.


Member Data Documentation

int DateBookWeek::_week [private]
 

Definition at line 163 of file datebookweek.h.

Referenced by week().

bool DateBookWeek::ampm [private]
 

Definition at line 172 of file datebookweek.h.

Referenced by DateBookWeek(), generateNormalTooltext(), and slotClockChanged().

QDate DateBookWeek::bdate [private]
 

Definition at line 165 of file datebookweek.h.

Referenced by date(), dateChanged(), setDate(), showDay(), and weekDate().

bool DateBookWeek::bStartOnMonday [private]
 

Definition at line 173 of file datebookweek.h.

Referenced by DateBookWeek(), showDay(), slotWeekChanged(), slotYearChanged(), and weekDate().

DateBookDBHoliday* DateBookWeek::db [private]
 

Definition at line 168 of file datebookweek.h.

Referenced by getEvents().

int DateBookWeek::dow [private]
 

Definition at line 164 of file datebookweek.h.

Referenced by setDate().

DateBookWeekHeader* DateBookWeek::header [private]
 

Definition at line 166 of file datebookweek.h.

Referenced by DateBookWeek(), setDate(), and slotWeekChanged().

QLabel* DateBookWeek::lblDesc [private]
 

Definition at line 169 of file datebookweek.h.

Referenced by DateBookWeek(), and slotShowEvent().

int DateBookWeek::startTime [private]
 

Definition at line 171 of file datebookweek.h.

Referenced by getEvents(), setStartViewTime(), and startViewTime().

QTimer* DateBookWeek::tHide [private]
 

Definition at line 170 of file datebookweek.h.

Referenced by DateBookWeek(), slotHideEvent(), and slotShowEvent().

DateBookWeekView* DateBookWeek::view [private]
 

Definition at line 167 of file datebookweek.h.

Referenced by DateBookWeek(), getEvents(), keyPressEvent(), setStartViewTime(), slotWeekChanged(), and weekView().

int DateBookWeek::year [private]
 

Definition at line 162 of file datebookweek.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:30:33 2005 for OPIE by  doxygen 1.4.2