PythonQtWrapper_QLocale.cpp
273 lines
| 8.1 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QLocale.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QDate> | ||
#include <QVariant> | ||||
#include <qdatastream.h> | ||||
#include <qdatetime.h> | ||||
#include <qlist.h> | ||||
#include <qlocale.h> | ||||
QLocale* PythonQtWrapper_QLocale::new_QLocale() | ||||
{ | ||||
return new QLocale(); } | ||||
QLocale* PythonQtWrapper_QLocale::new_QLocale(QLocale::Language language, QLocale::Country country) | ||||
{ | ||||
return new QLocale(language, country); } | ||||
QLocale* PythonQtWrapper_QLocale::new_QLocale(const QLocale& other) | ||||
{ | ||||
return new QLocale(other); } | ||||
QLocale* PythonQtWrapper_QLocale::new_QLocale(const QString& name) | ||||
{ | ||||
return new QLocale(name); } | ||||
florianlink
|
r73 | QChar PythonQtWrapper_QLocale::groupSeparator(QLocale* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->groupSeparator()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | float PythonQtWrapper_QLocale::toFloat(QLocale* theWrappedObject, const QString& s, bool* ok) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toFloat(s, ok)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | ushort PythonQtWrapper_QLocale::toUShort(QLocale* theWrappedObject, const QString& s, bool* ok, int base) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toUShort(s, ok, base)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QDateTime PythonQtWrapper_QLocale::toDateTime(QLocale* theWrappedObject, const QString& string, const QString& format) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toDateTime(string, format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, float i, char f, int prec) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toString(i, f, prec)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QLocale::writeTo(QLocale* theWrappedObject, QDataStream& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | arg__1 << (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTime PythonQtWrapper_QLocale::toTime(QLocale* theWrappedObject, const QString& string, const QString& format) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toTime(string, format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QDateTime PythonQtWrapper_QLocale::toDateTime(QLocale* theWrappedObject, const QString& string, QLocale::FormatType format) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toDateTime(string, format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QLocale::operator_equal(QLocale* theWrappedObject, const QLocale& other) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( (*theWrappedObject)== other); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, short i) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toString(i)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QLocale::NumberOptions PythonQtWrapper_QLocale::numberOptions(QLocale* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->numberOptions()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | short PythonQtWrapper_QLocale::toShort(QLocale* theWrappedObject, const QString& s, bool* ok, int base) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toShort(s, ok, base)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTime PythonQtWrapper_QLocale::toTime(QLocale* theWrappedObject, const QString& string, QLocale::FormatType arg__2) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toTime(string, arg__2)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QString PythonQtWrapper_QLocale::static_QLocale_countryToString(QLocale::Country country) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QLocale::countryToString(country)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QChar PythonQtWrapper_QLocale::zeroDigit(QLocale* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->zeroDigit()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QDate PythonQtWrapper_QLocale::toDate(QLocale* theWrappedObject, const QString& string, QLocale::FormatType arg__2) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toDate(string, arg__2)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::dayName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->dayName(arg__1, format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, double i, char f, int prec) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toString(i, f, prec)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::dateFormat(QLocale* theWrappedObject, QLocale::FormatType format) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->dateFormat(format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QLocale::Language PythonQtWrapper_QLocale::language(QLocale* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->language()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QTime& time, const QString& formatStr) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toString(time, formatStr)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QLocale PythonQtWrapper_QLocale::static_QLocale_c() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QLocale::c()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QDateTime& dateTime, QLocale::FormatType format) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toString(dateTime, format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QChar PythonQtWrapper_QLocale::negativeSign(QLocale* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->negativeSign()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | double PythonQtWrapper_QLocale::toDouble(QLocale* theWrappedObject, const QString& s, bool* ok) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toDouble(s, ok)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QLocale::readFrom(QLocale* theWrappedObject, QDataStream& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | arg__1 >> (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::dateTimeFormat(QLocale* theWrappedObject, QLocale::FormatType format) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->dateTimeFormat(format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QLocale PythonQtWrapper_QLocale::static_QLocale_system() | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QLocale::system()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::monthName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->monthName(arg__1, format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::name(QLocale* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->name()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QLocale::setNumberOptions(QLocale* theWrappedObject, QLocale::NumberOptions options) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setNumberOptions(options)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, qulonglong i) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toString(i)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QChar PythonQtWrapper_QLocale::decimalPoint(QLocale* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->decimalPoint()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QLocale::static_QLocale_setDefault(const QLocale& locale) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | (QLocale::setDefault(locale)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QLocale::toInt(QLocale* theWrappedObject, const QString& s, bool* ok, int base) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toInt(s, ok, base)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QDate& date, const QString& formatStr) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toString(date, formatStr)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QList<QLocale::Country > PythonQtWrapper_QLocale::static_QLocale_countriesForLanguage(QLocale::Language lang) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QLocale::countriesForLanguage(lang)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QLocale::Country PythonQtWrapper_QLocale::country(QLocale* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->country()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QDate& date, QLocale::FormatType format) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toString(date, format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QChar PythonQtWrapper_QLocale::exponential(QLocale* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->exponential()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QTime& time, QLocale::FormatType format) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toString(time, format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QDateTime& dateTime, const QString& format) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toString(dateTime, format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QDate PythonQtWrapper_QLocale::toDate(QLocale* theWrappedObject, const QString& string, const QString& format) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toDate(string, format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::static_QLocale_languageToString(QLocale::Language language) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QLocale::languageToString(language)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QLocale::MeasurementSystem PythonQtWrapper_QLocale::measurementSystem(QLocale* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->measurementSystem()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QChar PythonQtWrapper_QLocale::percent(QLocale* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->percent()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QLocale::timeFormat(QLocale* theWrappedObject, QLocale::FormatType format) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->timeFormat(format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | qlonglong PythonQtWrapper_QLocale::toLongLong(QLocale* theWrappedObject, const QString& s, bool* ok, int base) const | ||
{ | ||||
return ( theWrappedObject->toLongLong(s, ok, base)); | ||||
} | ||||
QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, int i) const | ||||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toString(i)); | ||
florianlink
|
r13 | } | ||