List of all members | Public Types | Properties | Public Member Functions | Public Slots | Signals
XDateEdit Class Reference

#include <datecluster.h>

Public Types

enum  Defaults { Empty, Current, None }
 

Properties

QDate currentDefault
 
QDate date
 
Defaults defaultDate
 
QString fieldName
 
- Properties inherited from XLineEdit
QString defaultText
 
QString fieldName
 

Public Member Functions

 XDateEdit (QWidget *parent=0, const char *=0)
 
virtual ~XDateEdit ()
 
virtual int calendarSiteId ()
 
virtual void clear ()
 
virtual QDate currentDefault ()
 
virtual QDate date ()
 
virtual Defaults defaultDate ()
 
virtual QString fieldName () const
 
virtual bool isNull ()
 
virtual bool isValid ()
 
void setAllowNullDate (bool pAllowNull)
 
void setCalendarSiteId (int siteId)
 
void setNullDate (const QDate &pNullDate)
 
void setNullString (const QString &pNullString)
 
- Public Member Functions inherited from XLineEdit
 XLineEdit (QWidget *, const char *=0)
 
virtual QString defaultText () const
 
Q_INVOKABLE int id ()
 
Q_INVOKABLE bool isNull ()
 
Q_INVOKABLE bool isValid ()
 
virtual Q_INVOKABLE QString nullStr () const
 
virtual Q_INVOKABLE void setDouble (const double, const int=-1)
 
virtual Q_INVOKABLE void setNullStr (const QString &text)
 
virtual void setText (const QVariant &)
 
Q_INVOKABLE void setValidator (QValidator *v)
 
Q_INVOKABLE double toDouble (bool *=0)
 

Public Slots

void checkDate (const QDate &)
 
void parseDate ()
 
virtual void setDataWidgetMap (XDataWidgetMapper *m)
 
void setDate (const QDate &, bool=false)
 
void setDefaultDate (Defaults p)
 
virtual void setFieldName (QString p)
 
void setNull ()
 
void showCalendar ()
 
- Public Slots inherited from XLineEdit
virtual void setData ()
 
virtual void setData (const QString &text)
 
virtual void setDataWidgetMap (XDataWidgetMapper *m)
 
virtual void setDefaultText (QString p)
 
virtual void setFieldName (QString p)
 
virtual void sParse ()
 

Signals

void newDate (const QDate &)
 
- Signals inherited from XLineEdit
void clicked ()
 
void doubleClicked ()
 
void requestAlias ()
 
void requestCopy ()
 
void requestInfo ()
 
void requestList ()
 
void requestSearch ()
 

Additional Inherited Members

- Protected Attributes inherited from XLineEdit
QAction_aliasAct
 
QAction_copyProject
 
int _id
 
QAction_listAct
 
QString _nullStr
 
bool _parsed
 
QAction_searchAct
 
bool _valid
 
- Protected Member Functions inherited from XLineEdit
virtual void focusInEvent (QFocusEvent *event)
 
virtual void focusOutEvent (QFocusEvent *event)
 
void keyPressEvent (QKeyEvent *)
 
void mouseDoubleClickEvent (QMouseEvent *)
 
void mousePressEvent (QMouseEvent *)
 
- Protected Slots inherited from XLineEdit
virtual void sHandleNullStr ()
 

Member Enumeration Documentation

Enumerator
Empty 
Current 
None 

Constructor & Destructor Documentation

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

Member Function Documentation

virtual int XDateEdit::calendarSiteId ( )
inlinevirtual
void XDateEdit::checkDate ( const QDate &  pDate)
slot
void XDateEdit::clear ( )
virtual
virtual QDate XDateEdit::currentDefault ( )
virtual
virtual QDate XDateEdit::date ( )
virtual
virtual Defaults XDateEdit::defaultDate ( )
inlinevirtual
virtual QString XDateEdit::fieldName ( ) const
inlinevirtual

Reimplemented from XLineEdit.

bool XDateEdit::isNull ( )
virtual
bool XDateEdit::isValid ( )
virtual
void XDateEdit::newDate ( const QDate &  )
signal
void XDateEdit::parseDate ( )
slot
void XDateEdit::setAllowNullDate ( bool  pAllowNull)
inline
void XDateEdit::setCalendarSiteId ( int  siteId)
inline
void XDateEdit::setDataWidgetMap ( XDataWidgetMapper m)
virtualslot
void XDateEdit::setDate ( const QDate &  pDate,
bool  pAnnounce = false 
)
slot
void XDateEdit::setDefaultDate ( Defaults  p)
inlineslot
virtual void XDateEdit::setFieldName ( QString  p)
inlinevirtualslot
void XDateEdit::setNull ( )
slot
void XDateEdit::setNullDate ( const QDate &  pNullDate)
inline
void XDateEdit::setNullString ( const QString &  pNullString)
inline
void XDateEdit::showCalendar ( )
slot

Property Documentation

QDate XDateEdit::currentDefault
read
QDate XDateEdit::date
readwrite
Defaults XDateEdit::defaultDate
readwrite
QString XDateEdit::fieldName
readwrite

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

Generated on Fri Oct 7 2016 14:23:35 xTuple ERP Programmer Reference, Version 4.2.0 doxygen 1.8.10