/** * @file main.cpp * @brief 综合平台编程器应用程序入口。 * @version 0.1.0 * @author suyu * @date 2026-08-05 */ #include #include "infrastructure/json_project_storage.h" #include "services/hmi_editor_service.h" #include "services/hmi_runtime_service.h" #include "services/project_service.h" #include "services/runtime_mode_service.h" #include "ui/main_window.h" int main(int argc, char *argv[]) { QApplication application(argc, argv); application.setApplicationName(QObject::tr("综合平台编程器")); application.setOrganizationName(QStringLiteral("QtProXinJe")); JsonProjectStorage project_storage; ProjectService project_service(project_storage); HmiEditorService hmi_editor_service(project_service); VirtualRegisterRepository virtual_register_repository; HmiRuntimeService hmi_runtime_service(virtual_register_repository); RuntimeModeService runtime_mode_service; MainWindow main_window( runtime_mode_service, project_service, hmi_editor_service, hmi_runtime_service); main_window.show(); return application.exec(); }