综合平台编程器项目的远程存储
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

39 line
1.1 KiB

  1. /**
  2. * @file main.cpp
  3. * @brief 综合平台编程器应用程序入口。
  4. * @version 0.1.0
  5. * @author suyu
  6. * @date 2026-08-05
  7. */
  8. #include <QApplication>
  9. #include "infrastructure/json_project_storage.h"
  10. #include "services/hmi_editor_service.h"
  11. #include "services/hmi_runtime_service.h"
  12. #include "services/project_service.h"
  13. #include "services/runtime_mode_service.h"
  14. #include "ui/main_window.h"
  15. int main(int argc, char *argv[])
  16. {
  17. QApplication application(argc, argv);
  18. application.setApplicationName(QObject::tr("综合平台编程器"));
  19. application.setOrganizationName(QStringLiteral("QtProXinJe"));
  20. JsonProjectStorage project_storage;
  21. ProjectService project_service(project_storage);
  22. HmiEditorService hmi_editor_service(project_service);
  23. VirtualRegisterRepository virtual_register_repository;
  24. HmiRuntimeService hmi_runtime_service(virtual_register_repository);
  25. RuntimeModeService runtime_mode_service;
  26. MainWindow main_window(
  27. runtime_mode_service,
  28. project_service,
  29. hmi_editor_service,
  30. hmi_runtime_service);
  31. main_window.show();
  32. return application.exec();
  33. }