|
|
#include "PythonQtWrapper_QDate.h"
|
|
|
|
|
|
#include <PythonQtSignalReceiver.h>
|
|
|
#include <PythonQtMethodInfo.h>
|
|
|
#include <PythonQtConversion.h>
|
|
|
#include <QVariant>
|
|
|
#include <qdatastream.h>
|
|
|
#include <qdatetime.h>
|
|
|
|
|
|
QDate* PythonQtWrapper_QDate::new_QDate()
|
|
|
{
|
|
|
return new QDate(); }
|
|
|
|
|
|
QDate* PythonQtWrapper_QDate::new_QDate(int y, int m, int d)
|
|
|
{
|
|
|
return new QDate(y, m, d); }
|
|
|
|
|
|
QDate PythonQtWrapper_QDate::static_QDate_currentDate()
|
|
|
{
|
|
|
return (QDate::currentDate());
|
|
|
}
|
|
|
|
|
|
QDate PythonQtWrapper_QDate::static_QDate_fromString(const QString& s, Qt::DateFormat f)
|
|
|
{
|
|
|
return (QDate::fromString(s, f));
|
|
|
}
|
|
|
|
|
|
QString PythonQtWrapper_QDate::static_QDate_shortDayName(int weekday)
|
|
|
{
|
|
|
return (QDate::shortDayName(weekday));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QDate::writeTo(QDate* theWrappedObject, QDataStream& arg__1)
|
|
|
{
|
|
|
arg__1 << (*theWrappedObject);
|
|
|
}
|
|
|
|
|
|
QString PythonQtWrapper_QDate::static_QDate_longMonthName(int month)
|
|
|
{
|
|
|
return (QDate::longMonthName(month));
|
|
|
}
|
|
|
|
|
|
QString PythonQtWrapper_QDate::static_QDate_shortMonthName(int month)
|
|
|
{
|
|
|
return (QDate::shortMonthName(month));
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QDate::day(QDate* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->day());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QDate::readFrom(QDate* theWrappedObject, QDataStream& arg__1)
|
|
|
{
|
|
|
arg__1 >> (*theWrappedObject);
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QDate::dayOfWeek(QDate* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->dayOfWeek());
|
|
|
}
|
|
|
|
|
|
QDate PythonQtWrapper_QDate::static_QDate_fromJulianDay(int jd)
|
|
|
{
|
|
|
return (QDate::fromJulianDay(jd));
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QDate::year(QDate* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->year());
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QDate::operator_less(QDate* theWrappedObject, const QDate& other) const
|
|
|
{
|
|
|
return ( (*theWrappedObject)< other);
|
|
|
}
|
|
|
|
|
|
QDate PythonQtWrapper_QDate::addYears(QDate* theWrappedObject, int years) const
|
|
|
{
|
|
|
return ( theWrappedObject->addYears(years));
|
|
|
}
|
|
|
|
|
|
QDate PythonQtWrapper_QDate::addDays(QDate* theWrappedObject, int days) const
|
|
|
{
|
|
|
return ( theWrappedObject->addDays(days));
|
|
|
}
|
|
|
|
|
|
QDate PythonQtWrapper_QDate::static_QDate_fromString(const QString& s, const QString& format)
|
|
|
{
|
|
|
return (QDate::fromString(s, format));
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QDate::weekNumber(QDate* theWrappedObject, int* yearNum) const
|
|
|
{
|
|
|
return ( theWrappedObject->weekNumber(yearNum));
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QDate::daysTo(QDate* theWrappedObject, const QDate& arg__1) const
|
|
|
{
|
|
|
return ( theWrappedObject->daysTo(arg__1));
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QDate::static_QDate_isValid(int y, int m, int d)
|
|
|
{
|
|
|
return (QDate::isValid(y, m, d));
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QDate::operator_equal(QDate* theWrappedObject, const QDate& other) const
|
|
|
{
|
|
|
return ( (*theWrappedObject)== other);
|
|
|
}
|
|
|
|
|
|
QDate PythonQtWrapper_QDate::addMonths(QDate* theWrappedObject, int months) const
|
|
|
{
|
|
|
return ( theWrappedObject->addMonths(months));
|
|
|
}
|
|
|
|
|
|
uint PythonQtWrapper_QDate::static_QDate_gregorianToJulian(int y, int m, int d)
|
|
|
{
|
|
|
return (QDate::gregorianToJulian(y, m, d));
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QDate::month(QDate* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->month());
|
|
|
}
|
|
|
|
|
|
QString PythonQtWrapper_QDate::toString(QDate* theWrappedObject, Qt::DateFormat f) const
|
|
|
{
|
|
|
return ( theWrappedObject->toString(f));
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QDate::dayOfYear(QDate* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->dayOfYear());
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QDate::isNull(QDate* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->isNull());
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QDate::isValid(QDate* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->isValid());
|
|
|
}
|
|
|
|
|
|
QString PythonQtWrapper_QDate::toString(QDate* theWrappedObject, const QString& format) const
|
|
|
{
|
|
|
return ( theWrappedObject->toString(format));
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QDate::static_QDate_isLeapYear(int year)
|
|
|
{
|
|
|
return (QDate::isLeapYear(year));
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QDate::toJulianDay(QDate* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->toJulianDay());
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QDate::daysInMonth(QDate* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->daysInMonth());
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QDate::daysInYear(QDate* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->daysInYear());
|
|
|
}
|
|
|
|
|
|
QString PythonQtWrapper_QDate::static_QDate_longDayName(int weekday)
|
|
|
{
|
|
|
return (QDate::longDayName(weekday));
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QDate::setDate(QDate* theWrappedObject, int year, int month, int date)
|
|
|
{
|
|
|
return ( theWrappedObject->setDate(year, month, date));
|
|
|
}
|
|
|
|
|
|
|