feat: add translate field and autoStartBox

This commit is contained in:
semenov
2024-08-29 16:18:19 +03:00
parent 321ba21942
commit 143d7f0868
24 changed files with 454 additions and 110 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -22,8 +22,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_DataParser_t {
QByteArrayData data[1];
char stringdata0[11];
QByteArrayData data[3];
char stringdata0[29];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -32,10 +32,12 @@ struct qt_meta_stringdata_DataParser_t {
)
static const qt_meta_stringdata_DataParser_t qt_meta_stringdata_DataParser = {
{
QT_MOC_LITERAL(0, 0, 10) // "DataParser"
QT_MOC_LITERAL(0, 0, 10), // "DataParser"
QT_MOC_LITERAL(1, 11, 16), // "slotGetXmlAnswer"
QT_MOC_LITERAL(2, 28, 0) // ""
},
"DataParser"
"DataParser\0slotGetXmlAnswer\0"
};
#undef QT_MOC_LITERAL
@@ -45,22 +47,33 @@ static const uint qt_meta_data_DataParser[] = {
8, // revision
0, // classname
0, 0, // classinfo
0, 0, // methods
1, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
// slots: name, argc, parameters, tag, flags
1, 1, 19, 2, 0x0a /* Public */,
// slots: parameters
QMetaType::QByteArray, QMetaType::QString, 2,
0 // eod
};
void DataParser::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
Q_UNUSED(_o);
Q_UNUSED(_id);
Q_UNUSED(_c);
Q_UNUSED(_a);
if (_c == QMetaObject::InvokeMetaMethod) {
auto *_t = static_cast<DataParser *>(_o);
Q_UNUSED(_t)
switch (_id) {
case 0: { QByteArray _r = _t->slotGetXmlAnswer((*reinterpret_cast< QString(*)>(_a[1])));
if (_a[0]) *reinterpret_cast< QByteArray*>(_a[0]) = std::move(_r); } break;
default: ;
}
}
}
QT_INIT_METAOBJECT const QMetaObject DataParser::staticMetaObject = { {
@@ -89,6 +102,17 @@ void *DataParser::qt_metacast(const char *_clname)
int DataParser::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QObject::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 1)
qt_static_metacall(this, _c, _id, _a);
_id -= 1;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 1)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 1;
}
return _id;
}
QT_WARNING_POP

Binary file not shown.

View File

@@ -22,8 +22,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_MainWindow_t {
QByteArrayData data[23];
char stringdata0[391];
QByteArrayData data[25];
char stringdata0[426];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -54,7 +54,9 @@ QT_MOC_LITERAL(18, 303, 25), // "on_settingsButton_clicked"
QT_MOC_LITERAL(19, 329, 13), // "disableNotify"
QT_MOC_LITERAL(20, 343, 17), // "onConnectionState"
QT_MOC_LITERAL(21, 361, 4), // "flag"
QT_MOC_LITERAL(22, 366, 24) // "on_connectButton_clicked"
QT_MOC_LITERAL(22, 366, 24), // "on_connectButton_clicked"
QT_MOC_LITERAL(23, 391, 29), // "on_languageComboBox_activated"
QT_MOC_LITERAL(24, 421, 4) // "arg1"
},
"MainWindow\0onInitializeClient\0\0"
@@ -67,7 +69,8 @@ QT_MOC_LITERAL(22, 366, 24) // "on_connectButton_clicked"
"on_updateButton_clicked\0on_startButton_clicked\0"
"on_saveServerButton_clicked\0"
"on_settingsButton_clicked\0disableNotify\0"
"onConnectionState\0flag\0on_connectButton_clicked"
"onConnectionState\0flag\0on_connectButton_clicked\0"
"on_languageComboBox_activated\0arg1"
};
#undef QT_MOC_LITERAL
@@ -77,7 +80,7 @@ static const uint qt_meta_data_MainWindow[] = {
8, // revision
0, // classname
0, 0, // classinfo
13, 14, // methods
14, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
@@ -85,21 +88,22 @@ static const uint qt_meta_data_MainWindow[] = {
5, // signalCount
// signals: name, argc, parameters, tag, flags
1, 2, 79, 2, 0x06 /* Public */,
7, 1, 84, 2, 0x06 /* Public */,
10, 0, 87, 2, 0x06 /* Public */,
11, 0, 88, 2, 0x06 /* Public */,
12, 1, 89, 2, 0x06 /* Public */,
1, 2, 84, 2, 0x06 /* Public */,
7, 1, 89, 2, 0x06 /* Public */,
10, 0, 92, 2, 0x06 /* Public */,
11, 0, 93, 2, 0x06 /* Public */,
12, 1, 94, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
14, 0, 92, 2, 0x08 /* Private */,
15, 0, 93, 2, 0x08 /* Private */,
16, 0, 94, 2, 0x08 /* Private */,
17, 0, 95, 2, 0x08 /* Private */,
18, 0, 96, 2, 0x08 /* Private */,
19, 0, 97, 2, 0x08 /* Private */,
20, 1, 98, 2, 0x08 /* Private */,
22, 0, 101, 2, 0x08 /* Private */,
14, 0, 97, 2, 0x08 /* Private */,
15, 0, 98, 2, 0x08 /* Private */,
16, 0, 99, 2, 0x08 /* Private */,
17, 0, 100, 2, 0x08 /* Private */,
18, 0, 101, 2, 0x08 /* Private */,
19, 0, 102, 2, 0x08 /* Private */,
20, 1, 103, 2, 0x08 /* Private */,
22, 0, 106, 2, 0x08 /* Private */,
23, 1, 107, 2, 0x08 /* Private */,
// signals: parameters
QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, 4, 6,
@@ -117,6 +121,7 @@ static const uint qt_meta_data_MainWindow[] = {
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 21,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 24,
0 // eod
};
@@ -140,6 +145,7 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
case 10: _t->disableNotify(); break;
case 11: _t->onConnectionState((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 12: _t->on_connectButton_clicked(); break;
case 13: _t->on_languageComboBox_activated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
@@ -224,13 +230,13 @@ int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 13)
if (_id < 14)
qt_static_metacall(this, _c, _id, _a);
_id -= 13;
_id -= 14;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 13)
if (_id < 14)
qt_static_metacall(this, _c, _id, _a);
_id -= 13;
_id -= 14;
}
return _id;
}

Binary file not shown.

Binary file not shown.

View File

@@ -22,8 +22,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_TCPClient_t {
QByteArrayData data[11];
char stringdata0[111];
QByteArrayData data[12];
char stringdata0[130];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -41,14 +41,15 @@ QT_MOC_LITERAL(5, 44, 11), // "QTcpSocket*"
QT_MOC_LITERAL(6, 56, 6), // "socket"
QT_MOC_LITERAL(7, 63, 15), // "ConnectionState"
QT_MOC_LITERAL(8, 79, 4), // "flag"
QT_MOC_LITERAL(9, 84, 14), // "MessageEntered"
QT_MOC_LITERAL(10, 99, 11) // "onReadyRead"
QT_MOC_LITERAL(9, 84, 18), // "signalGetXmlAnswer"
QT_MOC_LITERAL(10, 103, 14), // "MessageEntered"
QT_MOC_LITERAL(11, 118, 11) // "onReadyRead"
},
"TCPClient\0onSendDebugLog\0\0message\0"
"Recognize\0QTcpSocket*\0socket\0"
"ConnectionState\0flag\0MessageEntered\0"
"onReadyRead"
"ConnectionState\0flag\0signalGetXmlAnswer\0"
"MessageEntered\0onReadyRead"
};
#undef QT_MOC_LITERAL
@@ -58,26 +59,28 @@ static const uint qt_meta_data_TCPClient[] = {
8, // revision
0, // classname
0, 0, // classinfo
5, 14, // methods
6, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
3, // signalCount
4, // signalCount
// signals: name, argc, parameters, tag, flags
1, 1, 39, 2, 0x06 /* Public */,
4, 1, 42, 2, 0x06 /* Public */,
7, 1, 45, 2, 0x06 /* Public */,
1, 1, 44, 2, 0x06 /* Public */,
4, 1, 47, 2, 0x06 /* Public */,
7, 1, 50, 2, 0x06 /* Public */,
9, 1, 53, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
9, 1, 48, 2, 0x0a /* Public */,
10, 0, 51, 2, 0x08 /* Private */,
10, 1, 56, 2, 0x0a /* Public */,
11, 0, 59, 2, 0x08 /* Private */,
// signals: parameters
QMetaType::Void, QMetaType::QString, 3,
QMetaType::Void, 0x80000000 | 5, 6,
QMetaType::Void, QMetaType::Bool, 8,
QMetaType::QByteArray, QMetaType::QString, 2,
// slots: parameters
QMetaType::Void, QMetaType::QString, 3,
@@ -95,8 +98,10 @@ void TCPClient::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, v
case 0: _t->onSendDebugLog((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 1: _t->Recognize((*reinterpret_cast< QTcpSocket*(*)>(_a[1]))); break;
case 2: _t->ConnectionState((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 3: _t->MessageEntered((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 4: _t->onReadyRead(); break;
case 3: { QByteArray _r = _t->signalGetXmlAnswer((*reinterpret_cast< QString(*)>(_a[1])));
if (_a[0]) *reinterpret_cast< QByteArray*>(_a[0]) = std::move(_r); } break;
case 4: _t->MessageEntered((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 5: _t->onReadyRead(); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
@@ -133,6 +138,13 @@ void TCPClient::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, v
return;
}
}
{
using _t = QByteArray (TCPClient::*)(QString );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TCPClient::signalGetXmlAnswer)) {
*result = 3;
return;
}
}
}
}
@@ -165,13 +177,13 @@ int TCPClient::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 5)
if (_id < 6)
qt_static_metacall(this, _c, _id, _a);
_id -= 5;
_id -= 6;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 5)
if (_id < 6)
qt_static_metacall(this, _c, _id, _a);
_id -= 5;
_id -= 6;
}
return _id;
}
@@ -196,5 +208,14 @@ void TCPClient::ConnectionState(bool _t1)
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
// SIGNAL 3
QByteArray TCPClient::signalGetXmlAnswer(QString _t1)
{
QByteArray _t0{};
void *_a[] = { const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t0))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 3, _a);
return _t0;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

Binary file not shown.

Binary file not shown.

Binary file not shown.