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

DateBookWeekLst Class Reference

#include </home/clem/local/src/opie/core/pim/datebook/modules/weeklst/datebookweeklst.h>

Collaboration diagram for DateBookWeekLst:

Collaboration graph
[legend]
List of all members.

Public Slots

void redraw ()
void dateChanged (QDate &date)

Signals

void showDate (int y, int m, int d)
void addEvent (const QDateTime &start, const QDateTime &stop, const QString &str, const QString &location)
void editEvent (const Event &e)
void duplicateEvent (const Event &e)
void removeEvent (const Event &e)
void beamEvent (const Event &e)

Public Member Functions

 DateBookWeekLst (bool ampm, bool onM, DateBookDBHoliday *newDB, QWidget *parent=0, const char *name=0)
 ~DateBookWeekLst ()
void setDate (int y, int w)
void setDate (const QDate &d)
int week () const
QDate date ()
QDate weekDate () const

Protected Slots

void keyPressEvent (QKeyEvent *)
void setDbl (bool on)

Private Member Functions

void getEvents ()

Private Attributes

DateBookDBHolidaydb
int startTime
bool ampm
bool bStartOnMonday
bool dbl
QDate bdate
int year
int _week
int dow
DateBookWeekLstHeaderheader
QVBoxLayout * layout
QScrollView * scroll
DateBookWeekLstDblViewm_CurrentView
bool dateset:1

Constructor & Destructor Documentation

DateBookWeekLst::DateBookWeekLst bool  ampm,
bool  onM,
DateBookDBHoliday newDB,
QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 19 of file datebookweeklst.cpp.

References dateChanged(), dateset, dbl, header, layout, m_CurrentView, NULL, Config::readBoolEntry(), scroll, setDbl(), and Config::setGroup().

DateBookWeekLst::~DateBookWeekLst  ) 
 

Definition at line 49 of file datebookweeklst.cpp.

References Config::setGroup(), and Config::writeEntry().


Member Function Documentation

void DateBookWeekLst::addEvent const QDateTime start,
const QDateTime stop,
const QString str,
const QString location
[signal]
 

Referenced by getEvents().

void DateBookWeekLst::beamEvent const Event e  )  [signal]
 

Referenced by getEvents().

QDate DateBookWeekLst::date  ) 
 

Definition at line 73 of file datebookweeklst.cpp.

References bdate.

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

void DateBookWeekLst::dateChanged QDate date  )  [slot]
 

Definition at line 133 of file datebookweeklst.cpp.

References bdate, dateset, getEvents(), odebug, and oendl.

Referenced by DateBookWeekLst().

void DateBookWeekLst::duplicateEvent const Event e  )  [signal]
 

Referenced by getEvents().

void DateBookWeekLst::editEvent const Event e  )  [signal]
 

Referenced by getEvents().

void DateBookWeekLst::getEvents  )  [private]
 

Definition at line 92 of file datebookweeklst.cpp.

References QDate::addDays(), addEvent(), beamEvent(), bStartOnMonday, dateset, db, dbl, duplicateEvent(), editEvent(), DateBookDBHoliday::getEffectiveEvents(), m_CurrentView, redraw(), removeEvent(), scroll, DateBookWeekLstDblView::setEvents(), showDate(), start, and weekDate().

Referenced by dateChanged(), redraw(), and setDbl().

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

Definition at line 140 of file datebookweeklst.cpp.

References header, DateBookWeekLstHeader::nextWeek(), DateBookWeekLstHeader::prevWeek(), and scroll.

void DateBookWeekLst::redraw  )  [slot]
 

Definition at line 71 of file datebookweeklst.cpp.

References getEvents().

Referenced by getEvents(), and DateBook::slotSettings().

void DateBookWeekLst::removeEvent const Event e  )  [signal]
 

Referenced by getEvents().

void DateBookWeekLst::setDate const QDate d  ) 
 

Definition at line 55 of file datebookweeklst.cpp.

References bdate, header, and DateBookWeekLstHeader::setDate().

void DateBookWeekLst::setDate int  y,
int  w
 

Referenced by DateBook::view().

void DateBookWeekLst::setDbl bool  on  )  [protected, slot]
 

Definition at line 60 of file datebookweeklst.cpp.

References dbl, getEvents(), m_CurrentView, and DateBookWeekLstDblView::toggleDoubleView().

Referenced by DateBookWeekLst().

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

Referenced by getEvents().

int DateBookWeekLst::week  )  const [inline]
 

Definition at line 28 of file datebookweeklst.h.

References _week.

QDate DateBookWeekLst::weekDate  )  const
 

Definition at line 79 of file datebookweeklst.cpp.

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

Referenced by getEvents().


Member Data Documentation

int DateBookWeekLst::_week [private]
 

Definition at line 56 of file datebookweeklst.h.

Referenced by week().

bool DateBookWeekLst::ampm [private]
 

Definition at line 52 of file datebookweeklst.h.

QDate DateBookWeekLst::bdate [private]
 

Definition at line 55 of file datebookweeklst.h.

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

bool DateBookWeekLst::bStartOnMonday [private]
 

Definition at line 53 of file datebookweeklst.h.

Referenced by getEvents(), and weekDate().

bool DateBookWeekLst::dateset [private]
 

Definition at line 61 of file datebookweeklst.h.

Referenced by DateBookWeekLst(), dateChanged(), and getEvents().

DateBookDBHoliday* DateBookWeekLst::db [private]
 

Definition at line 50 of file datebookweeklst.h.

Referenced by getEvents().

bool DateBookWeekLst::dbl [private]
 

Definition at line 54 of file datebookweeklst.h.

Referenced by DateBookWeekLst(), getEvents(), and setDbl().

int DateBookWeekLst::dow [private]
 

Definition at line 56 of file datebookweeklst.h.

DateBookWeekLstHeader* DateBookWeekLst::header [private]
 

Definition at line 57 of file datebookweeklst.h.

Referenced by DateBookWeekLst(), keyPressEvent(), and setDate().

QVBoxLayout* DateBookWeekLst::layout [private]
 

Definition at line 58 of file datebookweeklst.h.

Referenced by DateBookWeekLst().

DateBookWeekLstDblView* DateBookWeekLst::m_CurrentView [private]
 

Definition at line 60 of file datebookweeklst.h.

Referenced by DateBookWeekLst(), getEvents(), and setDbl().

QScrollView* DateBookWeekLst::scroll [private]
 

Definition at line 59 of file datebookweeklst.h.

Referenced by DateBookWeekLst(), getEvents(), and keyPressEvent().

int DateBookWeekLst::startTime [private]
 

Definition at line 51 of file datebookweeklst.h.

int DateBookWeekLst::year [private]
 

Definition at line 56 of file datebookweeklst.h.


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