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

ODateBookMonthTable Class Reference

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

Collaboration diagram for ODateBookMonthTable:

Collaboration graph
[legend]
List of all members.

Signals

void dateClicked (int year, int month, int day)

Public Member Functions

 ODateBookMonthTable (QWidget *parent=0, const char *name=0, DateBookDBHoliday *newDb=0)
virtual ~ODateBookMonthTable ()
void setDate (int y, int m, int d)
void redraw ()
QSize minimumSizeHint () const
QSize minimumSize () const
void getDate (int &y, int &m, int &d) const
void setWeekStart (bool onMonday)

Protected Slots

virtual void keyPressEvent (QKeyEvent *e)

Protected Member Functions

virtual void viewportMouseReleaseEvent (QMouseEvent *)

Private Slots

void dayClicked (int row, int col)
void dragDay (int row, int col)

Private Member Functions

void setupTable ()
void setupLabels ()
void findDay (int day, int &row, int &col)
void getEvents ()
void changeDaySelection (int row, int col)

Private Attributes

int year
int month
int day
int selYear
int selMonth
int selDay
QValueList< EventmonthsEvents
DateBookDBHolidaydb
ODateBookMonthTablePrivated

Constructor & Destructor Documentation

ODateBookMonthTable::ODateBookMonthTable QWidget *  parent = 0,
const char *  name = 0,
DateBookDBHoliday newDb = 0
 

Definition at line 50 of file odatebookmonth.cpp.

References d, day, dayClicked(), dragDay(), FALSE, i, month, ODateBookMonthTablePrivate::onMonday, Config::readBoolEntry(), selDay, selMonth, selYear, Config::setGroup(), setupLabels(), TRUE, and year.

ODateBookMonthTable::~ODateBookMonthTable  )  [virtual]
 

Definition at line 92 of file odatebookmonth.cpp.

References QValueList< T >::clear(), d, and monthsEvents.


Member Function Documentation

void ODateBookMonthTable::changeDaySelection int  row,
int  col
[private]
 

Definition at line 191 of file odatebookmonth.cpp.

References DayItemMonth::day(), i, month, Calendar::Day::PrevMonth, selDay, selMonth, selYear, Calendar::Day::ThisMonth, DayItemMonth::type(), and year.

Referenced by dayClicked(), and dragDay().

void ODateBookMonthTable::dateClicked int  year,
int  month,
int  day
[signal]
 

Referenced by dayClicked().

void ODateBookMonthTable::dayClicked int  row,
int  col
[private, slot]
 

Definition at line 180 of file odatebookmonth.cpp.

References changeDaySelection(), dateClicked(), selDay, selMonth, and selYear.

Referenced by ODateBookMonthTable(), and viewportMouseReleaseEvent().

void ODateBookMonthTable::dragDay int  row,
int  col
[private, slot]
 

Definition at line 186 of file odatebookmonth.cpp.

References changeDaySelection().

Referenced by ODateBookMonthTable().

void ODateBookMonthTable::findDay int  day,
int &  row,
int &  col
[private]
 

Definition at line 168 of file odatebookmonth.cpp.

References d, QDate::dayOfWeek(), month, ODateBookMonthTablePrivate::onMonday, and year.

Referenced by getEvents(), and setDate().

void ODateBookMonthTable::getDate int &  y,
int &  m,
int &  d
const [inline]
 

Definition at line 61 of file odatebookmonth.h.

References selDay, selMonth, and selYear.

Referenced by ODateBookMonth::selectedDate().

void ODateBookMonthTable::getEvents  )  [private]
 

Definition at line 224 of file odatebookmonth.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), QValueList< T >::clear(), col, d, EffectiveEvent::date(), QDate::daysInMonth(), db, QValueList< T >::end(), findDay(), DateBookDBHoliday::getEffectiveEvents(), ODateBookMonthTablePrivate::mMonthEvents, month, row, DayItemMonth::setEvents(), and year.

Referenced by setupTable().

virtual void ODateBookMonthTable::keyPressEvent QKeyEvent *  e  )  [inline, protected, virtual, slot]
 

Definition at line 71 of file odatebookmonth.h.

QSize ODateBookMonthTable::minimumSize  )  const [inline]
 

Definition at line 60 of file odatebookmonth.h.

QSize ODateBookMonthTable::minimumSizeHint  )  const [inline]
 

Definition at line 59 of file odatebookmonth.h.

void ODateBookMonthTable::redraw  ) 
 

Definition at line 120 of file odatebookmonth.cpp.

References setupLabels(), and setupTable().

Referenced by ODateBookMonth::redraw().

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

Definition at line 98 of file odatebookmonth.cpp.

References day, findDay(), month, selDay, selMonth, selYear, setupTable(), and year.

Referenced by ODateBookMonth::ODateBookMonth(), ODateBookMonth::redraw(), and ODateBookMonth::setDate().

void ODateBookMonthTable::setupLabels  )  [private]
 

Definition at line 257 of file odatebookmonth.cpp.

References d, i, Calendar::nameOfDay(), and ODateBookMonthTablePrivate::onMonday.

Referenced by ODateBookMonthTable(), redraw(), and setWeekStart().

void ODateBookMonthTable::setupTable  )  [private]
 

Definition at line 133 of file odatebookmonth.cpp.

References QValueList< T >::begin(), DayItemMonth::clearEffEvents(), col, d, Calendar::Day::date, day, DayItemMonth::day(), Calendar::daysOfMonth(), QValueList< T >::end(), getEvents(), i, month, ODateBookMonthTablePrivate::onMonday, row, DayItemMonth::setDay(), DayItemMonth::setType(), Calendar::Day::ThisMonth, Calendar::Day::type, and year.

Referenced by redraw(), setDate(), and setWeekStart().

void ODateBookMonthTable::setWeekStart bool  onMonday  ) 
 

Definition at line 126 of file odatebookmonth.cpp.

References d, ODateBookMonthTablePrivate::onMonday, setupLabels(), and setupTable().

Referenced by ODateBookMonth::slotWeekChange().

void ODateBookMonthTable::viewportMouseReleaseEvent QMouseEvent *   )  [protected, virtual]
 

Definition at line 219 of file odatebookmonth.cpp.

References dayClicked().


Member Data Documentation

ODateBookMonthTablePrivate* ODateBookMonthTable::d [private]
 

Definition at line 91 of file odatebookmonth.h.

Referenced by findDay(), getEvents(), ODateBookMonthTable(), setupLabels(), setupTable(), setWeekStart(), and ~ODateBookMonthTable().

int ODateBookMonthTable::day [private]
 

Definition at line 87 of file odatebookmonth.h.

Referenced by ODateBookMonthTable(), setDate(), and setupTable().

DateBookDBHoliday* ODateBookMonthTable::db [private]
 

Definition at line 90 of file odatebookmonth.h.

Referenced by getEvents().

int ODateBookMonthTable::month [private]
 

Definition at line 87 of file odatebookmonth.h.

Referenced by changeDaySelection(), findDay(), getEvents(), ODateBookMonthTable(), setDate(), and setupTable().

QValueList<Event> ODateBookMonthTable::monthsEvents [private]
 

Definition at line 89 of file odatebookmonth.h.

Referenced by ~ODateBookMonthTable().

int ODateBookMonthTable::selDay [private]
 

Definition at line 88 of file odatebookmonth.h.

Referenced by changeDaySelection(), dayClicked(), getDate(), ODateBookMonthTable(), and setDate().

int ODateBookMonthTable::selMonth [private]
 

Definition at line 88 of file odatebookmonth.h.

Referenced by changeDaySelection(), dayClicked(), getDate(), ODateBookMonthTable(), and setDate().

int ODateBookMonthTable::selYear [private]
 

Definition at line 88 of file odatebookmonth.h.

Referenced by changeDaySelection(), dayClicked(), getDate(), ODateBookMonthTable(), and setDate().

int ODateBookMonthTable::year [private]
 

Definition at line 87 of file odatebookmonth.h.

Referenced by changeDaySelection(), findDay(), getEvents(), ODateBookMonthTable(), setDate(), and setupTable().


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