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

DateBookWeekView Class Reference

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

List of all members.

Signals

void showDay (int d)
void signalShowEvent (const EffectiveEvent &)
void signalHideEvent ()

Public Member Functions

 DateBookWeekView (bool ampm, bool weekOnMonday, QWidget *parent=0, const char *name=0)
bool whichClock () const
void showEvents (QValueList< EffectiveEvent > &ev)
void moveToHour (int h)
void setStartOfWeek (bool bOnMonday)

Protected Slots

void keyPressEvent (QKeyEvent *)

Private Slots

void slotChangeClock (bool)
void alterDay (int)

Private Member Functions

void positionItem (DateBookWeekItem *i)
DateBookWeekItemintersects (const DateBookWeekItem *)
void drawContents (QPainter *p, int cx, int cy, int cw, int ch)
void contentsMousePressEvent (QMouseEvent *)
void contentsMouseReleaseEvent (QMouseEvent *)
void resizeEvent (QResizeEvent *)
void initNames ()

Private Attributes

bool ampm
bool bOnMonday
QHeader * header
QList< DateBookWeekItemitems
int rowHeight
bool showingEvent


Constructor & Destructor Documentation

DateBookWeekView::DateBookWeekView bool  ampm,
bool  weekOnMonday,
QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 66 of file datebookweek.cpp.

References header, initNames(), items, qApp, rowHeight, showDay(), slotChangeClock(), and width.


Member Function Documentation

void DateBookWeekView::alterDay int   )  [private, slot]
 

Definition at line 174 of file datebookweek.cpp.

References bOnMonday, and showDay().

void DateBookWeekView::contentsMousePressEvent QMouseEvent *   )  [private]
 

Definition at line 244 of file datebookweek.cpp.

References DateBookWeekItem::event(), DateBookWeekItem::geometry(), i, items, showingEvent, and signalShowEvent().

void DateBookWeekView::contentsMouseReleaseEvent QMouseEvent *   )  [private]
 

Definition at line 257 of file datebookweek.cpp.

References d, header, showDay(), showingEvent, and signalHideEvent().

void DateBookWeekView::drawContents QPainter *  p,
int  cx,
int  cy,
int  cw,
int  ch
[private]
 

Definition at line 272 of file datebookweek.cpp.

References ampm, DateBookWeekItem::color(), DateBookWeekItem::geometry(), header, i, intersects(), items, QString::length(), QString::number(), QString::prepend(), rowHeight, s, t, tr, and Opie::MM::y.

void DateBookWeekView::initNames  )  [private]
 

Definition at line 95 of file datebookweek.cpp.

References bOnMonday, header, i, and Calendar::nameOfDay().

Referenced by DateBookWeekView(), and setStartOfWeek().

DateBookWeekItem * DateBookWeekView::intersects const DateBookWeekItem  )  [private]
 

Definition at line 223 of file datebookweek.cpp.

References DateBookWeekItem::geometry(), i, and items.

Referenced by drawContents(), and positionItem().

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

Definition at line 151 of file datebookweek.cpp.

void DateBookWeekView::moveToHour int  h  ) 
 

Definition at line 145 of file datebookweek.cpp.

References rowHeight.

Referenced by DateBookWeek::getEvents(), and DateBookWeek::setStartViewTime().

void DateBookWeekView::positionItem DateBookWeekItem i  )  [private]
 

Definition at line 182 of file datebookweek.cpp.

References Event::AllDay, bOnMonday, EffectiveEvent::date(), db_round30min(), EffectiveEvent::end(), EffectiveEvent::event(), DateBookWeekItem::event(), header, intersects(), rowHeight, DateBookWeekItem::setGeometry(), EffectiveEvent::start(), Width, Opie::MM::x, and Opie::MM::y.

Referenced by showEvents().

void DateBookWeekView::resizeEvent QResizeEvent *   )  [private]
 

Definition at line 321 of file datebookweek.cpp.

References header, i, qApp, and width.

void DateBookWeekView::setStartOfWeek bool  bOnMonday  ) 
 

Definition at line 347 of file datebookweek.cpp.

References bOnMonday, and initNames().

Referenced by DateBookWeek::slotWeekChanged().

void DateBookWeekView::showDay int  d  )  [signal]
 

Referenced by alterDay(), contentsMouseReleaseEvent(), and DateBookWeekView().

void DateBookWeekView::showEvents QValueList< EffectiveEvent > &  ev  ) 
 

Definition at line 131 of file datebookweek.cpp.

References DateBookWeekItem::event(), i, items, and positionItem().

Referenced by DateBookWeek::getEvents().

void DateBookWeekView::signalHideEvent  )  [signal]
 

Referenced by contentsMouseReleaseEvent().

void DateBookWeekView::signalShowEvent const EffectiveEvent  )  [signal]
 

Referenced by contentsMousePressEvent().

void DateBookWeekView::slotChangeClock bool   )  [private, slot]
 

Definition at line 156 of file datebookweek.cpp.

References ampm.

Referenced by DateBookWeekView().

bool DateBookWeekView::whichClock  )  const
 


Member Data Documentation

bool DateBookWeekView::ampm [private]
 

Definition at line 102 of file datebookweek.h.

Referenced by drawContents(), and slotChangeClock().

bool DateBookWeekView::bOnMonday [private]
 

Definition at line 103 of file datebookweek.h.

Referenced by alterDay(), initNames(), positionItem(), and setStartOfWeek().

QHeader* DateBookWeekView::header [private]
 

Definition at line 104 of file datebookweek.h.

Referenced by contentsMouseReleaseEvent(), DateBookWeekView(), drawContents(), initNames(), positionItem(), and resizeEvent().

QList<DateBookWeekItem> DateBookWeekView::items [private]
 

Definition at line 105 of file datebookweek.h.

Referenced by contentsMousePressEvent(), DateBookWeekView(), drawContents(), intersects(), and showEvents().

int DateBookWeekView::rowHeight [private]
 

Definition at line 106 of file datebookweek.h.

Referenced by DateBookWeekView(), drawContents(), moveToHour(), and positionItem().

bool DateBookWeekView::showingEvent [private]
 

Definition at line 107 of file datebookweek.h.

Referenced by contentsMousePressEvent(), and contentsMouseReleaseEvent().


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