RecurrenceWidget Class Reference

#include <recurrencewidget.h>

List of all members.

Public Types

enum  RecurrenceChangePolicy { NoPolicy = -1, IgnoreFuture, ChangeFuture }
enum  RecurrencePeriod {
  Never = -1, Minutely, Hourly, Daily,
  Weekly, Monthly, Yearly, Custom
}

Properties

bool maxVisible
bool startDateVisible

Public Member Functions

 RecurrenceWidget (QWidget *parent=0, const char *name=0)
 ~RecurrenceWidget ()
virtual Q_INVOKABLE QDate endDate () const
virtual Q_INVOKABLE int frequency () const
virtual Q_INVOKABLE
RecurrenceChangePolicy 
getChangePolicy ()
virtual Q_INVOKABLE bool isRecurring () const
virtual Q_INVOKABLE int max () const
virtual bool maxVisible () const
virtual Q_INVOKABLE bool modified () const
virtual Q_INVOKABLE int parentId () const
virtual Q_INVOKABLE QString parentType () const
virtual Q_INVOKABLE
RecurrencePeriod 
period () const
virtual Q_INVOKABLE QString periodCode () const
virtual Q_INVOKABLE QDate startDate () const
virtual bool startDateVisible () const
virtual Q_INVOKABLE
RecurrencePeriod 
stringToPeriod (QString p) const

Public Slots

virtual void clear ()
virtual bool save (bool intxn, RecurrenceChangePolicy cp, QString &msg)
virtual void set (bool recurring=false, int frequency=1, QString period=QString("W"), QDate startDate=QDate::currentDate(), QDate endDate=QDate(), int max=10)
virtual void setEndDate (QDate p)
virtual void setFrequency (int p)
virtual void setMax (int p)
virtual void setMaxVisible (bool p)
virtual bool setParent (int pid, QString ptype)
virtual void setPeriod (QString p)
virtual void setPeriod (RecurrencePeriod p)
virtual void setRecurring (bool p)
virtual void setStartDate (QDate p)
virtual void setStartDateVisible (bool p)

Protected Attributes

QDate _eot
int _id
int _parentId
QString _parentType
QDate _prevEndDate
int _prevFrequency
int _prevMax
int _prevParentId
QString _prevParentType
RecurrencePeriod _prevPeriod
bool _prevRecurring
QDate _prevStartDate

Protected Slots

virtual void languageChange ()

Member Enumeration Documentation

Enumerator:
NoPolicy 
IgnoreFuture 
ChangeFuture 
Enumerator:
Never 
Minutely 
Hourly 
Daily 
Weekly 
Monthly 
Yearly 
Custom 

Constructor & Destructor Documentation

RecurrenceWidget::RecurrenceWidget ( QWidget parent = 0,
const char *  name = 0 
)
RecurrenceWidget::~RecurrenceWidget (  ) 

Member Function Documentation

void RecurrenceWidget::clear (  )  [virtual, slot]
QDate RecurrenceWidget::endDate (  )  const [virtual]
int RecurrenceWidget::frequency (  )  const [virtual]
RecurrenceWidget::RecurrenceChangePolicy RecurrenceWidget::getChangePolicy (  )  [virtual]
bool RecurrenceWidget::isRecurring (  )  const [virtual]
void RecurrenceWidget::languageChange (  )  [protected, virtual, slot]

Reimplemented from QWidget.

int RecurrenceWidget::max (  )  const [virtual]
virtual bool RecurrenceWidget::maxVisible (  )  const [virtual]
bool RecurrenceWidget::modified (  )  const [virtual]
int RecurrenceWidget::parentId (  )  const [virtual]
QString RecurrenceWidget::parentType (  )  const [virtual]
RecurrenceWidget::RecurrencePeriod RecurrenceWidget::period (  )  const [virtual]
QString RecurrenceWidget::periodCode (  )  const [virtual]
bool RecurrenceWidget::save ( bool  intxn,
RecurrenceChangePolicy  cp,
QString msg 
) [virtual, slot]
void RecurrenceWidget::set ( bool  recurring = false,
int  frequency = 1,
QString  period = QString("W"),
QDate  startDate = QDate::currentDate(),
QDate  endDate = QDate(),
int  max = 10 
) [virtual, slot]
void RecurrenceWidget::setEndDate ( QDate  p  )  [virtual, slot]
void RecurrenceWidget::setFrequency ( int  p  )  [virtual, slot]
void RecurrenceWidget::setMax ( int  p  )  [virtual, slot]
void RecurrenceWidget::setMaxVisible ( bool  p  )  [virtual, slot]
bool RecurrenceWidget::setParent ( int  pid,
QString  ptype 
) [virtual, slot]
void RecurrenceWidget::setPeriod ( QString  p  )  [virtual, slot]
void RecurrenceWidget::setPeriod ( RecurrencePeriod  p  )  [virtual, slot]
void RecurrenceWidget::setRecurring ( bool  p  )  [virtual, slot]
void RecurrenceWidget::setStartDate ( QDate  p  )  [virtual, slot]
void RecurrenceWidget::setStartDateVisible ( bool  p  )  [virtual, slot]
QDate RecurrenceWidget::startDate (  )  const [virtual]
virtual bool RecurrenceWidget::startDateVisible (  )  const [virtual]
RecurrenceWidget::RecurrencePeriod RecurrenceWidget::stringToPeriod ( QString  p  )  const [virtual]

Member Data Documentation

int RecurrenceWidget::_id [protected]
int RecurrenceWidget::_parentId [protected]
int RecurrenceWidget::_prevMax [protected]

Property Documentation

bool RecurrenceWidget::maxVisible [read, write]
bool RecurrenceWidget::startDateVisible [read, write]

The documentation for this class was generated from the following files:

Generated on Tue Apr 20 12:03:22 2010 xTuple ERP Programmer Reference, Version 3.5.0 doxygen 1.6.1