2024-08-25 04:08:24 +00:00
|
|
|
#include <QIcon>
|
|
|
|
#include <QMetaObject>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QUndoGroup>
|
|
|
|
#include <QUndoStack>
|
|
|
|
#include <QUndoView>
|
|
|
|
#include <QWidget>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qundoview.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qundoview.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QUndoView* QUndoView_new() {
|
|
|
|
return new QUndoView();
|
|
|
|
}
|
|
|
|
|
|
|
|
QUndoView* QUndoView_new2(QUndoStack* stack) {
|
|
|
|
return new QUndoView(stack);
|
|
|
|
}
|
|
|
|
|
|
|
|
QUndoView* QUndoView_new3(QUndoGroup* group) {
|
|
|
|
return new QUndoView(group);
|
|
|
|
}
|
|
|
|
|
|
|
|
QUndoView* QUndoView_new4(QWidget* parent) {
|
|
|
|
return new QUndoView(parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QUndoView* QUndoView_new5(QUndoStack* stack, QWidget* parent) {
|
|
|
|
return new QUndoView(stack, parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QUndoView* QUndoView_new6(QUndoGroup* group, QWidget* parent) {
|
|
|
|
return new QUndoView(group, parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QUndoView_MetaObject(const QUndoView* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QUndoView_Metacast(QUndoView* self, const char* param1) {
|
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QUndoView_Tr(const char* s) {
|
|
|
|
QString _ret = QUndoView::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* QUndoView_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QUndoView::trUtf8(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QUndoStack* QUndoView_Stack(const QUndoView* self) {
|
|
|
|
return self->stack();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QUndoGroup* QUndoView_Group(const QUndoView* self) {
|
|
|
|
return self->group();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QUndoView_SetEmptyLabel(QUndoView* self, struct miqt_string* label) {
|
|
|
|
QString label_QString = QString::fromUtf8(&label->data, label->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setEmptyLabel(label_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QUndoView_EmptyLabel(const QUndoView* self) {
|
|
|
|
QString _ret = self->emptyLabel();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QUndoView_SetCleanIcon(QUndoView* self, QIcon* icon) {
|
|
|
|
self->setCleanIcon(*icon);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QIcon* QUndoView_CleanIcon(const QUndoView* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QIcon(self->cleanIcon());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QUndoView_SetStack(QUndoView* self, QUndoStack* stack) {
|
|
|
|
self->setStack(stack);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QUndoView_SetGroup(QUndoView* self, QUndoGroup* group) {
|
|
|
|
self->setGroup(group);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QUndoView_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QUndoView::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* QUndoView_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QUndoView::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* QUndoView_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QUndoView::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* QUndoView_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QUndoView::trUtf8(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QUndoView_Delete(QUndoView* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|