miqt/qt/gen_qinputdialog.cpp

1255 lines
47 KiB
C++

#include <QCloseEvent>
#include <QContextMenuEvent>
#include <QDialog>
#include <QEvent>
#include <QInputDialog>
#include <QKeyEvent>
#include <QList>
#include <QMetaObject>
#include <QObject>
#include <QPaintDevice>
#include <QResizeEvent>
#include <QShowEvent>
#include <QSize>
#include <QString>
#include <QByteArray>
#include <cstring>
#include <QWidget>
#include <qinputdialog.h>
#include "gen_qinputdialog.h"
#ifndef _Bool
#define _Bool bool
#endif
#include "_cgo_export.h"
class MiqtVirtualQInputDialog : public virtual QInputDialog {
public:
MiqtVirtualQInputDialog(QWidget* parent): QInputDialog(parent) {};
MiqtVirtualQInputDialog(): QInputDialog() {};
MiqtVirtualQInputDialog(QWidget* parent, Qt::WindowFlags flags): QInputDialog(parent, flags) {};
virtual ~MiqtVirtualQInputDialog() = default;
// cgo.Handle value for overwritten implementation
intptr_t handle__MinimumSizeHint = 0;
// Subclass to allow providing a Go implementation
virtual QSize minimumSizeHint() const override {
if (handle__MinimumSizeHint == 0) {
return QInputDialog::minimumSizeHint();
}
QSize* callback_return_value = miqt_exec_callback_QInputDialog_MinimumSizeHint(const_cast<MiqtVirtualQInputDialog*>(this), handle__MinimumSizeHint);
return *callback_return_value;
}
// Wrapper to allow calling protected method
QSize* virtualbase_MinimumSizeHint() const {
return new QSize(QInputDialog::minimumSizeHint());
}
// cgo.Handle value for overwritten implementation
intptr_t handle__SizeHint = 0;
// Subclass to allow providing a Go implementation
virtual QSize sizeHint() const override {
if (handle__SizeHint == 0) {
return QInputDialog::sizeHint();
}
QSize* callback_return_value = miqt_exec_callback_QInputDialog_SizeHint(const_cast<MiqtVirtualQInputDialog*>(this), handle__SizeHint);
return *callback_return_value;
}
// Wrapper to allow calling protected method
QSize* virtualbase_SizeHint() const {
return new QSize(QInputDialog::sizeHint());
}
// cgo.Handle value for overwritten implementation
intptr_t handle__SetVisible = 0;
// Subclass to allow providing a Go implementation
virtual void setVisible(bool visible) override {
if (handle__SetVisible == 0) {
QInputDialog::setVisible(visible);
return;
}
bool sigval1 = visible;
miqt_exec_callback_QInputDialog_SetVisible(this, handle__SetVisible, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_SetVisible(bool visible) {
QInputDialog::setVisible(visible);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__Done = 0;
// Subclass to allow providing a Go implementation
virtual void done(int result) override {
if (handle__Done == 0) {
QInputDialog::done(result);
return;
}
int sigval1 = result;
miqt_exec_callback_QInputDialog_Done(this, handle__Done, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_Done(int result) {
QInputDialog::done(static_cast<int>(result));
}
// cgo.Handle value for overwritten implementation
intptr_t handle__Open = 0;
// Subclass to allow providing a Go implementation
virtual void open() override {
if (handle__Open == 0) {
QInputDialog::open();
return;
}
miqt_exec_callback_QInputDialog_Open(this, handle__Open);
}
// Wrapper to allow calling protected method
void virtualbase_Open() {
QInputDialog::open();
}
// cgo.Handle value for overwritten implementation
intptr_t handle__Exec = 0;
// Subclass to allow providing a Go implementation
virtual int exec() override {
if (handle__Exec == 0) {
return QInputDialog::exec();
}
int callback_return_value = miqt_exec_callback_QInputDialog_Exec(this, handle__Exec);
return static_cast<int>(callback_return_value);
}
// Wrapper to allow calling protected method
int virtualbase_Exec() {
return QInputDialog::exec();
}
// cgo.Handle value for overwritten implementation
intptr_t handle__Accept = 0;
// Subclass to allow providing a Go implementation
virtual void accept() override {
if (handle__Accept == 0) {
QInputDialog::accept();
return;
}
miqt_exec_callback_QInputDialog_Accept(this, handle__Accept);
}
// Wrapper to allow calling protected method
void virtualbase_Accept() {
QInputDialog::accept();
}
// cgo.Handle value for overwritten implementation
intptr_t handle__Reject = 0;
// Subclass to allow providing a Go implementation
virtual void reject() override {
if (handle__Reject == 0) {
QInputDialog::reject();
return;
}
miqt_exec_callback_QInputDialog_Reject(this, handle__Reject);
}
// Wrapper to allow calling protected method
void virtualbase_Reject() {
QInputDialog::reject();
}
// cgo.Handle value for overwritten implementation
intptr_t handle__KeyPressEvent = 0;
// Subclass to allow providing a Go implementation
virtual void keyPressEvent(QKeyEvent* param1) override {
if (handle__KeyPressEvent == 0) {
QInputDialog::keyPressEvent(param1);
return;
}
QKeyEvent* sigval1 = param1;
miqt_exec_callback_QInputDialog_KeyPressEvent(this, handle__KeyPressEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_KeyPressEvent(QKeyEvent* param1) {
QInputDialog::keyPressEvent(param1);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__CloseEvent = 0;
// Subclass to allow providing a Go implementation
virtual void closeEvent(QCloseEvent* param1) override {
if (handle__CloseEvent == 0) {
QInputDialog::closeEvent(param1);
return;
}
QCloseEvent* sigval1 = param1;
miqt_exec_callback_QInputDialog_CloseEvent(this, handle__CloseEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_CloseEvent(QCloseEvent* param1) {
QInputDialog::closeEvent(param1);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__ShowEvent = 0;
// Subclass to allow providing a Go implementation
virtual void showEvent(QShowEvent* param1) override {
if (handle__ShowEvent == 0) {
QInputDialog::showEvent(param1);
return;
}
QShowEvent* sigval1 = param1;
miqt_exec_callback_QInputDialog_ShowEvent(this, handle__ShowEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_ShowEvent(QShowEvent* param1) {
QInputDialog::showEvent(param1);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__ResizeEvent = 0;
// Subclass to allow providing a Go implementation
virtual void resizeEvent(QResizeEvent* param1) override {
if (handle__ResizeEvent == 0) {
QInputDialog::resizeEvent(param1);
return;
}
QResizeEvent* sigval1 = param1;
miqt_exec_callback_QInputDialog_ResizeEvent(this, handle__ResizeEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_ResizeEvent(QResizeEvent* param1) {
QInputDialog::resizeEvent(param1);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__ContextMenuEvent = 0;
// Subclass to allow providing a Go implementation
virtual void contextMenuEvent(QContextMenuEvent* param1) override {
if (handle__ContextMenuEvent == 0) {
QInputDialog::contextMenuEvent(param1);
return;
}
QContextMenuEvent* sigval1 = param1;
miqt_exec_callback_QInputDialog_ContextMenuEvent(this, handle__ContextMenuEvent, sigval1);
}
// Wrapper to allow calling protected method
void virtualbase_ContextMenuEvent(QContextMenuEvent* param1) {
QInputDialog::contextMenuEvent(param1);
}
// cgo.Handle value for overwritten implementation
intptr_t handle__EventFilter = 0;
// Subclass to allow providing a Go implementation
virtual bool eventFilter(QObject* param1, QEvent* param2) override {
if (handle__EventFilter == 0) {
return QInputDialog::eventFilter(param1, param2);
}
QObject* sigval1 = param1;
QEvent* sigval2 = param2;
bool callback_return_value = miqt_exec_callback_QInputDialog_EventFilter(this, handle__EventFilter, sigval1, sigval2);
return callback_return_value;
}
// Wrapper to allow calling protected method
bool virtualbase_EventFilter(QObject* param1, QEvent* param2) {
return QInputDialog::eventFilter(param1, param2);
}
};
QInputDialog* QInputDialog_new(QWidget* parent) {
return new MiqtVirtualQInputDialog(parent);
}
QInputDialog* QInputDialog_new2() {
return new MiqtVirtualQInputDialog();
}
QInputDialog* QInputDialog_new3(QWidget* parent, int flags) {
return new MiqtVirtualQInputDialog(parent, static_cast<Qt::WindowFlags>(flags));
}
void QInputDialog_virtbase(QInputDialog* src, QDialog** outptr_QDialog) {
*outptr_QDialog = static_cast<QDialog*>(src);
}
QMetaObject* QInputDialog_MetaObject(const QInputDialog* self) {
return (QMetaObject*) self->metaObject();
}
void* QInputDialog_Metacast(QInputDialog* self, const char* param1) {
return self->qt_metacast(param1);
}
struct miqt_string QInputDialog_Tr(const char* s) {
QString _ret = QInputDialog::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;
}
struct miqt_string QInputDialog_TrUtf8(const char* s) {
QString _ret = QInputDialog::trUtf8(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 QInputDialog_SetInputMode(QInputDialog* self, int mode) {
self->setInputMode(static_cast<QInputDialog::InputMode>(mode));
}
int QInputDialog_InputMode(const QInputDialog* self) {
QInputDialog::InputMode _ret = self->inputMode();
return static_cast<int>(_ret);
}
void QInputDialog_SetLabelText(QInputDialog* self, struct miqt_string text) {
QString text_QString = QString::fromUtf8(text.data, text.len);
self->setLabelText(text_QString);
}
struct miqt_string QInputDialog_LabelText(const QInputDialog* self) {
QString _ret = self->labelText();
// 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 QInputDialog_SetOption(QInputDialog* self, int option) {
self->setOption(static_cast<QInputDialog::InputDialogOption>(option));
}
bool QInputDialog_TestOption(const QInputDialog* self, int option) {
return self->testOption(static_cast<QInputDialog::InputDialogOption>(option));
}
void QInputDialog_SetOptions(QInputDialog* self, int options) {
self->setOptions(static_cast<QInputDialog::InputDialogOptions>(options));
}
int QInputDialog_Options(const QInputDialog* self) {
QInputDialog::InputDialogOptions _ret = self->options();
return static_cast<int>(_ret);
}
void QInputDialog_SetTextValue(QInputDialog* self, struct miqt_string text) {
QString text_QString = QString::fromUtf8(text.data, text.len);
self->setTextValue(text_QString);
}
struct miqt_string QInputDialog_TextValue(const QInputDialog* self) {
QString _ret = self->textValue();
// 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 QInputDialog_SetTextEchoMode(QInputDialog* self, int mode) {
self->setTextEchoMode(static_cast<QLineEdit::EchoMode>(mode));
}
int QInputDialog_TextEchoMode(const QInputDialog* self) {
QLineEdit::EchoMode _ret = self->textEchoMode();
return static_cast<int>(_ret);
}
void QInputDialog_SetComboBoxEditable(QInputDialog* self, bool editable) {
self->setComboBoxEditable(editable);
}
bool QInputDialog_IsComboBoxEditable(const QInputDialog* self) {
return self->isComboBoxEditable();
}
void QInputDialog_SetComboBoxItems(QInputDialog* self, struct miqt_array /* of struct miqt_string */ items) {
QStringList items_QList;
items_QList.reserve(items.len);
struct miqt_string* items_arr = static_cast<struct miqt_string*>(items.data);
for(size_t i = 0; i < items.len; ++i) {
QString items_arr_i_QString = QString::fromUtf8(items_arr[i].data, items_arr[i].len);
items_QList.push_back(items_arr_i_QString);
}
self->setComboBoxItems(items_QList);
}
struct miqt_array /* of struct miqt_string */ QInputDialog_ComboBoxItems(const QInputDialog* self) {
QStringList _ret = self->comboBoxItems();
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_string* _arr = static_cast<struct miqt_string*>(malloc(sizeof(struct miqt_string) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
QString _lv_ret = _ret[i];
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _lv_b = _lv_ret.toUtf8();
struct miqt_string _lv_ms;
_lv_ms.len = _lv_b.length();
_lv_ms.data = static_cast<char*>(malloc(_lv_ms.len));
memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len);
_arr[i] = _lv_ms;
}
struct miqt_array _out;
_out.len = _ret.length();
_out.data = static_cast<void*>(_arr);
return _out;
}
void QInputDialog_SetIntValue(QInputDialog* self, int value) {
self->setIntValue(static_cast<int>(value));
}
int QInputDialog_IntValue(const QInputDialog* self) {
return self->intValue();
}
void QInputDialog_SetIntMinimum(QInputDialog* self, int min) {
self->setIntMinimum(static_cast<int>(min));
}
int QInputDialog_IntMinimum(const QInputDialog* self) {
return self->intMinimum();
}
void QInputDialog_SetIntMaximum(QInputDialog* self, int max) {
self->setIntMaximum(static_cast<int>(max));
}
int QInputDialog_IntMaximum(const QInputDialog* self) {
return self->intMaximum();
}
void QInputDialog_SetIntRange(QInputDialog* self, int min, int max) {
self->setIntRange(static_cast<int>(min), static_cast<int>(max));
}
void QInputDialog_SetIntStep(QInputDialog* self, int step) {
self->setIntStep(static_cast<int>(step));
}
int QInputDialog_IntStep(const QInputDialog* self) {
return self->intStep();
}
void QInputDialog_SetDoubleValue(QInputDialog* self, double value) {
self->setDoubleValue(static_cast<double>(value));
}
double QInputDialog_DoubleValue(const QInputDialog* self) {
return self->doubleValue();
}
void QInputDialog_SetDoubleMinimum(QInputDialog* self, double min) {
self->setDoubleMinimum(static_cast<double>(min));
}
double QInputDialog_DoubleMinimum(const QInputDialog* self) {
return self->doubleMinimum();
}
void QInputDialog_SetDoubleMaximum(QInputDialog* self, double max) {
self->setDoubleMaximum(static_cast<double>(max));
}
double QInputDialog_DoubleMaximum(const QInputDialog* self) {
return self->doubleMaximum();
}
void QInputDialog_SetDoubleRange(QInputDialog* self, double min, double max) {
self->setDoubleRange(static_cast<double>(min), static_cast<double>(max));
}
void QInputDialog_SetDoubleDecimals(QInputDialog* self, int decimals) {
self->setDoubleDecimals(static_cast<int>(decimals));
}
int QInputDialog_DoubleDecimals(const QInputDialog* self) {
return self->doubleDecimals();
}
void QInputDialog_SetOkButtonText(QInputDialog* self, struct miqt_string text) {
QString text_QString = QString::fromUtf8(text.data, text.len);
self->setOkButtonText(text_QString);
}
struct miqt_string QInputDialog_OkButtonText(const QInputDialog* self) {
QString _ret = self->okButtonText();
// 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 QInputDialog_SetCancelButtonText(QInputDialog* self, struct miqt_string text) {
QString text_QString = QString::fromUtf8(text.data, text.len);
self->setCancelButtonText(text_QString);
}
struct miqt_string QInputDialog_CancelButtonText(const QInputDialog* self) {
QString _ret = self->cancelButtonText();
// 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;
}
QSize* QInputDialog_MinimumSizeHint(const QInputDialog* self) {
return new QSize(self->minimumSizeHint());
}
QSize* QInputDialog_SizeHint(const QInputDialog* self) {
return new QSize(self->sizeHint());
}
void QInputDialog_SetVisible(QInputDialog* self, bool visible) {
self->setVisible(visible);
}
struct miqt_string QInputDialog_GetText(QWidget* parent, struct miqt_string title, struct miqt_string label) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QString _ret = QInputDialog::getText(parent, title_QString, label_QString);
// 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 QInputDialog_GetMultiLineText(QWidget* parent, struct miqt_string title, struct miqt_string label) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QString _ret = QInputDialog::getMultiLineText(parent, title_QString, label_QString);
// 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 QInputDialog_GetItem(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QStringList items_QList;
items_QList.reserve(items.len);
struct miqt_string* items_arr = static_cast<struct miqt_string*>(items.data);
for(size_t i = 0; i < items.len; ++i) {
QString items_arr_i_QString = QString::fromUtf8(items_arr[i].data, items_arr[i].len);
items_QList.push_back(items_arr_i_QString);
}
QString _ret = QInputDialog::getItem(parent, title_QString, label_QString, items_QList);
// 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 QInputDialog_GetInt(QWidget* parent, struct miqt_string title, struct miqt_string label) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getInt(parent, title_QString, label_QString);
}
double QInputDialog_GetDouble(QWidget* parent, struct miqt_string title, struct miqt_string label) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getDouble(parent, title_QString, label_QString);
}
double QInputDialog_GetDouble2(QWidget* parent, struct miqt_string title, struct miqt_string label, double value, double minValue, double maxValue, int decimals, bool* ok, int flags, double step) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getDouble(parent, title_QString, label_QString, static_cast<double>(value), static_cast<double>(minValue), static_cast<double>(maxValue), static_cast<int>(decimals), ok, static_cast<Qt::WindowFlags>(flags), static_cast<double>(step));
}
void QInputDialog_SetDoubleStep(QInputDialog* self, double step) {
self->setDoubleStep(static_cast<double>(step));
}
double QInputDialog_DoubleStep(const QInputDialog* self) {
return self->doubleStep();
}
void QInputDialog_TextValueChanged(QInputDialog* self, struct miqt_string text) {
QString text_QString = QString::fromUtf8(text.data, text.len);
self->textValueChanged(text_QString);
}
void QInputDialog_connect_TextValueChanged(QInputDialog* self, intptr_t slot) {
MiqtVirtualQInputDialog::connect(self, static_cast<void (QInputDialog::*)(const QString&)>(&QInputDialog::textValueChanged), self, [=](const QString& text) {
const QString text_ret = text;
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray text_b = text_ret.toUtf8();
struct miqt_string text_ms;
text_ms.len = text_b.length();
text_ms.data = static_cast<char*>(malloc(text_ms.len));
memcpy(text_ms.data, text_b.data(), text_ms.len);
struct miqt_string sigval1 = text_ms;
miqt_exec_callback_QInputDialog_TextValueChanged(slot, sigval1);
});
}
void QInputDialog_TextValueSelected(QInputDialog* self, struct miqt_string text) {
QString text_QString = QString::fromUtf8(text.data, text.len);
self->textValueSelected(text_QString);
}
void QInputDialog_connect_TextValueSelected(QInputDialog* self, intptr_t slot) {
MiqtVirtualQInputDialog::connect(self, static_cast<void (QInputDialog::*)(const QString&)>(&QInputDialog::textValueSelected), self, [=](const QString& text) {
const QString text_ret = text;
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray text_b = text_ret.toUtf8();
struct miqt_string text_ms;
text_ms.len = text_b.length();
text_ms.data = static_cast<char*>(malloc(text_ms.len));
memcpy(text_ms.data, text_b.data(), text_ms.len);
struct miqt_string sigval1 = text_ms;
miqt_exec_callback_QInputDialog_TextValueSelected(slot, sigval1);
});
}
void QInputDialog_IntValueChanged(QInputDialog* self, int value) {
self->intValueChanged(static_cast<int>(value));
}
void QInputDialog_connect_IntValueChanged(QInputDialog* self, intptr_t slot) {
MiqtVirtualQInputDialog::connect(self, static_cast<void (QInputDialog::*)(int)>(&QInputDialog::intValueChanged), self, [=](int value) {
int sigval1 = value;
miqt_exec_callback_QInputDialog_IntValueChanged(slot, sigval1);
});
}
void QInputDialog_IntValueSelected(QInputDialog* self, int value) {
self->intValueSelected(static_cast<int>(value));
}
void QInputDialog_connect_IntValueSelected(QInputDialog* self, intptr_t slot) {
MiqtVirtualQInputDialog::connect(self, static_cast<void (QInputDialog::*)(int)>(&QInputDialog::intValueSelected), self, [=](int value) {
int sigval1 = value;
miqt_exec_callback_QInputDialog_IntValueSelected(slot, sigval1);
});
}
void QInputDialog_DoubleValueChanged(QInputDialog* self, double value) {
self->doubleValueChanged(static_cast<double>(value));
}
void QInputDialog_connect_DoubleValueChanged(QInputDialog* self, intptr_t slot) {
MiqtVirtualQInputDialog::connect(self, static_cast<void (QInputDialog::*)(double)>(&QInputDialog::doubleValueChanged), self, [=](double value) {
double sigval1 = value;
miqt_exec_callback_QInputDialog_DoubleValueChanged(slot, sigval1);
});
}
void QInputDialog_DoubleValueSelected(QInputDialog* self, double value) {
self->doubleValueSelected(static_cast<double>(value));
}
void QInputDialog_connect_DoubleValueSelected(QInputDialog* self, intptr_t slot) {
MiqtVirtualQInputDialog::connect(self, static_cast<void (QInputDialog::*)(double)>(&QInputDialog::doubleValueSelected), self, [=](double value) {
double sigval1 = value;
miqt_exec_callback_QInputDialog_DoubleValueSelected(slot, sigval1);
});
}
void QInputDialog_Done(QInputDialog* self, int result) {
self->done(static_cast<int>(result));
}
struct miqt_string QInputDialog_Tr2(const char* s, const char* c) {
QString _ret = QInputDialog::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 QInputDialog_Tr3(const char* s, const char* c, int n) {
QString _ret = QInputDialog::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;
}
struct miqt_string QInputDialog_TrUtf82(const char* s, const char* c) {
QString _ret = QInputDialog::trUtf8(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 QInputDialog_TrUtf83(const char* s, const char* c, int n) {
QString _ret = QInputDialog::trUtf8(s, c, static_cast<int>(n));
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
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 QInputDialog_SetOption2(QInputDialog* self, int option, bool on) {
self->setOption(static_cast<QInputDialog::InputDialogOption>(option), on);
}
struct miqt_string QInputDialog_GetText4(QWidget* parent, struct miqt_string title, struct miqt_string label, int echo) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QString _ret = QInputDialog::getText(parent, title_QString, label_QString, static_cast<QLineEdit::EchoMode>(echo));
// 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 QInputDialog_GetText5(QWidget* parent, struct miqt_string title, struct miqt_string label, int echo, struct miqt_string text) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QString text_QString = QString::fromUtf8(text.data, text.len);
QString _ret = QInputDialog::getText(parent, title_QString, label_QString, static_cast<QLineEdit::EchoMode>(echo), text_QString);
// 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 QInputDialog_GetText6(QWidget* parent, struct miqt_string title, struct miqt_string label, int echo, struct miqt_string text, bool* ok) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QString text_QString = QString::fromUtf8(text.data, text.len);
QString _ret = QInputDialog::getText(parent, title_QString, label_QString, static_cast<QLineEdit::EchoMode>(echo), text_QString, ok);
// 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 QInputDialog_GetText7(QWidget* parent, struct miqt_string title, struct miqt_string label, int echo, struct miqt_string text, bool* ok, int flags) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QString text_QString = QString::fromUtf8(text.data, text.len);
QString _ret = QInputDialog::getText(parent, title_QString, label_QString, static_cast<QLineEdit::EchoMode>(echo), text_QString, ok, static_cast<Qt::WindowFlags>(flags));
// 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 QInputDialog_GetText8(QWidget* parent, struct miqt_string title, struct miqt_string label, int echo, struct miqt_string text, bool* ok, int flags, int inputMethodHints) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QString text_QString = QString::fromUtf8(text.data, text.len);
QString _ret = QInputDialog::getText(parent, title_QString, label_QString, static_cast<QLineEdit::EchoMode>(echo), text_QString, ok, static_cast<Qt::WindowFlags>(flags), static_cast<Qt::InputMethodHints>(inputMethodHints));
// 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 QInputDialog_GetMultiLineText4(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_string text) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QString text_QString = QString::fromUtf8(text.data, text.len);
QString _ret = QInputDialog::getMultiLineText(parent, title_QString, label_QString, text_QString);
// 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 QInputDialog_GetMultiLineText5(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_string text, bool* ok) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QString text_QString = QString::fromUtf8(text.data, text.len);
QString _ret = QInputDialog::getMultiLineText(parent, title_QString, label_QString, text_QString, ok);
// 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 QInputDialog_GetMultiLineText6(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_string text, bool* ok, int flags) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QString text_QString = QString::fromUtf8(text.data, text.len);
QString _ret = QInputDialog::getMultiLineText(parent, title_QString, label_QString, text_QString, ok, static_cast<Qt::WindowFlags>(flags));
// 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 QInputDialog_GetMultiLineText7(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_string text, bool* ok, int flags, int inputMethodHints) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QString text_QString = QString::fromUtf8(text.data, text.len);
QString _ret = QInputDialog::getMultiLineText(parent, title_QString, label_QString, text_QString, ok, static_cast<Qt::WindowFlags>(flags), static_cast<Qt::InputMethodHints>(inputMethodHints));
// 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 QInputDialog_GetItem5(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QStringList items_QList;
items_QList.reserve(items.len);
struct miqt_string* items_arr = static_cast<struct miqt_string*>(items.data);
for(size_t i = 0; i < items.len; ++i) {
QString items_arr_i_QString = QString::fromUtf8(items_arr[i].data, items_arr[i].len);
items_QList.push_back(items_arr_i_QString);
}
QString _ret = QInputDialog::getItem(parent, title_QString, label_QString, items_QList, static_cast<int>(current));
// 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 QInputDialog_GetItem6(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QStringList items_QList;
items_QList.reserve(items.len);
struct miqt_string* items_arr = static_cast<struct miqt_string*>(items.data);
for(size_t i = 0; i < items.len; ++i) {
QString items_arr_i_QString = QString::fromUtf8(items_arr[i].data, items_arr[i].len);
items_QList.push_back(items_arr_i_QString);
}
QString _ret = QInputDialog::getItem(parent, title_QString, label_QString, items_QList, static_cast<int>(current), editable);
// 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 QInputDialog_GetItem7(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QStringList items_QList;
items_QList.reserve(items.len);
struct miqt_string* items_arr = static_cast<struct miqt_string*>(items.data);
for(size_t i = 0; i < items.len; ++i) {
QString items_arr_i_QString = QString::fromUtf8(items_arr[i].data, items_arr[i].len);
items_QList.push_back(items_arr_i_QString);
}
QString _ret = QInputDialog::getItem(parent, title_QString, label_QString, items_QList, static_cast<int>(current), editable, ok);
// 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 QInputDialog_GetItem8(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QStringList items_QList;
items_QList.reserve(items.len);
struct miqt_string* items_arr = static_cast<struct miqt_string*>(items.data);
for(size_t i = 0; i < items.len; ++i) {
QString items_arr_i_QString = QString::fromUtf8(items_arr[i].data, items_arr[i].len);
items_QList.push_back(items_arr_i_QString);
}
QString _ret = QInputDialog::getItem(parent, title_QString, label_QString, items_QList, static_cast<int>(current), editable, ok, static_cast<Qt::WindowFlags>(flags));
// 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 QInputDialog_GetItem9(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags, int inputMethodHints) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
QStringList items_QList;
items_QList.reserve(items.len);
struct miqt_string* items_arr = static_cast<struct miqt_string*>(items.data);
for(size_t i = 0; i < items.len; ++i) {
QString items_arr_i_QString = QString::fromUtf8(items_arr[i].data, items_arr[i].len);
items_QList.push_back(items_arr_i_QString);
}
QString _ret = QInputDialog::getItem(parent, title_QString, label_QString, items_QList, static_cast<int>(current), editable, ok, static_cast<Qt::WindowFlags>(flags), static_cast<Qt::InputMethodHints>(inputMethodHints));
// 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 QInputDialog_GetInt4(QWidget* parent, struct miqt_string title, struct miqt_string label, int value) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getInt(parent, title_QString, label_QString, static_cast<int>(value));
}
int QInputDialog_GetInt5(QWidget* parent, struct miqt_string title, struct miqt_string label, int value, int minValue) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getInt(parent, title_QString, label_QString, static_cast<int>(value), static_cast<int>(minValue));
}
int QInputDialog_GetInt6(QWidget* parent, struct miqt_string title, struct miqt_string label, int value, int minValue, int maxValue) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getInt(parent, title_QString, label_QString, static_cast<int>(value), static_cast<int>(minValue), static_cast<int>(maxValue));
}
int QInputDialog_GetInt7(QWidget* parent, struct miqt_string title, struct miqt_string label, int value, int minValue, int maxValue, int step) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getInt(parent, title_QString, label_QString, static_cast<int>(value), static_cast<int>(minValue), static_cast<int>(maxValue), static_cast<int>(step));
}
int QInputDialog_GetInt8(QWidget* parent, struct miqt_string title, struct miqt_string label, int value, int minValue, int maxValue, int step, bool* ok) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getInt(parent, title_QString, label_QString, static_cast<int>(value), static_cast<int>(minValue), static_cast<int>(maxValue), static_cast<int>(step), ok);
}
int QInputDialog_GetInt9(QWidget* parent, struct miqt_string title, struct miqt_string label, int value, int minValue, int maxValue, int step, bool* ok, int flags) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getInt(parent, title_QString, label_QString, static_cast<int>(value), static_cast<int>(minValue), static_cast<int>(maxValue), static_cast<int>(step), ok, static_cast<Qt::WindowFlags>(flags));
}
double QInputDialog_GetDouble4(QWidget* parent, struct miqt_string title, struct miqt_string label, double value) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getDouble(parent, title_QString, label_QString, static_cast<double>(value));
}
double QInputDialog_GetDouble5(QWidget* parent, struct miqt_string title, struct miqt_string label, double value, double minValue) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getDouble(parent, title_QString, label_QString, static_cast<double>(value), static_cast<double>(minValue));
}
double QInputDialog_GetDouble6(QWidget* parent, struct miqt_string title, struct miqt_string label, double value, double minValue, double maxValue) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getDouble(parent, title_QString, label_QString, static_cast<double>(value), static_cast<double>(minValue), static_cast<double>(maxValue));
}
double QInputDialog_GetDouble7(QWidget* parent, struct miqt_string title, struct miqt_string label, double value, double minValue, double maxValue, int decimals) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getDouble(parent, title_QString, label_QString, static_cast<double>(value), static_cast<double>(minValue), static_cast<double>(maxValue), static_cast<int>(decimals));
}
double QInputDialog_GetDouble8(QWidget* parent, struct miqt_string title, struct miqt_string label, double value, double minValue, double maxValue, int decimals, bool* ok) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getDouble(parent, title_QString, label_QString, static_cast<double>(value), static_cast<double>(minValue), static_cast<double>(maxValue), static_cast<int>(decimals), ok);
}
double QInputDialog_GetDouble9(QWidget* parent, struct miqt_string title, struct miqt_string label, double value, double minValue, double maxValue, int decimals, bool* ok, int flags) {
QString title_QString = QString::fromUtf8(title.data, title.len);
QString label_QString = QString::fromUtf8(label.data, label.len);
return QInputDialog::getDouble(parent, title_QString, label_QString, static_cast<double>(value), static_cast<double>(minValue), static_cast<double>(maxValue), static_cast<int>(decimals), ok, static_cast<Qt::WindowFlags>(flags));
}
void QInputDialog_override_virtual_MinimumSizeHint(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQInputDialog*>( (QInputDialog*)(self) )->handle__MinimumSizeHint = slot;
}
QSize* QInputDialog_virtualbase_MinimumSizeHint(const void* self) {
return ( (const MiqtVirtualQInputDialog*)(self) )->virtualbase_MinimumSizeHint();
}
void QInputDialog_override_virtual_SizeHint(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQInputDialog*>( (QInputDialog*)(self) )->handle__SizeHint = slot;
}
QSize* QInputDialog_virtualbase_SizeHint(const void* self) {
return ( (const MiqtVirtualQInputDialog*)(self) )->virtualbase_SizeHint();
}
void QInputDialog_override_virtual_SetVisible(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQInputDialog*>( (QInputDialog*)(self) )->handle__SetVisible = slot;
}
void QInputDialog_virtualbase_SetVisible(void* self, bool visible) {
( (MiqtVirtualQInputDialog*)(self) )->virtualbase_SetVisible(visible);
}
void QInputDialog_override_virtual_Done(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQInputDialog*>( (QInputDialog*)(self) )->handle__Done = slot;
}
void QInputDialog_virtualbase_Done(void* self, int result) {
( (MiqtVirtualQInputDialog*)(self) )->virtualbase_Done(result);
}
void QInputDialog_override_virtual_Open(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQInputDialog*>( (QInputDialog*)(self) )->handle__Open = slot;
}
void QInputDialog_virtualbase_Open(void* self) {
( (MiqtVirtualQInputDialog*)(self) )->virtualbase_Open();
}
void QInputDialog_override_virtual_Exec(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQInputDialog*>( (QInputDialog*)(self) )->handle__Exec = slot;
}
int QInputDialog_virtualbase_Exec(void* self) {
return ( (MiqtVirtualQInputDialog*)(self) )->virtualbase_Exec();
}
void QInputDialog_override_virtual_Accept(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQInputDialog*>( (QInputDialog*)(self) )->handle__Accept = slot;
}
void QInputDialog_virtualbase_Accept(void* self) {
( (MiqtVirtualQInputDialog*)(self) )->virtualbase_Accept();
}
void QInputDialog_override_virtual_Reject(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQInputDialog*>( (QInputDialog*)(self) )->handle__Reject = slot;
}
void QInputDialog_virtualbase_Reject(void* self) {
( (MiqtVirtualQInputDialog*)(self) )->virtualbase_Reject();
}
void QInputDialog_override_virtual_KeyPressEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQInputDialog*>( (QInputDialog*)(self) )->handle__KeyPressEvent = slot;
}
void QInputDialog_virtualbase_KeyPressEvent(void* self, QKeyEvent* param1) {
( (MiqtVirtualQInputDialog*)(self) )->virtualbase_KeyPressEvent(param1);
}
void QInputDialog_override_virtual_CloseEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQInputDialog*>( (QInputDialog*)(self) )->handle__CloseEvent = slot;
}
void QInputDialog_virtualbase_CloseEvent(void* self, QCloseEvent* param1) {
( (MiqtVirtualQInputDialog*)(self) )->virtualbase_CloseEvent(param1);
}
void QInputDialog_override_virtual_ShowEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQInputDialog*>( (QInputDialog*)(self) )->handle__ShowEvent = slot;
}
void QInputDialog_virtualbase_ShowEvent(void* self, QShowEvent* param1) {
( (MiqtVirtualQInputDialog*)(self) )->virtualbase_ShowEvent(param1);
}
void QInputDialog_override_virtual_ResizeEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQInputDialog*>( (QInputDialog*)(self) )->handle__ResizeEvent = slot;
}
void QInputDialog_virtualbase_ResizeEvent(void* self, QResizeEvent* param1) {
( (MiqtVirtualQInputDialog*)(self) )->virtualbase_ResizeEvent(param1);
}
void QInputDialog_override_virtual_ContextMenuEvent(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQInputDialog*>( (QInputDialog*)(self) )->handle__ContextMenuEvent = slot;
}
void QInputDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1) {
( (MiqtVirtualQInputDialog*)(self) )->virtualbase_ContextMenuEvent(param1);
}
void QInputDialog_override_virtual_EventFilter(void* self, intptr_t slot) {
dynamic_cast<MiqtVirtualQInputDialog*>( (QInputDialog*)(self) )->handle__EventFilter = slot;
}
bool QInputDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2) {
return ( (MiqtVirtualQInputDialog*)(self) )->virtualbase_EventFilter(param1, param2);
}
void QInputDialog_Delete(QInputDialog* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<MiqtVirtualQInputDialog*>( self );
} else {
delete self;
}
}