PythonQtWrapper_QDate.h
59 lines
| 2.4 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QDATE_H | ||
#define PYTHONQTWRAPPER_QDATE_H | ||||
#include <qdatetime.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qdatetime.h> | ||||
class PythonQtWrapper_QDate : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QDate* new_QDate(); | ||||
QDate* new_QDate(int y, int m, int d); | ||||
florianlink
|
r24 | QDate* new_QDate(const QDate& other) { | ||
QDate* a = new QDate(); | ||||
*((QDate*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QDate(QDate* obj) { delete obj; } | ||
florianlink
|
r28 | QDate addMonths(QDate* theWrappedObject, int months) const; | ||
florianlink
|
r24 | int month(QDate* theWrappedObject) const; | ||
florianlink
|
r28 | void writeTo(QDate* theWrappedObject, QDataStream& arg__1); | ||
bool operator_equal(QDate* theWrappedObject, const QDate& other) const; | ||||
QDate addDays(QDate* theWrappedObject, int days) const; | ||||
int dayOfYear(QDate* theWrappedObject) const; | ||||
int dayOfWeek(QDate* theWrappedObject) const; | ||||
int daysInYear(QDate* theWrappedObject) const; | ||||
florianlink
|
r24 | QString static_QDate_shortDayName(int weekday); | ||
florianlink
|
r28 | int day(QDate* theWrappedObject) const; | ||
QDate static_QDate_fromString(const QString& s, Qt::DateFormat f = Qt::TextDate); | ||||
florianlink
|
r24 | QString static_QDate_shortMonthName(int month); | ||
QString toString(QDate* theWrappedObject, const QString& format) const; | ||||
florianlink
|
r28 | QString toString(QDate* theWrappedObject, Qt::DateFormat f = Qt::TextDate) const; | ||
uint static_QDate_gregorianToJulian(int y, int m, int d); | ||||
bool isValid(QDate* theWrappedObject) const; | ||||
int year(QDate* theWrappedObject) const; | ||||
int daysTo(QDate* theWrappedObject, const QDate& arg__1) const; | ||||
bool isNull(QDate* theWrappedObject) const; | ||||
bool setDate(QDate* theWrappedObject, int year, int month, int date); | ||||
florianlink
|
r24 | bool static_QDate_isLeapYear(int year); | ||
florianlink
|
r13 | QDate static_QDate_currentDate(); | ||
bool operator_less(QDate* theWrappedObject, const QDate& other) const; | ||||
florianlink
|
r28 | QDate static_QDate_fromString(const QString& s, const QString& format); | ||
QString static_QDate_longMonthName(int month); | ||||
florianlink
|
r24 | QDate addYears(QDate* theWrappedObject, int years) const; | ||
florianlink
|
r28 | QDate static_QDate_fromJulianDay(int jd); | ||
bool static_QDate_isValid(int y, int m, int d); | ||||
int toJulianDay(QDate* theWrappedObject) const; | ||||
int weekNumber(QDate* theWrappedObject, int* yearNum = 0) const; | ||||
florianlink
|
r24 | int daysInMonth(QDate* theWrappedObject) const; | ||
florianlink
|
r28 | QString static_QDate_longDayName(int weekday); | ||
void readFrom(QDate* theWrappedObject, QDataStream& arg__1); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QDATE_H | ||||