2024-08-25 04:08:24 +00:00
|
|
|
#include <QCalendar>
|
|
|
|
#include <QCalendarWidget>
|
|
|
|
#include <QDate>
|
|
|
|
#include <QDateEdit>
|
|
|
|
#include <QDateTime>
|
|
|
|
#include <QDateTimeEdit>
|
|
|
|
#include <QEvent>
|
|
|
|
#include <QMetaObject>
|
|
|
|
#include <QSize>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QTime>
|
|
|
|
#include <QTimeEdit>
|
|
|
|
#include <QWidget>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qdatetimeedit.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qdatetimeedit.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTimeEdit* QDateTimeEdit_new() {
|
|
|
|
return new QDateTimeEdit();
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTimeEdit* QDateTimeEdit_new2(QDateTime* dt) {
|
|
|
|
return new QDateTimeEdit(*dt);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTimeEdit* QDateTimeEdit_new3(QDate* d) {
|
|
|
|
return new QDateTimeEdit(*d);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTimeEdit* QDateTimeEdit_new4(QTime* t) {
|
|
|
|
return new QDateTimeEdit(*t);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTimeEdit* QDateTimeEdit_new5(QWidget* parent) {
|
|
|
|
return new QDateTimeEdit(parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTimeEdit* QDateTimeEdit_new6(QDateTime* dt, QWidget* parent) {
|
|
|
|
return new QDateTimeEdit(*dt, parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTimeEdit* QDateTimeEdit_new7(QDate* d, QWidget* parent) {
|
|
|
|
return new QDateTimeEdit(*d, parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTimeEdit* QDateTimeEdit_new8(QTime* t, QWidget* parent) {
|
|
|
|
return new QDateTimeEdit(*t, parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QMetaObject* QDateTimeEdit_MetaObject(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return (QMetaObject*) const_cast<const QDateTimeEdit*>(self)->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDateTimeEdit_Tr(const char* s, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QDateTimeEdit::tr(s);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDateTimeEdit_TrUtf8(const char* s, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QDateTimeEdit::trUtf8(s);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTime* QDateTimeEdit_DateTime(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QDateTime ret = const_cast<const QDateTimeEdit*>(self)->dateTime();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QDateTime*>(new QDateTime(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
QDate* QDateTimeEdit_Date(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QDate ret = const_cast<const QDateTimeEdit*>(self)->date();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QDate*>(new QDate(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
QTime* QDateTimeEdit_Time(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QTime ret = const_cast<const QDateTimeEdit*>(self)->time();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QTime*>(new QTime(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
QCalendar* QDateTimeEdit_Calendar(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QCalendar ret = const_cast<const QDateTimeEdit*>(self)->calendar();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QCalendar*>(new QCalendar(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetCalendar(QDateTimeEdit* self, QCalendar* calendar) {
|
|
|
|
self->setCalendar(*calendar);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTime* QDateTimeEdit_MinimumDateTime(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QDateTime ret = const_cast<const QDateTimeEdit*>(self)->minimumDateTime();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QDateTime*>(new QDateTime(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_ClearMinimumDateTime(QDateTimeEdit* self) {
|
|
|
|
self->clearMinimumDateTime();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetMinimumDateTime(QDateTimeEdit* self, QDateTime* dt) {
|
|
|
|
self->setMinimumDateTime(*dt);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateTime* QDateTimeEdit_MaximumDateTime(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QDateTime ret = const_cast<const QDateTimeEdit*>(self)->maximumDateTime();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QDateTime*>(new QDateTime(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_ClearMaximumDateTime(QDateTimeEdit* self) {
|
|
|
|
self->clearMaximumDateTime();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetMaximumDateTime(QDateTimeEdit* self, QDateTime* dt) {
|
|
|
|
self->setMaximumDateTime(*dt);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetDateTimeRange(QDateTimeEdit* self, QDateTime* min, QDateTime* max) {
|
|
|
|
self->setDateTimeRange(*min, *max);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDate* QDateTimeEdit_MinimumDate(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QDate ret = const_cast<const QDateTimeEdit*>(self)->minimumDate();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QDate*>(new QDate(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetMinimumDate(QDateTimeEdit* self, QDate* min) {
|
|
|
|
self->setMinimumDate(*min);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_ClearMinimumDate(QDateTimeEdit* self) {
|
|
|
|
self->clearMinimumDate();
|
|
|
|
}
|
|
|
|
|
|
|
|
QDate* QDateTimeEdit_MaximumDate(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QDate ret = const_cast<const QDateTimeEdit*>(self)->maximumDate();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QDate*>(new QDate(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetMaximumDate(QDateTimeEdit* self, QDate* max) {
|
|
|
|
self->setMaximumDate(*max);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_ClearMaximumDate(QDateTimeEdit* self) {
|
|
|
|
self->clearMaximumDate();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetDateRange(QDateTimeEdit* self, QDate* min, QDate* max) {
|
|
|
|
self->setDateRange(*min, *max);
|
|
|
|
}
|
|
|
|
|
|
|
|
QTime* QDateTimeEdit_MinimumTime(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QTime ret = const_cast<const QDateTimeEdit*>(self)->minimumTime();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QTime*>(new QTime(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetMinimumTime(QDateTimeEdit* self, QTime* min) {
|
|
|
|
self->setMinimumTime(*min);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_ClearMinimumTime(QDateTimeEdit* self) {
|
|
|
|
self->clearMinimumTime();
|
|
|
|
}
|
|
|
|
|
|
|
|
QTime* QDateTimeEdit_MaximumTime(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QTime ret = const_cast<const QDateTimeEdit*>(self)->maximumTime();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QTime*>(new QTime(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetMaximumTime(QDateTimeEdit* self, QTime* max) {
|
|
|
|
self->setMaximumTime(*max);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_ClearMaximumTime(QDateTimeEdit* self) {
|
|
|
|
self->clearMaximumTime();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetTimeRange(QDateTimeEdit* self, QTime* min, QTime* max) {
|
|
|
|
self->setTimeRange(*min, *max);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
int QDateTimeEdit_DisplayedSections(QDateTimeEdit* self) {
|
|
|
|
QDateTimeEdit::Sections ret = const_cast<const QDateTimeEdit*>(self)->displayedSections();
|
|
|
|
return static_cast<int>(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
uintptr_t QDateTimeEdit_CurrentSection(QDateTimeEdit* self) {
|
|
|
|
QDateTimeEdit::Section ret = const_cast<const QDateTimeEdit*>(self)->currentSection();
|
|
|
|
return static_cast<uintptr_t>(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
uintptr_t QDateTimeEdit_SectionAt(QDateTimeEdit* self, int index) {
|
|
|
|
QDateTimeEdit::Section ret = const_cast<const QDateTimeEdit*>(self)->sectionAt(static_cast<int>(index));
|
|
|
|
return static_cast<uintptr_t>(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetCurrentSection(QDateTimeEdit* self, uintptr_t section) {
|
|
|
|
self->setCurrentSection(static_cast<QDateTimeEdit::Section>(section));
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
int QDateTimeEdit_CurrentSectionIndex(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QDateTimeEdit*>(self)->currentSectionIndex();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetCurrentSectionIndex(QDateTimeEdit* self, int index) {
|
|
|
|
self->setCurrentSectionIndex(static_cast<int>(index));
|
|
|
|
}
|
|
|
|
|
|
|
|
QCalendarWidget* QDateTimeEdit_CalendarWidget(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QDateTimeEdit*>(self)->calendarWidget();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetCalendarWidget(QDateTimeEdit* self, QCalendarWidget* calendarWidget) {
|
|
|
|
self->setCalendarWidget(calendarWidget);
|
|
|
|
}
|
|
|
|
|
|
|
|
int QDateTimeEdit_SectionCount(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QDateTimeEdit*>(self)->sectionCount();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetSelectedSection(QDateTimeEdit* self, uintptr_t section) {
|
|
|
|
self->setSelectedSection(static_cast<QDateTimeEdit::Section>(section));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SectionText(QDateTimeEdit* self, uintptr_t section, char** _out, int* _out_Strlen) {
|
|
|
|
QString ret = const_cast<const QDateTimeEdit*>(self)->sectionText(static_cast<QDateTimeEdit::Section>(section));
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_DisplayFormat(QDateTimeEdit* self, char** _out, int* _out_Strlen) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QString ret = const_cast<const QDateTimeEdit*>(self)->displayFormat();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetDisplayFormat(QDateTimeEdit* self, const char* format, size_t format_Strlen) {
|
|
|
|
QString format_QString = QString::fromUtf8(format, format_Strlen);
|
|
|
|
self->setDisplayFormat(format_QString);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QDateTimeEdit_CalendarPopup(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QDateTimeEdit*>(self)->calendarPopup();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetCalendarPopup(QDateTimeEdit* self, bool enable) {
|
|
|
|
self->setCalendarPopup(enable);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
uintptr_t QDateTimeEdit_TimeSpec(QDateTimeEdit* self) {
|
|
|
|
Qt::TimeSpec ret = const_cast<const QDateTimeEdit*>(self)->timeSpec();
|
|
|
|
return static_cast<uintptr_t>(ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetTimeSpec(QDateTimeEdit* self, uintptr_t spec) {
|
|
|
|
self->setTimeSpec(static_cast<Qt::TimeSpec>(spec));
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
QSize* QDateTimeEdit_SizeHint(QDateTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QSize ret = const_cast<const QDateTimeEdit*>(self)->sizeHint();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QSize*>(new QSize(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_Clear(QDateTimeEdit* self) {
|
|
|
|
self->clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_StepBy(QDateTimeEdit* self, int steps) {
|
|
|
|
self->stepBy(static_cast<int>(steps));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QDateTimeEdit_Event(QDateTimeEdit* self, QEvent* event) {
|
|
|
|
return self->event(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_DateTimeChanged(QDateTimeEdit* self, QDateTime* dateTime) {
|
|
|
|
self->dateTimeChanged(*dateTime);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_connect_DateTimeChanged(QDateTimeEdit* self, void* slot) {
|
|
|
|
QDateTimeEdit::connect(self, static_cast<void (QDateTimeEdit::*)(const QDateTime&)>(&QDateTimeEdit::dateTimeChanged), self, [=](const QDateTime& dateTime) {
|
|
|
|
miqt_exec_callback(slot, 0, nullptr);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_TimeChanged(QDateTimeEdit* self, QTime* time) {
|
|
|
|
self->timeChanged(*time);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_connect_TimeChanged(QDateTimeEdit* self, void* slot) {
|
|
|
|
QDateTimeEdit::connect(self, static_cast<void (QDateTimeEdit::*)(const QTime&)>(&QDateTimeEdit::timeChanged), self, [=](const QTime& time) {
|
|
|
|
miqt_exec_callback(slot, 0, nullptr);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_DateChanged(QDateTimeEdit* self, QDate* date) {
|
|
|
|
self->dateChanged(*date);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_connect_DateChanged(QDateTimeEdit* self, void* slot) {
|
|
|
|
QDateTimeEdit::connect(self, static_cast<void (QDateTimeEdit::*)(const QDate&)>(&QDateTimeEdit::dateChanged), self, [=](const QDate& date) {
|
|
|
|
miqt_exec_callback(slot, 0, nullptr);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetDateTime(QDateTimeEdit* self, QDateTime* dateTime) {
|
|
|
|
self->setDateTime(*dateTime);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetDate(QDateTimeEdit* self, QDate* date) {
|
|
|
|
self->setDate(*date);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_SetTime(QDateTimeEdit* self, QTime* time) {
|
|
|
|
self->setTime(*time);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDateTimeEdit_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QDateTimeEdit::tr(s, c);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDateTimeEdit_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QDateTimeEdit::tr(s, c, static_cast<int>(n));
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDateTimeEdit_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QDateTimeEdit::trUtf8(s, c);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDateTimeEdit_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QDateTimeEdit::trUtf8(s, c, static_cast<int>(n));
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateTimeEdit_Delete(QDateTimeEdit* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTimeEdit* QTimeEdit_new() {
|
|
|
|
return new QTimeEdit();
|
|
|
|
}
|
|
|
|
|
|
|
|
QTimeEdit* QTimeEdit_new2(QTime* time) {
|
|
|
|
return new QTimeEdit(*time);
|
|
|
|
}
|
|
|
|
|
|
|
|
QTimeEdit* QTimeEdit_new3(QWidget* parent) {
|
|
|
|
return new QTimeEdit(parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QTimeEdit* QTimeEdit_new4(QTime* time, QWidget* parent) {
|
|
|
|
return new QTimeEdit(*time, parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QMetaObject* QTimeEdit_MetaObject(QTimeEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return (QMetaObject*) const_cast<const QTimeEdit*>(self)->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTimeEdit_Tr(const char* s, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QTimeEdit::tr(s);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTimeEdit_TrUtf8(const char* s, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QTimeEdit::trUtf8(s);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTimeEdit_UserTimeChanged(QTimeEdit* self, QTime* time) {
|
|
|
|
self->userTimeChanged(*time);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTimeEdit_connect_UserTimeChanged(QTimeEdit* self, void* slot) {
|
|
|
|
QTimeEdit::connect(self, static_cast<void (QTimeEdit::*)(const QTime&)>(&QTimeEdit::userTimeChanged), self, [=](const QTime& time) {
|
|
|
|
miqt_exec_callback(slot, 0, nullptr);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTimeEdit_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QTimeEdit::tr(s, c);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTimeEdit_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QTimeEdit::tr(s, c, static_cast<int>(n));
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTimeEdit_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QTimeEdit::trUtf8(s, c);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTimeEdit_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QTimeEdit::trUtf8(s, c, static_cast<int>(n));
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTimeEdit_Delete(QTimeEdit* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateEdit* QDateEdit_new() {
|
|
|
|
return new QDateEdit();
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateEdit* QDateEdit_new2(QDate* date) {
|
|
|
|
return new QDateEdit(*date);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateEdit* QDateEdit_new3(QWidget* parent) {
|
|
|
|
return new QDateEdit(parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDateEdit* QDateEdit_new4(QDate* date, QWidget* parent) {
|
|
|
|
return new QDateEdit(*date, parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QMetaObject* QDateEdit_MetaObject(QDateEdit* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return (QMetaObject*) const_cast<const QDateEdit*>(self)->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDateEdit_Tr(const char* s, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QDateEdit::tr(s);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDateEdit_TrUtf8(const char* s, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QDateEdit::trUtf8(s);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateEdit_UserDateChanged(QDateEdit* self, QDate* date) {
|
|
|
|
self->userDateChanged(*date);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateEdit_connect_UserDateChanged(QDateEdit* self, void* slot) {
|
|
|
|
QDateEdit::connect(self, static_cast<void (QDateEdit::*)(const QDate&)>(&QDateEdit::userDateChanged), self, [=](const QDate& date) {
|
|
|
|
miqt_exec_callback(slot, 0, nullptr);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDateEdit_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QDateEdit::tr(s, c);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDateEdit_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QDateEdit::tr(s, c, static_cast<int>(n));
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDateEdit_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QDateEdit::trUtf8(s, c);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDateEdit_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString ret = QDateEdit::trUtf8(s, c, static_cast<int>(n));
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QDateEdit_Delete(QDateEdit* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|