2025-01-19 16:39:11 +13:00
|
|
|
#include <QChildEvent>
|
|
|
|
#include <QEvent>
|
|
|
|
#include <QMetaMethod>
|
2024-08-25 16:08:24 +12:00
|
|
|
#include <QMetaObject>
|
2024-11-19 19:29:06 +13:00
|
|
|
#include <QObject>
|
2024-08-25 16:08:24 +12:00
|
|
|
#include <QString>
|
2024-08-29 19:01:51 +12:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-08-25 16:08:24 +12:00
|
|
|
#include <QTextCharFormat>
|
|
|
|
#include <QTextCursor>
|
|
|
|
#include <QTextDocument>
|
2024-11-19 19:29:06 +13:00
|
|
|
#include <QTextFrame>
|
2024-08-29 19:01:51 +12:00
|
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QTextFrame__iterator
|
2024-11-19 19:29:06 +13:00
|
|
|
#include <QTextObject>
|
2024-08-25 16:08:24 +12:00
|
|
|
#include <QTextTable>
|
|
|
|
#include <QTextTableCell>
|
|
|
|
#include <QTextTableFormat>
|
2025-01-19 16:39:11 +13:00
|
|
|
#include <QTimerEvent>
|
2024-10-16 18:07:56 +13:00
|
|
|
#include <qtexttable.h>
|
2024-08-29 19:01:51 +12:00
|
|
|
#include "gen_qtexttable.h"
|
2024-12-11 19:55:47 +13:00
|
|
|
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2025-01-19 16:39:11 +13:00
|
|
|
bool miqt_exec_callback_QTextTable_Event(void*, intptr_t, QEvent*);
|
|
|
|
bool miqt_exec_callback_QTextTable_EventFilter(void*, intptr_t, QObject*, QEvent*);
|
|
|
|
void miqt_exec_callback_QTextTable_TimerEvent(void*, intptr_t, QTimerEvent*);
|
|
|
|
void miqt_exec_callback_QTextTable_ChildEvent(void*, intptr_t, QChildEvent*);
|
|
|
|
void miqt_exec_callback_QTextTable_CustomEvent(void*, intptr_t, QEvent*);
|
|
|
|
void miqt_exec_callback_QTextTable_ConnectNotify(void*, intptr_t, QMetaMethod*);
|
|
|
|
void miqt_exec_callback_QTextTable_DisconnectNotify(void*, intptr_t, QMetaMethod*);
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
2024-12-11 19:55:47 +13:00
|
|
|
#endif
|
2024-08-25 16:08:24 +12:00
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QTextTableCell* QTextTableCell_new() {
|
|
|
|
return new QTextTableCell();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QTextTableCell* QTextTableCell_new2(QTextTableCell* o) {
|
|
|
|
return new QTextTableCell(*o);
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTableCell_OperatorAssign(QTextTableCell* self, QTextTableCell* o) {
|
|
|
|
self->operator=(*o);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTableCell_SetFormat(QTextTableCell* self, QTextCharFormat* format) {
|
|
|
|
self->setFormat(*format);
|
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
QTextCharFormat* QTextTableCell_Format(const QTextTableCell* self) {
|
2024-09-17 18:29:11 +12:00
|
|
|
return new QTextCharFormat(self->format());
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
int QTextTableCell_Row(const QTextTableCell* self) {
|
|
|
|
return self->row();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
int QTextTableCell_Column(const QTextTableCell* self) {
|
|
|
|
return self->column();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
int QTextTableCell_RowSpan(const QTextTableCell* self) {
|
|
|
|
return self->rowSpan();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
int QTextTableCell_ColumnSpan(const QTextTableCell* self) {
|
|
|
|
return self->columnSpan();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
bool QTextTableCell_IsValid(const QTextTableCell* self) {
|
|
|
|
return self->isValid();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
QTextCursor* QTextTableCell_FirstCursorPosition(const QTextTableCell* self) {
|
2024-09-17 18:29:11 +12:00
|
|
|
return new QTextCursor(self->firstCursorPosition());
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
QTextCursor* QTextTableCell_LastCursorPosition(const QTextTableCell* self) {
|
2024-09-17 18:29:11 +12:00
|
|
|
return new QTextCursor(self->lastCursorPosition());
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
int QTextTableCell_FirstPosition(const QTextTableCell* self) {
|
|
|
|
return self->firstPosition();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
int QTextTableCell_LastPosition(const QTextTableCell* self) {
|
|
|
|
return self->lastPosition();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
bool QTextTableCell_OperatorEqual(const QTextTableCell* self, QTextTableCell* other) {
|
2024-11-22 19:06:01 +13:00
|
|
|
return (*self == *other);
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
bool QTextTableCell_OperatorNotEqual(const QTextTableCell* self, QTextTableCell* other) {
|
2024-11-22 19:06:01 +13:00
|
|
|
return (*self != *other);
|
2024-08-29 19:01:51 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
QTextFrame__iterator* QTextTableCell_Begin(const QTextTableCell* self) {
|
2024-09-17 18:29:11 +12:00
|
|
|
return new QTextFrame::iterator(self->begin());
|
2024-08-29 19:01:51 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
QTextFrame__iterator* QTextTableCell_End(const QTextTableCell* self) {
|
2024-09-17 18:29:11 +12:00
|
|
|
return new QTextFrame::iterator(self->end());
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
int QTextTableCell_TableCellFormatIndex(const QTextTableCell* self) {
|
|
|
|
return self->tableCellFormatIndex();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2025-01-18 17:42:41 +13:00
|
|
|
void QTextTableCell_Delete(QTextTableCell* self) {
|
|
|
|
delete self;
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2025-01-19 16:39:11 +13:00
|
|
|
class MiqtVirtualQTextTable final : public QTextTable {
|
|
|
|
public:
|
|
|
|
|
|
|
|
MiqtVirtualQTextTable(QTextDocument* doc): QTextTable(doc) {};
|
|
|
|
|
|
|
|
virtual ~MiqtVirtualQTextTable() override = default;
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__Event = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual bool event(QEvent* event) override {
|
|
|
|
if (handle__Event == 0) {
|
|
|
|
return QTextTable::event(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QTextTable_Event(this, handle__Event, sigval1);
|
|
|
|
|
|
|
|
return callback_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
bool virtualbase_Event(QEvent* event) {
|
|
|
|
|
|
|
|
return QTextTable::event(event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__EventFilter = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual bool eventFilter(QObject* watched, QEvent* event) override {
|
|
|
|
if (handle__EventFilter == 0) {
|
|
|
|
return QTextTable::eventFilter(watched, event);
|
|
|
|
}
|
|
|
|
|
|
|
|
QObject* sigval1 = watched;
|
|
|
|
QEvent* sigval2 = event;
|
|
|
|
|
|
|
|
bool callback_return_value = miqt_exec_callback_QTextTable_EventFilter(this, handle__EventFilter, sigval1, sigval2);
|
|
|
|
|
|
|
|
return callback_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
bool virtualbase_EventFilter(QObject* watched, QEvent* event) {
|
|
|
|
|
|
|
|
return QTextTable::eventFilter(watched, event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__TimerEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void timerEvent(QTimerEvent* event) override {
|
|
|
|
if (handle__TimerEvent == 0) {
|
|
|
|
QTextTable::timerEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTimerEvent* sigval1 = event;
|
|
|
|
|
|
|
|
miqt_exec_callback_QTextTable_TimerEvent(this, handle__TimerEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_TimerEvent(QTimerEvent* event) {
|
|
|
|
|
|
|
|
QTextTable::timerEvent(event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__ChildEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void childEvent(QChildEvent* event) override {
|
|
|
|
if (handle__ChildEvent == 0) {
|
|
|
|
QTextTable::childEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QChildEvent* sigval1 = event;
|
|
|
|
|
|
|
|
miqt_exec_callback_QTextTable_ChildEvent(this, handle__ChildEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_ChildEvent(QChildEvent* event) {
|
|
|
|
|
|
|
|
QTextTable::childEvent(event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__CustomEvent = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void customEvent(QEvent* event) override {
|
|
|
|
if (handle__CustomEvent == 0) {
|
|
|
|
QTextTable::customEvent(event);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
QEvent* sigval1 = event;
|
|
|
|
|
|
|
|
miqt_exec_callback_QTextTable_CustomEvent(this, handle__CustomEvent, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_CustomEvent(QEvent* event) {
|
|
|
|
|
|
|
|
QTextTable::customEvent(event);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__ConnectNotify = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void connectNotify(const QMetaMethod& signal) override {
|
|
|
|
if (handle__ConnectNotify == 0) {
|
|
|
|
QTextTable::connectNotify(signal);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
|
|
|
|
miqt_exec_callback_QTextTable_ConnectNotify(this, handle__ConnectNotify, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_ConnectNotify(QMetaMethod* signal) {
|
|
|
|
|
|
|
|
QTextTable::connectNotify(*signal);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// cgo.Handle value for overwritten implementation
|
|
|
|
intptr_t handle__DisconnectNotify = 0;
|
|
|
|
|
|
|
|
// Subclass to allow providing a Go implementation
|
|
|
|
virtual void disconnectNotify(const QMetaMethod& signal) override {
|
|
|
|
if (handle__DisconnectNotify == 0) {
|
|
|
|
QTextTable::disconnectNotify(signal);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
const QMetaMethod& signal_ret = signal;
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
QMetaMethod* sigval1 = const_cast<QMetaMethod*>(&signal_ret);
|
|
|
|
|
|
|
|
miqt_exec_callback_QTextTable_DisconnectNotify(this, handle__DisconnectNotify, sigval1);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wrapper to allow calling protected method
|
|
|
|
void virtualbase_DisconnectNotify(QMetaMethod* signal) {
|
|
|
|
|
|
|
|
QTextTable::disconnectNotify(*signal);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QTextTable* QTextTable_new(QTextDocument* doc) {
|
2025-01-19 16:39:11 +13:00
|
|
|
return new MiqtVirtualQTextTable(doc);
|
2024-12-07 17:15:57 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_virtbase(QTextTable* src, QTextFrame** outptr_QTextFrame) {
|
|
|
|
*outptr_QTextFrame = static_cast<QTextFrame*>(src);
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
QMetaObject* QTextTable_MetaObject(const QTextTable* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-21 10:32:57 +12:00
|
|
|
void* QTextTable_Metacast(QTextTable* self, const char* param1) {
|
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
2024-10-19 12:53:33 +13:00
|
|
|
struct miqt_string QTextTable_Tr(const char* s) {
|
2024-09-15 10:29:05 +12:00
|
|
|
QString _ret = QTextTable::tr(s);
|
2024-08-25 16:08:24 +12:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-15 10:29:05 +12:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-19 12:53:33 +13:00
|
|
|
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;
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-10-19 12:53:33 +13:00
|
|
|
struct miqt_string QTextTable_TrUtf8(const char* s) {
|
2024-09-15 10:29:05 +12:00
|
|
|
QString _ret = QTextTable::trUtf8(s);
|
2024-08-25 16:08:24 +12:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-15 10:29:05 +12:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-19 12:53:33 +13:00
|
|
|
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;
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_Resize(QTextTable* self, int rows, int cols) {
|
|
|
|
self->resize(static_cast<int>(rows), static_cast<int>(cols));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_InsertRows(QTextTable* self, int pos, int num) {
|
|
|
|
self->insertRows(static_cast<int>(pos), static_cast<int>(num));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_InsertColumns(QTextTable* self, int pos, int num) {
|
|
|
|
self->insertColumns(static_cast<int>(pos), static_cast<int>(num));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_AppendRows(QTextTable* self, int count) {
|
|
|
|
self->appendRows(static_cast<int>(count));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_AppendColumns(QTextTable* self, int count) {
|
|
|
|
self->appendColumns(static_cast<int>(count));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_RemoveRows(QTextTable* self, int pos, int num) {
|
|
|
|
self->removeRows(static_cast<int>(pos), static_cast<int>(num));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_RemoveColumns(QTextTable* self, int pos, int num) {
|
|
|
|
self->removeColumns(static_cast<int>(pos), static_cast<int>(num));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_MergeCells(QTextTable* self, int row, int col, int numRows, int numCols) {
|
|
|
|
self->mergeCells(static_cast<int>(row), static_cast<int>(col), static_cast<int>(numRows), static_cast<int>(numCols));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_MergeCellsWithCursor(QTextTable* self, QTextCursor* cursor) {
|
|
|
|
self->mergeCells(*cursor);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_SplitCell(QTextTable* self, int row, int col, int numRows, int numCols) {
|
|
|
|
self->splitCell(static_cast<int>(row), static_cast<int>(col), static_cast<int>(numRows), static_cast<int>(numCols));
|
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
int QTextTable_Rows(const QTextTable* self) {
|
|
|
|
return self->rows();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
int QTextTable_Columns(const QTextTable* self) {
|
|
|
|
return self->columns();
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
QTextTableCell* QTextTable_CellAt(const QTextTable* self, int row, int col) {
|
2024-09-17 18:29:11 +12:00
|
|
|
return new QTextTableCell(self->cellAt(static_cast<int>(row), static_cast<int>(col)));
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
QTextTableCell* QTextTable_CellAtWithPosition(const QTextTable* self, int position) {
|
2024-09-17 18:29:11 +12:00
|
|
|
return new QTextTableCell(self->cellAt(static_cast<int>(position)));
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
QTextTableCell* QTextTable_CellAtWithQTextCursor(const QTextTable* self, QTextCursor* c) {
|
2024-09-17 18:29:11 +12:00
|
|
|
return new QTextTableCell(self->cellAt(*c));
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
QTextCursor* QTextTable_RowStart(const QTextTable* self, QTextCursor* c) {
|
2024-09-17 18:29:11 +12:00
|
|
|
return new QTextCursor(self->rowStart(*c));
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
QTextCursor* QTextTable_RowEnd(const QTextTable* self, QTextCursor* c) {
|
2024-09-17 18:29:11 +12:00
|
|
|
return new QTextCursor(self->rowEnd(*c));
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_SetFormat(QTextTable* self, QTextTableFormat* format) {
|
|
|
|
self->setFormat(*format);
|
|
|
|
}
|
|
|
|
|
2024-09-11 17:41:09 +12:00
|
|
|
QTextTableFormat* QTextTable_Format(const QTextTable* self) {
|
2024-09-17 18:29:11 +12:00
|
|
|
return new QTextTableFormat(self->format());
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-10-19 12:53:33 +13:00
|
|
|
struct miqt_string QTextTable_Tr2(const char* s, const char* c) {
|
2024-09-15 10:29:05 +12:00
|
|
|
QString _ret = QTextTable::tr(s, c);
|
2024-08-25 16:08:24 +12:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-15 10:29:05 +12:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-19 12:53:33 +13:00
|
|
|
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;
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-10-19 12:53:33 +13:00
|
|
|
struct miqt_string QTextTable_Tr3(const char* s, const char* c, int n) {
|
2024-09-15 10:29:05 +12:00
|
|
|
QString _ret = QTextTable::tr(s, c, static_cast<int>(n));
|
2024-08-25 16:08:24 +12:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-15 10:29:05 +12:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-19 12:53:33 +13:00
|
|
|
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;
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-10-19 12:53:33 +13:00
|
|
|
struct miqt_string QTextTable_TrUtf82(const char* s, const char* c) {
|
2024-09-15 10:29:05 +12:00
|
|
|
QString _ret = QTextTable::trUtf8(s, c);
|
2024-08-25 16:08:24 +12:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-15 10:29:05 +12:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-19 12:53:33 +13:00
|
|
|
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;
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2024-10-19 12:53:33 +13:00
|
|
|
struct miqt_string QTextTable_TrUtf83(const char* s, const char* c, int n) {
|
2024-09-15 10:29:05 +12:00
|
|
|
QString _ret = QTextTable::trUtf8(s, c, static_cast<int>(n));
|
2024-08-25 16:08:24 +12:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-15 10:29:05 +12:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-19 12:53:33 +13:00
|
|
|
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;
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|
2025-01-19 16:39:11 +13:00
|
|
|
bool QTextTable_override_virtual_Event(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQTextTable* self_cast = dynamic_cast<MiqtVirtualQTextTable*>( (QTextTable*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__Event = slot;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QTextTable_virtualbase_Event(void* self, QEvent* event) {
|
|
|
|
return ( (MiqtVirtualQTextTable*)(self) )->virtualbase_Event(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QTextTable_override_virtual_EventFilter(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQTextTable* self_cast = dynamic_cast<MiqtVirtualQTextTable*>( (QTextTable*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__EventFilter = slot;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QTextTable_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event) {
|
|
|
|
return ( (MiqtVirtualQTextTable*)(self) )->virtualbase_EventFilter(watched, event);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QTextTable_override_virtual_TimerEvent(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQTextTable* self_cast = dynamic_cast<MiqtVirtualQTextTable*>( (QTextTable*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__TimerEvent = slot;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_virtualbase_TimerEvent(void* self, QTimerEvent* event) {
|
|
|
|
( (MiqtVirtualQTextTable*)(self) )->virtualbase_TimerEvent(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QTextTable_override_virtual_ChildEvent(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQTextTable* self_cast = dynamic_cast<MiqtVirtualQTextTable*>( (QTextTable*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__ChildEvent = slot;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_virtualbase_ChildEvent(void* self, QChildEvent* event) {
|
|
|
|
( (MiqtVirtualQTextTable*)(self) )->virtualbase_ChildEvent(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QTextTable_override_virtual_CustomEvent(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQTextTable* self_cast = dynamic_cast<MiqtVirtualQTextTable*>( (QTextTable*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__CustomEvent = slot;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_virtualbase_CustomEvent(void* self, QEvent* event) {
|
|
|
|
( (MiqtVirtualQTextTable*)(self) )->virtualbase_CustomEvent(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QTextTable_override_virtual_ConnectNotify(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQTextTable* self_cast = dynamic_cast<MiqtVirtualQTextTable*>( (QTextTable*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__ConnectNotify = slot;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_virtualbase_ConnectNotify(void* self, QMetaMethod* signal) {
|
|
|
|
( (MiqtVirtualQTextTable*)(self) )->virtualbase_ConnectNotify(signal);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QTextTable_override_virtual_DisconnectNotify(void* self, intptr_t slot) {
|
|
|
|
MiqtVirtualQTextTable* self_cast = dynamic_cast<MiqtVirtualQTextTable*>( (QTextTable*)(self) );
|
|
|
|
if (self_cast == nullptr) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
self_cast->handle__DisconnectNotify = slot;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QTextTable_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) {
|
|
|
|
( (MiqtVirtualQTextTable*)(self) )->virtualbase_DisconnectNotify(signal);
|
|
|
|
}
|
|
|
|
|
2025-01-18 17:42:41 +13:00
|
|
|
void QTextTable_Delete(QTextTable* self) {
|
|
|
|
delete self;
|
2024-08-25 16:08:24 +12:00
|
|
|
}
|
|
|
|
|