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

DateEntry Class Reference

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

Collaboration diagram for DateEntry:

Collaboration graph
[legend]
List of all members.

Public Slots

void endDateChanged (int, int, int)
void endTimeChanged (const QString &)
void endTimeChanged (const QTime &)
void startDateChanged (int, int, int)
void startTimeEdited (const QString &)
void startTimeChanged (const QTime &)
void startTimePicked (const QTime &)
void typeChanged (const QString &)
void slotRepeat ()
void slotChangeClock (bool)
void slotChangeStartOfWeek (bool)
void slotEditNote ()

Public Member Functions

 DateEntry (bool startOnMonday, const QDateTime &start, const QDateTime &end, bool whichClock=FALSE, QWidget *parent=0, const char *name=0)
 DateEntry (bool startOnMonday, const Event &event, bool whichCLock=FALSE, QWidget *parent=0, const char *name=0)
 ~DateEntry ()
Event event ()
void setAlarmEnabled (bool alarmPreset, int presetTime, Event::SoundTypeChoice)
virtual bool eventFilter (QObject *, QEvent *)

Private Member Functions

void init ()
void initCombos ()
void setDates (const QDateTime &s, const QDateTime &e)
void setRepeatLabel ()
void updateTimeEdit (bool, bool)

Private Attributes

DateBookMonthstartPicker
DateBookMonthendPicker
QDate startDate
QDate endDate
QTime startTime
QTime endTime
Event::RepeatPattern rp
bool ampm:1
bool startWeekOnMonday:1
bool m_showStart:1
QString noteStr

Constructor & Destructor Documentation

DateEntry::DateEntry bool  startOnMonday,
const QDateTime start,
const QDateTime end,
bool  whichClock = FALSE,
QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 59 of file dateentryimpl.cpp.

References init(), and setDates().

DateEntry::DateEntry bool  startOnMonday,
const Event event,
bool  whichCLock = FALSE,
QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 117 of file dateentryimpl.cpp.

References addOrPick(), Event::alarmSound(), Event::alarmTime(), Event::AllDay, Qtopia::Record::categories(), Event::description(), Event::end(), Event::hasAlarm(), Event::hasRepeat(), init(), Event::location(), Event::notes(), noteStr, Event::repeatPattern(), rp, setDates(), setRepeatLabel(), Event::Silent, Event::start(), tr, and Event::type().

DateEntry::~DateEntry  ) 
 

Definition at line 237 of file dateentryimpl.cpp.


Member Function Documentation

void DateEntry::endDateChanged int  ,
int  ,
int 
[slot]
 

Definition at line 260 of file dateentryimpl.cpp.

References endDate, endPicker, DateBookMonth::setDate(), QDate::setYMD(), TimeString::shortDate(), and startDate.

Referenced by init(), and setDates().

void DateEntry::endTimeChanged const QTime  )  [slot]
 

Definition at line 313 of file dateentryimpl.cpp.

References endDate, endTime, QTime::hour(), QTime::minute(), startDate, and startTime.

void DateEntry::endTimeChanged const QString  )  [slot]
 

Definition at line 308 of file dateentryimpl.cpp.

References ampm, and parseTime().

Referenced by startTimePicked().

Event DateEntry::event  ) 
 

Definition at line 410 of file dateentryimpl.cpp.

References Event::AllDay, end, endDate, endTime, QString::fromLocal8Bit(), TimeConversion::fromUTC(), QString::isNull(), Event::Loud, Event::NoRepeat, Event::Normal, noteStr, oendl, owarn, rp, Event::setAlarm(), Qtopia::Record::setCategories(), Event::setDescription(), Event::setEnd(), QTime::setHMS(), Event::setLocation(), Event::setNotes(), Event::setRepeat(), Event::setStart(), Event::setType(), Event::Silent, start, startDate, startTime, TimeConversion::toUTC(), TRUE, true, Event::RepeatPattern::type, and Event::type().

bool DateEntry::eventFilter QObject *  ,
QEvent * 
[virtual]
 

Definition at line 72 of file dateentryimpl.cpp.

References endTime, QTime::hour(), m_showStart, QTime::minute(), startTime, and tr.

void DateEntry::init  )  [private]
 

Definition at line 196 of file dateentryimpl.cpp.

References endDateChanged(), endPicker, initCombos(), qApp, slotChangeClock(), slotChangeStartOfWeek(), slotEditNote(), startDateChanged(), startPicker, startTimePicked(), and TRUE.

Referenced by DateEntry().

void DateEntry::initCombos  )  [private]
 

Definition at line 515 of file dateentryimpl.cpp.

Referenced by init(), and slotChangeClock().

void DateEntry::setAlarmEnabled bool  alarmPreset,
int  presetTime,
Event::SoundTypeChoice 
 

Definition at line 505 of file dateentryimpl.cpp.

References Event::Silent.

Referenced by DateBook::slotNewEntry().

void DateEntry::setDates const QDateTime s,
const QDateTime e
[private]
 

Definition at line 146 of file dateentryimpl.cpp.

References QDateTime::date(), endDate, endDateChanged(), endTime, startDate, startDateChanged(), startTime, QDateTime::time(), and updateTimeEdit().

Referenced by DateEntry(), and slotChangeClock().

void DateEntry::setRepeatLabel  )  [private]
 

Definition at line 483 of file dateentryimpl.cpp.

References Event::Daily, Event::MonthlyDate, Event::MonthlyDay, rp, tr, Event::RepeatPattern::type, Event::Weekly, and Event::Yearly.

Referenced by DateEntry(), and slotRepeat().

void DateEntry::slotChangeClock bool   )  [slot]
 

Definition at line 566 of file dateentryimpl.cpp.

References ampm, endDate, endTime, initCombos(), setDates(), startDate, and startTime.

Referenced by init().

void DateEntry::slotChangeStartOfWeek bool   )  [slot]
 

Definition at line 405 of file dateentryimpl.cpp.

References startWeekOnMonday.

Referenced by init().

void DateEntry::slotEditNote  )  [slot]
 

Definition at line 247 of file dateentryimpl.cpp.

References QPEApplication::execDialog(), TimeString::longDateString(), noteStr, s, startDate, and TRUE.

Referenced by init().

void DateEntry::slotRepeat  )  [slot]
 

Definition at line 385 of file dateentryimpl.cpp.

References QPEApplication::execDialog(), Event::NoRepeat, rp, setRepeatLabel(), startDate, startWeekOnMonday, and Event::RepeatPattern::type.

void DateEntry::startDateChanged int  ,
int  ,
int 
[slot]
 

Definition at line 327 of file dateentryimpl.cpp.

References QDate::dayOfWeek(), Event::RepeatPattern::days, endPicker, rp, DateBookMonth::setDate(), QDate::setYMD(), TimeString::shortDate(), startDate, startPicker, Event::RepeatPattern::type, and Event::Weekly.

Referenced by init(), and setDates().

void DateEntry::startTimeChanged const QTime  )  [slot]
 

Definition at line 358 of file dateentryimpl.cpp.

References QTime::addSecs(), endTime, QTime::secsTo(), and startTime.

Referenced by startTimeEdited(), and startTimePicked().

void DateEntry::startTimeEdited const QString  )  [slot]
 

Definition at line 350 of file dateentryimpl.cpp.

References ampm, QTime::hour(), QTime::minute(), parseTime(), startTime, startTimeChanged(), and updateTimeEdit().

void DateEntry::startTimePicked const QTime  )  [slot]
 

Definition at line 364 of file dateentryimpl.cpp.

References endTimeChanged(), m_showStart, startTimeChanged(), and updateTimeEdit().

Referenced by init().

void DateEntry::typeChanged const QString  )  [slot]
 

Definition at line 377 of file dateentryimpl.cpp.

void DateEntry::updateTimeEdit bool  ,
bool 
[private]
 

Definition at line 159 of file dateentryimpl.cpp.

References ampm, endTime, QTime::hour(), QTime::minute(), QString::sprintf(), and startTime.

Referenced by setDates(), startTimeEdited(), and startTimePicked().


Member Data Documentation

bool DateEntry::ampm [private]
 

Definition at line 83 of file dateentryimpl.h.

Referenced by endTimeChanged(), slotChangeClock(), startTimeEdited(), and updateTimeEdit().

QDate DateEntry::endDate [private]
 

Definition at line 80 of file dateentryimpl.h.

Referenced by endDateChanged(), endTimeChanged(), event(), setDates(), and slotChangeClock().

DateBookMonth * DateEntry::endPicker [private]
 

Definition at line 79 of file dateentryimpl.h.

Referenced by endDateChanged(), init(), and startDateChanged().

QTime DateEntry::endTime [private]
 

Definition at line 81 of file dateentryimpl.h.

Referenced by endTimeChanged(), event(), eventFilter(), setDates(), slotChangeClock(), startTimeChanged(), and updateTimeEdit().

bool DateEntry::m_showStart [private]
 

Definition at line 85 of file dateentryimpl.h.

Referenced by eventFilter(), and startTimePicked().

QString DateEntry::noteStr [private]
 

Definition at line 87 of file dateentryimpl.h.

Referenced by DateEntry(), event(), and slotEditNote().

Event::RepeatPattern DateEntry::rp [private]
 

Definition at line 82 of file dateentryimpl.h.

Referenced by DateEntry(), event(), setRepeatLabel(), slotRepeat(), and startDateChanged().

QDate DateEntry::startDate [private]
 

Definition at line 80 of file dateentryimpl.h.

Referenced by endDateChanged(), endTimeChanged(), event(), setDates(), slotChangeClock(), slotEditNote(), slotRepeat(), and startDateChanged().

DateBookMonth* DateEntry::startPicker [private]
 

Definition at line 79 of file dateentryimpl.h.

Referenced by init(), and startDateChanged().

QTime DateEntry::startTime [private]
 

Definition at line 81 of file dateentryimpl.h.

Referenced by endTimeChanged(), event(), eventFilter(), setDates(), slotChangeClock(), startTimeChanged(), startTimeEdited(), and updateTimeEdit().

bool DateEntry::startWeekOnMonday [private]
 

Definition at line 84 of file dateentryimpl.h.

Referenced by slotChangeStartOfWeek(), and slotRepeat().


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