##// END OF EJS Templates
added methods to qt namespace...
added methods to qt namespace git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@71 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r35:b8dce620ba5c
Show More
PythonQtWrapper_QDate.cpp
182 lines | 4.2 KiB | text/x-c | CppLexer
#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::addMonths(QDate* theWrappedObject, int months) const
{
return theWrappedObject->addMonths(months);
}
int PythonQtWrapper_QDate::month(QDate* theWrappedObject) const
{
return theWrappedObject->month();
}
void PythonQtWrapper_QDate::writeTo(QDate* theWrappedObject, QDataStream& arg__1)
{
arg__1 << (*theWrappedObject);
}
bool PythonQtWrapper_QDate::operator_equal(QDate* theWrappedObject, const QDate& other) const
{
return (*theWrappedObject)== other;
}
QDate PythonQtWrapper_QDate::addDays(QDate* theWrappedObject, int days) const
{
return theWrappedObject->addDays(days);
}
int PythonQtWrapper_QDate::dayOfYear(QDate* theWrappedObject) const
{
return theWrappedObject->dayOfYear();
}
int PythonQtWrapper_QDate::dayOfWeek(QDate* theWrappedObject) const
{
return theWrappedObject->dayOfWeek();
}
int PythonQtWrapper_QDate::daysInYear(QDate* theWrappedObject) const
{
return theWrappedObject->daysInYear();
}
QString PythonQtWrapper_QDate::static_QDate_shortDayName(int weekday)
{
return QDate::shortDayName(weekday);
}
int PythonQtWrapper_QDate::day(QDate* theWrappedObject) const
{
return theWrappedObject->day();
}
QDate PythonQtWrapper_QDate::static_QDate_fromString(const QString& s, Qt::DateFormat f)
{
return QDate::fromString(s, f);
}
QString PythonQtWrapper_QDate::static_QDate_shortMonthName(int month)
{
return QDate::shortMonthName(month);
}
QString PythonQtWrapper_QDate::toString(QDate* theWrappedObject, const QString& format) const
{
return theWrappedObject->toString(format);
}
QString PythonQtWrapper_QDate::toString(QDate* theWrappedObject, Qt::DateFormat f) const
{
return theWrappedObject->toString(f);
}
uint PythonQtWrapper_QDate::static_QDate_gregorianToJulian(int y, int m, int d)
{
return QDate::gregorianToJulian(y, m, d);
}
bool PythonQtWrapper_QDate::isValid(QDate* theWrappedObject) const
{
return theWrappedObject->isValid();
}
int PythonQtWrapper_QDate::year(QDate* theWrappedObject) const
{
return theWrappedObject->year();
}
int PythonQtWrapper_QDate::daysTo(QDate* theWrappedObject, const QDate& arg__1) const
{
return theWrappedObject->daysTo(arg__1);
}
bool PythonQtWrapper_QDate::isNull(QDate* theWrappedObject) const
{
return theWrappedObject->isNull();
}
bool PythonQtWrapper_QDate::setDate(QDate* theWrappedObject, int year, int month, int date)
{
return theWrappedObject->setDate(year, month, date);
}
bool PythonQtWrapper_QDate::static_QDate_isLeapYear(int year)
{
return QDate::isLeapYear(year);
}
QDate PythonQtWrapper_QDate::static_QDate_currentDate()
{
return QDate::currentDate();
}
bool PythonQtWrapper_QDate::operator_less(QDate* theWrappedObject, const QDate& other) const
{
return (*theWrappedObject)< other;
}
QDate PythonQtWrapper_QDate::static_QDate_fromString(const QString& s, const QString& format)
{
return QDate::fromString(s, format);
}
QString PythonQtWrapper_QDate::static_QDate_longMonthName(int month)
{
return QDate::longMonthName(month);
}
QDate PythonQtWrapper_QDate::addYears(QDate* theWrappedObject, int years) const
{
return theWrappedObject->addYears(years);
}
QDate PythonQtWrapper_QDate::static_QDate_fromJulianDay(int jd)
{
return QDate::fromJulianDay(jd);
}
bool PythonQtWrapper_QDate::static_QDate_isValid(int y, int m, int d)
{
return QDate::isValid(y, m, d);
}
int PythonQtWrapper_QDate::toJulianDay(QDate* theWrappedObject) const
{
return theWrappedObject->toJulianDay();
}
int PythonQtWrapper_QDate::weekNumber(QDate* theWrappedObject, int* yearNum) const
{
return theWrappedObject->weekNumber(yearNum);
}
int PythonQtWrapper_QDate::daysInMonth(QDate* theWrappedObject) const
{
return theWrappedObject->daysInMonth();
}
QString PythonQtWrapper_QDate::static_QDate_longDayName(int weekday)
{
return QDate::longDayName(weekday);
}
void PythonQtWrapper_QDate::readFrom(QDate* theWrappedObject, QDataStream& arg__1)
{
arg__1 >> (*theWrappedObject);
}