mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
682 lines
36 KiB
C++
682 lines
36 KiB
C++
#include <QAbstractButton>
|
|
#include <QCheckBox>
|
|
#include <QList>
|
|
#include <QMessageBox>
|
|
#include <QMetaObject>
|
|
#include <QPixmap>
|
|
#include <QPushButton>
|
|
#include <QString>
|
|
#include <QByteArray>
|
|
#include <cstring>
|
|
#include <QWidget>
|
|
#include <qmessagebox.h>
|
|
#include "gen_qmessagebox.h"
|
|
#include "_cgo_export.h"
|
|
|
|
QMessageBox* QMessageBox_new() {
|
|
return new QMessageBox();
|
|
}
|
|
|
|
QMessageBox* QMessageBox_new2(int 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<QMessageBox::Icon>(icon), title_QString, text_QString);
|
|
}
|
|
|
|
QMessageBox* QMessageBox_new3(struct miqt_string title, struct miqt_string text, int 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<QMessageBox::Icon>(icon), static_cast<int>(button0), static_cast<int>(button1), static_cast<int>(button2));
|
|
}
|
|
|
|
QMessageBox* QMessageBox_new4(QWidget* parent) {
|
|
return new QMessageBox(parent);
|
|
}
|
|
|
|
QMessageBox* QMessageBox_new5(int 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<QMessageBox::Icon>(icon), title_QString, text_QString, static_cast<QMessageBox::StandardButtons>(buttons));
|
|
}
|
|
|
|
QMessageBox* QMessageBox_new6(int 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<QMessageBox::Icon>(icon), title_QString, text_QString, static_cast<QMessageBox::StandardButtons>(buttons), parent);
|
|
}
|
|
|
|
QMessageBox* QMessageBox_new7(int 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<QMessageBox::Icon>(icon), title_QString, text_QString, static_cast<QMessageBox::StandardButtons>(buttons), parent, static_cast<Qt::WindowFlags>(flags));
|
|
}
|
|
|
|
QMessageBox* QMessageBox_new8(struct miqt_string title, struct miqt_string text, int 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<QMessageBox::Icon>(icon), static_cast<int>(button0), static_cast<int>(button1), static_cast<int>(button2), parent);
|
|
}
|
|
|
|
QMessageBox* QMessageBox_new9(struct miqt_string title, struct miqt_string text, int 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<QMessageBox::Icon>(icon), static_cast<int>(button0), static_cast<int>(button1), static_cast<int>(button2), parent, static_cast<Qt::WindowFlags>(f));
|
|
}
|
|
|
|
QMetaObject* QMessageBox_MetaObject(const QMessageBox* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
void* QMessageBox_Metacast(QMessageBox* self, const char* param1) {
|
|
return self->qt_metacast(param1);
|
|
}
|
|
|
|
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();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QMessageBox_AddButton(QMessageBox* self, QAbstractButton* button, int role) {
|
|
self->addButton(button, static_cast<QMessageBox::ButtonRole>(role));
|
|
}
|
|
|
|
QPushButton* QMessageBox_AddButton2(QMessageBox* self, struct miqt_string text, int role) {
|
|
QString text_QString = QString::fromUtf8(text.data, text.len);
|
|
return self->addButton(text_QString, static_cast<QMessageBox::ButtonRole>(role));
|
|
}
|
|
|
|
QPushButton* QMessageBox_AddButtonWithButton(QMessageBox* self, int button) {
|
|
return self->addButton(static_cast<QMessageBox::StandardButton>(button));
|
|
}
|
|
|
|
void QMessageBox_RemoveButton(QMessageBox* self, QAbstractButton* button) {
|
|
self->removeButton(button);
|
|
}
|
|
|
|
struct miqt_array* QMessageBox_Buttons(const QMessageBox* self) {
|
|
QList<QAbstractButton *> _ret = self->buttons();
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
|
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];
|
|
}
|
|
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;
|
|
}
|
|
|
|
int QMessageBox_ButtonRole(const QMessageBox* self, QAbstractButton* button) {
|
|
QMessageBox::ButtonRole _ret = self->buttonRole(button);
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QMessageBox_SetStandardButtons(QMessageBox* self, int buttons) {
|
|
self->setStandardButtons(static_cast<QMessageBox::StandardButtons>(buttons));
|
|
}
|
|
|
|
int QMessageBox_StandardButtons(const QMessageBox* self) {
|
|
QMessageBox::StandardButtons _ret = self->standardButtons();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
int QMessageBox_StandardButton(const QMessageBox* self, QAbstractButton* button) {
|
|
QMessageBox::StandardButton _ret = self->standardButton(button);
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
QAbstractButton* QMessageBox_Button(const QMessageBox* self, int which) {
|
|
return self->button(static_cast<QMessageBox::StandardButton>(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, int button) {
|
|
self->setDefaultButton(static_cast<QMessageBox::StandardButton>(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, int button) {
|
|
self->setEscapeButton(static_cast<QMessageBox::StandardButton>(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();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QMessageBox_SetText(QMessageBox* self, struct miqt_string text) {
|
|
QString text_QString = QString::fromUtf8(text.data, text.len);
|
|
self->setText(text_QString);
|
|
}
|
|
|
|
int QMessageBox_Icon(const QMessageBox* self) {
|
|
QMessageBox::Icon _ret = self->icon();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QMessageBox_SetIcon(QMessageBox* self, int icon) {
|
|
self->setIcon(static_cast<QMessageBox::Icon>(icon));
|
|
}
|
|
|
|
QPixmap* QMessageBox_IconPixmap(const QMessageBox* self) {
|
|
return new QPixmap(self->iconPixmap());
|
|
}
|
|
|
|
void QMessageBox_SetIconPixmap(QMessageBox* self, QPixmap* pixmap) {
|
|
self->setIconPixmap(*pixmap);
|
|
}
|
|
|
|
int QMessageBox_TextFormat(const QMessageBox* self) {
|
|
Qt::TextFormat _ret = self->textFormat();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QMessageBox_SetTextFormat(QMessageBox* self, int format) {
|
|
self->setTextFormat(static_cast<Qt::TextFormat>(format));
|
|
}
|
|
|
|
void QMessageBox_SetTextInteractionFlags(QMessageBox* self, int flags) {
|
|
self->setTextInteractionFlags(static_cast<Qt::TextInteractionFlags>(flags));
|
|
}
|
|
|
|
int QMessageBox_TextInteractionFlags(const QMessageBox* self) {
|
|
Qt::TextInteractionFlags _ret = self->textInteractionFlags();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QMessageBox_SetCheckBox(QMessageBox* self, QCheckBox* cb) {
|
|
self->setCheckBox(cb);
|
|
}
|
|
|
|
QCheckBox* QMessageBox_CheckBox(const QMessageBox* self) {
|
|
return self->checkBox();
|
|
}
|
|
|
|
int 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<int>(_ret);
|
|
}
|
|
|
|
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);
|
|
QMessageBox::StandardButton _ret = QMessageBox::information(parent, title_QString, text_QString, static_cast<QMessageBox::StandardButton>(button0));
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
int 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<int>(_ret);
|
|
}
|
|
|
|
int QMessageBox_Question2(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<QMessageBox::StandardButton>(button0), static_cast<QMessageBox::StandardButton>(button1));
|
|
}
|
|
|
|
int 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<int>(_ret);
|
|
}
|
|
|
|
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<QMessageBox::StandardButton>(button0), static_cast<QMessageBox::StandardButton>(button1));
|
|
}
|
|
|
|
int 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<int>(_ret);
|
|
}
|
|
|
|
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<QMessageBox::StandardButton>(button0), static_cast<QMessageBox::StandardButton>(button1));
|
|
}
|
|
|
|
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_Information3(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<int>(button0));
|
|
}
|
|
|
|
int QMessageBox_Information4(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);
|
|
}
|
|
|
|
int QMessageBox_Question3(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<int>(button0));
|
|
}
|
|
|
|
int QMessageBox_Question4(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_Warning3(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<int>(button0), static_cast<int>(button1));
|
|
}
|
|
|
|
int QMessageBox_Warning4(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_Critical3(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<int>(button0), static_cast<int>(button1));
|
|
}
|
|
|
|
int QMessageBox_Critical4(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);
|
|
}
|
|
|
|
struct miqt_string QMessageBox_ButtonText(const QMessageBox* self, int button) {
|
|
QString _ret = self->buttonText(static_cast<int>(button));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
void QMessageBox_SetButtonText(QMessageBox* self, int button, struct miqt_string text) {
|
|
QString text_QString = QString::fromUtf8(text.data, text.len);
|
|
self->setButtonText(static_cast<int>(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();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
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();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
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, int windowModality) {
|
|
self->setWindowModality(static_cast<Qt::WindowModality>(windowModality));
|
|
}
|
|
|
|
QPixmap* QMessageBox_StandardIcon(int icon) {
|
|
return new QPixmap(QMessageBox::standardIcon(static_cast<QMessageBox::Icon>(icon)));
|
|
}
|
|
|
|
void QMessageBox_ButtonClicked(QMessageBox* self, QAbstractButton* button) {
|
|
self->buttonClicked(button);
|
|
}
|
|
|
|
void QMessageBox_connect_ButtonClicked(QMessageBox* self, intptr_t slot) {
|
|
QMessageBox::connect(self, static_cast<void (QMessageBox::*)(QAbstractButton*)>(&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();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
struct miqt_string QMessageBox_Tr3(const char* s, const char* c, int n) {
|
|
QString _ret = QMessageBox::tr(s, c, static_cast<int>(n));
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
QByteArray _b = _ret.toUtf8();
|
|
struct miqt_string _ms;
|
|
_ms.len = _b.length();
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
return _ms;
|
|
}
|
|
|
|
int 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<int>(_ret);
|
|
}
|
|
|
|
int QMessageBox_Information5(QWidget* parent, struct miqt_string title, struct miqt_string text, int buttons, int 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<int>(_ret);
|
|
}
|
|
|
|
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);
|
|
QMessageBox::StandardButton _ret = QMessageBox::information(parent, title_QString, text_QString, static_cast<QMessageBox::StandardButton>(button0), static_cast<QMessageBox::StandardButton>(button1));
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
int 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<int>(_ret);
|
|
}
|
|
|
|
int QMessageBox_Question5(QWidget* parent, struct miqt_string title, struct miqt_string text, int buttons, int 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<int>(_ret);
|
|
}
|
|
|
|
int 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<int>(_ret);
|
|
}
|
|
|
|
int QMessageBox_Warning5(QWidget* parent, struct miqt_string title, struct miqt_string text, int buttons, int 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<int>(_ret);
|
|
}
|
|
|
|
int 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<int>(_ret);
|
|
}
|
|
|
|
int QMessageBox_Critical5(QWidget* parent, struct miqt_string title, struct miqt_string text, int buttons, int 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<int>(_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_Information53(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<int>(button0), static_cast<int>(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<int>(button0), static_cast<int>(button1), static_cast<int>(button2));
|
|
}
|
|
|
|
int QMessageBox_Information54(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<int>(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<int>(defaultButtonNumber), static_cast<int>(escapeButtonNumber));
|
|
}
|
|
|
|
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<int>(button0), static_cast<int>(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<int>(button0), static_cast<int>(button1), static_cast<int>(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<int>(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<int>(defaultButtonNumber), static_cast<int>(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<int>(button0), static_cast<int>(button1), static_cast<int>(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<int>(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<int>(defaultButtonNumber), static_cast<int>(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<int>(button0), static_cast<int>(button1), static_cast<int>(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<int>(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<int>(defaultButtonNumber), static_cast<int>(escapeButtonNumber));
|
|
}
|
|
|
|
void QMessageBox_Delete(QMessageBox* self) {
|
|
delete self;
|
|
}
|
|
|