libopie API Documentation

ORecurranceWidget Class Reference

A widget to let the user select rules for recurrences. Widget of selecting Recurrance. More...

#include <orecurrancewidget.h>

Collaboration diagram for ORecurranceWidget:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotSetRType (int)
void endDateChanged (int, int, int)
 set the new end date

void slotNoEnd (bool unused)
 enable/disable end date

void setStartDate (const QDate &)
 set the start date

void setRecurrence (const ORecur &recur, const QDate &start)
 overloaded method taking ORecur and a new start date

void setRecurrence (const ORecur &recur)
 set the recurrence


Public Member Functions

 ORecurranceWidget (bool startOnMonday, const QDate &start, QWidget *parent=0, const char *name=0, bool modal=TRUE, WFlags fl=0)
 Constructs the Widget.

 ORecurranceWidget (bool startOnMonday, const ORecur &rp, const QDate &start, QWidget *parent=0, const char *name=0, bool modal=TRUE, WFlags=0)
 Different constructor.

ORecur recurrence () const
 the user selected recurrence rule.

QDate endDate () const
 Return the end date of the recurrence.


Detailed Description

A widget to let the user select rules for recurrences. Widget of selecting Recurrance.

This widget can take care of weekly, monthly, daily and yearly recurrence It is used inside todolist and datebook.

Author:
Trolltech, Holger Freyther
Version:
0.9

Definition at line 32 of file orecurrancewidget.h.


Constructor & Destructor Documentation

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

Constructs the Widget.

Parameters:
startOnMonday Does the week start on monday
newStart The start date of the recurrence
parent The parent widget
name the name of object
modal if the dialog should be modal
fl Additional window flags

Definition at line 55 of file orecurrancewidget.cpp.

References QString::isEmpty().

ORecurranceWidget::ORecurranceWidget bool  startOnMonday,
const ORecur &  rp,
const QDate startDate,
QWidget parent = 0,
const char *  name = 0,
bool  modal = TRUE,
WFlags  fl = 0
 

Different constructor.

Parameters:
startOnMonday Does the week start on monday?
rp Already set ORecur object
startDate The start date
parent The parent widget
name The name of the object
modal 
fl The flags for window

Definition at line 85 of file orecurrancewidget.cpp.

References QString::isEmpty(), and setRecurrence().


Member Function Documentation

ORecur ORecurranceWidget::recurrence  )  const
 

the user selected recurrence rule.

Returns:
The recurrence rule.

Definition at line 186 of file orecurrancewidget.cpp.

Referenced by setStartDate().

QDate ORecurranceWidget::endDate  )  const
 

Return the end date of the recurrence.

This is only valid if the recurrence rule does contain an enddate

Definition at line 248 of file orecurrancewidget.cpp.

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

set the new end date

Definition at line 275 of file orecurrancewidget.cpp.

References QDate::day(), QDate::month(), QDate::setYMD(), and QDate::year().

void ORecurranceWidget::slotNoEnd bool  unused  )  [slot]
 

enable/disable end date

Definition at line 282 of file orecurrancewidget.cpp.

References QDate::setYMD().

void ORecurranceWidget::setStartDate const QDate date  )  [slot]
 

set the start date

Parameters:
date the new start date

Definition at line 108 of file orecurrancewidget.cpp.

References recurrence(), and setRecurrence().

void ORecurranceWidget::setRecurrence const ORecur &  rp,
const QDate date
[slot]
 

overloaded method taking ORecur and a new start date

Parameters:
rp Recurrence rule
date The new start date

Definition at line 124 of file orecurrancewidget.cpp.

Referenced by ORecurranceWidget(), setRecurrence(), and setStartDate().

void ORecurranceWidget::setRecurrence const ORecur &  rp  )  [slot]
 

set the recurrence

Parameters:
rp The ORecur object with the new recurrence rules

Definition at line 115 of file orecurrancewidget.cpp.

References setRecurrence().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for OPIE Version 1.1.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:24:59 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001