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

RepeatEntry Class Reference

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

Collaboration diagram for RepeatEntry:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotSetRType (int)
void endDateChanged (int, int, int)
void slotNoEnd (bool unused)

Public Member Functions

 RepeatEntry (bool startOnMonday, const QDate &start, QWidget *parent=0, const char *name=0, bool modal=TRUE, WFlags fl=0)
 RepeatEntry (bool startOnMonday, const Event::RepeatPattern &rp, const QDate &start, QWidget *parent=0, const char *name=0, bool modal=TRUE, WFlags fl=0)
 ~RepeatEntry ()
Event::RepeatPattern repeatPattern ()
QDate endDate ()

Private Types

enum  repeatButtons {
  NONE, DAY, WEEK, MONTH,
  YEAR
}

Private Slots

void setupRepeatLabel (const QString &)
void setupRepeatLabel (int)
void slotWeekLabel ()
void slotMonthLabel (int)
void slotChangeStartOfWeek (bool onMonday)

Private Member Functions

void setupNone ()
void setupDaily ()
void setupWeekly ()
void setupMonthly ()
void setupYearly ()
void init ()
void hideExtras ()
void showRepeatStuff ()

Private Attributes

QList< QToolButton > listRTypeButtons
QList< QToolButton > listExtra
QDate start
QDate end
repeatButtons currInterval
bool startWeekOnMonday
DateBookMonthrepeatPicker

Member Enumeration Documentation

enum RepeatEntry::repeatButtons [private]
 

Enumeration values:
NONE 
DAY 
WEEK 
MONTH 
YEAR 

Definition at line 81 of file repeatentry.h.


Constructor & Destructor Documentation

RepeatEntry::RepeatEntry bool  startOnMonday,
const QDate start,
QWidget *  parent = 0,
const char *  name = 0,
bool  modal = TRUE,
WFlags  fl = 0
 

Definition at line 77 of file repeatentry.cpp.

References currInterval, fillStrings(), init(), QString::isEmpty(), setupNone(), strDayTemplate, and TRUE.

RepeatEntry::RepeatEntry bool  startOnMonday,
const Event::RepeatPattern rp,
const QDate start,
QWidget *  parent = 0,
const char *  name = 0,
bool  modal = TRUE,
WFlags  fl = 0
 

Definition at line 94 of file repeatentry.cpp.

References currInterval, Event::Daily, DAY, Event::RepeatPattern::days, end, fillStrings(), Event::RepeatPattern::frequency, Event::RepeatPattern::hasEndDate, init(), QString::isEmpty(), MONTH, Event::MonthlyDate, Event::MonthlyDay, NONE, Event::NoRepeat, setupDaily(), setupMonthly(), setupNone(), setupWeekly(), setupYearly(), TimeString::shortDate(), slotMonthLabel(), slotWeekLabel(), startWeekOnMonday, strDayTemplate, tr, TRUE, Event::RepeatPattern::type, WEEK, Event::Weekly, YEAR, and Event::Yearly.

RepeatEntry::~RepeatEntry  ) 
 

Definition at line 162 of file repeatentry.cpp.


Member Function Documentation

QDate RepeatEntry::endDate  )  [inline]
 

Definition at line 60 of file repeatentry.h.

References end.

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

Definition at line 406 of file repeatentry.cpp.

References end, repeatPicker, DateBookMonth::setDate(), QDate::setYMD(), TimeString::shortDate(), and start.

Referenced by init().

void RepeatEntry::hideExtras  )  [inline, private]
 

Definition at line 95 of file repeatentry.h.

References FALSE, and listExtra.

Referenced by setupDaily(), setupMonthly(), setupNone(), and setupYearly().

void RepeatEntry::init  )  [private]
 

Definition at line 364 of file repeatentry.cpp.

References endDateChanged(), listExtra, listRTypeButtons, qApp, repeatPicker, slotChangeStartOfWeek(), and TRUE.

Referenced by RepeatEntry().

Event::RepeatPattern RepeatEntry::repeatPattern  ) 
 

Definition at line 166 of file repeatentry.cpp.

References Event::RepeatPattern::createTime, Event::Daily, DAY, Event::RepeatPattern::days, end, Event::RepeatPattern::frequency, Event::RepeatPattern::hasEndDate, i, listExtra, listRTypeButtons, MONTH, Event::MonthlyDate, Event::MonthlyDay, NONE, Event::NoRepeat, NULL, Event::RepeatPattern::position, Event::RepeatPattern::setEndDate(), start, startWeekOnMonday, Event::SUN, Event::RepeatPattern::type, week(), WEEK, Event::Weekly, YEAR, and Event::Yearly.

void RepeatEntry::setupDaily  )  [private]
 

Definition at line 264 of file repeatentry.cpp.

References hideExtras(), setupRepeatLabel(), showRepeatStuff(), strDayTemplate, and tr.

Referenced by RepeatEntry(), and slotSetRType().

void RepeatEntry::setupMonthly  )  [private]
 

Definition at line 330 of file repeatentry.cpp.

References hideExtras(), setupRepeatLabel(), showRepeatStuff(), tr, and TRUE.

Referenced by RepeatEntry(), and slotSetRType().

void RepeatEntry::setupNone  )  [private]
 

Definition at line 249 of file repeatentry.cpp.

References hideExtras(), and tr.

Referenced by RepeatEntry(), and slotSetRType().

void RepeatEntry::setupRepeatLabel int   )  [private, slot]
 

Definition at line 420 of file repeatentry.cpp.

References currInterval, DAY, QString::isNull(), MONTH, NONE, tr, WEEK, and YEAR.

void RepeatEntry::setupRepeatLabel const QString  )  [private, slot]
 

Definition at line 415 of file repeatentry.cpp.

Referenced by setupDaily(), setupMonthly(), setupWeekly(), and setupYearly().

void RepeatEntry::setupWeekly  )  [private]
 

Definition at line 276 of file repeatentry.cpp.

References QDate::dayOfWeek(), FALSE, setupRepeatLabel(), showRepeatStuff(), start, startWeekOnMonday, and tr.

Referenced by RepeatEntry(), slotChangeStartOfWeek(), and slotSetRType().

void RepeatEntry::setupYearly  )  [private]
 

Definition at line 348 of file repeatentry.cpp.

References QString::arg(), QDate::day(), hideExtras(), QDate::month(), QDate::monthName(), numberPlacing(), setupRepeatLabel(), showRepeatStuff(), start, strYearTemplate, and tr.

Referenced by RepeatEntry(), and slotSetRType().

void RepeatEntry::showRepeatStuff  )  [private]
 

Definition at line 462 of file repeatentry.cpp.

References tr.

Referenced by setupDaily(), setupMonthly(), setupWeekly(), and setupYearly().

void RepeatEntry::slotChangeStartOfWeek bool  onMonday  )  [private, slot]
 

Definition at line 548 of file repeatentry.cpp.

References listExtra, setupWeekly(), slotWeekLabel(), startWeekOnMonday, and Event::SUN.

Referenced by init().

void RepeatEntry::slotMonthLabel int   )  [private, slot]
 

Definition at line 535 of file repeatentry.cpp.

References QString::arg(), currInterval, QDate::day(), dayLabel, QDate::dayOfWeek(), MONTH, numberPlacing(), start, str, strMonthDateTemplate, strMonthDayTemplate, and week().

Referenced by RepeatEntry(), and slotSetRType().

void RepeatEntry::slotNoEnd bool  unused  )  [slot]
 

Definition at line 394 of file repeatentry.cpp.

References end, QDate::setYMD(), TimeString::shortDate(), start, and tr.

void RepeatEntry::slotSetRType int   )  [slot]
 

Definition at line 223 of file repeatentry.cpp.

References currInterval, DAY, MONTH, NONE, setupDaily(), setupMonthly(), setupNone(), setupWeekly(), setupYearly(), slotMonthLabel(), slotWeekLabel(), TRUE, WEEK, and YEAR.

void RepeatEntry::slotWeekLabel  )  [private, slot]
 

Definition at line 474 of file repeatentry.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), QValueList< T >::count(), currInterval, dayLabel, QDate::dayOfWeek(), QValueList< T >::end(), FALSE, i, QString::isNull(), list, listExtra, QString::prepend(), start, startWeekOnMonday, str, tr, TRUE, and WEEK.

Referenced by RepeatEntry(), slotChangeStartOfWeek(), and slotSetRType().


Member Data Documentation

repeatButtons RepeatEntry::currInterval [private]
 

Definition at line 90 of file repeatentry.h.

Referenced by RepeatEntry(), setupRepeatLabel(), slotMonthLabel(), slotSetRType(), and slotWeekLabel().

QDate RepeatEntry::end [private]
 

Definition at line 89 of file repeatentry.h.

Referenced by endDate(), endDateChanged(), RepeatEntry(), repeatPattern(), and slotNoEnd().

QList<QToolButton> RepeatEntry::listExtra [private]
 

Definition at line 87 of file repeatentry.h.

Referenced by hideExtras(), init(), repeatPattern(), slotChangeStartOfWeek(), and slotWeekLabel().

QList<QToolButton> RepeatEntry::listRTypeButtons [private]
 

Definition at line 86 of file repeatentry.h.

Referenced by init(), and repeatPattern().

DateBookMonth* RepeatEntry::repeatPicker [private]
 

Definition at line 92 of file repeatentry.h.

Referenced by endDateChanged(), and init().

QDate RepeatEntry::start [private]
 

Definition at line 88 of file repeatentry.h.

Referenced by endDateChanged(), repeatPattern(), setupWeekly(), setupYearly(), slotMonthLabel(), slotNoEnd(), and slotWeekLabel().

bool RepeatEntry::startWeekOnMonday [private]
 

Definition at line 91 of file repeatentry.h.

Referenced by RepeatEntry(), repeatPattern(), setupWeekly(), slotChangeStartOfWeek(), and slotWeekLabel().


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