2025-02-06 16:36:50 +08:00
|
|
|
project(diagramCavas)
|
|
|
|
|
|
|
|
|
|
set(DIAGRAMCAVAS_HEADER_FILES
|
|
|
|
|
include/baseScene.h
|
|
|
|
|
include/designerScene.h
|
|
|
|
|
include/designerView.h
|
|
|
|
|
include/diagramCavas.h
|
|
|
|
|
include/drawingPanel.h
|
|
|
|
|
include/itemPropertyDlg.h
|
2025-04-03 18:33:10 +08:00
|
|
|
include/propertyContentDlg.h
|
2025-02-06 16:36:50 +08:00
|
|
|
include/serializable.h
|
|
|
|
|
include/statusBar.h
|
2025-04-22 10:10:55 +08:00
|
|
|
include/powerEntity.h
|
|
|
|
|
include/powerConnection.h
|
|
|
|
|
include/powerTerminal.h
|
2025-05-16 19:20:46 +08:00
|
|
|
include/topologyManager.h
|
|
|
|
|
include/baseInfoDlg.h
|
|
|
|
|
include/baseContentDlg.h
|
2025-05-23 10:30:52 +08:00
|
|
|
include/ptExtraInfoDlg.h
|
|
|
|
|
include/ctExtraInfoDlg.h
|
2025-06-20 18:09:41 +08:00
|
|
|
include/projectModelSetting.h
|
2025-06-27 19:17:04 +08:00
|
|
|
include/projectDiagramNameInput.h
|
2025-05-30 16:28:51 +08:00
|
|
|
include/diagramEditor/editPanel.h
|
|
|
|
|
include/diagramEditor/editView.h
|
|
|
|
|
include/diagramEditor/editScene.h
|
|
|
|
|
include/diagramEditor/editRowData.h
|
|
|
|
|
include/diagramEditor/editMainRect.h
|
|
|
|
|
include/diagramEditor/editItem.h
|
|
|
|
|
include/diagramEditor/editBus.h
|
|
|
|
|
include/diagramEditor/editBaseStruct.h
|
|
|
|
|
include/diagramEditor/diagramEditorWizard.h
|
2025-02-06 16:36:50 +08:00
|
|
|
include/graphicsDataModel/baseModel.h
|
|
|
|
|
include/graphicsDataModel/fixedPortsModel.h
|
|
|
|
|
include/graphicsItem/electricConnectLineItem.h
|
|
|
|
|
include/graphicsItem/electricSvgItem.h
|
|
|
|
|
include/graphicsItem/electricSvgItemBus.h
|
|
|
|
|
include/graphicsItem/electricSvgItemRect.h
|
|
|
|
|
include/graphicsItem/electricSvgItemTriangle.h
|
|
|
|
|
include/graphicsItem/graphicsBaseItem.h
|
|
|
|
|
include/graphicsItem/graphicsItemGroup.h
|
|
|
|
|
include/graphicsItem/graphicsPolygonItem.h
|
|
|
|
|
include/graphicsItem/graphicsRectItem.h
|
|
|
|
|
include/graphicsItem/handleRect.h
|
|
|
|
|
include/graphicsItem/handleText.h
|
|
|
|
|
include/graphicsItem/itemControlHandle.h
|
|
|
|
|
include/graphicsItem/itemPort.h
|
2025-06-13 19:00:05 +08:00
|
|
|
include/baseModelItem/electricBaseModelSvgItem.h
|
|
|
|
|
include/baseModelItem/electricBaseModelLineItem.h
|
|
|
|
|
include/baseModelItem/electricBaseModelSvgBus.h
|
2025-02-06 16:36:50 +08:00
|
|
|
include/util/baseSelector.h
|
|
|
|
|
include/util/connectingSelector.h
|
|
|
|
|
include/util/creatingSelector.h
|
|
|
|
|
include/util/editingSelector.h
|
|
|
|
|
include/util/linkMovingSelector.h
|
|
|
|
|
include/util/movingSelector.h
|
|
|
|
|
include/util/rotationSelector.h
|
|
|
|
|
include/util/scalingSelector.h
|
|
|
|
|
include/util/selectorManager.h
|
|
|
|
|
include/util/subMovingSelector.h
|
|
|
|
|
../common/include/httpInterface.h
|
2025-06-27 19:17:04 +08:00
|
|
|
../common/include/tools.h
|
2025-02-06 16:36:50 +08:00
|
|
|
../common/include/global.h
|
2025-05-23 10:30:52 +08:00
|
|
|
../common/include/baseProperty.h
|
2025-02-06 16:36:50 +08:00
|
|
|
../common/include/compiler.hpp
|
|
|
|
|
../common/include/export.hpp
|
|
|
|
|
../common/include/operatingSystem.hpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(DIAGRAMCAVAS_SOURCE_FILES
|
|
|
|
|
source/baseScene.cpp
|
|
|
|
|
source/designerScene.cpp
|
|
|
|
|
source/designerView.cpp
|
|
|
|
|
source/diagramCavas.cpp
|
|
|
|
|
source/drawingPanel.cpp
|
|
|
|
|
source/itemPropertyDlg.cpp
|
2025-04-03 18:33:10 +08:00
|
|
|
source/propertyContentDlg.cpp
|
2025-02-06 16:36:50 +08:00
|
|
|
source/statusBar.cpp
|
2025-04-22 10:10:55 +08:00
|
|
|
source/powerEntity.cpp
|
|
|
|
|
source/powerConnection.cpp
|
|
|
|
|
source/powerTerminal.cpp
|
2025-05-16 19:20:46 +08:00
|
|
|
source/topologyManager.cpp
|
|
|
|
|
source/baseInfoDlg.cpp
|
|
|
|
|
source/baseContentDlg.cpp
|
2025-05-23 10:30:52 +08:00
|
|
|
source/ptExtraInfoDlg.cpp
|
|
|
|
|
source/ctExtraInfoDlg.cpp
|
2025-06-20 18:09:41 +08:00
|
|
|
source/projectModelSetting.cpp
|
2025-06-27 19:17:04 +08:00
|
|
|
source/projectDiagramNameInput.cpp
|
2025-05-30 16:28:51 +08:00
|
|
|
source/diagramEditor/editPanel.cpp
|
|
|
|
|
source/diagramEditor/editView.cpp
|
|
|
|
|
source/diagramEditor/editScene.cpp
|
|
|
|
|
source/diagramEditor/editRowData.cpp
|
|
|
|
|
source/diagramEditor/editMainRect.cpp
|
|
|
|
|
source/diagramEditor/editItem.cpp
|
|
|
|
|
source/diagramEditor/editBus.cpp
|
|
|
|
|
source/diagramEditor/editBaseStruct.cpp
|
|
|
|
|
source/diagramEditor/diagramEditorWizard.cpp
|
2025-02-06 16:36:50 +08:00
|
|
|
source/graphicsDataModel/baseModel.cpp
|
|
|
|
|
source/graphicsDataModel/fixedPortsModel.cpp
|
|
|
|
|
source/graphicsItem/electricConnectLineItem.cpp
|
|
|
|
|
source/graphicsItem/electricSvgItem.cpp
|
|
|
|
|
source/graphicsItem/electricSvgItemBus.cpp
|
|
|
|
|
source/graphicsItem/electricSvgItemRect.cpp
|
|
|
|
|
source/graphicsItem/electricSvgItemTriangle.cpp
|
|
|
|
|
source/graphicsItem/graphicsBaseItem.cpp
|
|
|
|
|
source/graphicsItem/graphicsItemGroup.cpp
|
|
|
|
|
source/graphicsItem/graphicsPolygonItem.cpp
|
|
|
|
|
source/graphicsItem/graphicsRectItem.cpp
|
|
|
|
|
source/graphicsItem/handleRect.cpp
|
|
|
|
|
source/graphicsItem/handleText.cpp
|
|
|
|
|
source/graphicsItem/itemControlHandle.cpp
|
|
|
|
|
source/graphicsItem/itemPort.cpp
|
2025-06-13 19:00:05 +08:00
|
|
|
source/baseModelItem/electricBaseModelSvgItem.cpp
|
|
|
|
|
source/baseModelItem/electricBaseModelLineItem.cpp
|
|
|
|
|
source/baseModelItem/electricBaseModelSvgBus.cpp
|
2025-02-06 16:36:50 +08:00
|
|
|
source/util/baseSelector.cpp
|
|
|
|
|
source/util/connectingSelector.cpp
|
|
|
|
|
source/util/creatingSelector.cpp
|
|
|
|
|
source/util/editingSelector.cpp
|
|
|
|
|
source/util/linkMovingSelector.cpp
|
|
|
|
|
source/util/movingSelector.cpp
|
|
|
|
|
source/util/rotationSelector.cpp
|
|
|
|
|
source/util/scalingSelector.cpp
|
|
|
|
|
source/util/selectorManager.cpp
|
|
|
|
|
source/util/subMovingSelector.cpp
|
|
|
|
|
../common/source/httpInterface.cpp
|
2025-05-23 10:30:52 +08:00
|
|
|
../common/source/baseProperty.cpp
|
2025-06-27 19:17:04 +08:00
|
|
|
../common/source/tools.cpp
|
2025-02-06 16:36:50 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(UI_FILES
|
|
|
|
|
ui/drawingPanel.ui
|
|
|
|
|
ui/itemPropertyDlg.ui
|
2025-05-16 19:20:46 +08:00
|
|
|
ui/baseInfoDlg.ui
|
2025-05-23 10:30:52 +08:00
|
|
|
ui/ptExtraInfoDlg.ui
|
|
|
|
|
ui/ctExtraInfoDlg.ui
|
2025-05-30 16:28:51 +08:00
|
|
|
ui/editorSettingDlg.ui
|
|
|
|
|
ui/diagramEditorWizard.ui
|
2025-06-20 18:09:41 +08:00
|
|
|
ui/projectModelSetting.ui
|
2025-06-27 19:17:04 +08:00
|
|
|
ui/projectDiagramNameInput.ui
|
2025-02-06 16:36:50 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
|
|
|
|
|
qt_add_library(diagramCavas SHARED
|
|
|
|
|
MANUAL_FINALIZATION
|
|
|
|
|
${DIAGRAMCAVAS_HEADER_FILES}
|
|
|
|
|
${DIAGRAMCAVAS_SOURCE_FILES}
|
|
|
|
|
${UI_FILES}
|
|
|
|
|
../resource/DiagramDesigner.qrc
|
|
|
|
|
)
|
|
|
|
|
else()
|
|
|
|
|
add_library(diagramCavas SHARED
|
|
|
|
|
${DIAGRAMCAVAS_HEADER_FILES}
|
|
|
|
|
${DIAGRAMCAVAS_SOURCE_FILES}
|
|
|
|
|
${UI_FILES}
|
|
|
|
|
../resource/DiagramDesigner.qrc
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
target_link_libraries(diagramCavas PUBLIC Qt${QT_VERSION_MAJOR}::Core
|
|
|
|
|
Qt${QT_VERSION_MAJOR}::Gui
|
|
|
|
|
Qt${QT_VERSION_MAJOR}::Widgets)
|
|
|
|
|
target_link_libraries(diagramCavas PRIVATE Qt6::SvgWidgets)
|
|
|
|
|
target_link_libraries(diagramCavas PRIVATE Qt6::Xml)
|
|
|
|
|
target_link_libraries(diagramCavas PRIVATE Qt6::Network)
|
|
|
|
|
target_link_libraries(diagramCavas PRIVATE Qt6::Sql ${POSTGRESQL_LIBRARIES})
|
|
|
|
|
|
|
|
|
|
option(BUILD_SHARED_LIBS "Build as shared library" ON)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
target_include_directories(diagramCavas PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|
|
|
|
|
2025-03-21 12:53:45 +08:00
|
|
|
target_link_libraries(diagramCavas PRIVATE diagramUtils)
|
|
|
|
|
|
2025-02-06 16:36:50 +08:00
|
|
|
target_compile_definitions(diagramCavas
|
|
|
|
|
PUBLIC
|
|
|
|
|
DIAGRAM_DESIGNER_SHARED
|
|
|
|
|
PRIVATE
|
|
|
|
|
DIAGRAM_DESIGNER_EXPORTS
|
|
|
|
|
#QT_NO_KEYWORDS
|
|
|
|
|
)
|