#include #include #include #include #include #include #include #include #include #include #include #include "qmessagebox.h" #include "gen_qmessagebox.h" #include "_cgo_export.h" QMessageBox* QMessageBox_new() { return new QMessageBox(); } QMessageBox* QMessageBox_new2(uintptr_t icon, struct miqt_string* title, struct miqt_string* text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return new QMessageBox(static_cast(icon), title_QString, text_QString); } QMessageBox* QMessageBox_new3(struct miqt_string* title, struct miqt_string* text, uintptr_t icon, int button0, int button1, int button2) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return new QMessageBox(title_QString, text_QString, static_cast(icon), static_cast(button0), static_cast(button1), static_cast(button2)); } QMessageBox* QMessageBox_new4(QWidget* parent) { return new QMessageBox(parent); } QMessageBox* QMessageBox_new5(uintptr_t icon, struct miqt_string* title, struct miqt_string* text, int buttons) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return new QMessageBox(static_cast(icon), title_QString, text_QString, static_cast(buttons)); } QMessageBox* QMessageBox_new6(uintptr_t icon, struct miqt_string* title, struct miqt_string* text, int buttons, QWidget* parent) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return new QMessageBox(static_cast(icon), title_QString, text_QString, static_cast(buttons), parent); } QMessageBox* QMessageBox_new7(uintptr_t icon, struct miqt_string* title, struct miqt_string* text, int buttons, QWidget* parent, int flags) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return new QMessageBox(static_cast(icon), title_QString, text_QString, static_cast(buttons), parent, static_cast(flags)); } QMessageBox* QMessageBox_new8(struct miqt_string* title, struct miqt_string* text, uintptr_t icon, int button0, int button1, int button2, QWidget* parent) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return new QMessageBox(title_QString, text_QString, static_cast(icon), static_cast(button0), static_cast(button1), static_cast(button2), parent); } QMessageBox* QMessageBox_new9(struct miqt_string* title, struct miqt_string* text, uintptr_t icon, int button0, int button1, int button2, QWidget* parent, int f) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return new QMessageBox(title_QString, text_QString, static_cast(icon), static_cast(button0), static_cast(button1), static_cast(button2), parent, static_cast(f)); } QMetaObject* QMessageBox_MetaObject(const QMessageBox* self) { return (QMetaObject*) self->metaObject(); } struct miqt_string* QMessageBox_Tr(const char* s) { QString _ret = QMessageBox::tr(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); return miqt_strdup(_b.data(), _b.length()); } struct miqt_string* QMessageBox_TrUtf8(const char* s) { QString _ret = QMessageBox::trUtf8(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); return miqt_strdup(_b.data(), _b.length()); } void QMessageBox_AddButton(QMessageBox* self, QAbstractButton* button, uintptr_t role) { self->addButton(button, static_cast(role)); } QPushButton* QMessageBox_AddButton2(QMessageBox* self, struct miqt_string* text, uintptr_t role) { QString text_QString = QString::fromUtf8(&text->data, text->len); return self->addButton(text_QString, static_cast(role)); } QPushButton* QMessageBox_AddButtonWithButton(QMessageBox* self, uintptr_t button) { return self->addButton(static_cast(button)); } void QMessageBox_RemoveButton(QMessageBox* self, QAbstractButton* button) { self->removeButton(button); } struct miqt_array* QMessageBox_Buttons(const QMessageBox* self) { QList _ret = self->buttons(); // Convert QList<> from C++ memory to manually-managed C memory QAbstractButton** _arr = static_cast(malloc(sizeof(QAbstractButton*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } uintptr_t QMessageBox_ButtonRole(const QMessageBox* self, QAbstractButton* button) { QMessageBox::ButtonRole _ret = self->buttonRole(button); return static_cast(_ret); } void QMessageBox_SetStandardButtons(QMessageBox* self, int buttons) { self->setStandardButtons(static_cast(buttons)); } int QMessageBox_StandardButtons(const QMessageBox* self) { QMessageBox::StandardButtons _ret = self->standardButtons(); return static_cast(_ret); } uintptr_t QMessageBox_StandardButton(const QMessageBox* self, QAbstractButton* button) { QMessageBox::StandardButton _ret = self->standardButton(button); return static_cast(_ret); } QAbstractButton* QMessageBox_Button(const QMessageBox* self, uintptr_t which) { return self->button(static_cast(which)); } QPushButton* QMessageBox_DefaultButton(const QMessageBox* self) { return self->defaultButton(); } void QMessageBox_SetDefaultButton(QMessageBox* self, QPushButton* button) { self->setDefaultButton(button); } void QMessageBox_SetDefaultButtonWithButton(QMessageBox* self, uintptr_t button) { self->setDefaultButton(static_cast(button)); } QAbstractButton* QMessageBox_EscapeButton(const QMessageBox* self) { return self->escapeButton(); } void QMessageBox_SetEscapeButton(QMessageBox* self, QAbstractButton* button) { self->setEscapeButton(button); } void QMessageBox_SetEscapeButtonWithButton(QMessageBox* self, uintptr_t button) { self->setEscapeButton(static_cast(button)); } QAbstractButton* QMessageBox_ClickedButton(const QMessageBox* self) { return self->clickedButton(); } struct miqt_string* QMessageBox_Text(const QMessageBox* self) { QString _ret = self->text(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); return miqt_strdup(_b.data(), _b.length()); } void QMessageBox_SetText(QMessageBox* self, struct miqt_string* text) { QString text_QString = QString::fromUtf8(&text->data, text->len); self->setText(text_QString); } uintptr_t QMessageBox_Icon(const QMessageBox* self) { QMessageBox::Icon _ret = self->icon(); return static_cast(_ret); } void QMessageBox_SetIcon(QMessageBox* self, uintptr_t icon) { self->setIcon(static_cast(icon)); } QPixmap* QMessageBox_IconPixmap(const QMessageBox* self) { QPixmap _ret = self->iconPixmap(); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPixmap(_ret)); } void QMessageBox_SetIconPixmap(QMessageBox* self, QPixmap* pixmap) { self->setIconPixmap(*pixmap); } uintptr_t QMessageBox_TextFormat(const QMessageBox* self) { Qt::TextFormat _ret = self->textFormat(); return static_cast(_ret); } void QMessageBox_SetTextFormat(QMessageBox* self, uintptr_t format) { self->setTextFormat(static_cast(format)); } void QMessageBox_SetTextInteractionFlags(QMessageBox* self, int flags) { self->setTextInteractionFlags(static_cast(flags)); } int QMessageBox_TextInteractionFlags(const QMessageBox* self) { Qt::TextInteractionFlags _ret = self->textInteractionFlags(); return static_cast(_ret); } void QMessageBox_SetCheckBox(QMessageBox* self, QCheckBox* cb) { self->setCheckBox(cb); } QCheckBox* QMessageBox_CheckBox(const QMessageBox* self) { return self->checkBox(); } uintptr_t QMessageBox_Information(QWidget* parent, struct miqt_string* title, struct miqt_string* text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::StandardButton _ret = QMessageBox::information(parent, title_QString, text_QString); return static_cast(_ret); } uintptr_t QMessageBox_Question(QWidget* parent, struct miqt_string* title, struct miqt_string* text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::StandardButton _ret = QMessageBox::question(parent, title_QString, text_QString); return static_cast(_ret); } uintptr_t QMessageBox_Warning(QWidget* parent, struct miqt_string* title, struct miqt_string* text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::StandardButton _ret = QMessageBox::warning(parent, title_QString, text_QString); return static_cast(_ret); } uintptr_t QMessageBox_Critical(QWidget* parent, struct miqt_string* title, struct miqt_string* text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::StandardButton _ret = QMessageBox::critical(parent, title_QString, text_QString); return static_cast(_ret); } void QMessageBox_About(QWidget* parent, struct miqt_string* title, struct miqt_string* text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::about(parent, title_QString, text_QString); } void QMessageBox_AboutQt(QWidget* parent) { QMessageBox::aboutQt(parent); } int QMessageBox_Information2(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int button0) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return QMessageBox::information(parent, title_QString, text_QString, static_cast(button0)); } int QMessageBox_Information3(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString); } uintptr_t QMessageBox_Information4(QWidget* parent, struct miqt_string* title, struct miqt_string* text, uintptr_t button0) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::StandardButton _ret = QMessageBox::information(parent, title_QString, text_QString, static_cast(button0)); return static_cast(_ret); } int QMessageBox_Question2(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int button0) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return QMessageBox::question(parent, title_QString, text_QString, static_cast(button0)); } int QMessageBox_Question3(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString); } int QMessageBox_Question4(QWidget* parent, struct miqt_string* title, struct miqt_string* text, uintptr_t button0, uintptr_t button1) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return QMessageBox::question(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); } int QMessageBox_Warning2(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int button0, int button1) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return QMessageBox::warning(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); } int QMessageBox_Warning3(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString); } int QMessageBox_Warning4(QWidget* parent, struct miqt_string* title, struct miqt_string* text, uintptr_t button0, uintptr_t button1) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return QMessageBox::warning(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); } int QMessageBox_Critical2(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int button0, int button1) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return QMessageBox::critical(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); } int QMessageBox_Critical3(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString); } int QMessageBox_Critical4(QWidget* parent, struct miqt_string* title, struct miqt_string* text, uintptr_t button0, uintptr_t button1) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return QMessageBox::critical(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); } struct miqt_string* QMessageBox_ButtonText(const QMessageBox* self, int button) { QString _ret = self->buttonText(static_cast(button)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); return miqt_strdup(_b.data(), _b.length()); } void QMessageBox_SetButtonText(QMessageBox* self, int button, struct miqt_string* text) { QString text_QString = QString::fromUtf8(&text->data, text->len); self->setButtonText(static_cast(button), text_QString); } struct miqt_string* QMessageBox_InformativeText(const QMessageBox* self) { QString _ret = self->informativeText(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); return miqt_strdup(_b.data(), _b.length()); } void QMessageBox_SetInformativeText(QMessageBox* self, struct miqt_string* text) { QString text_QString = QString::fromUtf8(&text->data, text->len); self->setInformativeText(text_QString); } struct miqt_string* QMessageBox_DetailedText(const QMessageBox* self) { QString _ret = self->detailedText(); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); return miqt_strdup(_b.data(), _b.length()); } void QMessageBox_SetDetailedText(QMessageBox* self, struct miqt_string* text) { QString text_QString = QString::fromUtf8(&text->data, text->len); self->setDetailedText(text_QString); } void QMessageBox_SetWindowTitle(QMessageBox* self, struct miqt_string* title) { QString title_QString = QString::fromUtf8(&title->data, title->len); self->setWindowTitle(title_QString); } void QMessageBox_SetWindowModality(QMessageBox* self, uintptr_t windowModality) { self->setWindowModality(static_cast(windowModality)); } QPixmap* QMessageBox_StandardIcon(uintptr_t icon) { QPixmap _ret = QMessageBox::standardIcon(static_cast(icon)); // Copy-construct value returned type into heap-allocated copy return static_cast(new QPixmap(_ret)); } void QMessageBox_ButtonClicked(QMessageBox* self, QAbstractButton* button) { self->buttonClicked(button); } void QMessageBox_connect_ButtonClicked(QMessageBox* self, void* slot) { QMessageBox::connect(self, static_cast(&QMessageBox::buttonClicked), self, [=](QAbstractButton* button) { QAbstractButton* sigval1 = button; miqt_exec_callback_QMessageBox_ButtonClicked(slot, sigval1); }); } struct miqt_string* QMessageBox_Tr2(const char* s, const char* c) { QString _ret = QMessageBox::tr(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); return miqt_strdup(_b.data(), _b.length()); } struct miqt_string* QMessageBox_Tr3(const char* s, const char* c, int n) { QString _ret = QMessageBox::tr(s, c, static_cast(n)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); return miqt_strdup(_b.data(), _b.length()); } struct miqt_string* QMessageBox_TrUtf82(const char* s, const char* c) { QString _ret = QMessageBox::trUtf8(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); return miqt_strdup(_b.data(), _b.length()); } struct miqt_string* QMessageBox_TrUtf83(const char* s, const char* c, int n) { QString _ret = QMessageBox::trUtf8(s, c, static_cast(n)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); return miqt_strdup(_b.data(), _b.length()); } uintptr_t QMessageBox_Information42(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int buttons) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::StandardButton _ret = QMessageBox::information(parent, title_QString, text_QString, static_cast(buttons)); return static_cast(_ret); } uintptr_t QMessageBox_Information5(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int buttons, uintptr_t defaultButton) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::StandardButton _ret = QMessageBox::information(parent, title_QString, text_QString, static_cast(buttons), static_cast(defaultButton)); return static_cast(_ret); } uintptr_t QMessageBox_Question42(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int buttons) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::StandardButton _ret = QMessageBox::question(parent, title_QString, text_QString, static_cast(buttons)); return static_cast(_ret); } uintptr_t QMessageBox_Question5(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int buttons, uintptr_t defaultButton) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::StandardButton _ret = QMessageBox::question(parent, title_QString, text_QString, static_cast(buttons), static_cast(defaultButton)); return static_cast(_ret); } uintptr_t QMessageBox_Warning42(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int buttons) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::StandardButton _ret = QMessageBox::warning(parent, title_QString, text_QString, static_cast(buttons)); return static_cast(_ret); } uintptr_t QMessageBox_Warning5(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int buttons, uintptr_t defaultButton) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::StandardButton _ret = QMessageBox::warning(parent, title_QString, text_QString, static_cast(buttons), static_cast(defaultButton)); return static_cast(_ret); } uintptr_t QMessageBox_Critical42(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int buttons) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::StandardButton _ret = QMessageBox::critical(parent, title_QString, text_QString, static_cast(buttons)); return static_cast(_ret); } uintptr_t QMessageBox_Critical5(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int buttons, uintptr_t defaultButton) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::StandardButton _ret = QMessageBox::critical(parent, title_QString, text_QString, static_cast(buttons), static_cast(defaultButton)); return static_cast(_ret); } void QMessageBox_AboutQt2(QWidget* parent, struct miqt_string* title) { QString title_QString = QString::fromUtf8(&title->data, title->len); QMessageBox::aboutQt(parent, title_QString); } int QMessageBox_Information52(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int button0, int button1) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return QMessageBox::information(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); } int QMessageBox_Information6(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int button0, int button1, int button2) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return QMessageBox::information(parent, title_QString, text_QString, static_cast(button0), static_cast(button1), static_cast(button2)); } int QMessageBox_Information53(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString, button1Text_QString); } int QMessageBox_Information62(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text, struct miqt_string* button2Text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); QString button2Text_QString = QString::fromUtf8(&button2Text->data, button2Text->len); return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString); } int QMessageBox_Information7(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text, struct miqt_string* button2Text, int defaultButtonNumber) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); QString button2Text_QString = QString::fromUtf8(&button2Text->data, button2Text->len); return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber)); } int QMessageBox_Information8(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text, struct miqt_string* button2Text, int defaultButtonNumber, int escapeButtonNumber) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); QString button2Text_QString = QString::fromUtf8(&button2Text->data, button2Text->len); return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber), static_cast(escapeButtonNumber)); } uintptr_t QMessageBox_Information54(QWidget* parent, struct miqt_string* title, struct miqt_string* text, uintptr_t button0, uintptr_t button1) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QMessageBox::StandardButton _ret = QMessageBox::information(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); return static_cast(_ret); } int QMessageBox_Question52(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int button0, int button1) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return QMessageBox::question(parent, title_QString, text_QString, static_cast(button0), static_cast(button1)); } int QMessageBox_Question6(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int button0, int button1, int button2) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return QMessageBox::question(parent, title_QString, text_QString, static_cast(button0), static_cast(button1), static_cast(button2)); } int QMessageBox_Question53(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString, button1Text_QString); } int QMessageBox_Question62(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text, struct miqt_string* button2Text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); QString button2Text_QString = QString::fromUtf8(&button2Text->data, button2Text->len); return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString); } int QMessageBox_Question7(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text, struct miqt_string* button2Text, int defaultButtonNumber) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); QString button2Text_QString = QString::fromUtf8(&button2Text->data, button2Text->len); return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber)); } int QMessageBox_Question8(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text, struct miqt_string* button2Text, int defaultButtonNumber, int escapeButtonNumber) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); QString button2Text_QString = QString::fromUtf8(&button2Text->data, button2Text->len); return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber), static_cast(escapeButtonNumber)); } int QMessageBox_Warning6(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int button0, int button1, int button2) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return QMessageBox::warning(parent, title_QString, text_QString, static_cast(button0), static_cast(button1), static_cast(button2)); } int QMessageBox_Warning52(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString, button1Text_QString); } int QMessageBox_Warning62(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text, struct miqt_string* button2Text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); QString button2Text_QString = QString::fromUtf8(&button2Text->data, button2Text->len); return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString); } int QMessageBox_Warning7(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text, struct miqt_string* button2Text, int defaultButtonNumber) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); QString button2Text_QString = QString::fromUtf8(&button2Text->data, button2Text->len); return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber)); } int QMessageBox_Warning8(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text, struct miqt_string* button2Text, int defaultButtonNumber, int escapeButtonNumber) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); QString button2Text_QString = QString::fromUtf8(&button2Text->data, button2Text->len); return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber), static_cast(escapeButtonNumber)); } int QMessageBox_Critical6(QWidget* parent, struct miqt_string* title, struct miqt_string* text, int button0, int button1, int button2) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); return QMessageBox::critical(parent, title_QString, text_QString, static_cast(button0), static_cast(button1), static_cast(button2)); } int QMessageBox_Critical52(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString, button1Text_QString); } int QMessageBox_Critical62(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text, struct miqt_string* button2Text) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); QString button2Text_QString = QString::fromUtf8(&button2Text->data, button2Text->len); return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString); } int QMessageBox_Critical7(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text, struct miqt_string* button2Text, int defaultButtonNumber) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); QString button2Text_QString = QString::fromUtf8(&button2Text->data, button2Text->len); return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber)); } int QMessageBox_Critical8(QWidget* parent, struct miqt_string* title, struct miqt_string* text, struct miqt_string* button0Text, struct miqt_string* button1Text, struct miqt_string* button2Text, int defaultButtonNumber, int escapeButtonNumber) { QString title_QString = QString::fromUtf8(&title->data, title->len); QString text_QString = QString::fromUtf8(&text->data, text->len); QString button0Text_QString = QString::fromUtf8(&button0Text->data, button0Text->len); QString button1Text_QString = QString::fromUtf8(&button1Text->data, button1Text->len); QString button2Text_QString = QString::fromUtf8(&button2Text->data, button2Text->len); return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast(defaultButtonNumber), static_cast(escapeButtonNumber)); } void QMessageBox_Delete(QMessageBox* self) { delete self; }