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

DateBookMonthTable Class Reference

#include </home/clem/local/src/opie/library/datebookmonth.h>

Collaboration diagram for DateBookMonthTable:

Collaboration graph
[legend]
List of all members.

Signals

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

Public Member Functions

 DateBookMonthTable (QWidget *parent=0, const char *name=0, DateBookDB *newDb=0)
 ~DateBookMonthTable ()
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

void keyPressEvent (QKeyEvent *e)

Protected Member Functions

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
DateBookDBdb
DateBookMonthTablePrivated

Constructor & Destructor Documentation

DateBookMonthTable::DateBookMonthTable QWidget *  parent = 0,
const char *  name = 0,
DateBookDB newDb = 0
 

Definition at line 159 of file datebookmonth.cpp.

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

DateBookMonthTable::~DateBookMonthTable  ) 
 

Definition at line 201 of file datebookmonth.cpp.

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


Member Function Documentation

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

Definition at line 300 of file datebookmonth.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 DateBookMonthTable::dateClicked int  year,
int  month,
int  day
[signal]
 

Referenced by dayClicked().

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

Definition at line 289 of file datebookmonth.cpp.

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

Referenced by DateBookMonthTable(), and viewportMouseReleaseEvent().

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

Definition at line 295 of file datebookmonth.cpp.

References changeDaySelection().

Referenced by DateBookMonthTable().

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

Definition at line 277 of file datebookmonth.cpp.

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

Referenced by getEvents(), and setDate().

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

Definition at line 114 of file datebookmonth.h.

References selDay, selMonth, and selYear.

Referenced by DateBookMonth::selectedDate().

void DateBookMonthTable::getEvents  )  [private]
 

Definition at line 333 of file datebookmonth.cpp.

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

Referenced by setupTable().

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

Definition at line 124 of file datebookmonth.h.

QSize DateBookMonthTable::minimumSize  )  const [inline]
 

Definition at line 113 of file datebookmonth.h.

QSize DateBookMonthTable::minimumSizeHint  )  const [inline]
 

Definition at line 112 of file datebookmonth.h.

void DateBookMonthTable::redraw  ) 
 

Definition at line 229 of file datebookmonth.cpp.

References setupLabels(), and setupTable().

Referenced by DateBookMonth::redraw().

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

Definition at line 207 of file datebookmonth.cpp.

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

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

void DateBookMonthTable::setupLabels  )  [private]
 

Definition at line 366 of file datebookmonth.cpp.

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

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

void DateBookMonthTable::setupTable  )  [private]
 

Definition at line 242 of file datebookmonth.cpp.

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

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

void DateBookMonthTable::setWeekStart bool  onMonday  ) 
 

Definition at line 235 of file datebookmonth.cpp.

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

Referenced by DateBookMonth::slotWeekChange().

void DateBookMonthTable::viewportMouseReleaseEvent QMouseEvent *   )  [protected]
 

Definition at line 328 of file datebookmonth.cpp.

References dayClicked().


Member Data Documentation

DateBookMonthTablePrivate* DateBookMonthTable::d [private]
 

Definition at line 144 of file datebookmonth.h.

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

int DateBookMonthTable::day [private]
 

Definition at line 140 of file datebookmonth.h.

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

DateBookDB* DateBookMonthTable::db [private]
 

Definition at line 143 of file datebookmonth.h.

Referenced by getEvents().

int DateBookMonthTable::month [private]
 

Definition at line 140 of file datebookmonth.h.

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

QValueList<Event> DateBookMonthTable::monthsEvents [private]
 

Definition at line 142 of file datebookmonth.h.

Referenced by ~DateBookMonthTable().

int DateBookMonthTable::selDay [private]
 

Definition at line 141 of file datebookmonth.h.

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

int DateBookMonthTable::selMonth [private]
 

Definition at line 141 of file datebookmonth.h.

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

int DateBookMonthTable::selYear [private]
 

Definition at line 141 of file datebookmonth.h.

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

int DateBookMonthTable::year [private]
 

Definition at line 140 of file datebookmonth.h.

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


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