Files
VoiletCStudio/moc_mainwindow.cpp
虾哥 19296b7337 VoiletCStudio v1.0 - 紫罗兰 C 工程配置器
功能特性:
- JSON 格式工程配置文件
- 虚拟目录管理(类似 MDK)
- 跨平台 CMake 自动生成
- 一键编译 Debug/Release
- 拖拽文件打开工程
- 实时编译输出显示

作者:虾哥
日期:2026-04-09
2026-04-09 10:18:39 -04:00

234 lines
8.3 KiB
C++

/****************************************************************************
** Meta object code from reading C++ file 'mainwindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.15)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include <memory>
#include "src/mainwindow.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mainwindow.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.15. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_MainWindow_t {
QByteArrayData data[30];
char stringdata0[438];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = {
{
QT_MOC_LITERAL(0, 0, 10), // "MainWindow"
QT_MOC_LITERAL(1, 11, 10), // "newProject"
QT_MOC_LITERAL(2, 22, 0), // ""
QT_MOC_LITERAL(3, 23, 11), // "openProject"
QT_MOC_LITERAL(4, 35, 11), // "saveProject"
QT_MOC_LITERAL(5, 47, 13), // "saveProjectAs"
QT_MOC_LITERAL(6, 61, 13), // "generateCMake"
QT_MOC_LITERAL(7, 75, 12), // "compileDebug"
QT_MOC_LITERAL(8, 88, 14), // "compileRelease"
QT_MOC_LITERAL(9, 103, 14), // "compileProject"
QT_MOC_LITERAL(10, 118, 9), // "buildType"
QT_MOC_LITERAL(11, 128, 20), // "onProjectNameChanged"
QT_MOC_LITERAL(12, 149, 4), // "text"
QT_MOC_LITERAL(13, 154, 21), // "onCompilerPathChanged"
QT_MOC_LITERAL(14, 176, 22), // "onAssemblerPathChanged"
QT_MOC_LITERAL(15, 199, 19), // "onLinkerPathChanged"
QT_MOC_LITERAL(16, 219, 13), // "addVirtualDir"
QT_MOC_LITERAL(17, 233, 13), // "addSourceFile"
QT_MOC_LITERAL(18, 247, 16), // "removeSourceFile"
QT_MOC_LITERAL(19, 264, 13), // "addIncludeDir"
QT_MOC_LITERAL(20, 278, 16), // "removeIncludeDir"
QT_MOC_LITERAL(21, 295, 10), // "addLibrary"
QT_MOC_LITERAL(22, 306, 13), // "removeLibrary"
QT_MOC_LITERAL(23, 320, 9), // "addDefine"
QT_MOC_LITERAL(24, 330, 12), // "removeDefine"
QT_MOC_LITERAL(25, 343, 17), // "addCompilerOption"
QT_MOC_LITERAL(26, 361, 20), // "removeCompilerOption"
QT_MOC_LITERAL(27, 382, 18), // "browseCompilerPath"
QT_MOC_LITERAL(28, 401, 19), // "browseAssemblerPath"
QT_MOC_LITERAL(29, 421, 16) // "browseLinkerPath"
},
"MainWindow\0newProject\0\0openProject\0"
"saveProject\0saveProjectAs\0generateCMake\0"
"compileDebug\0compileRelease\0compileProject\0"
"buildType\0onProjectNameChanged\0text\0"
"onCompilerPathChanged\0onAssemblerPathChanged\0"
"onLinkerPathChanged\0addVirtualDir\0"
"addSourceFile\0removeSourceFile\0"
"addIncludeDir\0removeIncludeDir\0"
"addLibrary\0removeLibrary\0addDefine\0"
"removeDefine\0addCompilerOption\0"
"removeCompilerOption\0browseCompilerPath\0"
"browseAssemblerPath\0browseLinkerPath"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_MainWindow[] = {
// content:
8, // revision
0, // classname
0, 0, // classinfo
26, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
// slots: name, argc, parameters, tag, flags
1, 0, 144, 2, 0x08 /* Private */,
3, 0, 145, 2, 0x08 /* Private */,
4, 0, 146, 2, 0x08 /* Private */,
5, 0, 147, 2, 0x08 /* Private */,
6, 0, 148, 2, 0x08 /* Private */,
7, 0, 149, 2, 0x08 /* Private */,
8, 0, 150, 2, 0x08 /* Private */,
9, 1, 151, 2, 0x08 /* Private */,
11, 1, 154, 2, 0x08 /* Private */,
13, 0, 157, 2, 0x08 /* Private */,
14, 0, 158, 2, 0x08 /* Private */,
15, 0, 159, 2, 0x08 /* Private */,
16, 0, 160, 2, 0x08 /* Private */,
17, 0, 161, 2, 0x08 /* Private */,
18, 0, 162, 2, 0x08 /* Private */,
19, 0, 163, 2, 0x08 /* Private */,
20, 0, 164, 2, 0x08 /* Private */,
21, 0, 165, 2, 0x08 /* Private */,
22, 0, 166, 2, 0x08 /* Private */,
23, 0, 167, 2, 0x08 /* Private */,
24, 0, 168, 2, 0x08 /* Private */,
25, 0, 169, 2, 0x08 /* Private */,
26, 0, 170, 2, 0x08 /* Private */,
27, 0, 171, 2, 0x08 /* Private */,
28, 0, 172, 2, 0x08 /* Private */,
29, 0, 173, 2, 0x08 /* Private */,
// slots: parameters
QMetaType::Void,
QMetaType::Void,
QMetaType::Bool,
QMetaType::Bool,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 10,
QMetaType::Void, QMetaType::QString, 12,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
0 // eod
};
void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
auto *_t = static_cast<MainWindow *>(_o);
(void)_t;
switch (_id) {
case 0: _t->newProject(); break;
case 1: _t->openProject(); break;
case 2: { bool _r = _t->saveProject();
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
case 3: { bool _r = _t->saveProjectAs();
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
case 4: _t->generateCMake(); break;
case 5: _t->compileDebug(); break;
case 6: _t->compileRelease(); break;
case 7: _t->compileProject((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 8: _t->onProjectNameChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 9: _t->onCompilerPathChanged(); break;
case 10: _t->onAssemblerPathChanged(); break;
case 11: _t->onLinkerPathChanged(); break;
case 12: _t->addVirtualDir(); break;
case 13: _t->addSourceFile(); break;
case 14: _t->removeSourceFile(); break;
case 15: _t->addIncludeDir(); break;
case 16: _t->removeIncludeDir(); break;
case 17: _t->addLibrary(); break;
case 18: _t->removeLibrary(); break;
case 19: _t->addDefine(); break;
case 20: _t->removeDefine(); break;
case 21: _t->addCompilerOption(); break;
case 22: _t->removeCompilerOption(); break;
case 23: _t->browseCompilerPath(); break;
case 24: _t->browseAssemblerPath(); break;
case 25: _t->browseLinkerPath(); break;
default: ;
}
}
}
QT_INIT_METAOBJECT const QMetaObject MainWindow::staticMetaObject = { {
QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
qt_meta_stringdata_MainWindow.data,
qt_meta_data_MainWindow,
qt_static_metacall,
nullptr,
nullptr
} };
const QMetaObject *MainWindow::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *MainWindow::qt_metacast(const char *_clname)
{
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0))
return static_cast<void*>(this);
return QMainWindow::qt_metacast(_clname);
}
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QMainWindow::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 26)
qt_static_metacall(this, _c, _id, _a);
_id -= 26;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 26)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 26;
}
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE