2024-08-25 04:08:24 +00:00
|
|
|
#include <QAbstractButton>
|
|
|
|
#include <QCheckBox>
|
|
|
|
#include <QList>
|
|
|
|
#include <QMessageBox>
|
|
|
|
#include <QMetaObject>
|
|
|
|
#include <QPixmap>
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QWidget>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qmessagebox.h"
|
|
|
|
#include "gen_qmessagebox.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QMessageBox* QMessageBox_new() {
|
|
|
|
return new QMessageBox();
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-29 07:01:51 +00:00
|
|
|
return new QMessageBox(static_cast<QMessageBox::Icon>(icon), title_QString, text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-29 07:01:51 +00:00
|
|
|
return new QMessageBox(title_QString, text_QString, static_cast<QMessageBox::Icon>(icon), static_cast<int>(button0), static_cast<int>(button1), static_cast<int>(button2));
|
|
|
|
}
|
|
|
|
|
|
|
|
QMessageBox* QMessageBox_new4(QWidget* parent) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QMessageBox(parent);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-29 07:01:51 +00:00
|
|
|
return new QMessageBox(static_cast<QMessageBox::Icon>(icon), title_QString, text_QString, static_cast<QMessageBox::StandardButtons>(buttons));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-29 07:01:51 +00:00
|
|
|
return new QMessageBox(static_cast<QMessageBox::Icon>(icon), title_QString, text_QString, static_cast<QMessageBox::StandardButtons>(buttons), parent);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-29 07:01:51 +00:00
|
|
|
return new QMessageBox(static_cast<QMessageBox::Icon>(icon), title_QString, text_QString, static_cast<QMessageBox::StandardButtons>(buttons), parent, static_cast<Qt::WindowFlags>(flags));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-29 07:01:51 +00:00
|
|
|
return new QMessageBox(title_QString, text_QString, static_cast<QMessageBox::Icon>(icon), static_cast<int>(button0), static_cast<int>(button1), static_cast<int>(button2), parent);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-29 07:01:51 +00:00
|
|
|
return new QMessageBox(title_QString, text_QString, static_cast<QMessageBox::Icon>(icon), static_cast<int>(button0), static_cast<int>(button1), static_cast<int>(button2), parent, static_cast<Qt::WindowFlags>(f));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QMessageBox_MetaObject(const QMessageBox* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QMessageBox_Tr(const char* s) {
|
|
|
|
QString _ret = QMessageBox::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* QMessageBox_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QMessageBox::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-08-29 07:01:51 +00:00
|
|
|
void QMessageBox_AddButton(QMessageBox* self, QAbstractButton* button, uintptr_t role) {
|
|
|
|
self->addButton(button, static_cast<QMessageBox::ButtonRole>(role));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QPushButton* QMessageBox_AddButton2(QMessageBox* self, struct miqt_string* text, uintptr_t role) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-29 07:01:51 +00:00
|
|
|
return self->addButton(text_QString, static_cast<QMessageBox::ButtonRole>(role));
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton* QMessageBox_AddButtonWithButton(QMessageBox* self, uintptr_t button) {
|
|
|
|
return self->addButton(static_cast<QMessageBox::StandardButton>(button));
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMessageBox_RemoveButton(QMessageBox* self, QAbstractButton* button) {
|
|
|
|
self->removeButton(button);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QMessageBox_Buttons(const QMessageBox* self) {
|
|
|
|
QList<QAbstractButton*> _ret = self->buttons();
|
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
|
|
|
QAbstractButton** _arr = static_cast<QAbstractButton**>(malloc(sizeof(QAbstractButton*) * _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-11 05:41:09 +00:00
|
|
|
uintptr_t QMessageBox_ButtonRole(const QMessageBox* self, QAbstractButton* button) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QMessageBox::ButtonRole _ret = self->buttonRole(button);
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QMessageBox_SetStandardButtons(QMessageBox* self, int buttons) {
|
|
|
|
self->setStandardButtons(static_cast<QMessageBox::StandardButtons>(buttons));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QMessageBox_StandardButtons(const QMessageBox* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QMessageBox::StandardButtons _ret = self->standardButtons();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QMessageBox_StandardButton(const QMessageBox* self, QAbstractButton* button) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QMessageBox::StandardButton _ret = self->standardButton(button);
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QAbstractButton* QMessageBox_Button(const QMessageBox* self, uintptr_t which) {
|
|
|
|
return self->button(static_cast<QMessageBox::StandardButton>(which));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QPushButton* QMessageBox_DefaultButton(const QMessageBox* self) {
|
|
|
|
return self->defaultButton();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QMessageBox_SetDefaultButton(QMessageBox* self, QPushButton* button) {
|
|
|
|
self->setDefaultButton(button);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QMessageBox_SetDefaultButtonWithButton(QMessageBox* self, uintptr_t button) {
|
|
|
|
self->setDefaultButton(static_cast<QMessageBox::StandardButton>(button));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QAbstractButton* QMessageBox_EscapeButton(const QMessageBox* self) {
|
|
|
|
return self->escapeButton();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QMessageBox_SetEscapeButton(QMessageBox* self, QAbstractButton* button) {
|
|
|
|
self->setEscapeButton(button);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QMessageBox_SetEscapeButtonWithButton(QMessageBox* self, uintptr_t button) {
|
|
|
|
self->setEscapeButton(static_cast<QMessageBox::StandardButton>(button));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QAbstractButton* QMessageBox_ClickedButton(const QMessageBox* self) {
|
|
|
|
return self->clickedButton();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QMessageBox_Text(const QMessageBox* self) {
|
|
|
|
QString _ret = self->text();
|
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 QMessageBox_SetText(QMessageBox* self, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setText(text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QMessageBox_Icon(const QMessageBox* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QMessageBox::Icon _ret = self->icon();
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QMessageBox_SetIcon(QMessageBox* self, uintptr_t icon) {
|
|
|
|
self->setIcon(static_cast<QMessageBox::Icon>(icon));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QPixmap* QMessageBox_IconPixmap(const QMessageBox* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QPixmap _ret = self->iconPixmap();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QPixmap*>(new QPixmap(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QMessageBox_SetIconPixmap(QMessageBox* self, QPixmap* pixmap) {
|
|
|
|
self->setIconPixmap(*pixmap);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QMessageBox_TextFormat(const QMessageBox* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::TextFormat _ret = self->textFormat();
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QMessageBox_SetTextFormat(QMessageBox* self, uintptr_t format) {
|
|
|
|
self->setTextFormat(static_cast<Qt::TextFormat>(format));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QMessageBox_SetTextInteractionFlags(QMessageBox* self, int flags) {
|
|
|
|
self->setTextInteractionFlags(static_cast<Qt::TextInteractionFlags>(flags));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QMessageBox_TextInteractionFlags(const QMessageBox* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::TextInteractionFlags _ret = self->textInteractionFlags();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMessageBox_SetCheckBox(QMessageBox* self, QCheckBox* cb) {
|
|
|
|
self->setCheckBox(cb);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QCheckBox* QMessageBox_CheckBox(const QMessageBox* self) {
|
|
|
|
return self->checkBox();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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<uintptr_t>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
QMessageBox::about(parent, title_QString, text_QString);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QMessageBox_AboutQt(QWidget* parent) {
|
|
|
|
QMessageBox::aboutQt(parent);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::information(parent, title_QString, text_QString, static_cast<int>(button0));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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<QMessageBox::StandardButton>(button0));
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::question(parent, title_QString, text_QString, static_cast<int>(button0));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-29 07:01:51 +00:00
|
|
|
return QMessageBox::question(parent, title_QString, text_QString, static_cast<QMessageBox::StandardButton>(button0), static_cast<QMessageBox::StandardButton>(button1));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::warning(parent, title_QString, text_QString, static_cast<int>(button0), static_cast<int>(button1));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-29 07:01:51 +00:00
|
|
|
return QMessageBox::warning(parent, title_QString, text_QString, static_cast<QMessageBox::StandardButton>(button0), static_cast<QMessageBox::StandardButton>(button1));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::critical(parent, title_QString, text_QString, static_cast<int>(button0), static_cast<int>(button1));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-29 07:01:51 +00:00
|
|
|
return QMessageBox::critical(parent, title_QString, text_QString, static_cast<QMessageBox::StandardButton>(button0), static_cast<QMessageBox::StandardButton>(button1));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QMessageBox_ButtonText(const QMessageBox* self, int button) {
|
|
|
|
QString _ret = self->buttonText(static_cast<int>(button));
|
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 QMessageBox_SetButtonText(QMessageBox* self, int button, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setButtonText(static_cast<int>(button), text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QMessageBox_InformativeText(const QMessageBox* self) {
|
|
|
|
QString _ret = self->informativeText();
|
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 QMessageBox_SetInformativeText(QMessageBox* self, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setInformativeText(text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QMessageBox_DetailedText(const QMessageBox* self) {
|
|
|
|
QString _ret = self->detailedText();
|
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 QMessageBox_SetDetailedText(QMessageBox* self, struct miqt_string* text) {
|
|
|
|
QString text_QString = QString::fromUtf8(&text->data, text->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setDetailedText(text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QMessageBox_SetWindowTitle(QMessageBox* self, struct miqt_string* title) {
|
|
|
|
QString title_QString = QString::fromUtf8(&title->data, title->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setWindowTitle(title_QString);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QMessageBox_SetWindowModality(QMessageBox* self, uintptr_t windowModality) {
|
|
|
|
self->setWindowModality(static_cast<Qt::WindowModality>(windowModality));
|
|
|
|
}
|
|
|
|
|
|
|
|
QPixmap* QMessageBox_StandardIcon(uintptr_t icon) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QPixmap _ret = QMessageBox::standardIcon(static_cast<QMessageBox::Icon>(icon));
|
2024-08-29 07:01:51 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QPixmap*>(new QPixmap(_ret));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMessageBox_ButtonClicked(QMessageBox* self, QAbstractButton* button) {
|
|
|
|
self->buttonClicked(button);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QMessageBox_connect_ButtonClicked(QMessageBox* self, void* slot) {
|
|
|
|
QMessageBox::connect(self, static_cast<void (QMessageBox::*)(QAbstractButton*)>(&QMessageBox::buttonClicked), self, [=](QAbstractButton* button) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QAbstractButton* sigval1 = button;
|
|
|
|
miqt_exec_callback_QMessageBox_ButtonClicked(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QMessageBox_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QMessageBox::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* QMessageBox_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QMessageBox::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* QMessageBox_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QMessageBox::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* QMessageBox_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QMessageBox::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-14 22:29:05 +00:00
|
|
|
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<QMessageBox::StandardButtons>(buttons));
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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<QMessageBox::StandardButtons>(buttons), static_cast<QMessageBox::StandardButton>(defaultButton));
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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<QMessageBox::StandardButtons>(buttons));
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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<QMessageBox::StandardButtons>(buttons), static_cast<QMessageBox::StandardButton>(defaultButton));
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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<QMessageBox::StandardButtons>(buttons));
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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<QMessageBox::StandardButtons>(buttons), static_cast<QMessageBox::StandardButton>(defaultButton));
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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<QMessageBox::StandardButtons>(buttons));
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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<QMessageBox::StandardButtons>(buttons), static_cast<QMessageBox::StandardButton>(defaultButton));
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QMessageBox_AboutQt2(QWidget* parent, struct miqt_string* title) {
|
|
|
|
QString title_QString = QString::fromUtf8(&title->data, title->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
QMessageBox::aboutQt(parent, title_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::information(parent, title_QString, text_QString, static_cast<int>(button0), static_cast<int>(button1));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::information(parent, title_QString, text_QString, static_cast<int>(button0), static_cast<int>(button1), static_cast<int>(button2));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString, button1Text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast<int>(defaultButtonNumber));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::information(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast<int>(defaultButtonNumber), static_cast<int>(escapeButtonNumber));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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<QMessageBox::StandardButton>(button0), static_cast<QMessageBox::StandardButton>(button1));
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::question(parent, title_QString, text_QString, static_cast<int>(button0), static_cast<int>(button1));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::question(parent, title_QString, text_QString, static_cast<int>(button0), static_cast<int>(button1), static_cast<int>(button2));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString, button1Text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast<int>(defaultButtonNumber));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::question(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast<int>(defaultButtonNumber), static_cast<int>(escapeButtonNumber));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::warning(parent, title_QString, text_QString, static_cast<int>(button0), static_cast<int>(button1), static_cast<int>(button2));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString, button1Text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast<int>(defaultButtonNumber));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::warning(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast<int>(defaultButtonNumber), static_cast<int>(escapeButtonNumber));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::critical(parent, title_QString, text_QString, static_cast<int>(button0), static_cast<int>(button1), static_cast<int>(button2));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString, button1Text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast<int>(defaultButtonNumber));
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QMessageBox::critical(parent, title_QString, text_QString, button0Text_QString, button1Text_QString, button2Text_QString, static_cast<int>(defaultButtonNumber), static_cast<int>(escapeButtonNumber));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QMessageBox_Delete(QMessageBox* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|