pull/3/head
parent
c651f19d89
commit
f6fa651ab1
@ -0,0 +1,98 @@
|
|||||||
|
# Details
|
||||||
|
|
||||||
|
Date : 2025-06-29 17:36:53
|
||||||
|
|
||||||
|
Directory /home/hzk/Software_Architecture
|
||||||
|
|
||||||
|
Total : 83 files, 15656 codes, 1748 comments, 3324 blanks, all 20728 lines
|
||||||
|
|
||||||
|
[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
|
||||||
|
|
||||||
|
## Files
|
||||||
|
| filename | language | code | comment | blank | total |
|
||||||
|
| :--- | :--- | ---: | ---: | ---: | ---: |
|
||||||
|
| [.claude/settings.local.json](/.claude/settings.local.json) | JSON | 19 | 0 | 0 | 19 |
|
||||||
|
| [README.md](/README.md) | Markdown | 1 | 0 | 2 | 3 |
|
||||||
|
| [design-geimi.html](/design-geimi.html) | HTML | 414 | 14 | 39 | 467 |
|
||||||
|
| [design.html](/design.html) | HTML | 955 | 9 | 142 | 1,106 |
|
||||||
|
| [prompt.md](/prompt.md) | Markdown | 142 | 0 | 113 | 255 |
|
||||||
|
| [src/Client/.claude/settings.local.json](/src/Client/.claude/settings.local.json) | JSON | 43 | 0 | 0 | 43 |
|
||||||
|
| [src/Client/.promptx/memory/declarative.md](/src/Client/.promptx/memory/declarative.md) | Markdown | 90 | 0 | 25 | 115 |
|
||||||
|
| [src/Client/.promptx/pouch.json](/src/Client/.promptx/pouch.json) | JSON | 404 | 0 | 1 | 405 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-designer-simple/qt-ui-designer-simple.role.md](/src/Client/.promptx/resource/domain/qt-ui-designer-simple/qt-ui-designer-simple.role.md) | Markdown | 36 | 0 | 4 | 40 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-designer/execution/design-documentation-process.execution.md](/src/Client/.promptx/resource/domain/qt-ui-designer/execution/design-documentation-process.execution.md) | Markdown | 79 | 0 | 12 | 91 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-designer/execution/qt-ui-design-workflow.execution.md](/src/Client/.promptx/resource/domain/qt-ui-designer/execution/qt-ui-design-workflow.execution.md) | Markdown | 87 | 0 | 18 | 105 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-designer/knowledge/design-documentation-methods.knowledge.md](/src/Client/.promptx/resource/domain/qt-ui-designer/knowledge/design-documentation-methods.knowledge.md) | Markdown | 33 | 0 | 13 | 46 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-designer/knowledge/qt-ui-expertise.knowledge.md](/src/Client/.promptx/resource/domain/qt-ui-designer/knowledge/qt-ui-expertise.knowledge.md) | Markdown | 56 | 0 | 16 | 72 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-designer/qt-ui-designer.role.md](/src/Client/.promptx/resource/domain/qt-ui-designer/qt-ui-designer.role.md) | Markdown | 16 | 0 | 2 | 18 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-designer/thought/documentation-expression.thought.md](/src/Client/.promptx/resource/domain/qt-ui-designer/thought/documentation-expression.thought.md) | Markdown | 64 | 0 | 13 | 77 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-designer/thought/ui-design-thinking.thought.md](/src/Client/.promptx/resource/domain/qt-ui-designer/thought/ui-design-thinking.thought.md) | Markdown | 59 | 0 | 12 | 71 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-developer/qt-ui-developer.role.md](/src/Client/.promptx/resource/domain/qt-ui-developer/qt-ui-developer.role.md) | Markdown | 126 | 0 | 23 | 149 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-optimizer/execution/layout-enhancement-process.execution.md](/src/Client/.promptx/resource/domain/qt-ui-optimizer/execution/layout-enhancement-process.execution.md) | Markdown | 249 | 0 | 40 | 289 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-optimizer/execution/ui-optimization-workflow.execution.md](/src/Client/.promptx/resource/domain/qt-ui-optimizer/execution/ui-optimization-workflow.execution.md) | Markdown | 224 | 0 | 32 | 256 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-optimizer/knowledge/qt-ui-optimization-expertise.knowledge.md](/src/Client/.promptx/resource/domain/qt-ui-optimizer/knowledge/qt-ui-optimization-expertise.knowledge.md) | Markdown | 412 | 0 | 70 | 482 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-optimizer/qt-ui-optimizer.role.md](/src/Client/.promptx/resource/domain/qt-ui-optimizer/qt-ui-optimizer.role.md) | Markdown | 15 | 0 | 0 | 15 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-optimizer/thought/aesthetic-enhancement.thought.md](/src/Client/.promptx/resource/domain/qt-ui-optimizer/thought/aesthetic-enhancement.thought.md) | Markdown | 73 | 0 | 15 | 88 |
|
||||||
|
| [src/Client/.promptx/resource/domain/qt-ui-optimizer/thought/ui-optimization-thinking.thought.md](/src/Client/.promptx/resource/domain/qt-ui-optimizer/thought/ui-optimization-thinking.thought.md) | Markdown | 66 | 0 | 14 | 80 |
|
||||||
|
| [src/Client/.promptx/resource/project.registry.json](/src/Client/.promptx/resource/project.registry.json) | JSON | 220 | 0 | 1 | 221 |
|
||||||
|
| [src/Client/.qtc_clangd/compile_commands.json](/src/Client/.qtc_clangd/compile_commands.json) | JSON | 1 | 0 | 0 | 1 |
|
||||||
|
| [src/Client/CLAUDE.md](/src/Client/CLAUDE.md) | Markdown | 188 | 0 | 47 | 235 |
|
||||||
|
| [src/Client/android/AndroidManifest.xml](/src/Client/android/AndroidManifest.xml) | XML | 25 | 0 | 3 | 28 |
|
||||||
|
| [src/Client/android/res/drawable/splash.xml](/src/Client/android/res/drawable/splash.xml) | XML | 13 | 0 | 0 | 13 |
|
||||||
|
| [src/Client/android/res/values/styles.xml](/src/Client/android/res/values/styles.xml) | XML | 6 | 0 | 0 | 6 |
|
||||||
|
| [src/Client/doc/README.md](/src/Client/doc/README.md) | Markdown | 89 | 0 | 29 | 118 |
|
||||||
|
| [src/Client/doc/database/database_design.md](/src/Client/doc/database/database_design.md) | Markdown | 196 | 0 | 44 | 240 |
|
||||||
|
| [src/Client/doc/database/database_schema.sql](/src/Client/doc/database/database_schema.sql) | MS SQL | 126 | 13 | 13 | 152 |
|
||||||
|
| [src/Client/doc/database/updated_database_schema.sql](/src/Client/doc/database/updated_database_schema.sql) | MS SQL | 160 | 17 | 15 | 192 |
|
||||||
|
| [src/Client/doc/git/git_branch_strategy.md](/src/Client/doc/git/git_branch_strategy.md) | Markdown | 237 | 0 | 64 | 301 |
|
||||||
|
| [src/Client/doc/planning/code_refactor_plan.md](/src/Client/doc/planning/code_refactor_plan.md) | Markdown | 224 | 0 | 42 | 266 |
|
||||||
|
| [src/Client/doc/planning/functional_modules_specification.md](/src/Client/doc/planning/functional_modules_specification.md) | Markdown | 175 | 0 | 49 | 224 |
|
||||||
|
| [src/Client/doc/planning/project_structure_plan.md](/src/Client/doc/planning/project_structure_plan.md) | Markdown | 428 | 0 | 58 | 486 |
|
||||||
|
| [src/Client/doc/planning/refactor_impact_assessment.md](/src/Client/doc/planning/refactor_impact_assessment.md) | Markdown | 204 | 0 | 65 | 269 |
|
||||||
|
| [src/Client/doc/planning/task.md](/src/Client/doc/planning/task.md) | Markdown | 297 | 0 | 72 | 369 |
|
||||||
|
| [src/Client/doc/reports/code_refactor_summary.md](/src/Client/doc/reports/code_refactor_summary.md) | Markdown | 153 | 0 | 44 | 197 |
|
||||||
|
| [src/Client/doc/reports/phase1_completion_report.md](/src/Client/doc/reports/phase1_completion_report.md) | Markdown | 137 | 0 | 33 | 170 |
|
||||||
|
| [src/Client/doc/reports/phase3_completion_report.md](/src/Client/doc/reports/phase3_completion_report.md) | Markdown | 200 | 0 | 62 | 262 |
|
||||||
|
| [src/Client/doc/technical/phase3_ui_refactor_plan.md](/src/Client/doc/technical/phase3_ui_refactor_plan.md) | Markdown | 264 | 0 | 76 | 340 |
|
||||||
|
| [src/Client/doc/technical/system_log_design.md](/src/Client/doc/technical/system_log_design.md) | Markdown | 251 | 0 | 71 | 322 |
|
||||||
|
| [src/Client/doc/ui-optimization/color_scheme_unification_report.md](/src/Client/doc/ui-optimization/color_scheme_unification_report.md) | Markdown | 152 | 0 | 41 | 193 |
|
||||||
|
| [src/Client/doc/ui-optimization/css_compatibility_fix_report.md](/src/Client/doc/ui-optimization/css_compatibility_fix_report.md) | Markdown | 175 | 0 | 36 | 211 |
|
||||||
|
| [src/Client/doc/ui-optimization/military_ui_optimization_summary.md](/src/Client/doc/ui-optimization/military_ui_optimization_summary.md) | Markdown | 196 | 0 | 48 | 244 |
|
||||||
|
| [src/Client/doc/ui-optimization/right_panel_ui_optimization_report.md](/src/Client/doc/ui-optimization/right_panel_ui_optimization_report.md) | Markdown | 200 | 0 | 51 | 251 |
|
||||||
|
| [src/Client/doc/ui-optimization/ui_issues_fix_report.md](/src/Client/doc/ui-optimization/ui_issues_fix_report.md) | Markdown | 156 | 0 | 49 | 205 |
|
||||||
|
| [src/Client/doc/ui_design/right_panel_design_spec.md](/src/Client/doc/ui_design/right_panel_design_spec.md) | Markdown | 290 | 0 | 58 | 348 |
|
||||||
|
| [src/Client/doc/ui_design/right_panel_implementation.cpp](/src/Client/doc/ui_design/right_panel_implementation.cpp) | C++ | 521 | 31 | 130 | 682 |
|
||||||
|
| [src/Client/doc/ui_optimization_menubar_statusbar.md](/src/Client/doc/ui_optimization_menubar_statusbar.md) | Markdown | 157 | 0 | 41 | 198 |
|
||||||
|
| [src/Client/doc/ui_optimization_summary.md](/src/Client/doc/ui_optimization_summary.md) | Markdown | 99 | 0 | 32 | 131 |
|
||||||
|
| [src/Client/include/ui/components/DeviceCard.h](/src/Client/include/ui/components/DeviceCard.h) | C++ | 137 | 205 | 53 | 395 |
|
||||||
|
| [src/Client/include/ui/components/DeviceListPanel.h](/src/Client/include/ui/components/DeviceListPanel.h) | C++ | 110 | 224 | 62 | 396 |
|
||||||
|
| [src/Client/include/ui/components/RightFunctionPanel.h](/src/Client/include/ui/components/RightFunctionPanel.h) | C++ | 102 | 179 | 51 | 332 |
|
||||||
|
| [src/Client/include/ui/components/SystemLogPanel.h](/src/Client/include/ui/components/SystemLogPanel.h) | C++ | 67 | 104 | 31 | 202 |
|
||||||
|
| [src/Client/include/ui/dialogs/DeviceDialog.h](/src/Client/include/ui/dialogs/DeviceDialog.h) | C++ | 49 | 83 | 24 | 156 |
|
||||||
|
| [src/Client/include/ui/main/MainWindow.h](/src/Client/include/ui/main/MainWindow.h) | C++ | 88 | 207 | 55 | 350 |
|
||||||
|
| [src/Client/include/utils/SystemLogger.h](/src/Client/include/utils/SystemLogger.h) | C++ | 49 | 104 | 25 | 178 |
|
||||||
|
| [src/Client/res/html/map.html](/src/Client/res/html/map.html) | HTML | 375 | 16 | 41 | 432 |
|
||||||
|
| [src/Client/res/image/UAV.svg](/src/Client/res/image/UAV.svg) | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| [src/Client/res/image/health.png.svg](/src/Client/res/image/health.png.svg) | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| [src/Client/res/image/health.svg](/src/Client/res/image/health.svg) | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| [src/Client/res/image/infomation.svg](/src/Client/res/image/infomation.svg) | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| [src/Client/res/image/location.svg](/src/Client/res/image/location.svg) | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| [src/Client/res/image/map.svg](/src/Client/res/image/map.svg) | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| [src/Client/res/image/mapbtn.svg](/src/Client/res/image/mapbtn.svg) | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| [src/Client/res/image/robotbtn.svg](/src/Client/res/image/robotbtn.svg) | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| [src/Client/res/image/soldier.svg](/src/Client/res/image/soldier.svg) | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| [src/Client/res/image/tab.svg](/src/Client/res/image/tab.svg) | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| [src/Client/run_app.sh](/src/Client/run_app.sh) | Shell Script | 10 | 6 | 4 | 20 |
|
||||||
|
| [src/Client/setup_database.sql](/src/Client/setup_database.sql) | MS SQL | 41 | 7 | 7 | 55 |
|
||||||
|
| [src/Client/src/main.cpp](/src/Client/src/main.cpp) | C++ | 27 | 3 | 7 | 37 |
|
||||||
|
| [src/Client/src/ui/components/DeviceCard.cpp](/src/Client/src/ui/components/DeviceCard.cpp) | C++ | 576 | 79 | 110 | 765 |
|
||||||
|
| [src/Client/src/ui/components/DeviceListPanel.cpp](/src/Client/src/ui/components/DeviceListPanel.cpp) | C++ | 971 | 106 | 186 | 1,263 |
|
||||||
|
| [src/Client/src/ui/components/RightFunctionPanel.cpp](/src/Client/src/ui/components/RightFunctionPanel.cpp) | C++ | 748 | 58 | 151 | 957 |
|
||||||
|
| [src/Client/src/ui/components/SystemLogPanel.cpp](/src/Client/src/ui/components/SystemLogPanel.cpp) | C++ | 374 | 41 | 61 | 476 |
|
||||||
|
| [src/Client/src/ui/dialogs/DeviceDialog.cpp](/src/Client/src/ui/dialogs/DeviceDialog.cpp) | C++ | 510 | 60 | 96 | 666 |
|
||||||
|
| [src/Client/src/ui/main/MainWindow.cpp](/src/Client/src/ui/main/MainWindow.cpp) | C++ | 1,022 | 165 | 214 | 1,401 |
|
||||||
|
| [src/Client/src/utils/SystemLogger.cpp](/src/Client/src/utils/SystemLogger.cpp) | C++ | 120 | 17 | 21 | 158 |
|
||||||
|
| [src/Client/代码规范.md](/src/Client/%E4%BB%A3%E7%A0%81%E8%A7%84%E8%8C%83.md) | Markdown | 638 | 0 | 143 | 781 |
|
||||||
|
| [技术博客_战场探索系统.md](/%E6%8A%80%E6%9C%AF%E5%8D%9A%E5%AE%A2_%E6%88%98%E5%9C%BA%E6%8E%A2%E7%B4%A2%E7%B3%BB%E7%BB%9F.md) | Markdown | 429 | 0 | 102 | 531 |
|
||||||
|
|
||||||
|
[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
|
@ -0,0 +1,15 @@
|
|||||||
|
# Diff Details
|
||||||
|
|
||||||
|
Date : 2025-06-29 17:36:53
|
||||||
|
|
||||||
|
Directory /home/hzk/Software_Architecture
|
||||||
|
|
||||||
|
Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines
|
||||||
|
|
||||||
|
[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details
|
||||||
|
|
||||||
|
## Files
|
||||||
|
| filename | language | code | comment | blank | total |
|
||||||
|
| :--- | :--- | ---: | ---: | ---: | ---: |
|
||||||
|
|
||||||
|
[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details
|
|
@ -0,0 +1,19 @@
|
|||||||
|
# Diff Summary
|
||||||
|
|
||||||
|
Date : 2025-06-29 17:36:53
|
||||||
|
|
||||||
|
Directory /home/hzk/Software_Architecture
|
||||||
|
|
||||||
|
Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines
|
||||||
|
|
||||||
|
[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)
|
||||||
|
|
||||||
|
## Languages
|
||||||
|
| language | files | code | comment | blank | total |
|
||||||
|
| :--- | ---: | ---: | ---: | ---: | ---: |
|
||||||
|
|
||||||
|
## Directories
|
||||||
|
| path | files | code | comment | blank | total |
|
||||||
|
| :--- | ---: | ---: | ---: | ---: | ---: |
|
||||||
|
|
||||||
|
[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)
|
@ -0,0 +1,22 @@
|
|||||||
|
Date : 2025-06-29 17:36:53
|
||||||
|
Directory : /home/hzk/Software_Architecture
|
||||||
|
Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines
|
||||||
|
|
||||||
|
Languages
|
||||||
|
+----------+------------+------------+------------+------------+------------+
|
||||||
|
| language | files | code | comment | blank | total |
|
||||||
|
+----------+------------+------------+------------+------------+------------+
|
||||||
|
+----------+------------+------------+------------+------------+------------+
|
||||||
|
|
||||||
|
Directories
|
||||||
|
+------+------------+------------+------------+------------+------------+
|
||||||
|
| path | files | code | comment | blank | total |
|
||||||
|
+------+------------+------------+------------+------------+------------+
|
||||||
|
+------+------------+------------+------------+------------+------------+
|
||||||
|
|
||||||
|
Files
|
||||||
|
+----------+----------+------------+------------+------------+------------+
|
||||||
|
| filename | language | code | comment | blank | total |
|
||||||
|
+----------+----------+------------+------------+------------+------------+
|
||||||
|
| Total | | 0 | 0 | 0 | 0 |
|
||||||
|
+----------+----------+------------+------------+------------+------------+
|
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,82 @@
|
|||||||
|
# Summary
|
||||||
|
|
||||||
|
Date : 2025-06-29 17:36:53
|
||||||
|
|
||||||
|
Directory /home/hzk/Software_Architecture
|
||||||
|
|
||||||
|
Total : 83 files, 15656 codes, 1748 comments, 3324 blanks, all 20728 lines
|
||||||
|
|
||||||
|
Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
|
||||||
|
|
||||||
|
## Languages
|
||||||
|
| language | files | code | comment | blank | total |
|
||||||
|
| :--- | ---: | ---: | ---: | ---: | ---: |
|
||||||
|
| Markdown | 42 | 7,363 | 0 | 1,781 | 9,144 |
|
||||||
|
| C++ | 16 | 5,471 | 1,666 | 1,277 | 8,414 |
|
||||||
|
| HTML | 3 | 1,744 | 39 | 222 | 2,005 |
|
||||||
|
| JSON | 5 | 687 | 0 | 2 | 689 |
|
||||||
|
| MS SQL | 3 | 327 | 37 | 35 | 399 |
|
||||||
|
| XML | 13 | 54 | 0 | 3 | 57 |
|
||||||
|
| Shell Script | 1 | 10 | 6 | 4 | 20 |
|
||||||
|
|
||||||
|
## Directories
|
||||||
|
| path | files | code | comment | blank | total |
|
||||||
|
| :--- | ---: | ---: | ---: | ---: | ---: |
|
||||||
|
| . | 83 | 15,656 | 1,748 | 3,324 | 20,728 |
|
||||||
|
| . (Files) | 5 | 1,941 | 23 | 398 | 2,362 |
|
||||||
|
| .claude | 1 | 19 | 0 | 0 | 19 |
|
||||||
|
| src | 77 | 13,696 | 1,725 | 2,926 | 18,347 |
|
||||||
|
| src/Client | 77 | 13,696 | 1,725 | 2,926 | 18,347 |
|
||||||
|
| src/Client (Files) | 4 | 877 | 13 | 201 | 1,091 |
|
||||||
|
| src/Client/.claude | 1 | 43 | 0 | 0 | 43 |
|
||||||
|
| src/Client/.promptx | 18 | 2,309 | 0 | 311 | 2,620 |
|
||||||
|
| src/Client/.promptx (Files) | 1 | 404 | 0 | 1 | 405 |
|
||||||
|
| src/Client/.promptx/memory | 1 | 90 | 0 | 25 | 115 |
|
||||||
|
| src/Client/.promptx/resource | 16 | 1,815 | 0 | 285 | 2,100 |
|
||||||
|
| src/Client/.promptx/resource (Files) | 1 | 220 | 0 | 1 | 221 |
|
||||||
|
| src/Client/.promptx/resource/domain | 15 | 1,595 | 0 | 284 | 1,879 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-designer | 7 | 394 | 0 | 86 | 480 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-designer (Files) | 1 | 16 | 0 | 2 | 18 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-designer-simple | 1 | 36 | 0 | 4 | 40 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-designer/execution | 2 | 166 | 0 | 30 | 196 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-designer/knowledge | 2 | 89 | 0 | 29 | 118 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-designer/thought | 2 | 123 | 0 | 25 | 148 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-developer | 1 | 126 | 0 | 23 | 149 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-optimizer | 6 | 1,039 | 0 | 171 | 1,210 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-optimizer (Files) | 1 | 15 | 0 | 0 | 15 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-optimizer/execution | 2 | 473 | 0 | 72 | 545 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-optimizer/knowledge | 1 | 412 | 0 | 70 | 482 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-optimizer/thought | 2 | 139 | 0 | 29 | 168 |
|
||||||
|
| src/Client/.qtc_clangd | 1 | 1 | 0 | 0 | 1 |
|
||||||
|
| src/Client/android | 3 | 44 | 0 | 3 | 47 |
|
||||||
|
| src/Client/android (Files) | 1 | 25 | 0 | 3 | 28 |
|
||||||
|
| src/Client/android/res | 2 | 19 | 0 | 0 | 19 |
|
||||||
|
| src/Client/android/res/drawable | 1 | 13 | 0 | 0 | 13 |
|
||||||
|
| src/Client/android/res/values | 1 | 6 | 0 | 0 | 6 |
|
||||||
|
| src/Client/doc | 24 | 5,087 | 61 | 1,223 | 6,371 |
|
||||||
|
| src/Client/doc (Files) | 3 | 345 | 0 | 102 | 447 |
|
||||||
|
| src/Client/doc/database | 3 | 482 | 30 | 72 | 584 |
|
||||||
|
| src/Client/doc/git | 1 | 237 | 0 | 64 | 301 |
|
||||||
|
| src/Client/doc/planning | 5 | 1,328 | 0 | 286 | 1,614 |
|
||||||
|
| src/Client/doc/reports | 3 | 490 | 0 | 139 | 629 |
|
||||||
|
| src/Client/doc/technical | 2 | 515 | 0 | 147 | 662 |
|
||||||
|
| src/Client/doc/ui-optimization | 5 | 879 | 0 | 225 | 1,104 |
|
||||||
|
| src/Client/doc/ui_design | 2 | 811 | 31 | 188 | 1,030 |
|
||||||
|
| src/Client/include | 7 | 602 | 1,106 | 301 | 2,009 |
|
||||||
|
| src/Client/include/ui | 6 | 553 | 1,002 | 276 | 1,831 |
|
||||||
|
| src/Client/include/ui/components | 4 | 416 | 712 | 197 | 1,325 |
|
||||||
|
| src/Client/include/ui/dialogs | 1 | 49 | 83 | 24 | 156 |
|
||||||
|
| src/Client/include/ui/main | 1 | 88 | 207 | 55 | 350 |
|
||||||
|
| src/Client/include/utils | 1 | 49 | 104 | 25 | 178 |
|
||||||
|
| src/Client/res | 11 | 385 | 16 | 41 | 442 |
|
||||||
|
| src/Client/res/html | 1 | 375 | 16 | 41 | 432 |
|
||||||
|
| src/Client/res/image | 10 | 10 | 0 | 0 | 10 |
|
||||||
|
| src/Client/src | 8 | 4,348 | 529 | 846 | 5,723 |
|
||||||
|
| src/Client/src (Files) | 1 | 27 | 3 | 7 | 37 |
|
||||||
|
| src/Client/src/ui | 6 | 4,201 | 509 | 818 | 5,528 |
|
||||||
|
| src/Client/src/ui/components | 4 | 2,669 | 284 | 508 | 3,461 |
|
||||||
|
| src/Client/src/ui/dialogs | 1 | 510 | 60 | 96 | 666 |
|
||||||
|
| src/Client/src/ui/main | 1 | 1,022 | 165 | 214 | 1,401 |
|
||||||
|
| src/Client/src/utils | 1 | 120 | 17 | 21 | 158 |
|
||||||
|
|
||||||
|
Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
|
@ -0,0 +1,168 @@
|
|||||||
|
Date : 2025-06-29 17:36:53
|
||||||
|
Directory : /home/hzk/Software_Architecture
|
||||||
|
Total : 83 files, 15656 codes, 1748 comments, 3324 blanks, all 20728 lines
|
||||||
|
|
||||||
|
Languages
|
||||||
|
+--------------+------------+------------+------------+------------+------------+
|
||||||
|
| language | files | code | comment | blank | total |
|
||||||
|
+--------------+------------+------------+------------+------------+------------+
|
||||||
|
| Markdown | 42 | 7,363 | 0 | 1,781 | 9,144 |
|
||||||
|
| C++ | 16 | 5,471 | 1,666 | 1,277 | 8,414 |
|
||||||
|
| HTML | 3 | 1,744 | 39 | 222 | 2,005 |
|
||||||
|
| JSON | 5 | 687 | 0 | 2 | 689 |
|
||||||
|
| MS SQL | 3 | 327 | 37 | 35 | 399 |
|
||||||
|
| XML | 13 | 54 | 0 | 3 | 57 |
|
||||||
|
| Shell Script | 1 | 10 | 6 | 4 | 20 |
|
||||||
|
+--------------+------------+------------+------------+------------+------------+
|
||||||
|
|
||||||
|
Directories
|
||||||
|
+-----------------------------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
|
||||||
|
| path | files | code | comment | blank | total |
|
||||||
|
+-----------------------------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
|
||||||
|
| . | 83 | 15,656 | 1,748 | 3,324 | 20,728 |
|
||||||
|
| . (Files) | 5 | 1,941 | 23 | 398 | 2,362 |
|
||||||
|
| .claude | 1 | 19 | 0 | 0 | 19 |
|
||||||
|
| src | 77 | 13,696 | 1,725 | 2,926 | 18,347 |
|
||||||
|
| src/Client | 77 | 13,696 | 1,725 | 2,926 | 18,347 |
|
||||||
|
| src/Client (Files) | 4 | 877 | 13 | 201 | 1,091 |
|
||||||
|
| src/Client/.claude | 1 | 43 | 0 | 0 | 43 |
|
||||||
|
| src/Client/.promptx | 18 | 2,309 | 0 | 311 | 2,620 |
|
||||||
|
| src/Client/.promptx (Files) | 1 | 404 | 0 | 1 | 405 |
|
||||||
|
| src/Client/.promptx/memory | 1 | 90 | 0 | 25 | 115 |
|
||||||
|
| src/Client/.promptx/resource | 16 | 1,815 | 0 | 285 | 2,100 |
|
||||||
|
| src/Client/.promptx/resource (Files) | 1 | 220 | 0 | 1 | 221 |
|
||||||
|
| src/Client/.promptx/resource/domain | 15 | 1,595 | 0 | 284 | 1,879 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-designer | 7 | 394 | 0 | 86 | 480 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-designer (Files) | 1 | 16 | 0 | 2 | 18 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-designer-simple | 1 | 36 | 0 | 4 | 40 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-designer/execution | 2 | 166 | 0 | 30 | 196 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-designer/knowledge | 2 | 89 | 0 | 29 | 118 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-designer/thought | 2 | 123 | 0 | 25 | 148 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-developer | 1 | 126 | 0 | 23 | 149 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-optimizer | 6 | 1,039 | 0 | 171 | 1,210 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-optimizer (Files) | 1 | 15 | 0 | 0 | 15 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-optimizer/execution | 2 | 473 | 0 | 72 | 545 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-optimizer/knowledge | 1 | 412 | 0 | 70 | 482 |
|
||||||
|
| src/Client/.promptx/resource/domain/qt-ui-optimizer/thought | 2 | 139 | 0 | 29 | 168 |
|
||||||
|
| src/Client/.qtc_clangd | 1 | 1 | 0 | 0 | 1 |
|
||||||
|
| src/Client/android | 3 | 44 | 0 | 3 | 47 |
|
||||||
|
| src/Client/android (Files) | 1 | 25 | 0 | 3 | 28 |
|
||||||
|
| src/Client/android/res | 2 | 19 | 0 | 0 | 19 |
|
||||||
|
| src/Client/android/res/drawable | 1 | 13 | 0 | 0 | 13 |
|
||||||
|
| src/Client/android/res/values | 1 | 6 | 0 | 0 | 6 |
|
||||||
|
| src/Client/doc | 24 | 5,087 | 61 | 1,223 | 6,371 |
|
||||||
|
| src/Client/doc (Files) | 3 | 345 | 0 | 102 | 447 |
|
||||||
|
| src/Client/doc/database | 3 | 482 | 30 | 72 | 584 |
|
||||||
|
| src/Client/doc/git | 1 | 237 | 0 | 64 | 301 |
|
||||||
|
| src/Client/doc/planning | 5 | 1,328 | 0 | 286 | 1,614 |
|
||||||
|
| src/Client/doc/reports | 3 | 490 | 0 | 139 | 629 |
|
||||||
|
| src/Client/doc/technical | 2 | 515 | 0 | 147 | 662 |
|
||||||
|
| src/Client/doc/ui-optimization | 5 | 879 | 0 | 225 | 1,104 |
|
||||||
|
| src/Client/doc/ui_design | 2 | 811 | 31 | 188 | 1,030 |
|
||||||
|
| src/Client/include | 7 | 602 | 1,106 | 301 | 2,009 |
|
||||||
|
| src/Client/include/ui | 6 | 553 | 1,002 | 276 | 1,831 |
|
||||||
|
| src/Client/include/ui/components | 4 | 416 | 712 | 197 | 1,325 |
|
||||||
|
| src/Client/include/ui/dialogs | 1 | 49 | 83 | 24 | 156 |
|
||||||
|
| src/Client/include/ui/main | 1 | 88 | 207 | 55 | 350 |
|
||||||
|
| src/Client/include/utils | 1 | 49 | 104 | 25 | 178 |
|
||||||
|
| src/Client/res | 11 | 385 | 16 | 41 | 442 |
|
||||||
|
| src/Client/res/html | 1 | 375 | 16 | 41 | 432 |
|
||||||
|
| src/Client/res/image | 10 | 10 | 0 | 0 | 10 |
|
||||||
|
| src/Client/src | 8 | 4,348 | 529 | 846 | 5,723 |
|
||||||
|
| src/Client/src (Files) | 1 | 27 | 3 | 7 | 37 |
|
||||||
|
| src/Client/src/ui | 6 | 4,201 | 509 | 818 | 5,528 |
|
||||||
|
| src/Client/src/ui/components | 4 | 2,669 | 284 | 508 | 3,461 |
|
||||||
|
| src/Client/src/ui/dialogs | 1 | 510 | 60 | 96 | 666 |
|
||||||
|
| src/Client/src/ui/main | 1 | 1,022 | 165 | 214 | 1,401 |
|
||||||
|
| src/Client/src/utils | 1 | 120 | 17 | 21 | 158 |
|
||||||
|
+-----------------------------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
|
||||||
|
|
||||||
|
Files
|
||||||
|
+-----------------------------------------------------------------------------------------------------------------------------------------+--------------+------------+------------+------------+------------+
|
||||||
|
| filename | language | code | comment | blank | total |
|
||||||
|
+-----------------------------------------------------------------------------------------------------------------------------------------+--------------+------------+------------+------------+------------+
|
||||||
|
| /home/hzk/Software_Architecture/.claude/settings.local.json | JSON | 19 | 0 | 0 | 19 |
|
||||||
|
| /home/hzk/Software_Architecture/README.md | Markdown | 1 | 0 | 2 | 3 |
|
||||||
|
| /home/hzk/Software_Architecture/design-geimi.html | HTML | 414 | 14 | 39 | 467 |
|
||||||
|
| /home/hzk/Software_Architecture/design.html | HTML | 955 | 9 | 142 | 1,106 |
|
||||||
|
| /home/hzk/Software_Architecture/prompt.md | Markdown | 142 | 0 | 113 | 255 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.claude/settings.local.json | JSON | 43 | 0 | 0 | 43 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/memory/declarative.md | Markdown | 90 | 0 | 25 | 115 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/pouch.json | JSON | 404 | 0 | 1 | 405 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-designer-simple/qt-ui-designer-simple.role.md | Markdown | 36 | 0 | 4 | 40 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-designer/execution/design-documentation-process.execution.md | Markdown | 79 | 0 | 12 | 91 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-designer/execution/qt-ui-design-workflow.execution.md | Markdown | 87 | 0 | 18 | 105 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-designer/knowledge/design-documentation-methods.knowledge.md | Markdown | 33 | 0 | 13 | 46 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-designer/knowledge/qt-ui-expertise.knowledge.md | Markdown | 56 | 0 | 16 | 72 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-designer/qt-ui-designer.role.md | Markdown | 16 | 0 | 2 | 18 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-designer/thought/documentation-expression.thought.md | Markdown | 64 | 0 | 13 | 77 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-designer/thought/ui-design-thinking.thought.md | Markdown | 59 | 0 | 12 | 71 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-developer/qt-ui-developer.role.md | Markdown | 126 | 0 | 23 | 149 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-optimizer/execution/layout-enhancement-process.execution.md | Markdown | 249 | 0 | 40 | 289 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-optimizer/execution/ui-optimization-workflow.execution.md | Markdown | 224 | 0 | 32 | 256 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-optimizer/knowledge/qt-ui-optimization-expertise.knowledge.md | Markdown | 412 | 0 | 70 | 482 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-optimizer/qt-ui-optimizer.role.md | Markdown | 15 | 0 | 0 | 15 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-optimizer/thought/aesthetic-enhancement.thought.md | Markdown | 73 | 0 | 15 | 88 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/domain/qt-ui-optimizer/thought/ui-optimization-thinking.thought.md | Markdown | 66 | 0 | 14 | 80 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.promptx/resource/project.registry.json | JSON | 220 | 0 | 1 | 221 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/.qtc_clangd/compile_commands.json | JSON | 1 | 0 | 0 | 1 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/CLAUDE.md | Markdown | 188 | 0 | 47 | 235 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/android/AndroidManifest.xml | XML | 25 | 0 | 3 | 28 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/android/res/drawable/splash.xml | XML | 13 | 0 | 0 | 13 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/android/res/values/styles.xml | XML | 6 | 0 | 0 | 6 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/README.md | Markdown | 89 | 0 | 29 | 118 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/database/database_design.md | Markdown | 196 | 0 | 44 | 240 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/database/database_schema.sql | MS SQL | 126 | 13 | 13 | 152 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/database/updated_database_schema.sql | MS SQL | 160 | 17 | 15 | 192 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/git/git_branch_strategy.md | Markdown | 237 | 0 | 64 | 301 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/planning/code_refactor_plan.md | Markdown | 224 | 0 | 42 | 266 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/planning/functional_modules_specification.md | Markdown | 175 | 0 | 49 | 224 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/planning/project_structure_plan.md | Markdown | 428 | 0 | 58 | 486 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/planning/refactor_impact_assessment.md | Markdown | 204 | 0 | 65 | 269 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/planning/task.md | Markdown | 297 | 0 | 72 | 369 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/reports/code_refactor_summary.md | Markdown | 153 | 0 | 44 | 197 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/reports/phase1_completion_report.md | Markdown | 137 | 0 | 33 | 170 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/reports/phase3_completion_report.md | Markdown | 200 | 0 | 62 | 262 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/technical/phase3_ui_refactor_plan.md | Markdown | 264 | 0 | 76 | 340 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/technical/system_log_design.md | Markdown | 251 | 0 | 71 | 322 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/ui-optimization/color_scheme_unification_report.md | Markdown | 152 | 0 | 41 | 193 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/ui-optimization/css_compatibility_fix_report.md | Markdown | 175 | 0 | 36 | 211 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/ui-optimization/military_ui_optimization_summary.md | Markdown | 196 | 0 | 48 | 244 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/ui-optimization/right_panel_ui_optimization_report.md | Markdown | 200 | 0 | 51 | 251 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/ui-optimization/ui_issues_fix_report.md | Markdown | 156 | 0 | 49 | 205 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/ui_design/right_panel_design_spec.md | Markdown | 290 | 0 | 58 | 348 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/ui_design/right_panel_implementation.cpp | C++ | 521 | 31 | 130 | 682 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/ui_optimization_menubar_statusbar.md | Markdown | 157 | 0 | 41 | 198 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/doc/ui_optimization_summary.md | Markdown | 99 | 0 | 32 | 131 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/include/ui/components/DeviceCard.h | C++ | 137 | 205 | 53 | 395 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/include/ui/components/DeviceListPanel.h | C++ | 110 | 224 | 62 | 396 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/include/ui/components/RightFunctionPanel.h | C++ | 102 | 179 | 51 | 332 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/include/ui/components/SystemLogPanel.h | C++ | 67 | 104 | 31 | 202 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/include/ui/dialogs/DeviceDialog.h | C++ | 49 | 83 | 24 | 156 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/include/ui/main/MainWindow.h | C++ | 88 | 207 | 55 | 350 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/include/utils/SystemLogger.h | C++ | 49 | 104 | 25 | 178 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/res/html/map.html | HTML | 375 | 16 | 41 | 432 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/res/image/UAV.svg | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/res/image/health.png.svg | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/res/image/health.svg | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/res/image/infomation.svg | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/res/image/location.svg | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/res/image/map.svg | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/res/image/mapbtn.svg | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/res/image/robotbtn.svg | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/res/image/soldier.svg | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/res/image/tab.svg | XML | 1 | 0 | 0 | 1 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/run_app.sh | Shell Script | 10 | 6 | 4 | 20 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/setup_database.sql | MS SQL | 41 | 7 | 7 | 55 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/src/main.cpp | C++ | 27 | 3 | 7 | 37 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/src/ui/components/DeviceCard.cpp | C++ | 576 | 79 | 110 | 765 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/src/ui/components/DeviceListPanel.cpp | C++ | 971 | 106 | 186 | 1,263 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/src/ui/components/RightFunctionPanel.cpp | C++ | 748 | 58 | 151 | 957 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/src/ui/components/SystemLogPanel.cpp | C++ | 374 | 41 | 61 | 476 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/src/ui/dialogs/DeviceDialog.cpp | C++ | 510 | 60 | 96 | 666 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/src/ui/main/MainWindow.cpp | C++ | 1,022 | 165 | 214 | 1,401 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/src/utils/SystemLogger.cpp | C++ | 120 | 17 | 21 | 158 |
|
||||||
|
| /home/hzk/Software_Architecture/src/Client/代码规范.md | Markdown | 638 | 0 | 143 | 781 |
|
||||||
|
| /home/hzk/Software_Architecture/技术博客_战场探索系统.md | Markdown | 429 | 0 | 102 | 531 |
|
||||||
|
| Total | | 15,656 | 1,748 | 3,324 | 20,728 |
|
||||||
|
+-----------------------------------------------------------------------------------------------------------------------------------------+--------------+------------+------------+------------+------------+
|
@ -0,0 +1,16 @@
|
|||||||
|
<role>
|
||||||
|
<personality>
|
||||||
|
@!thought://remember
|
||||||
|
@!thought://recall
|
||||||
|
@!thought://academic-writing
|
||||||
|
@!thought://project-reflection
|
||||||
|
</personality>
|
||||||
|
<principle>
|
||||||
|
@!execution://academic-report-writing
|
||||||
|
@!execution://grade-optimization
|
||||||
|
</principle>
|
||||||
|
<knowledge>
|
||||||
|
@!knowledge://software-engineering-education
|
||||||
|
@!knowledge://technical-documentation
|
||||||
|
</knowledge>
|
||||||
|
</role>
|
@ -0,0 +1,17 @@
|
|||||||
|
<role>
|
||||||
|
<personality>
|
||||||
|
@!thought://remember
|
||||||
|
@!thought://recall
|
||||||
|
@!thought://project-analysis
|
||||||
|
@!thought://educational-guidance
|
||||||
|
</personality>
|
||||||
|
<principle>
|
||||||
|
@!execution://project-explanation-workflow
|
||||||
|
@!execution://academic-presentation
|
||||||
|
</principle>
|
||||||
|
<knowledge>
|
||||||
|
@!knowledge://qt-architecture
|
||||||
|
@!knowledge://code-analysis-techniques
|
||||||
|
@!knowledge://academic-evaluation-standards
|
||||||
|
</knowledge>
|
||||||
|
</role>
|
@ -0,0 +1,109 @@
|
|||||||
|
<thought>
|
||||||
|
<exploration>
|
||||||
|
## 教育指导的多元化探索
|
||||||
|
|
||||||
|
### 学习者需求分析
|
||||||
|
- **知识背景**:学习者的技术基础和经验水平
|
||||||
|
- **学习目标**:项目验收、技术提升、知识拓展
|
||||||
|
- **认知风格**:视觉型、听觉型、动手型学习偏好
|
||||||
|
- **时间约束**:可用学习时间和紧急程度
|
||||||
|
|
||||||
|
### 教学内容层次化
|
||||||
|
- **基础概念层**:核心技术概念、基本原理
|
||||||
|
- **应用实践层**:具体实现方法、代码示例
|
||||||
|
- **深度理解层**:设计思想、架构理念
|
||||||
|
- **拓展延伸层**:相关技术、发展趋势
|
||||||
|
|
||||||
|
### 教学方法多样化
|
||||||
|
- **图形化教学**:架构图、流程图、时序图
|
||||||
|
- **案例化教学**:具体代码案例、实际问题解决
|
||||||
|
- **对比化教学**:不同方案对比、优劣分析
|
||||||
|
- **互动化教学**:问答式引导、启发式思考
|
||||||
|
|
||||||
|
### 验收准备策略
|
||||||
|
- **关键点梳理**:项目的核心技术点和创新点
|
||||||
|
- **问题预演**:可能的提问和回答准备
|
||||||
|
- **演示准备**:功能演示和代码展示
|
||||||
|
- **文档整理**:技术文档、设计文档的完善
|
||||||
|
</exploration>
|
||||||
|
|
||||||
|
<reasoning>
|
||||||
|
## 教育指导的系统性推理
|
||||||
|
|
||||||
|
### 学习效果最大化
|
||||||
|
- **认知负载理论**:合理控制信息量,避免认知过载
|
||||||
|
- **建构主义学习**:基于已有知识构建新的理解
|
||||||
|
- **多元智能理论**:适应不同的学习风格和智能类型
|
||||||
|
- **元认知策略**:培养学习者的自我反思和监控能力
|
||||||
|
|
||||||
|
### 知识传递优化
|
||||||
|
- **由浅入深**:从简单概念到复杂系统的渐进式学习
|
||||||
|
- **理论实践结合**:概念解释与代码实例相结合
|
||||||
|
- **问题驱动**:通过解决实际问题来驱动学习
|
||||||
|
- **反馈循环**:及时反馈和调整教学策略
|
||||||
|
|
||||||
|
### 验收成功策略
|
||||||
|
- **亮点突出**:重点展示项目的技术亮点和创新点
|
||||||
|
- **逻辑清晰**:按照清晰的逻辑结构组织讲解内容
|
||||||
|
- **深度适中**:既要有技术深度,又要避免过于复杂
|
||||||
|
- **自信表达**:通过充分理解建立自信的表达能力
|
||||||
|
</reasoning>
|
||||||
|
|
||||||
|
<challenge>
|
||||||
|
## 教育指导中的关键挑战
|
||||||
|
|
||||||
|
### 复杂性管理挑战
|
||||||
|
- 如何将复杂的技术概念简化而不失准确性?
|
||||||
|
- 如何在有限时间内覆盖足够的知识深度?
|
||||||
|
- 如何平衡理论学习和实践应用?
|
||||||
|
|
||||||
|
### 个性化教学挑战
|
||||||
|
- 如何适应不同学习者的知识背景差异?
|
||||||
|
- 如何调整教学节奏以匹配学习者的接受能力?
|
||||||
|
- 如何激发学习者的主动学习兴趣?
|
||||||
|
|
||||||
|
### 验收准备挑战
|
||||||
|
- 如何预测评审者可能关注的技术点?
|
||||||
|
- 如何在短时间内建立对项目的深度理解?
|
||||||
|
- 如何处理验收过程中的突发问题?
|
||||||
|
|
||||||
|
### 知识转化挑战
|
||||||
|
- 如何将技术理解转化为清晰的表达?
|
||||||
|
- 如何将代码细节转化为架构思维?
|
||||||
|
- 如何将学习成果转化为实际能力?
|
||||||
|
</challenge>
|
||||||
|
|
||||||
|
<plan>
|
||||||
|
## 教育指导的实施计划
|
||||||
|
|
||||||
|
### 学习路径设计
|
||||||
|
```mermaid
|
||||||
|
graph TD
|
||||||
|
A[项目概览] --> B[技术栈理解]
|
||||||
|
B --> C[架构分析]
|
||||||
|
C --> D[核心模块深入]
|
||||||
|
D --> E[代码细节解析]
|
||||||
|
E --> F[质量评估]
|
||||||
|
F --> G[亮点总结]
|
||||||
|
G --> H[验收准备]
|
||||||
|
```
|
||||||
|
|
||||||
|
### 教学策略组合
|
||||||
|
1. **概念先行**:先建立整体概念框架
|
||||||
|
2. **实例跟进**:用具体代码实例验证概念
|
||||||
|
3. **对比强化**:通过对比加深理解
|
||||||
|
4. **总结升华**:将具体知识抽象为一般原理
|
||||||
|
|
||||||
|
### 验收辅导流程
|
||||||
|
1. **知识盘点**:梳理已掌握和待学习的知识点
|
||||||
|
2. **重点突破**:针对薄弱环节进行重点辅导
|
||||||
|
3. **模拟演练**:模拟验收场景进行练习
|
||||||
|
4. **反馈优化**:根据练习效果调整策略
|
||||||
|
|
||||||
|
### 学习效果评估
|
||||||
|
- **理解深度检查**:通过提问检验理解程度
|
||||||
|
- **表达能力评估**:评估技术表达的清晰度
|
||||||
|
- **问题解决能力**:测试面对新问题的应对能力
|
||||||
|
- **自信程度评估**:评估学习者的自信心建立情况
|
||||||
|
</plan>
|
||||||
|
</thought>
|
@ -0,0 +1,17 @@
|
|||||||
|
<role>
|
||||||
|
<personality>
|
||||||
|
@!thought://remember
|
||||||
|
@!thought://recall
|
||||||
|
@!thought://visual-design
|
||||||
|
@!thought://creative-thinking
|
||||||
|
</personality>
|
||||||
|
<principle>
|
||||||
|
@!execution://poster-design-process
|
||||||
|
@!execution://visual-communication
|
||||||
|
</principle>
|
||||||
|
<knowledge>
|
||||||
|
@!knowledge://graphic-design
|
||||||
|
@!knowledge://military-tech-aesthetics
|
||||||
|
@!knowledge://project-presentation
|
||||||
|
</knowledge>
|
||||||
|
</role>
|
@ -0,0 +1,130 @@
|
|||||||
|
<execution>
|
||||||
|
<constraint>
|
||||||
|
## 学术标准约束
|
||||||
|
- **评审导向**:必须符合学术评审的期望和标准
|
||||||
|
- **理论基础**:改进方案必须有坚实的理论基础
|
||||||
|
- **创新要求**:需要体现一定的技术创新和思考深度
|
||||||
|
- **文档要求**:必须有完整的技术文档和说明
|
||||||
|
- **可重现性**:改进过程和结果必须可重现
|
||||||
|
</constraint>
|
||||||
|
|
||||||
|
<rule>
|
||||||
|
## 学术标准强制规则
|
||||||
|
- **理论支撑**:每个重要改进都必须有理论依据
|
||||||
|
- **对比分析**:必须提供改进前后的对比分析
|
||||||
|
- **最佳实践**:必须体现行业最佳实践的应用
|
||||||
|
- **创新亮点**:必须突出技术创新和优化亮点
|
||||||
|
- **完整文档**:必须提供完整的技术文档
|
||||||
|
</rule>
|
||||||
|
|
||||||
|
<guideline>
|
||||||
|
## 学术导向指导原则
|
||||||
|
- **深度优于广度**:重点突出几个核心优化点
|
||||||
|
- **理论结合实践**:将理论知识应用到实际项目中
|
||||||
|
- **创新性思考**:体现独特的技术见解和创新
|
||||||
|
- **工程化思维**:展现系统性的工程化思考
|
||||||
|
- **学术价值**:确保改进具有学术研究价值
|
||||||
|
</guideline>
|
||||||
|
|
||||||
|
<process>
|
||||||
|
## 学术标准执行流程
|
||||||
|
|
||||||
|
### 学术价值识别
|
||||||
|
```mermaid
|
||||||
|
mindmap
|
||||||
|
root((学术价值))
|
||||||
|
技术创新
|
||||||
|
设计模式应用
|
||||||
|
算法优化
|
||||||
|
架构改进
|
||||||
|
工程实践
|
||||||
|
最佳实践应用
|
||||||
|
质量管理
|
||||||
|
项目管理
|
||||||
|
理论应用
|
||||||
|
软件工程理论
|
||||||
|
设计原则
|
||||||
|
质量模型
|
||||||
|
文档完善
|
||||||
|
技术文档
|
||||||
|
设计文档
|
||||||
|
评估报告
|
||||||
|
```
|
||||||
|
|
||||||
|
### 学术标准实施框架
|
||||||
|
```mermaid
|
||||||
|
flowchart TD
|
||||||
|
A[理论研究] --> B[方案设计]
|
||||||
|
B --> C[实施验证]
|
||||||
|
C --> D[效果评估]
|
||||||
|
D --> E[文档整理]
|
||||||
|
E --> F[学术报告]
|
||||||
|
|
||||||
|
A1[文献调研] --> A
|
||||||
|
A2[理论分析] --> A
|
||||||
|
B1[创新设计] --> B
|
||||||
|
B2[可行性分析] --> B
|
||||||
|
C1[渐进实施] --> C
|
||||||
|
C2[测试验证] --> C
|
||||||
|
D1[量化分析] --> D
|
||||||
|
D2[对比评估] --> D
|
||||||
|
E1[技术文档] --> E
|
||||||
|
E2[过程记录] --> E
|
||||||
|
F1[成果总结] --> F
|
||||||
|
F2[价值阐述] --> F
|
||||||
|
```
|
||||||
|
|
||||||
|
### 学术评审准备
|
||||||
|
1. **技术亮点提炼**
|
||||||
|
- 识别项目中的技术创新点
|
||||||
|
- 总结应用的设计模式和最佳实践
|
||||||
|
- 量化改进效果和性能提升
|
||||||
|
|
||||||
|
2. **理论基础阐述**
|
||||||
|
- 说明改进方案的理论依据
|
||||||
|
- 引用相关的学术文献和标准
|
||||||
|
- 展示对软件工程理论的理解
|
||||||
|
|
||||||
|
3. **工程价值体现**
|
||||||
|
- 展示系统性的工程化思维
|
||||||
|
- 体现对软件质量的深入理解
|
||||||
|
- 展现项目管理和质量管理能力
|
||||||
|
|
||||||
|
4. **文档体系完善**
|
||||||
|
- 技术设计文档
|
||||||
|
- 代码质量评估报告
|
||||||
|
- 改进实施过程记录
|
||||||
|
- 效果验证和对比分析
|
||||||
|
</process>
|
||||||
|
|
||||||
|
<criteria>
|
||||||
|
## 学术标准评价指标
|
||||||
|
|
||||||
|
### 技术深度指标
|
||||||
|
- ✅ **设计模式应用** 至少3种经典模式的正确应用
|
||||||
|
- ✅ **架构设计质量** 体现良好的架构设计思维
|
||||||
|
- ✅ **代码质量提升** 量化的质量改进指标
|
||||||
|
- ✅ **性能优化效果** 可测量的性能提升
|
||||||
|
- ✅ **最佳实践体现** 行业标准和最佳实践的应用
|
||||||
|
|
||||||
|
### 创新性指标
|
||||||
|
- ✅ **技术创新点** 至少2个有价值的技术创新
|
||||||
|
- ✅ **解决方案独特性** 体现独特的技术见解
|
||||||
|
- ✅ **优化思路新颖性** 创新的优化思路和方法
|
||||||
|
- ✅ **工程化创新** 在工程实践中的创新应用
|
||||||
|
|
||||||
|
### 学术价值指标
|
||||||
|
- ✅ **理论应用深度** 软件工程理论的深入应用
|
||||||
|
- ✅ **文档完整性** 完整的技术文档体系
|
||||||
|
- ✅ **可重现性** 改进过程和结果的可重现性
|
||||||
|
- ✅ **学习价值** 对其他开发者的学习参考价值
|
||||||
|
- ✅ **评审认可度** 获得导师和专家的积极评价
|
||||||
|
|
||||||
|
### 工程质量指标
|
||||||
|
- ✅ **代码规范性** 严格遵循编码规范
|
||||||
|
- ✅ **测试覆盖率** 关键模块测试覆盖率≥80%
|
||||||
|
- ✅ **文档覆盖率** 公共接口文档覆盖率≥90%
|
||||||
|
- ✅ **维护性提升** 代码可维护性指数提升≥30%
|
||||||
|
- ✅ **扩展性改进** 系统扩展性的显著改善
|
||||||
|
</criteria>
|
||||||
|
</execution>
|
@ -0,0 +1,425 @@
|
|||||||
|
# 项目架构知识体系
|
||||||
|
|
||||||
|
## Qt项目标准架构
|
||||||
|
|
||||||
|
### 目录结构最佳实践
|
||||||
|
```
|
||||||
|
BattlefieldExplorationSystem/
|
||||||
|
├── src/ # 源代码目录
|
||||||
|
│ ├── core/ # 核心业务逻辑
|
||||||
|
│ │ ├── database/ # 数据库相关
|
||||||
|
│ │ ├── network/ # 网络通信
|
||||||
|
│ │ └── algorithms/ # 核心算法
|
||||||
|
│ ├── ui/ # 用户界面
|
||||||
|
│ │ ├── main/ # 主窗口
|
||||||
|
│ │ ├── dialogs/ # 对话框
|
||||||
|
│ │ └── components/ # UI组件
|
||||||
|
│ ├── utils/ # 工具类
|
||||||
|
│ └── main.cpp # 程序入口
|
||||||
|
├── include/ # 头文件目录
|
||||||
|
│ ├── core/ # 核心头文件
|
||||||
|
│ ├── ui/ # UI头文件
|
||||||
|
│ └── utils/ # 工具头文件
|
||||||
|
├── resources/ # 资源文件
|
||||||
|
│ ├── images/ # 图片资源
|
||||||
|
│ ├── qml/ # QML文件
|
||||||
|
│ ├── styles/ # 样式文件
|
||||||
|
│ └── translations/ # 翻译文件
|
||||||
|
├── tests/ # 测试代码
|
||||||
|
│ ├── unit/ # 单元测试
|
||||||
|
│ ├── integration/ # 集成测试
|
||||||
|
│ └── ui/ # UI测试
|
||||||
|
├── docs/ # 文档目录
|
||||||
|
│ ├── api/ # API文档
|
||||||
|
│ ├── design/ # 设计文档
|
||||||
|
│ └── user/ # 用户文档
|
||||||
|
├── build/ # 构建输出
|
||||||
|
├── CMakeLists.txt # CMake配置
|
||||||
|
└── README.md # 项目说明
|
||||||
|
```
|
||||||
|
|
||||||
|
### 模块化架构设计
|
||||||
|
```cpp
|
||||||
|
// 核心模块接口定义
|
||||||
|
namespace Core {
|
||||||
|
class IDatabase {
|
||||||
|
public:
|
||||||
|
virtual ~IDatabase() = default;
|
||||||
|
virtual bool connect(const QString& connectionString) = 0;
|
||||||
|
virtual bool execute(const QString& query) = 0;
|
||||||
|
virtual QVariant getValue(const QString& key) = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
class INetworkManager {
|
||||||
|
public:
|
||||||
|
virtual ~INetworkManager() = default;
|
||||||
|
virtual void sendRequest(const QNetworkRequest& request) = 0;
|
||||||
|
virtual void setProxy(const QNetworkProxy& proxy) = 0;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// UI模块接口定义
|
||||||
|
namespace UI {
|
||||||
|
class IMainWindow {
|
||||||
|
public:
|
||||||
|
virtual ~IMainWindow() = default;
|
||||||
|
virtual void showMessage(const QString& message) = 0;
|
||||||
|
virtual void updateStatus(const QString& status) = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
class IDevicePanel {
|
||||||
|
public:
|
||||||
|
virtual ~IDevicePanel() = default;
|
||||||
|
virtual void addDevice(const DeviceInfo& info) = 0;
|
||||||
|
virtual void removeDevice(const QString& deviceId) = 0;
|
||||||
|
virtual void updateDevice(const DeviceInfo& info) = 0;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## 分层架构模式
|
||||||
|
|
||||||
|
### 三层架构实现
|
||||||
|
```cpp
|
||||||
|
// 表示层 (Presentation Layer)
|
||||||
|
class MainWindow : public QMainWindow, public UI::IMainWindow {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit MainWindow(std::shared_ptr<BusinessLogic> logic,
|
||||||
|
QWidget *parent = nullptr);
|
||||||
|
|
||||||
|
void showMessage(const QString& message) override;
|
||||||
|
void updateStatus(const QString& status) override;
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void onDeviceAdded(const DeviceInfo& info);
|
||||||
|
void onDeviceRemoved(const QString& deviceId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::shared_ptr<BusinessLogic> m_businessLogic;
|
||||||
|
Ui::MainWindow *ui;
|
||||||
|
};
|
||||||
|
|
||||||
|
// 业务逻辑层 (Business Logic Layer)
|
||||||
|
class BusinessLogic : public QObject {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit BusinessLogic(std::shared_ptr<Core::IDatabase> database,
|
||||||
|
std::shared_ptr<Core::INetworkManager> network);
|
||||||
|
|
||||||
|
void addDevice(const DeviceInfo& info);
|
||||||
|
void removeDevice(const QString& deviceId);
|
||||||
|
QList<DeviceInfo> getAllDevices() const;
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void deviceAdded(const DeviceInfo& info);
|
||||||
|
void deviceRemoved(const QString& deviceId);
|
||||||
|
void errorOccurred(const QString& error);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::shared_ptr<Core::IDatabase> m_database;
|
||||||
|
std::shared_ptr<Core::INetworkManager> m_network;
|
||||||
|
QList<DeviceInfo> m_devices;
|
||||||
|
};
|
||||||
|
|
||||||
|
// 数据访问层 (Data Access Layer)
|
||||||
|
class DatabaseManager : public QObject, public Core::IDatabase {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit DatabaseManager(QObject *parent = nullptr);
|
||||||
|
|
||||||
|
bool connect(const QString& connectionString) override;
|
||||||
|
bool execute(const QString& query) override;
|
||||||
|
QVariant getValue(const QString& key) override;
|
||||||
|
|
||||||
|
// 特定业务方法
|
||||||
|
bool saveDevice(const DeviceInfo& info);
|
||||||
|
DeviceInfo loadDevice(const QString& deviceId);
|
||||||
|
QList<DeviceInfo> loadAllDevices();
|
||||||
|
|
||||||
|
private:
|
||||||
|
QSqlDatabase m_database;
|
||||||
|
QString m_connectionString;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
### MVC模式在Qt中的应用
|
||||||
|
```cpp
|
||||||
|
// Model - 数据模型
|
||||||
|
class DeviceModel : public QAbstractTableModel {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit DeviceModel(QObject *parent = nullptr);
|
||||||
|
|
||||||
|
// QAbstractTableModel接口实现
|
||||||
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
|
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
|
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||||
|
QVariant headerData(int section, Qt::Orientation orientation,
|
||||||
|
int role = Qt::DisplayRole) const override;
|
||||||
|
|
||||||
|
// 业务方法
|
||||||
|
void addDevice(const DeviceInfo& info);
|
||||||
|
void removeDevice(int row);
|
||||||
|
void updateDevice(int row, const DeviceInfo& info);
|
||||||
|
|
||||||
|
private:
|
||||||
|
QList<DeviceInfo> m_devices;
|
||||||
|
};
|
||||||
|
|
||||||
|
// View - 视图
|
||||||
|
class DeviceView : public QTableView {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit DeviceView(QWidget *parent = nullptr);
|
||||||
|
|
||||||
|
void setDeviceModel(DeviceModel *model);
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void deviceSelected(const DeviceInfo& info);
|
||||||
|
void deviceDoubleClicked(const DeviceInfo& info);
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void onSelectionChanged(const QItemSelection &selected,
|
||||||
|
const QItemSelection &deselected);
|
||||||
|
void onDoubleClicked(const QModelIndex &index);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Controller - 控制器
|
||||||
|
class DeviceController : public QObject {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit DeviceController(DeviceModel *model, DeviceView *view,
|
||||||
|
QObject *parent = nullptr);
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
void addDevice();
|
||||||
|
void removeDevice();
|
||||||
|
void editDevice();
|
||||||
|
void refreshDevices();
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void onDeviceSelected(const DeviceInfo& info);
|
||||||
|
void onDeviceDoubleClicked(const DeviceInfo& info);
|
||||||
|
|
||||||
|
private:
|
||||||
|
DeviceModel *m_model;
|
||||||
|
DeviceView *m_view;
|
||||||
|
DeviceInfo m_selectedDevice;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## 依赖注入和控制反转
|
||||||
|
|
||||||
|
### 依赖注入容器
|
||||||
|
```cpp
|
||||||
|
// 简单的依赖注入容器
|
||||||
|
class DIContainer {
|
||||||
|
public:
|
||||||
|
template<typename Interface, typename Implementation>
|
||||||
|
void registerSingleton() {
|
||||||
|
m_singletons[typeid(Interface).name()] =
|
||||||
|
[]() -> std::shared_ptr<void> {
|
||||||
|
return std::make_shared<Implementation>();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
template<typename Interface>
|
||||||
|
std::shared_ptr<Interface> resolve() {
|
||||||
|
auto it = m_singletons.find(typeid(Interface).name());
|
||||||
|
if (it != m_singletons.end()) {
|
||||||
|
return std::static_pointer_cast<Interface>(it->second());
|
||||||
|
}
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::map<std::string, std::function<std::shared_ptr<void>()>> m_singletons;
|
||||||
|
};
|
||||||
|
|
||||||
|
// 使用示例
|
||||||
|
void setupDependencies(DIContainer& container) {
|
||||||
|
container.registerSingleton<Core::IDatabase, DatabaseManager>();
|
||||||
|
container.registerSingleton<Core::INetworkManager, NetworkManager>();
|
||||||
|
container.registerSingleton<BusinessLogic, BusinessLogic>();
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### 工厂模式实现
|
||||||
|
```cpp
|
||||||
|
// 抽象工厂
|
||||||
|
class UIComponentFactory {
|
||||||
|
public:
|
||||||
|
virtual ~UIComponentFactory() = default;
|
||||||
|
virtual std::unique_ptr<QWidget> createButton(const QString& text) = 0;
|
||||||
|
virtual std::unique_ptr<QWidget> createLabel(const QString& text) = 0;
|
||||||
|
virtual std::unique_ptr<QDialog> createDialog(const QString& title) = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
// 具体工厂实现
|
||||||
|
class ModernUIFactory : public UIComponentFactory {
|
||||||
|
public:
|
||||||
|
std::unique_ptr<QWidget> createButton(const QString& text) override {
|
||||||
|
auto button = std::make_unique<QPushButton>(text);
|
||||||
|
button->setStyleSheet(
|
||||||
|
"QPushButton {"
|
||||||
|
" background-color: #007ACC;"
|
||||||
|
" color: white;"
|
||||||
|
" border: none;"
|
||||||
|
" padding: 8px 16px;"
|
||||||
|
" border-radius: 4px;"
|
||||||
|
"}"
|
||||||
|
"QPushButton:hover {"
|
||||||
|
" background-color: #005A9E;"
|
||||||
|
"}"
|
||||||
|
);
|
||||||
|
return button;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::unique_ptr<QWidget> createLabel(const QString& text) override {
|
||||||
|
auto label = std::make_unique<QLabel>(text);
|
||||||
|
label->setStyleSheet(
|
||||||
|
"QLabel {"
|
||||||
|
" color: #333333;"
|
||||||
|
" font-size: 14px;"
|
||||||
|
"}"
|
||||||
|
);
|
||||||
|
return label;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::unique_ptr<QDialog> createDialog(const QString& title) override {
|
||||||
|
auto dialog = std::make_unique<QDialog>();
|
||||||
|
dialog->setWindowTitle(title);
|
||||||
|
dialog->setStyleSheet(
|
||||||
|
"QDialog {"
|
||||||
|
" background-color: #F5F5F5;"
|
||||||
|
"}"
|
||||||
|
);
|
||||||
|
return dialog;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## 配置管理和插件架构
|
||||||
|
|
||||||
|
### 配置管理系统
|
||||||
|
```cpp
|
||||||
|
class ConfigurationManager : public QObject {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
static ConfigurationManager& instance();
|
||||||
|
|
||||||
|
void loadConfiguration(const QString& configFile);
|
||||||
|
void saveConfiguration(const QString& configFile);
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
T getValue(const QString& key, const T& defaultValue = T{}) const {
|
||||||
|
return m_settings.value(key, QVariant::fromValue(defaultValue)).value<T>();
|
||||||
|
}
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
void setValue(const QString& key, const T& value) {
|
||||||
|
m_settings.setValue(key, QVariant::fromValue(value));
|
||||||
|
emit configurationChanged(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void configurationChanged(const QString& key);
|
||||||
|
|
||||||
|
private:
|
||||||
|
ConfigurationManager() = default;
|
||||||
|
QSettings m_settings;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
### 插件架构设计
|
||||||
|
```cpp
|
||||||
|
// 插件接口
|
||||||
|
class IPlugin {
|
||||||
|
public:
|
||||||
|
virtual ~IPlugin() = default;
|
||||||
|
virtual QString name() const = 0;
|
||||||
|
virtual QString version() const = 0;
|
||||||
|
virtual bool initialize() = 0;
|
||||||
|
virtual void shutdown() = 0;
|
||||||
|
virtual QWidget* createWidget() = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
// 插件管理器
|
||||||
|
class PluginManager : public QObject {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
static PluginManager& instance();
|
||||||
|
|
||||||
|
void loadPlugins(const QString& pluginDir);
|
||||||
|
void unloadPlugins();
|
||||||
|
|
||||||
|
QList<IPlugin*> getPlugins() const;
|
||||||
|
IPlugin* getPlugin(const QString& name) const;
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void pluginLoaded(IPlugin* plugin);
|
||||||
|
void pluginUnloaded(const QString& name);
|
||||||
|
|
||||||
|
private:
|
||||||
|
QList<QPluginLoader*> m_loaders;
|
||||||
|
QList<IPlugin*> m_plugins;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## 线程和并发架构
|
||||||
|
|
||||||
|
### 线程池管理
|
||||||
|
```cpp
|
||||||
|
class ThreadPoolManager : public QObject {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
static ThreadPoolManager& instance();
|
||||||
|
|
||||||
|
template<typename Func>
|
||||||
|
QFuture<void> submitTask(Func&& func) {
|
||||||
|
return QtConcurrent::run(&m_threadPool, std::forward<Func>(func));
|
||||||
|
}
|
||||||
|
|
||||||
|
template<typename Func, typename Result = std::invoke_result_t<Func>>
|
||||||
|
QFuture<Result> submitTaskWithResult(Func&& func) {
|
||||||
|
return QtConcurrent::run(&m_threadPool, std::forward<Func>(func));
|
||||||
|
}
|
||||||
|
|
||||||
|
void setMaxThreadCount(int maxThreads);
|
||||||
|
int maxThreadCount() const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
ThreadPoolManager() = default;
|
||||||
|
QThreadPool m_threadPool;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
### 异步操作封装
|
||||||
|
```cpp
|
||||||
|
class AsyncOperation : public QObject {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
template<typename Func>
|
||||||
|
static QFuture<void> execute(Func&& operation) {
|
||||||
|
auto promise = std::make_shared<QPromise<void>>();
|
||||||
|
auto future = promise->future();
|
||||||
|
|
||||||
|
QtConcurrent::run([promise, operation = std::forward<Func>(operation)]() {
|
||||||
|
try {
|
||||||
|
operation();
|
||||||
|
promise->finish();
|
||||||
|
} catch (...) {
|
||||||
|
promise->setException(std::current_exception());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return future;
|
||||||
|
}
|
||||||
|
|
||||||
|
template<typename Func, typename Result = std::invoke_result_t<Func>>
|
||||||
|
static QFuture<Result> executeWithResult(Func&& operation) {
|
||||||
|
return QtConcurrent::run(std::forward<Func>(operation));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
```
|
@ -0,0 +1,18 @@
|
|||||||
|
<role>
|
||||||
|
<personality>
|
||||||
|
@!thought://remember
|
||||||
|
@!thought://recall
|
||||||
|
@!thought://qt-code-analysis
|
||||||
|
@!thought://quality-assessment
|
||||||
|
</personality>
|
||||||
|
<principle>
|
||||||
|
@!execution://qt-code-optimization
|
||||||
|
@!execution://quality-improvement
|
||||||
|
@!execution://academic-standards
|
||||||
|
</principle>
|
||||||
|
<knowledge>
|
||||||
|
@!knowledge://qt-cpp-expertise
|
||||||
|
@!knowledge://code-quality-standards
|
||||||
|
@!knowledge://project-architecture
|
||||||
|
</knowledge>
|
||||||
|
</role>
|
Loading…
Reference in new issue