2024-08-29 07:01:51 +00:00
|
|
|
#include <QAbstractButton>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QList>
|
|
|
|
#include <QMetaObject>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QPixmap>
|
2024-08-25 04:08:24 +00:00
|
|
|
#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 <QVariant>
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QWizard>
|
|
|
|
#include <QWizardPage>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qwizard.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qwizard.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QWizard* QWizard_new() {
|
|
|
|
return new QWizard();
|
|
|
|
}
|
|
|
|
|
|
|
|
QWizard* QWizard_new2(QWidget* parent) {
|
|
|
|
return new QWizard(parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QWizard* QWizard_new3(QWidget* parent, int flags) {
|
|
|
|
return new QWizard(parent, static_cast<Qt::WindowFlags>(flags));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QWizard_MetaObject(const QWizard* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QWizard_Metacast(QWizard* self, const char* param1) {
|
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizard_Tr(const char* s) {
|
|
|
|
QString _ret = QWizard::tr(s);
|
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
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizard_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QWizard::trUtf8(s);
|
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
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QWizard_AddPage(QWizard* self, QWizardPage* page) {
|
|
|
|
return self->addPage(page);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWizard_SetPage(QWizard* self, int id, QWizardPage* page) {
|
|
|
|
self->setPage(static_cast<int>(id), page);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWizard_RemovePage(QWizard* self, int id) {
|
|
|
|
self->removePage(static_cast<int>(id));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QWizardPage* QWizard_Page(const QWizard* self, int id) {
|
|
|
|
return self->page(static_cast<int>(id));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QWizard_HasVisitedPage(const QWizard* self, int id) {
|
|
|
|
return self->hasVisitedPage(static_cast<int>(id));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QWizard_VisitedPages(const QWizard* self) {
|
|
|
|
QList<int> _ret = self->visitedPages();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
int* _arr = static_cast<int*>(malloc(sizeof(int) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QWizard_VisitedIds(const QWizard* self) {
|
|
|
|
QList<int> _ret = self->visitedIds();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
int* _arr = static_cast<int*>(malloc(sizeof(int) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QWizard_PageIds(const QWizard* self) {
|
|
|
|
QList<int> _ret = self->pageIds();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
int* _arr = static_cast<int*>(malloc(sizeof(int) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
|
|
|
|
_out->len = _ret.length();
|
|
|
|
_out->data = static_cast<void*>(_arr);
|
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWizard_SetStartId(QWizard* self, int id) {
|
|
|
|
self->setStartId(static_cast<int>(id));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWizard_StartId(const QWizard* self) {
|
|
|
|
return self->startId();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QWizardPage* QWizard_CurrentPage(const QWizard* self) {
|
|
|
|
return self->currentPage();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWizard_CurrentId(const QWizard* self) {
|
|
|
|
return self->currentId();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QWizard_ValidateCurrentPage(QWizard* self) {
|
|
|
|
return self->validateCurrentPage();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWizard_NextId(const QWizard* self) {
|
|
|
|
return self->nextId();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QWizard_SetField(QWizard* self, struct miqt_string* name, QVariant* value) {
|
|
|
|
QString name_QString = QString::fromUtf8(&name->data, name->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setField(name_QString, *value);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QVariant* QWizard_Field(const QWizard* self, struct miqt_string* name) {
|
|
|
|
QString name_QString = QString::fromUtf8(&name->data, name->len);
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QVariant(self->field(name_QString));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWizard_SetWizardStyle(QWizard* self, int style) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setWizardStyle(static_cast<QWizard::WizardStyle>(style));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QWizard_WizardStyle(const QWizard* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QWizard::WizardStyle _ret = self->wizardStyle();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWizard_SetOption(QWizard* self, int option) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setOption(static_cast<QWizard::WizardOption>(option));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
bool QWizard_TestOption(const QWizard* self, int option) {
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->testOption(static_cast<QWizard::WizardOption>(option));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWizard_SetOptions(QWizard* self, int options) {
|
|
|
|
self->setOptions(static_cast<QWizard::WizardOptions>(options));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWizard_Options(const QWizard* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QWizard::WizardOptions _ret = self->options();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QWizard_SetButtonText(QWizard* self, int which, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setButtonText(static_cast<QWizard::WizardButton>(which), text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizard_ButtonText(const QWizard* self, int which) {
|
|
|
|
QString _ret = self->buttonText(static_cast<QWizard::WizardButton>(which));
|
2024-08-29 07:01:51 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QWizard_SetButtonLayout(QWizard* self, struct miqt_array* /* of int */ layout) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QList<QWizard::WizardButton> layout_QList;
|
2024-09-14 22:29:05 +00:00
|
|
|
layout_QList.reserve(layout->len);
|
|
|
|
int* layout_arr = static_cast<int*>(layout->data);
|
|
|
|
for(size_t i = 0; i < layout->len; ++i) {
|
|
|
|
layout_QList.push_back(static_cast<QWizard::WizardButton>(layout_arr[i]));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
self->setButtonLayout(layout_QList);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWizard_SetButton(QWizard* self, int which, QAbstractButton* button) {
|
|
|
|
self->setButton(static_cast<QWizard::WizardButton>(which), button);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QAbstractButton* QWizard_Button(const QWizard* self, int which) {
|
|
|
|
return self->button(static_cast<QWizard::WizardButton>(which));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWizard_SetTitleFormat(QWizard* self, int format) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setTitleFormat(static_cast<Qt::TextFormat>(format));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QWizard_TitleFormat(const QWizard* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::TextFormat _ret = self->titleFormat();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWizard_SetSubTitleFormat(QWizard* self, int format) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setSubTitleFormat(static_cast<Qt::TextFormat>(format));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QWizard_SubTitleFormat(const QWizard* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::TextFormat _ret = self->subTitleFormat();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWizard_SetPixmap(QWizard* self, int which, QPixmap* pixmap) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setPixmap(static_cast<QWizard::WizardPixmap>(which), *pixmap);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QPixmap* QWizard_Pixmap(const QWizard* self, int which) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPixmap(self->pixmap(static_cast<QWizard::WizardPixmap>(which)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWizard_SetSideWidget(QWizard* self, QWidget* widget) {
|
|
|
|
self->setSideWidget(widget);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QWidget* QWizard_SideWidget(const QWizard* self) {
|
|
|
|
return self->sideWidget();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QWizard_SetDefaultProperty(QWizard* self, const char* className, const char* property, const char* changedSignal) {
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setDefaultProperty(className, property, changedSignal);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWizard_SetVisible(QWizard* self, bool visible) {
|
|
|
|
self->setVisible(visible);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QWizard_SizeHint(const QWizard* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSize(self->sizeHint());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWizard_CurrentIdChanged(QWizard* self, int id) {
|
|
|
|
self->currentIdChanged(static_cast<int>(id));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWizard_connect_CurrentIdChanged(QWizard* self, intptr_t slot) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QWizard::connect(self, static_cast<void (QWizard::*)(int)>(&QWizard::currentIdChanged), self, [=](int id) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = id;
|
|
|
|
miqt_exec_callback_QWizard_CurrentIdChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWizard_HelpRequested(QWizard* self) {
|
|
|
|
self->helpRequested();
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWizard_connect_HelpRequested(QWizard* self, intptr_t slot) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QWizard::connect(self, static_cast<void (QWizard::*)()>(&QWizard::helpRequested), self, [=]() {
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QWizard_HelpRequested(slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWizard_CustomButtonClicked(QWizard* self, int which) {
|
|
|
|
self->customButtonClicked(static_cast<int>(which));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWizard_connect_CustomButtonClicked(QWizard* self, intptr_t slot) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QWizard::connect(self, static_cast<void (QWizard::*)(int)>(&QWizard::customButtonClicked), self, [=](int which) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = which;
|
|
|
|
miqt_exec_callback_QWizard_CustomButtonClicked(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWizard_PageAdded(QWizard* self, int id) {
|
|
|
|
self->pageAdded(static_cast<int>(id));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWizard_connect_PageAdded(QWizard* self, intptr_t slot) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QWizard::connect(self, static_cast<void (QWizard::*)(int)>(&QWizard::pageAdded), self, [=](int id) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = id;
|
|
|
|
miqt_exec_callback_QWizard_PageAdded(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWizard_PageRemoved(QWizard* self, int id) {
|
|
|
|
self->pageRemoved(static_cast<int>(id));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWizard_connect_PageRemoved(QWizard* self, intptr_t slot) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QWizard::connect(self, static_cast<void (QWizard::*)(int)>(&QWizard::pageRemoved), self, [=](int id) {
|
2024-09-14 22:29:05 +00:00
|
|
|
int sigval1 = id;
|
|
|
|
miqt_exec_callback_QWizard_PageRemoved(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWizard_Back(QWizard* self) {
|
|
|
|
self->back();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWizard_Next(QWizard* self) {
|
|
|
|
self->next();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWizard_Restart(QWizard* self) {
|
|
|
|
self->restart();
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizard_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QWizard::tr(s, c);
|
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
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizard_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QWizard::tr(s, c, static_cast<int>(n));
|
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
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizard_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QWizard::trUtf8(s, c);
|
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
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizard_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QWizard::trUtf8(s, c, static_cast<int>(n));
|
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
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWizard_SetOption2(QWizard* self, int option, bool on) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setOption(static_cast<QWizard::WizardOption>(option), on);
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWizard_Delete(QWizard* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QWizardPage* QWizardPage_new() {
|
|
|
|
return new QWizardPage();
|
|
|
|
}
|
|
|
|
|
|
|
|
QWizardPage* QWizardPage_new2(QWidget* parent) {
|
|
|
|
return new QWizardPage(parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QWizardPage_MetaObject(const QWizardPage* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QWizardPage_Metacast(QWizardPage* self, const char* param1) {
|
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizardPage_Tr(const char* s) {
|
|
|
|
QString _ret = QWizardPage::tr(s);
|
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
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizardPage_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QWizardPage::trUtf8(s);
|
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
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QWizardPage_SetTitle(QWizardPage* self, struct miqt_string* title) {
|
|
|
|
QString title_QString = QString::fromUtf8(&title->data, title->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setTitle(title_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizardPage_Title(const QWizardPage* self) {
|
|
|
|
QString _ret = self->title();
|
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
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QWizardPage_SetSubTitle(QWizardPage* self, struct miqt_string* subTitle) {
|
|
|
|
QString subTitle_QString = QString::fromUtf8(&subTitle->data, subTitle->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setSubTitle(subTitle_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizardPage_SubTitle(const QWizardPage* self) {
|
|
|
|
QString _ret = self->subTitle();
|
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
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QWizardPage_SetPixmap(QWizardPage* self, int which, QPixmap* pixmap) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setPixmap(static_cast<QWizard::WizardPixmap>(which), *pixmap);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QPixmap* QWizardPage_Pixmap(const QWizardPage* self, int which) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPixmap(self->pixmap(static_cast<QWizard::WizardPixmap>(which)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QWizardPage_SetFinalPage(QWizardPage* self, bool finalPage) {
|
|
|
|
self->setFinalPage(finalPage);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QWizardPage_IsFinalPage(const QWizardPage* self) {
|
|
|
|
return self->isFinalPage();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWizardPage_SetCommitPage(QWizardPage* self, bool commitPage) {
|
|
|
|
self->setCommitPage(commitPage);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QWizardPage_IsCommitPage(const QWizardPage* self) {
|
|
|
|
return self->isCommitPage();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QWizardPage_SetButtonText(QWizardPage* self, int which, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setButtonText(static_cast<QWizard::WizardButton>(which), text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizardPage_ButtonText(const QWizardPage* self, int which) {
|
|
|
|
QString _ret = self->buttonText(static_cast<QWizard::WizardButton>(which));
|
2024-08-29 07:01:51 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWizardPage_InitializePage(QWizardPage* self) {
|
|
|
|
self->initializePage();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QWizardPage_CleanupPage(QWizardPage* self) {
|
|
|
|
self->cleanupPage();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QWizardPage_ValidatePage(QWizardPage* self) {
|
|
|
|
return self->validatePage();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QWizardPage_IsComplete(const QWizardPage* self) {
|
|
|
|
return self->isComplete();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QWizardPage_NextId(const QWizardPage* self) {
|
|
|
|
return self->nextId();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWizardPage_CompleteChanged(QWizardPage* self) {
|
|
|
|
self->completeChanged();
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QWizardPage_connect_CompleteChanged(QWizardPage* self, intptr_t slot) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QWizardPage::connect(self, static_cast<void (QWizardPage::*)()>(&QWizardPage::completeChanged), self, [=]() {
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QWizardPage_CompleteChanged(slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizardPage_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QWizardPage::tr(s, c);
|
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
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizardPage_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QWizardPage::tr(s, c, static_cast<int>(n));
|
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
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizardPage_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QWizardPage::trUtf8(s, c);
|
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
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QWizardPage_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QWizardPage::trUtf8(s, c, static_cast<int>(n));
|
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
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QWizardPage_Delete(QWizardPage* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|