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

#include <datecluster.h>

Inheritance diagram for XDateEdit:
XLineEdit QLineEdit

Public Types

enum  Defaults { Empty, Current, None }
 

Properties

QDate currentDefault
 
QDate date
 
Defaults defaultDate
 
QString defaultText
 
QString fieldName
 

Public Slots

void checkDate (const QDate &)
 
void parseDate ()
 
void setCalendarSiteId (int)
 
virtual void setData ()
 
virtual void setData (const QString &text)
 
virtual void setDataWidgetMap (XDataWidgetMapper *m)
 
void setDate (const QDate &, bool=false)
 
void setDefaultDate (Defaults p)
 
virtual void setDefaultText (QString p)
 
virtual void setFieldName (QString p)
 
void setNull ()
 
void showCalendar ()
 
virtual void sParse ()
 

Signals

void clicked ()
 
void doubleClicked ()
 
void newDate (const QDate &)
 
void requestAlias ()
 
void requestInfo ()
 
void requestList ()
 
void requestSearch ()
 

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 defaultText () const
 
virtual QString fieldName () const
 
Q_INVOKABLE int id ()
 
virtual bool isNull ()
 
virtual bool isValid ()
 
virtual Q_INVOKABLE QString nullStr () const
 
void setAllowNullDate (bool pAllowNull)
 
virtual Q_INVOKABLE void setDouble (const double, const int=-1)
 
void setNullDate (const QDate &pNullDate)
 
virtual Q_INVOKABLE void setNullStr (const QString &text)
 
void setNullString (const QString &pNullString)
 
virtual void setText (const QVariant &)
 
Q_INVOKABLE void setValidator (QValidator *v)
 
Q_INVOKABLE double toDouble (bool *=0)
 

Protected Slots

virtual void sHandleNullStr ()
 

Protected Member Functions

virtual void focusInEvent (QFocusEvent *event)
 
virtual void focusOutEvent (QFocusEvent *event)
 
void keyPressEvent (QKeyEvent *)
 
void mouseDoubleClickEvent (QMouseEvent *)
 
void mousePressEvent (QMouseEvent *)
 

Protected Attributes

QAction_aliasAct
 
int _id
 
QAction_listAct
 
QString _nullStr
 
bool _parsed
 
QAction_searchAct
 
bool _valid
 

Member Enumeration Documentation

◆ Defaults

Enumerator
Empty 
Current 
None 

Property Documentation

◆ currentDefault

QDate XDateEdit::currentDefault
read

◆ date

QDate XDateEdit::date
readwrite

◆ defaultDate

Defaults XDateEdit::defaultDate
readwrite

◆ defaultText

QString XLineEdit::defaultText
readwriteinherited

◆ fieldName

QString XDateEdit::fieldName
readwrite

Constructor & Destructor Documentation

◆ XDateEdit()

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

◆ ~XDateEdit()

XDateEdit::~XDateEdit ( )
virtual

Member Function Documentation

◆ calendarSiteId()

virtual int XDateEdit::calendarSiteId ( )
inlinevirtual

◆ checkDate

void XDateEdit::checkDate ( const QDate &  pDate)
slot

◆ clear()

void XDateEdit::clear ( )
virtual

◆ clicked

void XLineEdit::clicked ( )
signalinherited

◆ currentDefault()

virtual QDate XDateEdit::currentDefault ( )
virtual

◆ date()

virtual QDate XDateEdit::date ( )
virtual

◆ defaultDate()

virtual Defaults XDateEdit::defaultDate ( )
inlinevirtual

◆ defaultText()

virtual QString XLineEdit::defaultText ( ) const
inlinevirtualinherited

◆ doubleClicked

void XLineEdit::doubleClicked ( )
signalinherited

◆ fieldName()

virtual QString XDateEdit::fieldName ( ) const
inlinevirtual

Reimplemented from XLineEdit.

◆ focusInEvent()

void XLineEdit::focusInEvent ( QFocusEvent *  event)
protectedvirtualinherited

Reimplemented in VirtualClusterLineEdit.

◆ focusOutEvent()

void XLineEdit::focusOutEvent ( QFocusEvent *  event)
protectedvirtualinherited

◆ id()

int XLineEdit::id ( )
inherited

◆ isNull()

bool XDateEdit::isNull ( )
virtual

◆ isValid()

bool XDateEdit::isValid ( )
virtual

◆ keyPressEvent()

void XLineEdit::keyPressEvent ( QKeyEvent *  event)
protectedinherited

◆ mouseDoubleClickEvent()

void XLineEdit::mouseDoubleClickEvent ( QMouseEvent *  event)
protectedinherited

◆ mousePressEvent()

void XLineEdit::mousePressEvent ( QMouseEvent *  event)
protectedinherited

◆ newDate

void XDateEdit::newDate ( const QDate &  )
signal

◆ nullStr()

virtual Q_INVOKABLE QString XLineEdit::nullStr ( ) const
inlinevirtualinherited

◆ parseDate

void XDateEdit::parseDate ( )
slot

◆ requestAlias

void XLineEdit::requestAlias ( )
signalinherited

◆ requestInfo

void XLineEdit::requestInfo ( )
signalinherited

◆ requestList

void XLineEdit::requestList ( )
signalinherited

◆ requestSearch

void XLineEdit::requestSearch ( )
signalinherited

◆ setAllowNullDate()

void XDateEdit::setAllowNullDate ( bool  pAllowNull)
inline

◆ setCalendarSiteId

void XDateEdit::setCalendarSiteId ( int  siteId)
slot

◆ setData [1/2]

void XLineEdit::setData ( )
virtualslotinherited

◆ setData [2/2]

void XLineEdit::setData ( const QString &  text)
virtualslotinherited

◆ setDataWidgetMap

void XDateEdit::setDataWidgetMap ( XDataWidgetMapper m)
virtualslot

◆ setDate

void XDateEdit::setDate ( const QDate &  pDate,
bool  pAnnounce = false 
)
slot

◆ setDefaultDate

void XDateEdit::setDefaultDate ( Defaults  p)
inlineslot

◆ setDefaultText

virtual void XLineEdit::setDefaultText ( QString  p)
inlinevirtualslotinherited

◆ setDouble()

void XLineEdit::setDouble ( const double  pDouble,
const int  pPrec = -1 
)
virtualinherited

◆ setFieldName

virtual void XDateEdit::setFieldName ( QString  p)
inlinevirtualslot

◆ setNull

void XDateEdit::setNull ( )
slot

◆ setNullDate()

void XDateEdit::setNullDate ( const QDate &  pNullDate)
inline

◆ setNullStr()

void XLineEdit::setNullStr ( const QString &  text)
virtualinherited

◆ setNullString()

void XDateEdit::setNullString ( const QString &  pNullString)
inline

◆ setText()

void XLineEdit::setText ( const QVariant &  pVariant)
virtualinherited

◆ setValidator()

Q_INVOKABLE void XLineEdit::setValidator ( QValidator *  v)
inlineinherited

◆ sHandleNullStr

void XLineEdit::sHandleNullStr ( )
protectedvirtualslotinherited

◆ showCalendar

void XDateEdit::showCalendar ( )
slot

◆ sParse

void XLineEdit::sParse ( )
virtualslotinherited

◆ toDouble()

double XLineEdit::toDouble ( bool *  pIsValid = 0)
inherited

Member Data Documentation

◆ _aliasAct

QAction* XLineEdit::_aliasAct
protectedinherited

◆ _id

int XLineEdit::_id
protectedinherited

◆ _listAct

QAction* XLineEdit::_listAct
protectedinherited

◆ _nullStr

QString XLineEdit::_nullStr
protectedinherited

◆ _parsed

bool XLineEdit::_parsed
protectedinherited

◆ _searchAct

QAction* XLineEdit::_searchAct
protectedinherited

◆ _valid

bool XLineEdit::_valid
protectedinherited

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

Generated on Mon May 3 2021 xTuple ERP Programmer Reference, Version 4.12.0 doxygen 1.8.17