mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-06-07 18:43:14 +02:00
Compare commits
383 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3913836137 | |||
| 242a601984 | |||
| 635bb15faf | |||
| 2deb37d351 | |||
| 1124a567aa | |||
| 8e7120e923 | |||
| 0a9f62126b | |||
| c0864eced3 | |||
| e01e3d7838 | |||
| 0e85314a84 | |||
| 80e404048c | |||
| 0e5f37503c | |||
| f14f6c6a8d | |||
| b815244494 | |||
| 01d018f8cf | |||
| d7a15d6cb6 | |||
| a53a799da5 | |||
| d4972dc588 | |||
| e66061fdca | |||
| e2e84a56f7 | |||
| 565374f174 | |||
| 7bdca47d8e | |||
| d1ce42a148 | |||
| 6b9837b244 | |||
| f0c954329f | |||
| e99ad6b424 | |||
| 74460a6645 | |||
| 231a1c919a | |||
| 19c9d614e8 | |||
| 43386aa14f | |||
| 181680e6f1 | |||
| 667d25899f | |||
| c9b9165911 | |||
| adbbeca905 | |||
| f8b9edd938 | |||
| 99dfe6a50c | |||
| 78ee65a21b | |||
| 49ce6bc4b3 | |||
| 572d78912c | |||
| aa36bb35e1 | |||
| 4e030943bc | |||
| 1c2d83d586 | |||
| 1a24452e8b | |||
| 3f7192dc68 | |||
| 4ce8fcb0d4 | |||
| 9fefc7aa2a | |||
| c77eb98a15 | |||
| 5973db00f7 | |||
| ee06a71e6f | |||
| 25f9f14b04 | |||
| 4827b23116 | |||
| e332d3bf31 | |||
| 3c4a0ed2b4 | |||
| e8f8304b60 | |||
| 07118d7a11 | |||
| 373fcfb4ea | |||
| 05dfd10952 | |||
| a88d485051 | |||
| 40abc3892c | |||
| 27899c48a3 | |||
| 4fe9687aca | |||
| cfdad56d0e | |||
| 8ba96ac6e2 | |||
| dd521f13aa | |||
| 6c5ff66067 | |||
| 0dc45f056e | |||
| 0b307abf34 | |||
| 9127937bee | |||
| d3f206a387 | |||
| 8a4d7c6cf2 | |||
| bae85624a0 | |||
| 540a248d72 | |||
| d07214ab92 | |||
| 68a2ddde18 | |||
| 8c3343795a | |||
| 2097b24d37 | |||
| 5351746dc7 | |||
| 1af3c5b852 | |||
| c2a2e5f5eb | |||
| dc836248f0 | |||
| a3bf2e2800 | |||
| 83f960a983 | |||
| c223121f00 | |||
| 0f647a5c38 | |||
| 67112bf8e5 | |||
| 1b60f7c52a | |||
| 9a96eb914d | |||
| bf8723015a | |||
| 82d7bbda68 | |||
| 0df3ecb5f7 | |||
| 1e27cac8c5 | |||
| 16dea9f3de | |||
| 20e852cbaf | |||
| 51225d5f59 | |||
| 3fc5469aee | |||
| 6fdc243552 | |||
| da109b1522 | |||
| 2aeae1fe46 | |||
| e98ce4de1d | |||
| da0951d5a0 | |||
| 0be9e2beae | |||
| 52946f9e3a | |||
| 007ce79cee | |||
| 5aee30edee | |||
| b9a8dc0918 | |||
| bd3b39cea3 | |||
| fc286cca22 | |||
| 4d5af028be | |||
| 9afc97108b | |||
| a4a3733670 | |||
| 3471140b64 | |||
| 43f0107eb1 | |||
| dba7caed30 | |||
| adcf77e34a | |||
| 59236170b2 | |||
| 3d82aff4e7 | |||
| 516eb9eb45 | |||
| 0b80d1b5b9 | |||
| 073e4080fd | |||
| b512aee2bf | |||
| 38f5547228 | |||
| 317c90c769 | |||
| f308ea6b93 | |||
| 4808b04a31 | |||
| 3a43fbfa61 | |||
| 29aee8e80c | |||
| 717b257fa0 | |||
| 13f432571d | |||
| 610f4d6dfa | |||
| a20d02f5f0 | |||
| 1fc33aa1ba | |||
| 706eba6612 | |||
| f675ce3452 | |||
| 3ae47a714d | |||
| 58aae63616 | |||
| b8e4fca09f | |||
| 075289797a | |||
| f26733f34e | |||
| ba9fea3fd1 | |||
| bbbf77597a | |||
| 1cf156c47a | |||
| 924d1c1b05 | |||
| 33570ffceb | |||
| 40b7aa999f | |||
| c9ba7bee6c | |||
| 7466793e71 | |||
| 408481a023 | |||
| b0324bd6e8 | |||
| 812ac83ab6 | |||
| d1c6fb7e3c | |||
| 9dad6963cb | |||
| 28df44d1ba | |||
| 25a81f24fa | |||
| 7a39e69a32 | |||
| af33719995 | |||
| 4c12b3c679 | |||
| e1dc978f97 | |||
| 1b2d8061a5 | |||
| b0f0a56a88 | |||
| d6d38141c9 | |||
| 331cecc05c | |||
| de0fa1fa20 | |||
| 1698e062ab | |||
| 3051c225bb | |||
| ffef9aaea5 | |||
| 9fc270c8a8 | |||
| 2c8797415c | |||
| 8162da1515 | |||
| 3cadc9275e | |||
| a459029f0d | |||
| 9dda9f890f | |||
| 9be2ed604e | |||
| a450680f6e | |||
| 22e6188bb6 | |||
| 9d83d3180a | |||
| 09c87cf811 | |||
| bdee8e3e36 | |||
| 30a6221e45 | |||
| 9f8287206b | |||
| bb770ae4f1 | |||
| d971da5ac7 | |||
| e9d2c13630 | |||
| c01549f315 | |||
| 39e287f60d | |||
| 11e3f91029 | |||
| 1ac324242a | |||
| 940ae0c34a | |||
| 7a19756f13 | |||
| 3b24bd25c7 | |||
| a73452bf6d | |||
| 24165ee8ee | |||
| 4c7cc9a110 | |||
| 79f894a327 | |||
| f26e936ea9 | |||
| 1ddfe1d433 | |||
| 194edbd799 | |||
| 162c402102 | |||
| c6427cbfc1 | |||
| c4b6939ed6 | |||
| 2436daa16f | |||
| 4050e8351e | |||
| d6f119742d | |||
| 3e4f3def3e | |||
| 4aff7d1a1d | |||
| d451bd4df5 | |||
| 2cc5de6f7c | |||
| 661530030a | |||
| 620aa665f2 | |||
| 8f23a3d94d | |||
| c343df3fc9 | |||
| d7ac2af4d6 | |||
| ec7ba05ec1 | |||
| 600cba6a8f | |||
| 4221bb84fb | |||
| b6d29fbbf0 | |||
| 635af67100 | |||
| ba9cd71816 | |||
| b19fbd2522 | |||
| dc403e5e8f | |||
| be96da650c | |||
| cf9b07aeb5 | |||
| 6aa2c3c7be | |||
| 17788dc432 | |||
| 9bfde721bf | |||
| 9964eee202 | |||
| 03d31986b7 | |||
| 33ce130296 | |||
| e21536d184 | |||
| ffba440c6e | |||
| ad997605ec | |||
| e2eace06d3 | |||
| ed8728c45a | |||
| 77bfe84a4c | |||
| e053acb065 | |||
| b5d57086bc | |||
| b456bedaa3 | |||
| db18095cfb | |||
| 3438ba9ab3 | |||
| 1078496bb1 | |||
| 711353bb58 | |||
| dd7955e50e | |||
| 7a617e72bd | |||
| e73aa3b84d | |||
| 8e0c3f4252 | |||
| 27474b0822 | |||
| d6dcc85157 | |||
| b2dc6ba738 | |||
| 31ed09f185 | |||
| 3992c60c45 | |||
| fef351df8b | |||
| fa322af060 | |||
| 34cc26a325 | |||
| ba14c6112e | |||
| cb8256bd48 | |||
| 3dd512b587 | |||
| 31c0267cd5 | |||
| 88b2955b00 | |||
| 46378ca2a7 | |||
| c7481011e8 | |||
| 15d9708c46 | |||
| 3b32daf15d | |||
| 0a658d5d61 | |||
| a140c5ad39 | |||
| 4894284520 | |||
| efc8745bc7 | |||
| 406af16e94 | |||
| e3e48d3966 | |||
| 0e646aed0b | |||
| 52d56c18a2 | |||
| d3f132adc6 | |||
| 7b50f10749 | |||
| 64bb2308d8 | |||
| dd3cee5d8e | |||
| 6dcb6ebcb7 | |||
| a9f5e2945b | |||
| 732d317e81 | |||
| 2b77964881 | |||
| 5702ed3d04 | |||
| a2c1c5515a | |||
| 8b66709ea3 | |||
| e6d995c190 | |||
| c1706cb055 | |||
| fe3ffd890b | |||
| 8b5a4cea0d | |||
| ca48684b39 | |||
| c4fd1efb4f | |||
| fc0dcb6ab0 | |||
| e02ad585a9 | |||
| 75cd943dbd | |||
| e6d3121a32 | |||
| 429726f463 | |||
| b9c9d0e31f | |||
| 7918cbb7ab | |||
| 1454a8d4e7 | |||
| 35018ba314 | |||
| 3bf4c852c9 | |||
| a118c33f80 | |||
| 326387895a | |||
| 566e7f7004 | |||
| 625e673385 | |||
| 1863329ca0 | |||
| e83424459c | |||
| 59253019ff | |||
| c66b873631 | |||
| b2a999cec5 | |||
| f1cb63cf0c | |||
| 4138b8998c | |||
| 24929861ba | |||
| fcd2f68f68 | |||
| f0b0af9a76 | |||
| 6a7f24a2af | |||
| 59e06a4087 | |||
| 3738c79ec6 | |||
| 4871aae59d | |||
| 8649d21298 | |||
| de41f29e6b | |||
| f1a8c00028 | |||
| e4f5e8c68a | |||
| 1649e8d28b | |||
| 5e3ca46133 | |||
| a162f158ad | |||
| 6aebbfeaa7 | |||
| 5d725f6d55 | |||
| 85d10fc0e6 | |||
| 1baf9db799 | |||
| 32c0e04c56 | |||
| 57b5819f07 | |||
| 7c5e0135a6 | |||
| 7d8734e192 | |||
| 30184bdd06 | |||
| 1062d217f0 | |||
| 6cad599664 | |||
| cbd309ec5a | |||
| 23c4ba2a3e | |||
| dd03f0eece | |||
| 491b8ce64c | |||
| 2d8dd2b480 | |||
| fda314d585 | |||
| f9073ca5fb | |||
| 36da291be6 | |||
| 4da78939d0 | |||
| a942f42927 | |||
| e9e2ea5b0e | |||
| 701265e393 | |||
| 073763d9bf | |||
| ca7dc28ecf | |||
| a70cc75504 | |||
| 6cc297def1 | |||
| 1baf9125dc | |||
| 78bae2dc60 | |||
| d0a10ef9af | |||
| c6bc23addc | |||
| 9a7da28fc5 | |||
| dd7f295f5c | |||
| 774b604b50 | |||
| e36df6f7d2 | |||
| 9076d9da80 | |||
| c7d6312997 | |||
| 5492cd3f71 | |||
| 9b4bbfbf0d | |||
| b20456d0d6 | |||
| 69338962bc | |||
| 78005f812a | |||
| 3479b98242 | |||
| f4f28b83bd | |||
| 4c8e7f4856 | |||
| ba1123cf73 | |||
| b3ac3c82af | |||
| e9448be986 | |||
| f72a2545bd | |||
| 206a48a15f | |||
| f33ea64b99 | |||
| 0d44933432 | |||
| fa68d545d0 | |||
| 171f2eab4e | |||
| ce86e18664 | |||
| 17030aaa80 | |||
| 09b1c0905e | |||
| b453832d46 | |||
| 109efa03d2 | |||
| 99a8b5f46d | |||
| d8b7fc3642 | |||
| 5f7f72f292 |
+25
-31
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
include(cmake/hoto_update_cmake_message.cmake)
|
include(cmake/hoto_update_cmake_message.cmake)
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.14...3.19 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.21.1 FATAL_ERROR)
|
||||||
|
|
||||||
project(qelectrotech
|
project(qelectrotech
|
||||||
VERSION 0.9.0
|
VERSION 0.9.0
|
||||||
@@ -27,6 +27,13 @@ project(qelectrotech
|
|||||||
include(cmake/copyright_message.cmake)
|
include(cmake/copyright_message.cmake)
|
||||||
|
|
||||||
set(QET_DIR ${PROJECT_SOURCE_DIR})
|
set(QET_DIR ${PROJECT_SOURCE_DIR})
|
||||||
|
include(cmake/qet_compilation_vars.cmake)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
find_package(Qt6 REQUIRED COMPONENTS ${QET_COMPONENTS})
|
||||||
|
qt_standard_project_setup()
|
||||||
|
|
||||||
# Add sub directories
|
# Add sub directories
|
||||||
option(PACKAGE_TESTS "Build the tests" ON)
|
option(PACKAGE_TESTS "Build the tests" ON)
|
||||||
@@ -43,42 +50,17 @@ include(cmake/git_last_commit_sha.cmake)
|
|||||||
include(cmake/fetch_kdeaddons.cmake)
|
include(cmake/fetch_kdeaddons.cmake)
|
||||||
include(cmake/fetch_singleapplication.cmake)
|
include(cmake/fetch_singleapplication.cmake)
|
||||||
include(cmake/fetch_pugixml.cmake)
|
include(cmake/fetch_pugixml.cmake)
|
||||||
include(cmake/qet_compilation_vars.cmake)
|
|
||||||
|
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
set(CMAKE_AUTORCC ON)
|
set(CMAKE_AUTORCC ON)
|
||||||
set(CMAKE_AUTOUIC ON)
|
|
||||||
|
|
||||||
SET(CMAKE_CXX_STANDARD 17)
|
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
||||||
|
|
||||||
find_package(
|
|
||||||
QT
|
|
||||||
NAMES
|
|
||||||
Qt6
|
|
||||||
Qt5
|
|
||||||
COMPONENTS
|
|
||||||
${QET_COMPONENTS}
|
|
||||||
REQUIRED
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(
|
|
||||||
Qt${QT_VERSION_MAJOR}
|
|
||||||
COMPONENTS
|
|
||||||
${QET_COMPONENTS}
|
|
||||||
REQUIRED)
|
|
||||||
|
|
||||||
set(CMAKE_AUTOUIC_SEARCH_PATHS ${QET_DIR}/sources/ui)
|
set(CMAKE_AUTOUIC_SEARCH_PATHS ${QET_DIR}/sources/ui)
|
||||||
qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
|
|
||||||
set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION "${QET_DIR}/lang")
|
|
||||||
qt5_add_translation(QM_FILES ${TS_FILES})
|
|
||||||
|
|
||||||
# als laatse
|
# als laatse
|
||||||
include(cmake/define_definitions.cmake)
|
include(cmake/define_definitions.cmake)
|
||||||
|
|
||||||
add_executable(
|
qt_add_executable(
|
||||||
${PROJECT_NAME}
|
${PROJECT_NAME}
|
||||||
${QET_RES_FILES}
|
${QET_RES_FILES}
|
||||||
${QET_SRC_FILES}
|
${QET_SRC_FILES}
|
||||||
@@ -86,13 +68,24 @@ add_executable(
|
|||||||
${QET_DIR}/qelectrotech.qrc
|
${QET_DIR}/qelectrotech.qrc
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(QMFILES_AS_RESOURCE)
|
||||||
|
qt_add_translations(${PROJECT_NAME} TS_FILES ${TS_FILES} RESOURCE_PREFIX "/lang")
|
||||||
|
else()
|
||||||
|
qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
|
||||||
|
set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION "${QET_DIR}/lang")
|
||||||
|
qt_add_translation(QM_FILES ${TS_FILES})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
find_package(SQLite3 REQUIRED)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
${PROJECT_NAME}
|
${PROJECT_NAME}
|
||||||
PUBLIC
|
PUBLIC
|
||||||
PRIVATE
|
PRIVATE
|
||||||
pugixml::pugixml
|
pugixml::pugixml
|
||||||
SingleApplication::SingleApplication
|
SingleApplication::SingleApplication
|
||||||
${KF5_PRIVATE_LIBRARIES}
|
SQLite::SQLite3
|
||||||
|
${KF6_PRIVATE_LIBRARIES}
|
||||||
${QET_PRIVATE_LIBRARIES}
|
${QET_PRIVATE_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -146,9 +139,10 @@ install(DIRECTORY elements DESTINATION share/qelectrotech)
|
|||||||
install(DIRECTORY examples DESTINATION share/qelectrotech)
|
install(DIRECTORY examples DESTINATION share/qelectrotech)
|
||||||
install(DIRECTORY titleblocks DESTINATION share/qelectrotech)
|
install(DIRECTORY titleblocks DESTINATION share/qelectrotech)
|
||||||
install(FILES LICENSE ELEMENTS.LICENSE CREDIT README ChangeLog DESTINATION share/doc/qelectrotech)
|
install(FILES LICENSE ELEMENTS.LICENSE CREDIT README ChangeLog DESTINATION share/doc/qelectrotech)
|
||||||
install(FILES misc/qelectrotech.desktop DESTINATION share/applications)
|
install(FILES misc/org.qelectrotech.qelectrotech.desktop DESTINATION share/applications)
|
||||||
install(FILES misc/qelectrotech.xml DESTINATION share/mime/packages)
|
install(FILES misc/qelectrotech.xml DESTINATION share/mime/packages)
|
||||||
install(FILES misc/qelectrotech.appdata.xml DESTINATION ${QET_APPDATA_PATH})
|
install(FILES misc/qelectrotech.appdata.xml DESTINATION ${QET_APPDATA_PATH})
|
||||||
install(FILES ${QM_FILES} DESTINATION ${QET_LANG_PATH})
|
if(NOT QMFILES_AS_RESOURCE)
|
||||||
|
install(FILES ${QM_FILES} DESTINATION ${QET_LANG_PATH})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -7,8 +7,6 @@
|
|||||||
Everyone is permitted to copy and distribute verbatim copies
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
of this license document, but changing it is not allowed.
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
Permission is not granted to use this software or any of the associated files
|
|
||||||
as sample data for the purposes of building machine learning models.
|
|
||||||
|
|
||||||
Preamble
|
Preamble
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ The main goal of the developers is to provide a libre, easy to use and effective
|
|||||||
The current stable version is 0.90 and was released on 2023.01.06.
|
The current stable version is 0.90 and was released on 2023.01.06.
|
||||||
Once it has been officially released, the stable version is always frozen and is no longer developed.
|
Once it has been officially released, the stable version is always frozen and is no longer developed.
|
||||||
|
|
||||||
New functionalities, bug and issue fixings are further made in the development version (currently 0.100), which can also be [downloaded](https://qelectrotech.org/download.html).
|
New functionalities, bug and issue fixings are further made in the development version (currently 0.100), which can also be [downloaded](https://qelectrotech.org/download.php).
|
||||||
|
|
||||||
Users who want to test and take benefits from the last software implementations should use the development version. But... use it at your own risk, since things are sometimes broken or only partially implemented until they are done!
|
Users who want to test and take benefits from the last software implementations should use the development version. But... use it at your own risk, since things are sometimes broken or only partially implemented until they are done!
|
||||||
|
|
||||||
@@ -26,10 +26,7 @@ Users who want to test and take benefits from the last software implementations
|
|||||||
|
|
||||||
The software is licensed under [GNU/GPL](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html).
|
The software is licensed under [GNU/GPL](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html).
|
||||||
You are free to use, copy, modify and redistribute it under the terms of the license.
|
You are free to use, copy, modify and redistribute it under the terms of the license.
|
||||||
```txt
|
|
||||||
Permission is not granted to use this software or any of the associated files
|
|
||||||
as sample data for the purposes of building machine learning models.
|
|
||||||
```
|
|
||||||
Like many other open source software, QElectroTech is provided as is, without any warranty.
|
Like many other open source software, QElectroTech is provided as is, without any warranty.
|
||||||
|
|
||||||
### Development / technical choices
|
### Development / technical choices
|
||||||
@@ -80,12 +77,12 @@ Take advantage of the modern GUI
|
|||||||
Toolbars and panels can be enabled/disabled, moved and displayed the way you want to work.
|
Toolbars and panels can be enabled/disabled, moved and displayed the way you want to work.
|
||||||
Panels can be stacked on each other (as tabs) or docked on the sides (as docks) or completely separated from the main window (as windows).
|
Panels can be stacked on each other (as tabs) or docked on the sides (as docks) or completely separated from the main window (as windows).
|
||||||
The GUI can fit to small or big screens, and even to multi-display configurations.
|
The GUI can fit to small or big screens, and even to multi-display configurations.
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
The GUI of QElectroTech is translated in 25 languages.
|
The GUI of QElectroTech is translated in 25 languages.
|
||||||
You only need to restart the application for the new selected language to take effect.
|
You only need to restart the application for the new selected language to take effect.
|
||||||

|

|
||||||
|
|
||||||
Create technical documentation in professional quality
|
Create technical documentation in professional quality
|
||||||
|
|
||||||
@@ -94,56 +91,56 @@ You can set vertical and horizontal headers (printed rulers) individually on and
|
|||||||
|
|
||||||
Titlebocks can be created and edited with the embedded titleblock editor to perfectly suit your needs.
|
Titlebocks can be created and edited with the embedded titleblock editor to perfectly suit your needs.
|
||||||
Custom variables can be defined to display the informations you wish in the titleblock.
|
Custom variables can be defined to display the informations you wish in the titleblock.
|
||||||

|

|
||||||
|
|
||||||
With only 2 mouse clicks you can add a full automatic generated table of content.
|
With only 2 mouse clicks you can add a full automatic generated table of content.
|
||||||
Changes in the documentation are updated on the fly.
|
Changes in the documentation are updated on the fly.
|
||||||

|

|
||||||
|
|
||||||
Choose from more than 8.200 symbols...
|
Choose from more than 8.200 symbols...
|
||||||
The embedded QET collection contains a rich library of electric, logic, pneumatic, hydraulic and fluid symbols.
|
The embedded QET collection contains a rich library of electric, logic, pneumatic, hydraulic and fluid symbols.
|
||||||
The library grows at every new release thanks to an active user community.
|
The library grows at every new release thanks to an active user community.
|
||||||

|

|
||||||
|
|
||||||
...or create your own collection
|
...or create your own collection
|
||||||
|
|
||||||
The embedded element editor is a nice tool to create your own elements (symbols or anything else).
|
The embedded element editor is a nice tool to create your own elements (symbols or anything else).
|
||||||
Your own elements are stored in the user collection.
|
Your own elements are stored in the user collection.
|
||||||

|

|
||||||
|
|
||||||
Quickly find what you need
|
Quickly find what you need
|
||||||
|
|
||||||
All collections can quickly be searched with the integrated search engine.
|
All collections can quickly be searched with the integrated search engine.
|
||||||
Furthermore, the search request can be restricted to the folder of your choice.
|
Furthermore, the search request can be restricted to the folder of your choice.
|
||||||

|

|
||||||
|
|
||||||
Easily draw complex schematics
|
Easily draw complex schematics
|
||||||
|
|
||||||
To add an element on the drawing area, it only needs a drag & drop from the collection panel.
|
To add an element on the drawing area, it only needs a drag & drop from the collection panel.
|
||||||

|

|
||||||
|
|
||||||
Elements are automatically connected if they are aligned, or connected from point to point by pulling a conductor with the mouse.
|
Elements are automatically connected if they are aligned, or connected from point to point by pulling a conductor with the mouse.
|
||||||

|

|
||||||
|
|
||||||
The path of every conductor can be modified by moving its handles with the mouse.
|
The path of every conductor can be modified by moving its handles with the mouse.
|
||||||

|

|
||||||
And of course, you can accurately zoom with the mouse wheel over the drawing area to catch the smallest details.
|
And of course, you can accurately zoom with the mouse wheel over the drawing area to catch the smallest details.
|
||||||
|
|
||||||
Link elements together to create cross references
|
Link elements together to create cross references
|
||||||
|
|
||||||
Several types of element can be linked together to display a cross reference text.
|
Several types of element can be linked together to display a cross reference text.
|
||||||
All types of cross references are automatically updated on the fly, you don't need to think about them if you make changes.
|
All types of cross references are automatically updated on the fly, you don't need to think about them if you make changes.
|
||||||

|

|
||||||
To speed up your work, linkable elements are easily searched and shown.
|
To speed up your work, linkable elements are easily searched and shown.
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
Export informations to a parts list
|
Export informations to a parts list
|
||||||
Informations of all elements in the project can be exported to a .csv file that can be read and edited by any spreadsheet application.
|
Informations of all elements in the project can be exported to a .csv file that can be read and edited by any spreadsheet application.
|
||||||

|

|
||||||
|
|
||||||
This way, you can make your own parts list or bill of material using the full power of a spreadsheet program.
|
This way, you can make your own parts list or bill of material using the full power of a spreadsheet program.
|
||||||

|

|
||||||
Print to pdf and/or export your work to images
|
Print to pdf and/or export your work to images
|
||||||
|
|
||||||
Your whole documentation or only selected parts of it can be printed to a real printer or to a pdf file.
|
Your whole documentation or only selected parts of it can be printed to a real printer or to a pdf file.
|
||||||
@@ -168,7 +165,7 @@ The nomenclature is presented in the form of a configurable table separated into
|
|||||||
- Display: the size and position of the table, the margins between text and the table cell, the alignment of the text in the cells and the font. The configuration of the table headers and the table itself are separate.
|
- Display: the size and position of the table, the margins between text and the table cell, the alignment of the text in the cells and the font. The configuration of the table headers and the table itself are separate.
|
||||||
- Content: the information to display in the table and the order in which it should be displayed.
|
- Content: the information to display in the table and the order in which it should be displayed.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
In order to speed up the establishment of a nomenclature, it is possible to export / import the display and content configurations separately. This is the "Configuration" part that can be seen in the photos above.
|
In order to speed up the establishment of a nomenclature, it is possible to export / import the display and content configurations separately. This is the "Configuration" part that can be seen in the photos above.
|
||||||
|
|
||||||
@@ -187,7 +184,7 @@ Finally two buttons are available in the property panel:
|
|||||||
- "Apply geometry to all tables linked to this one": applies the three properties mentioned above to all linked tables in order to save time and maintain aesthetic consistency.
|
- "Apply geometry to all tables linked to this one": applies the three properties mentioned above to all linked tables in order to save time and maintain aesthetic consistency.
|
||||||
|
|
||||||
And to finish a table
|
And to finish a table
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
Summary
|
Summary
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"id": "org.qelectrotech.QElectroTech",
|
"id": "org.qelectrotech.QElectroTech",
|
||||||
"base-version": "5.15-22.08",
|
"base-version": "5.15-23.08",
|
||||||
"runtime": "org.kde.Platform",
|
"runtime": "org.kde.Platform",
|
||||||
"runtime-version": "5.15-22.08",
|
"runtime-version": "5.15-23.08",
|
||||||
"sdk": "org.kde.Sdk",
|
"sdk": "org.kde.Sdk",
|
||||||
"command": "qelectrotech",
|
"command": "qelectrotech",
|
||||||
"rename-desktop-file": "qelectrotech.desktop",
|
"rename-desktop-file": "org.qelectrotech.qelectrotech.desktop",
|
||||||
"rename-appdata-file": "qelectrotech.appdata.xml",
|
"rename-appdata-file": "qelectrotech.appdata.xml",
|
||||||
"rename-icon": "qelectrotech",
|
"rename-icon": "qelectrotech",
|
||||||
"copy-icon": true,
|
"copy-icon": true,
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
{
|
{
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/iwalton3/tkinter-standalone",
|
"url": "https://github.com/iwalton3/tkinter-standalone",
|
||||||
"commit": "2301112d142ebaf7532b25600c77d1a2edc9ef04"
|
"commit": "23c793bad2429f4a81eee9f50e2d07ae845b7785"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"modules": [
|
"modules": [
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ if [ ! -d "$to" ] && [ -d "$from" ]; then
|
|||||||
cp -av "$from/." "$to"
|
cp -av "$from/." "$to"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# link DXFtoQET so that QET finds it
|
|
||||||
mkdir -p "$HOME/.qet"
|
|
||||||
ln -snf "$SNAP/bin/DXFtoQET" "$HOME/.qet/DXFtoQET"
|
|
||||||
|
|
||||||
exec "${@}"
|
exec "${@}"
|
||||||
|
|||||||
@@ -29,11 +29,11 @@ apps:
|
|||||||
common-id: qelectrotech.desktop
|
common-id: qelectrotech.desktop
|
||||||
extensions:
|
extensions:
|
||||||
- kde-neon
|
- kde-neon
|
||||||
plugs: &plugs [opengl, unity7, home, removable-media, gsettings, network, cups-control]
|
plugs: &plugs [opengl, unity7, home, removable-media, gsettings, network, cups-control, wayland, x11]
|
||||||
environment: &env
|
environment: &env
|
||||||
TCL_LIBRARY: $SNAP/usr/share/tcltk/tcl8.6
|
TCL_LIBRARY: $SNAP/usr/share/tcltk/tcl8.6
|
||||||
HOME: $SNAP_USER_COMMON
|
HOME: $SNAP_USER_COMMON
|
||||||
PYTHONPATH: $SNAP:$SNAP/lib/python3.8/site-packages:$SNAP/usr/lib/python3.8:$SNAP/usr/lib/python3.8/lib-dynload
|
PYTHONPATH: $SNAP:$SNAP/lib/python3.10/site-packages:$SNAP/usr/lib/python3.10:$SNAP/usr/lib/python3.10/lib-dynload
|
||||||
|
|
||||||
qet-tb-generator:
|
qet-tb-generator:
|
||||||
command: bin/qet_tb_generator
|
command: bin/qet_tb_generator
|
||||||
@@ -42,13 +42,7 @@ apps:
|
|||||||
plugs: *plugs
|
plugs: *plugs
|
||||||
environment: *env
|
environment: *env
|
||||||
|
|
||||||
dxf-to-qet:
|
|
||||||
command: bin/DXFtoQET
|
|
||||||
extensions:
|
|
||||||
- kde-neon
|
|
||||||
plugs: *plugs
|
|
||||||
environment: *env
|
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
launchers:
|
launchers:
|
||||||
plugin: dump
|
plugin: dump
|
||||||
@@ -77,16 +71,7 @@ parts:
|
|||||||
override-build: |
|
override-build: |
|
||||||
rsync -a --ignore-existing /snap/kf5-5-110-qt-5-15-11-core22-sdk/current/ /
|
rsync -a --ignore-existing /snap/kf5-5-110-qt-5-15-11-core22-sdk/current/ /
|
||||||
|
|
||||||
dxf-to-qet:
|
|
||||||
after: [kde-sdk-setup]
|
|
||||||
plugin: nil
|
|
||||||
source: https://github.com/qelectrotech/DXFtoQET-2020.git
|
|
||||||
override-build: |
|
|
||||||
qmake "$CRAFT_PART_SRC/DXFtoQET.pro"
|
|
||||||
make -j$(nproc)
|
|
||||||
mkdir -p "$CRAFT_PART_INSTALL/bin"
|
|
||||||
cp DXFtoQET "$CRAFT_PART_INSTALL/bin/"
|
|
||||||
|
|
||||||
qelectrotech:
|
qelectrotech:
|
||||||
after: [kde-sdk-setup]
|
after: [kde-sdk-setup]
|
||||||
plugin: nil
|
plugin: nil
|
||||||
@@ -96,7 +81,7 @@ parts:
|
|||||||
- git
|
- git
|
||||||
- libsqlite3-dev
|
- libsqlite3-dev
|
||||||
override-build: |
|
override-build: |
|
||||||
displayed_version=$(cat sources/qetversion.cpp | grep "return QVersionNumber{ 0, "| head -n 1| cut -c32-40| sed -e 's/,/./g' -e 's/ //g')
|
displayed_version=$(cat sources/qetversion.cpp | grep "return QVersionNumber{"| head -n 1| awk -F "{" '{ print $2 }' | awk -F "}" '{ print $1 }' | sed -e 's/,/./g' -e 's/ //g')
|
||||||
snap_version="${displayed_version}-g$(git rev-parse --short=8 HEAD)"
|
snap_version="${displayed_version}-g$(git rev-parse --short=8 HEAD)"
|
||||||
modified_displayed_version="${snap_version}.snap"
|
modified_displayed_version="${snap_version}.snap"
|
||||||
sed -i -E "s|const QString displayedVersion =.*|const QString displayedVersion =\"$modified_displayed_version\";|" sources/qet.h
|
sed -i -E "s|const QString displayedVersion =.*|const QString displayedVersion =\"$modified_displayed_version\";|" sources/qet.h
|
||||||
@@ -108,10 +93,10 @@ parts:
|
|||||||
craftctl default
|
craftctl default
|
||||||
# patch desktop file with correct icon path
|
# patch desktop file with correct icon path
|
||||||
SED_CMD="sed -i -E s|^Icon=(.*)|Icon=\${SNAP}/usr/local/share/icons/hicolor/128x128/apps/\1.png|g"
|
SED_CMD="sed -i -E s|^Icon=(.*)|Icon=\${SNAP}/usr/local/share/icons/hicolor/128x128/apps/\1.png|g"
|
||||||
$SED_CMD usr/local/share/applications/qelectrotech.desktop
|
$SED_CMD usr/local/share/applications/org.qelectrotech.qelectrotech.desktop
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
after: [qelectrotech, dxf-to-qet, qet-tb-generator]
|
after: [qelectrotech, qet-tb-generator]
|
||||||
plugin: nil
|
plugin: nil
|
||||||
build-snaps: [kf5-5-110-qt-5-15-11-core22]
|
build-snaps: [kf5-5-110-qt-5-15-11-core22]
|
||||||
override-prime: |
|
override-prime: |
|
||||||
|
|||||||
@@ -5,7 +5,10 @@ set current_dir=%~dp0
|
|||||||
cd /d %current_dir%
|
cd /d %current_dir%
|
||||||
|
|
||||||
rem lance QElectroTech
|
rem lance QElectroTech
|
||||||
rem Sans option --config-dir, la configuration de QElectroTech ainsi que la
|
rem Sans option --config-dir, la configuration de QElectroTech seront dans
|
||||||
rem collection d'elements perso seront dans "%APPDATA%\qet"
|
rem "C:/Users/<USER>/AppData/Local/QElectroTech/QElectroTech"
|
||||||
|
rem Sans l'option --data-dir, les données utilisateur (elements, titleblocks,
|
||||||
|
rem log, ...) de QElectroTech sont stockées dans
|
||||||
|
rem "C:/Users/<USER>/AppData/Roaming/QElectroTech/QElectroTech"
|
||||||
set command=bin\qelectrotech.exe --common-elements-dir=elements/ --common-tbt-dir=titleblocks/ --lang-dir=lang/ -style windowsvista %*
|
set command=bin\qelectrotech.exe --common-elements-dir=elements/ --common-tbt-dir=titleblocks/ --lang-dir=lang/ -style windowsvista %*
|
||||||
@start %command%
|
@start %command%
|
||||||
|
|||||||
@@ -125,6 +125,7 @@
|
|||||||
!insertmacro MUI_LANGUAGE "Dutch"
|
!insertmacro MUI_LANGUAGE "Dutch"
|
||||||
!insertmacro MUI_LANGUAGE "Dutch_Belgium"
|
!insertmacro MUI_LANGUAGE "Dutch_Belgium"
|
||||||
!insertmacro MUI_LANGUAGE "Danish"
|
!insertmacro MUI_LANGUAGE "Danish"
|
||||||
|
!insertmacro MUI_LANGUAGE "Swedish"
|
||||||
!insertmacro MUI_RESERVEFILE_LANGDLL
|
!insertmacro MUI_RESERVEFILE_LANGDLL
|
||||||
|
|
||||||
!include lang_extra.nsh
|
!include lang_extra.nsh
|
||||||
@@ -266,13 +267,13 @@ Section ""
|
|||||||
; write file associations registry keys
|
; write file associations registry keys
|
||||||
WriteRegStr HKEY_CLASSES_ROOT "Applications\qelectrotech.exe\shell\open\command" "" "$\"$final_qet_exe$\" $\"%1$\""
|
WriteRegStr HKEY_CLASSES_ROOT "Applications\qelectrotech.exe\shell\open\command" "" "$\"$final_qet_exe$\" $\"%1$\""
|
||||||
WriteRegStr HKEY_CLASSES_ROOT ".qet" "" "qet_diagram_file"
|
WriteRegStr HKEY_CLASSES_ROOT ".qet" "" "qet_diagram_file"
|
||||||
WriteRegStr HKEY_CLASSES_ROOT "qet_diagram_file" "" "Schéma QET"
|
WriteRegStr HKEY_CLASSES_ROOT "qet_diagram_file" "" "Diagram QET"
|
||||||
WriteRegDWORD HKEY_CLASSES_ROOT "qet_diagram_file" "EditFlags" 0x00000000
|
WriteRegDWORD HKEY_CLASSES_ROOT "qet_diagram_file" "EditFlags" 0x00000000
|
||||||
WriteRegDWORD HKEY_CLASSES_ROOT "qet_diagram_file" "BrowserFlags" 0x00000008
|
WriteRegDWORD HKEY_CLASSES_ROOT "qet_diagram_file" "BrowserFlags" 0x00000008
|
||||||
WriteRegStr HKEY_CLASSES_ROOT "qet_diagram_file\DefaultIcon" "" "$final_project_ico"
|
WriteRegStr HKEY_CLASSES_ROOT "qet_diagram_file\DefaultIcon" "" "$final_project_ico"
|
||||||
WriteRegStr HKEY_CLASSES_ROOT "qet_diagram_file\shell\open\command" "" "$\"$final_qet_exe$\" $\"%1$\""
|
WriteRegStr HKEY_CLASSES_ROOT "qet_diagram_file\shell\open\command" "" "$\"$final_qet_exe$\" $\"%1$\""
|
||||||
WriteRegStr HKEY_CLASSES_ROOT ".elmt" "" "qet_element_file"
|
WriteRegStr HKEY_CLASSES_ROOT ".elmt" "" "qet_element_file"
|
||||||
WriteRegStr HKEY_CLASSES_ROOT "qet_element_file" "" "Élément QET"
|
WriteRegStr HKEY_CLASSES_ROOT "qet_element_file" "" "Element QET"
|
||||||
WriteRegDWORD HKEY_CLASSES_ROOT "qet_element_file" "EditFlags" 0x00000000
|
WriteRegDWORD HKEY_CLASSES_ROOT "qet_element_file" "EditFlags" 0x00000000
|
||||||
WriteRegDWORD HKEY_CLASSES_ROOT "qet_element_file" "BrowserFlags" 0x00000008
|
WriteRegDWORD HKEY_CLASSES_ROOT "qet_element_file" "BrowserFlags" 0x00000008
|
||||||
WriteRegStr HKEY_CLASSES_ROOT "qet_element_file\DefaultIcon" "" "$final_element_ico"
|
WriteRegStr HKEY_CLASSES_ROOT "qet_element_file\DefaultIcon" "" "$final_element_ico"
|
||||||
|
|||||||
@@ -62,10 +62,15 @@ message("PROJECT_SOURCE_DIR :" ${PROJECT_SOURCE_DIR})
|
|||||||
message("QET_DIR :" ${QET_DIR})
|
message("QET_DIR :" ${QET_DIR})
|
||||||
message("GIT_COMMIT_SHA :" ${GIT_COMMIT_SHA})
|
message("GIT_COMMIT_SHA :" ${GIT_COMMIT_SHA})
|
||||||
|
|
||||||
if(BUILD_WITH_KF5)
|
if(BUILD_WITH_KF6 AND BUILD_KF6)
|
||||||
message("KF5_GIT_TAG :" ${KF5_GIT_TAG})
|
message("KF6_GIT_TAG :" ${KF6_GIT_TAG})
|
||||||
else()
|
endif()
|
||||||
add_definitions(-DBUILD_WITHOUT_KF5)
|
if(NOT BUILD_WITH_KF6)
|
||||||
|
add_definitions(-DBUILD_WITHOUT_KF6)
|
||||||
endif()
|
endif()
|
||||||
message("QET_COMPONENTS :" ${QET_COMPONENTS})
|
message("QET_COMPONENTS :" ${QET_COMPONENTS})
|
||||||
message("QT_VERSION_MAJOR :" ${QT_VERSION_MAJOR})
|
message("Qt version :" ${Qt6_VERSION})
|
||||||
|
|
||||||
|
if(QMFILES_AS_RESOURCE)
|
||||||
|
add_definitions(-DQMFILES_AS_RESOURCE)
|
||||||
|
endif()
|
||||||
@@ -31,5 +31,8 @@ add_definitions(-DQT_MESSAGELOGCONTEXT)
|
|||||||
# In order to do so, uncomment the following line.
|
# In order to do so, uncomment the following line.
|
||||||
#add_definitions(-DTODO_LIST)
|
#add_definitions(-DTODO_LIST)
|
||||||
|
|
||||||
# Build with KF5
|
# Build with KF6
|
||||||
option(BUILD_WITH_KF5 "Build with KF5" ON)
|
option(BUILD_WITH_KF6 "Build with KF6" ON)
|
||||||
|
|
||||||
|
# Use translations as a Qt resource
|
||||||
|
option(QMFILES_AS_RESOURCE "Use .qm files as Qt resource" ON)
|
||||||
|
|||||||
+29
-36
@@ -14,54 +14,47 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
# along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
message(" - fetch_kdeaddons")
|
message(STATUS "fetch_kdeaddons")
|
||||||
|
|
||||||
if(DEFINED BUILD_WITH_KF5)
|
if(BUILD_WITH_KF6)
|
||||||
Include(FetchContent)
|
option(BUILD_KF6 "Build KF6 libraries, use system ones otherwise" OFF)
|
||||||
|
block(PROPAGATE KF6_GIT_TAG)
|
||||||
|
set(BUILD_TESTING OFF)
|
||||||
|
set(KDE_SKIP_TEST_SETTINGS ON)
|
||||||
|
set(BUILD_DESIGNERPLUGIN OFF)
|
||||||
|
set(KCOREADDONS_USE_QML OFF)
|
||||||
|
set(BUILD_QCH OFF)
|
||||||
|
set(BUILD_SHARED_LIBS OFF)
|
||||||
|
find_package(ECM 6.8.0 REQUIRED NO_MODULE)
|
||||||
|
list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
|
||||||
|
|
||||||
option(BUILD_KF5 "Build KF5 libraries, use system ones otherwise" YES)
|
if(BUILD_KF6)
|
||||||
|
Include(FetchContent)
|
||||||
|
|
||||||
if(BUILD_KF5)
|
if(NOT DEFINED KF6_GIT_TAG)
|
||||||
|
set(KF6_GIT_TAG v6.8.0)
|
||||||
if(NOT DEFINED KF5_GIT_TAG)
|
|
||||||
#https://qelectrotech.org/forum/viewtopic.php?pid=13924#p13924
|
|
||||||
set(KF5_GIT_TAG v5.77.0)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Fix stop the run autotests of kcoreaddons
|
|
||||||
# see
|
|
||||||
# https://invent.kde.org/frameworks/kcoreaddons/-/blob/master/CMakeLists.txt#L98
|
|
||||||
# issue:
|
|
||||||
# CMake Error at /usr/share/ECM/modules/ECMAddTests.cmake:89 (add_executable):
|
|
||||||
# Cannot find source file:
|
|
||||||
# see
|
|
||||||
# https://qelectrotech.org/forum/viewtopic.php?pid=13929#p13929
|
|
||||||
set(KDE_SKIP_TEST_SETTINGS "TRUE")
|
|
||||||
set(BUILD_TESTING "0")
|
|
||||||
FetchContent_Declare(
|
|
||||||
ecm
|
|
||||||
GIT_REPOSITORY https://invent.kde.org/frameworks/extra-cmake-modules.git
|
|
||||||
GIT_TAG ${KF5_GIT_TAG})
|
|
||||||
FetchContent_MakeAvailable(ecm)
|
|
||||||
|
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
kcoreaddons
|
kcoreaddons
|
||||||
GIT_REPOSITORY https://invent.kde.org/frameworks/kcoreaddons.git
|
GIT_REPOSITORY https://invent.kde.org/frameworks/kcoreaddons.git
|
||||||
GIT_TAG ${KF5_GIT_TAG})
|
GIT_TAG ${KF6_GIT_TAG})
|
||||||
FetchContent_MakeAvailable(kcoreaddons)
|
FetchContent_MakeAvailable(kcoreaddons)
|
||||||
|
get_target_property(kca_version KF6::CoreAddons VERSION)
|
||||||
|
|
||||||
FetchContent_Declare(
|
|
||||||
kwidgetsaddons
|
|
||||||
GIT_REPOSITORY https://invent.kde.org/frameworks/kwidgetsaddons.git
|
|
||||||
GIT_TAG ${KF5_GIT_TAG})
|
|
||||||
FetchContent_MakeAvailable(kwidgetsaddons)
|
|
||||||
else()
|
else()
|
||||||
find_package(KF5CoreAddons REQUIRED)
|
find_package(KF6CoreAddons REQUIRED)
|
||||||
find_package(KF5WidgetsAddons REQUIRED)
|
set(kca_version ${KF6CoreAddons_VERSION})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(KF5_PRIVATE_LIBRARIES
|
get_target_property(kwa_type KF6::CoreAddons TYPE)
|
||||||
KF5::WidgetsAddons
|
|
||||||
KF5::CoreAddons
|
message(NOTICE "ecm version : " ${ECM_VERSION})
|
||||||
|
message(NOTICE "kcoreaddons library : " ${kca_type})
|
||||||
|
message(NOTICE "kcoreaddons version : " ${kca_version})
|
||||||
|
endblock()
|
||||||
|
|
||||||
|
set(KF6_PRIVATE_LIBRARIES
|
||||||
|
KF6::CoreAddons
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ if(BUILD_PUGIXML)
|
|||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
pugixml
|
pugixml
|
||||||
GIT_REPOSITORY https://github.com/zeux/pugixml.git
|
GIT_REPOSITORY https://github.com/zeux/pugixml.git
|
||||||
GIT_TAG v1.11.4)
|
GIT_TAG v1.14)
|
||||||
|
|
||||||
FetchContent_MakeAvailable(pugixml)
|
FetchContent_MakeAvailable(pugixml)
|
||||||
else()
|
else()
|
||||||
|
|||||||
@@ -26,6 +26,6 @@ Include(FetchContent)
|
|||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
SingleApplication
|
SingleApplication
|
||||||
GIT_REPOSITORY https://github.com/itay-grudev/SingleApplication.git
|
GIT_REPOSITORY https://github.com/itay-grudev/SingleApplication.git
|
||||||
GIT_TAG v3.2.0)
|
GIT_TAG v3.5.1)
|
||||||
|
|
||||||
FetchContent_MakeAvailable(SingleApplication)
|
FetchContent_MakeAvailable(SingleApplication)
|
||||||
|
|||||||
@@ -17,6 +17,8 @@
|
|||||||
message(" - qet_compilation_vars")
|
message(" - qet_compilation_vars")
|
||||||
|
|
||||||
set(QET_COMPONENTS
|
set(QET_COMPONENTS
|
||||||
|
Core
|
||||||
|
Gui
|
||||||
LinguistTools
|
LinguistTools
|
||||||
PrintSupport
|
PrintSupport
|
||||||
Xml
|
Xml
|
||||||
@@ -109,6 +111,12 @@ set(QET_SRC_FILES
|
|||||||
${QET_DIR}/sources/borderproperties.h
|
${QET_DIR}/sources/borderproperties.h
|
||||||
${QET_DIR}/sources/bordertitleblock.cpp
|
${QET_DIR}/sources/bordertitleblock.cpp
|
||||||
${QET_DIR}/sources/bordertitleblock.h
|
${QET_DIR}/sources/bordertitleblock.h
|
||||||
|
${QET_DIR}/sources/colorbutton.cpp
|
||||||
|
${QET_DIR}/sources/colorbutton.h
|
||||||
|
${QET_DIR}/sources/colorcombobox.cpp
|
||||||
|
${QET_DIR}/sources/colorcombobox.h
|
||||||
|
${QET_DIR}/sources/colorcomboboxdelegate.cpp
|
||||||
|
${QET_DIR}/sources/colorcomboboxdelegate.h
|
||||||
${QET_DIR}/sources/conductorautonumerotation.cpp
|
${QET_DIR}/sources/conductorautonumerotation.cpp
|
||||||
${QET_DIR}/sources/conductorautonumerotation.h
|
${QET_DIR}/sources/conductorautonumerotation.h
|
||||||
${QET_DIR}/sources/conductornumexport.cpp
|
${QET_DIR}/sources/conductornumexport.cpp
|
||||||
@@ -258,6 +266,9 @@ set(QET_SRC_FILES
|
|||||||
${QET_DIR}/sources/dxf/dxftoelmt.cpp
|
${QET_DIR}/sources/dxf/dxftoelmt.cpp
|
||||||
${QET_DIR}/sources/dxf/dxftoelmt.h
|
${QET_DIR}/sources/dxf/dxftoelmt.h
|
||||||
|
|
||||||
|
${QET_DIR}/sources/qet_elementscaler/qet_elementscaler.cpp
|
||||||
|
${QET_DIR}/sources/qet_elementscaler/qet_elementscaler.h
|
||||||
|
|
||||||
${QET_DIR}/sources/editor/arceditor.cpp
|
${QET_DIR}/sources/editor/arceditor.cpp
|
||||||
${QET_DIR}/sources/editor/arceditor.h
|
${QET_DIR}/sources/editor/arceditor.h
|
||||||
${QET_DIR}/sources/editor/editorcommands.cpp
|
${QET_DIR}/sources/editor/editorcommands.cpp
|
||||||
@@ -707,7 +718,6 @@ set(QET_SRC_FILES
|
|||||||
|
|
||||||
set(TS_FILES
|
set(TS_FILES
|
||||||
${QET_DIR}/lang/qet_ar.ts
|
${QET_DIR}/lang/qet_ar.ts
|
||||||
${QET_DIR}/lang/qet_be.ts
|
|
||||||
${QET_DIR}/lang/qet_ca.ts
|
${QET_DIR}/lang/qet_ca.ts
|
||||||
${QET_DIR}/lang/qet_cs.ts
|
${QET_DIR}/lang/qet_cs.ts
|
||||||
${QET_DIR}/lang/qet_da.ts
|
${QET_DIR}/lang/qet_da.ts
|
||||||
@@ -724,6 +734,7 @@ set(TS_FILES
|
|||||||
${QET_DIR}/lang/qet_mn.ts
|
${QET_DIR}/lang/qet_mn.ts
|
||||||
${QET_DIR}/lang/qet_nb.ts
|
${QET_DIR}/lang/qet_nb.ts
|
||||||
${QET_DIR}/lang/qet_nl.ts
|
${QET_DIR}/lang/qet_nl.ts
|
||||||
|
${QET_DIR}/lang/qet_nl_BE.ts
|
||||||
${QET_DIR}/lang/qet_no.ts
|
${QET_DIR}/lang/qet_no.ts
|
||||||
${QET_DIR}/lang/qet_pl.ts
|
${QET_DIR}/lang/qet_pl.ts
|
||||||
${QET_DIR}/lang/qet_pt.ts
|
${QET_DIR}/lang/qet_pt.ts
|
||||||
@@ -733,6 +744,7 @@ set(TS_FILES
|
|||||||
${QET_DIR}/lang/qet_sk.ts
|
${QET_DIR}/lang/qet_sk.ts
|
||||||
${QET_DIR}/lang/qet_sl.ts
|
${QET_DIR}/lang/qet_sl.ts
|
||||||
${QET_DIR}/lang/qet_sr.ts
|
${QET_DIR}/lang/qet_sr.ts
|
||||||
|
${QET_DIR}/lang/qet_sv.ts
|
||||||
${QET_DIR}/lang/qet_tr.ts
|
${QET_DIR}/lang/qet_tr.ts
|
||||||
${QET_DIR}/lang/qet_zh.ts
|
${QET_DIR}/lang/qet_zh.ts
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -25,5 +25,8 @@ add_definitions(-DQET_ALLOW_OVERRIDE_CTBTD_OPTION)
|
|||||||
# Comment the line below to deactivate the --config-dir option
|
# Comment the line below to deactivate the --config-dir option
|
||||||
add_definitions(-DQET_ALLOW_OVERRIDE_CD_OPTION)
|
add_definitions(-DQET_ALLOW_OVERRIDE_CD_OPTION)
|
||||||
|
|
||||||
|
# Comment the line below to deactivate the --data-dir option
|
||||||
|
add_definitions(-DQET_ALLOW_OVERRIDE_DD_OPTION)
|
||||||
|
|
||||||
#comment the line below to disable the project database export
|
#comment the line below to disable the project database export
|
||||||
#add_definitions(-DQET_EXPORT_PROJECT_DB) #error Todo
|
add_definitions(-DQET_EXPORT_PROJECT_DB)
|
||||||
|
|||||||
+1
-1
Submodule elements updated: 5052b6330e...48eb7dcedf
Binary file not shown.
|
After Width: | Height: | Size: 295 B |
Binary file not shown.
|
After Width: | Height: | Size: 291 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,326 @@
|
|||||||
|
<!DOCTYPE QPH>
|
||||||
|
<QPH sourcelanguage="fr" language="sv">
|
||||||
|
<phrase>
|
||||||
|
<source>Texte composé</source>
|
||||||
|
<target>Sammansatt text</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Texte utilisateur</source>
|
||||||
|
<target>Egen text</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Gauche</source>
|
||||||
|
<target>Vänster</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Droite</source>
|
||||||
|
<target>Höger</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Centre</source>
|
||||||
|
<target>Centrum</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Élément</source>
|
||||||
|
<target>Objekt</target>
|
||||||
|
<definition>Vid referens av olika typer</definition>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Folio</source>
|
||||||
|
<target>Blad</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Conducteur</source>
|
||||||
|
<target>Förbindning</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Sans nom</source>
|
||||||
|
<target>Namnlös</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Recharger</source>
|
||||||
|
<target>Ladda om</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Projet sans titre</source>
|
||||||
|
<target>Namnlöst projekt</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Folio sans titre</source>
|
||||||
|
<target>Namnlöst blad</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Nom</source>
|
||||||
|
<target>Namn</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Sélection</source>
|
||||||
|
<target>Urval</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Désélectionner tout</source>
|
||||||
|
<target>Avmarkera allt</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Sélectionner tout</source>
|
||||||
|
<target>Välj allt</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Installation</source>
|
||||||
|
<target>Anläggning</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Localisation</source>
|
||||||
|
<target>Placering</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Reports de folio</source>
|
||||||
|
<target>Bladhänvisningar</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Report de folio</source>
|
||||||
|
<target>Bladhänvisning</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Centre</source>
|
||||||
|
<target>Mitten</target>
|
||||||
|
<definition>Vid textjustering</definition>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Collage multiple</source>
|
||||||
|
<target>Klistra in flera</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Remplacer</source>
|
||||||
|
<target>Ersätt</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Élément</source>
|
||||||
|
<target>Symbol</target>
|
||||||
|
<definition>Vid referens av symbol</definition>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>À</source>
|
||||||
|
<target>Till</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>De</source>
|
||||||
|
<target>Från</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Nomenclature</source>
|
||||||
|
<target>Förteckning</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Position du folio</source>
|
||||||
|
<target>Bladposition</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Polygone fermé</source>
|
||||||
|
<target>Sluten polygon</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Dossier</source>
|
||||||
|
<target>Mapp</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Que souhaitez-vous faire</source>
|
||||||
|
<target>Vad vill du göra</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Collection</source>
|
||||||
|
<target>Bibliotek</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Collection de cartouches</source>
|
||||||
|
<target>Titelblockbibliotek</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Collection company de cartouches</source>
|
||||||
|
<target>Organisationens titelblockbibliotek</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Champ texte</source>
|
||||||
|
<target>Textfält</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Longueur</source>
|
||||||
|
<target>Längd</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Suivant</source>
|
||||||
|
<target>Nästa</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Suivant</source>
|
||||||
|
<target>Följande</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Chiffre</source>
|
||||||
|
<target>Siffra</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Tout cocher</source>
|
||||||
|
<target>Markera allt</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Tout décocher</source>
|
||||||
|
<target>Avmarkera allt</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Titre</source>
|
||||||
|
<target>Titel</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Dimensions</source>
|
||||||
|
<target>Dimensioner</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Dimensions</source>
|
||||||
|
<target>Mått</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Aperçu</source>
|
||||||
|
<target>Översikt</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Générique</source>
|
||||||
|
<target>Generisk</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Sans</source>
|
||||||
|
<target>Utan</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Avec</source>
|
||||||
|
<target>Med</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Normal</source>
|
||||||
|
<target>Normal</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Tiret</source>
|
||||||
|
<target>Streckad</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Pointillé</source>
|
||||||
|
<target>Punktad</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Remplissage</source>
|
||||||
|
<target>Fyllning</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Apparence</source>
|
||||||
|
<target>Utseende</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Contour</source>
|
||||||
|
<target>Kontur</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Épaisseur</source>
|
||||||
|
<target>Tjocklek</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Géométrie</source>
|
||||||
|
<target>Geometri</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Par defaut</source>
|
||||||
|
<target>Förinställt</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Parcourir</source>
|
||||||
|
<target>Bläddra</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Général</source>
|
||||||
|
<target>Allmänt</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Borne</source>
|
||||||
|
<target>Plint</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Coller</source>
|
||||||
|
<target>Klistra in</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Ouvrir</source>
|
||||||
|
<target>Öppna</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Arc</source>
|
||||||
|
<target>Båge</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Ellipse</source>
|
||||||
|
<target>Ellips</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Ligne</source>
|
||||||
|
<target>Linje</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Rectangle</source>
|
||||||
|
<target>Rektangel</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Orientation</source>
|
||||||
|
<target>Orientering</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Nord</source>
|
||||||
|
<target>Nord</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Est</source>
|
||||||
|
<target>Öst</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Sud</source>
|
||||||
|
<target>Syd</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Ouest</source>
|
||||||
|
<target>Väst</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Police</source>
|
||||||
|
<target>Typsnitt</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Dimensions</source>
|
||||||
|
<target>Storlek</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Sans titre</source>
|
||||||
|
<target>Namnlös</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Borne</source>
|
||||||
|
<target>Anslutning</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Sans titre</source>
|
||||||
|
<target>Namnlöst</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Sans nom</source>
|
||||||
|
<target>Namnlöst</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Décalage</source>
|
||||||
|
<target>Förkjutning</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Afficher</source>
|
||||||
|
<target>Visa</target>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
<source>Affichage</source>
|
||||||
|
<target>Visning</target>
|
||||||
|
</phrase>
|
||||||
|
</QPH>
|
||||||
Binary file not shown.
+699
-651
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+695
-647
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+772
-700
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+700
-653
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+767
-698
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+700
-652
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+723
-655
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+1043
-994
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+703
-653
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+692
-644
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+700
-653
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+701
-653
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+699
-651
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+699
-651
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+699
-651
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+700
-680
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+1056
-981
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+818
-701
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+696
-648
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+770
-701
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+692
-644
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+700
-652
File diff suppressed because it is too large
Load Diff
+699
-651
File diff suppressed because it is too large
Load Diff
+690
-642
File diff suppressed because it is too large
Load Diff
+690
-642
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+14418
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+699
-651
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+698
-650
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+700
-652
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -8,5 +8,5 @@ rem Met la collection QET en lecture seule
|
|||||||
attrib +r elements/* /S /D
|
attrib +r elements/* /S /D
|
||||||
|
|
||||||
rem lance QElectroTech
|
rem lance QElectroTech
|
||||||
set command=bin\qelectrotech.exe -platform windows:fontengine=freetype --common-elements-dir=elements/ --common-tbt-dir=titleblocks/ --lang-dir=lang/ --config-dir=conf/ -style plastique %*
|
set command=bin\qelectrotech.exe -platform windows:fontengine=freetype --common-elements-dir=elements/ --common-tbt-dir=titleblocks/ --lang-dir=lang/ --config-dir=conf/ --data-dir=conf/ -style plastique %*
|
||||||
@start %command%
|
@start %command%
|
||||||
|
|||||||
@@ -89,7 +89,8 @@ A=$(git rev-list HEAD --count)
|
|||||||
HEAD=$(($A+473))
|
HEAD=$(($A+473))
|
||||||
|
|
||||||
|
|
||||||
VERSION=$(cat sources/qetversion.cpp | grep "return QVersionNumber{ 0, "| head -n 1| cut -c32-40| sed -e 's/,/./g' -e 's/ //g') #Find major, minor, and micro version numbers in sources/qetversion.cp
|
VERSION=$(cat sources/qetversion.cpp | grep "return QVersionNumber{"| head -n 1| awk -F "{" '{ print $2 }' | awk -F "}" '{ print $1 }' | sed -e 's/,/./g' -e 's/ //g')
|
||||||
|
#VERSION=$(cat sources/qetversion.cpp | grep "return QVersionNumber{ 0, "| head -n 1| cut -c25-35| sed -e 's/,/./g' -e 's/ //g') #Find major, minor, and micro version numbers in sources/qetversion.cp
|
||||||
|
|
||||||
# Dmg de la dernière revision déjà créé
|
# Dmg de la dernière revision déjà créé
|
||||||
if [ -e "build-aux/mac-osx/${APPNAME} $VERSION r$HEAD.dmg" ] ; then
|
if [ -e "build-aux/mac-osx/${APPNAME} $VERSION r$HEAD.dmg" ] ; then
|
||||||
|
|||||||
@@ -84,7 +84,8 @@ A=$(git rev-list HEAD --count)
|
|||||||
HEAD=$(($A+473))
|
HEAD=$(($A+473))
|
||||||
|
|
||||||
|
|
||||||
VERSION=$(cat sources/qetversion.cpp | grep "return QVersionNumber{ 0, "| head -n 1| cut -c32-40| sed -e 's/,/./g' -e 's/ //g') #Find major, minor, and micro version numbers in sources/qetversion.cp
|
VERSION=$(cat sources/qetversion.cpp | grep "return QVersionNumber{"| head -n 1| awk -F "{" '{ print $2 }' | awk -F "}" '{ print $1 }' | sed -e 's/,/./g' -e 's/ //g')
|
||||||
|
#VERSION=$(cat sources/qetversion.cpp | grep "return QVersionNumber{ 0, "| head -n 1| cut -c32-40| sed -e 's/,/./g' -e 's/ //g') #Find major, minor, and micro version numbers in sources/qetversion.cp
|
||||||
|
|
||||||
# Tarball de la dernière revision déjà créé
|
# Tarball de la dernière revision déjà créé
|
||||||
if [ -e "build-aux/mac-osx/${APPNAME}-$VERSION-r$HEAD-arm64.zip" ] ; then
|
if [ -e "build-aux/mac-osx/${APPNAME}-$VERSION-r$HEAD-arm64.zip" ] ; then
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ QET_EXE=$(readlink -f "${current_dir}/../qelectrotech")
|
|||||||
QET_ELEMENTS_DIR=$(readlink -f "${current_dir}/../elements/")
|
QET_ELEMENTS_DIR=$(readlink -f "${current_dir}/../elements/")
|
||||||
QET_TBT_DIR=$(readlink -f "${current_dir}/../titleblocks/")
|
QET_TBT_DIR=$(readlink -f "${current_dir}/../titleblocks/")
|
||||||
QET_CONFIG_DIR=""
|
QET_CONFIG_DIR=""
|
||||||
|
QET_DATA_DIR=""
|
||||||
QET_LANG_DIR=$(readlink -f "${current_dir}/../lang/")
|
QET_LANG_DIR=$(readlink -f "${current_dir}/../lang/")
|
||||||
# REDEFINE_LANG="es"
|
# REDEFINE_LANG="es"
|
||||||
|
|
||||||
@@ -31,6 +32,10 @@ if [ -d "${QET_CONFIG_DIR}" ]; then
|
|||||||
OPTIONS="${OPTIONS} --config-dir=${QET_CONFIG_DIR}"
|
OPTIONS="${OPTIONS} --config-dir=${QET_CONFIG_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d "${QET_DATA_DIR}" ]; then
|
||||||
|
OPTIONS="${OPTIONS} --data-dir=${QET_DATA_DIR}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d "${QET_LANG_DIR}" ]; then
|
if [ -d "${QET_LANG_DIR}" ]; then
|
||||||
OPTIONS="${OPTIONS} --lang-dir=${QET_LANG_DIR}"
|
OPTIONS="${OPTIONS} --lang-dir=${QET_LANG_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Version=1.0
|
Version=1.0
|
||||||
Name=QElectroTech
|
Name=QElectroTech
|
||||||
TryExec=qelectrotech
|
TryExec=qelectrotech
|
||||||
Exec=qelectrotech %F
|
Exec=qelectrotech %F
|
||||||
Icon=qelectrotech
|
Icon=qelectrotech
|
||||||
@@ -10,7 +10,7 @@ MimeType=application/x-qet-project;application/x-qet-element;application/x-qet-t
|
|||||||
Categories=Graphics;Qt;VectorGraphics;Science;Electricity;Engineering;
|
Categories=Graphics;Qt;VectorGraphics;Science;Electricity;Engineering;
|
||||||
Keywords=Graphics;Science;Electricity;Engineering;
|
Keywords=Graphics;Science;Electricity;Engineering;
|
||||||
Comment=Edit electrical diagrams.
|
Comment=Edit electrical diagrams.
|
||||||
Comment[de]=Schaltpläne erstellen und bearbeiten.
|
Comment[de]=Elektroschaltpläne erstellen und bearbeiten.
|
||||||
Comment[fr]=Éditer des schémas électriques.
|
Comment[fr]=Éditer des schémas électriques.
|
||||||
Comment[ar]=تحرير مخططات كهربائية
|
Comment[ar]=تحرير مخططات كهربائية
|
||||||
Comment[es]=Editar esquemas eléctricos
|
Comment[es]=Editar esquemas eléctricos
|
||||||
@@ -26,6 +26,7 @@ Comment[nl]=Bewerken bedradingsdiagrammen.
|
|||||||
Comment[be]=Bewerken elektrisch schema.
|
Comment[be]=Bewerken elektrisch schema.
|
||||||
Comment[da]=Rediger elektriske diagrammer.
|
Comment[da]=Rediger elektriske diagrammer.
|
||||||
Comment[ja]=電気回路図の編集。
|
Comment[ja]=電気回路図の編集。
|
||||||
|
Comment[sk]=Úprava elektrických schém.
|
||||||
GenericName=Electrical diagram editor
|
GenericName=Electrical diagram editor
|
||||||
GenericName[de]=Schaltplaneditor
|
GenericName[de]=Schaltplaneditor
|
||||||
GenericName[fr]=Éditeur de schémas électriques
|
GenericName[fr]=Éditeur de schémas électriques
|
||||||
@@ -42,3 +43,4 @@ GenericName[nl]=Elektrische schema editor
|
|||||||
GenericName[be]=Elektrische schema editor
|
GenericName[be]=Elektrische schema editor
|
||||||
GenericName[da]=Elektrisk diagram redigering
|
GenericName[da]=Elektrisk diagram redigering
|
||||||
GenericName[ja]=電気回路図エディタ
|
GenericName[ja]=電気回路図エディタ
|
||||||
|
GenericName[sk]=Editor elektrických schém
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- Copyright 2006-2024 The QElectroTech Team -->
|
<!-- Copyright 2006-2025 The QElectroTech Team -->
|
||||||
<application>
|
<application>
|
||||||
<id type="desktop">qelectrotech.desktop</id>
|
<id type="desktop">qelectrotech.desktop</id>
|
||||||
<metadata_license>MIT</metadata_license>
|
<metadata_license>MIT</metadata_license>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ my $no = '[no]';
|
|||||||
my $todo = 'TODO';
|
my $todo = 'TODO';
|
||||||
|
|
||||||
our $default_language = 'fr';
|
our $default_language = 'fr';
|
||||||
our @misc_desktop_files = qw(misc/qelectrotech.desktop);
|
our @misc_desktop_files = qw(misc/org.qelectrotech.qelectrotech.desktop);
|
||||||
our @misc_xml_files = qw(misc/qelectrotech.xml);
|
our @misc_xml_files = qw(misc/qelectrotech.xml);
|
||||||
our @readme_files = qw(CREDIT README INSTALL ELEMENTS.LICENSE build-aux/linux/fedora/README.elements);
|
our @readme_files = qw(CREDIT README INSTALL ELEMENTS.LICENSE build-aux/linux/fedora/README.elements);
|
||||||
our @ordered_languages = qw(fr en es pt cs pl ca de it ar sl hr el nl be ru ro da pt_BR hu sr tr nb ja mn uk zh);
|
our @ordered_languages = qw(fr en es pt cs pl ca de it ar sl hr el nl be ru ro da pt_BR hu sr tr nb ja mn uk zh);
|
||||||
|
|||||||
@@ -21,7 +21,9 @@ A=$(git rev-list HEAD --count)
|
|||||||
HEAD=$(($A+473))
|
HEAD=$(($A+473))
|
||||||
|
|
||||||
#Find major, minor, and micro version numbers in sources/qetversion.cp
|
#Find major, minor, and micro version numbers in sources/qetversion.cp
|
||||||
tagName=$(cat sources/qetversion.cpp | grep "return QVersionNumber{ 0, "| head -n 1| cut -c32-40| sed -e 's/,/./g' -e 's/ //g') #Find major, minor, and micro version numbers in sources/qetversion.cp
|
|
||||||
|
tagName=$(cat sources/qetversion.cpp | grep "return QVersionNumber{"| head -n 1| awk -F "{" '{ print $2 }' | awk -F "}" '{ print $1 }' | sed -e 's/,/./g' -e 's/ //g')
|
||||||
|
#tagName=$(cat sources/qetversion.cpp | grep "return QVersionNumber{ 0, "| head -n 1| cut -c32-40| sed -e 's/,/./g' -e 's/ //g') #Find major, minor, and micro version numbers in sources/qetversion.cp
|
||||||
|
|
||||||
rm -Rf build/
|
rm -Rf build/
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
@@ -37,9 +39,9 @@ rm -Rf qelectrotech/usr/share/{elements,examples,titleblocks,lang,man,doc}
|
|||||||
cp ../build/qelectrotech qelectrotech/usr/bin/
|
cp ../build/qelectrotech qelectrotech/usr/bin/
|
||||||
cp -r ../{elements,examples,titleblocks,lang,man} qelectrotech/usr/share/
|
cp -r ../{elements,examples,titleblocks,lang,man} qelectrotech/usr/share/
|
||||||
|
|
||||||
./linuxdeployqt-continuous-x86_64.AppImage qelectrotech/usr/share/qelectrotech.desktop -appimage -bundle-non-qt-libs -verbose=1 -extra-plugins=iconengines
|
./linuxdeployqt-continuous-x86_64.AppImage qelectrotech/usr/share/org.qelectrotech.qelectrotech.desktop -appimage -bundle-non-qt-libs -verbose=1 -extra-plugins=iconengines
|
||||||
rm qelectrotech/AppRun
|
rm qelectrotech/AppRun
|
||||||
sed -i 's/'"QElectroTech_*.*/QElectroTech_$tagName-r$HEAD"'/' qelectrotech/qelectrotech.desktop
|
sed -i 's/'"QElectroTech_*.*/QElectroTech_$tagName-r$HEAD"'/' qelectrotech/org.qelectrotech.qelectrotech.desktop
|
||||||
cp AppRun qelectrotech/
|
cp AppRun qelectrotech/
|
||||||
rm QElectroTech_*.AppImage
|
rm QElectroTech_*.AppImage
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ if [ -z "$HEAD" ] ; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VERSION=$(cat sources/qetversion.cpp | grep "return QVersionNumber{ 0, "| head -n 1| cut -c32-40| sed -e 's/,/./g' -e 's/ //g') #Find major, minor, and micro version numbers in sources/qetversion.cp
|
VERSION=$(cat sources/qetversion.cpp | grep "return QVersionNumber{"| head -n 1| awk -F "{" '{ print $2 }' | awk -F "}" '{ print $1 }' | sed -e 's/,/./g' -e 's/ //g')
|
||||||
|
#VERSION=$(cat sources/qetversion.cpp | grep "return QVersionNumber{ 0, "| head -n 1| cut -c32-40| sed -e 's/,/./g' -e 's/ //g') #Find major, minor, and micro version numbers in sources/qetversion.cp
|
||||||
|
|
||||||
|
|
||||||
#clean /var/cache/pbuilder/ .. / result/debs
|
#clean /var/cache/pbuilder/ .. / result/debs
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ git pull --recurse-submodules
|
|||||||
# get the number of the new revision
|
# get the number of the new revision
|
||||||
GITCOMMIT=$(git rev-parse --short HEAD)
|
GITCOMMIT=$(git rev-parse --short HEAD)
|
||||||
|
|
||||||
tagName=$(cat sources/qetversion.cpp | grep "return QVersionNumber{ 0, "| head -n 1| cut -c32-40| sed -e 's/,/./g' -e 's/ //g') #Find major, minor, and micro version numbers in sources/qetversion.cp
|
tagName=$(cat sources/qetversion.cpp | grep "return QVersionNumber{"| head -n 1| awk -F "{" '{ print $2 }' | awk -F "}" '{ print $1 }' | sed -e 's/,/./g' -e 's/ //g')
|
||||||
|
#tagName=$(cat sources/qetversion.cpp | grep "return QVersionNumber{ 0, "| head -n 1| cut -c32-40| sed -e 's/,/./g' -e 's/ //g') #Find major, minor, and micro version numbers in sources/qetversion.cp
|
||||||
|
|
||||||
cd ~
|
cd ~
|
||||||
flatpak-builder --force-clean --ccache --repo=qet_git/0.8-dev qet_git/build-dir qet_git/build-aux/flatpak/org.qelectrotech.QElectroTech.json --gpg-sign=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --gpg-homedir=gpg
|
flatpak-builder --force-clean --ccache --repo=qet_git/0.8-dev qet_git/build-dir qet_git/build-aux/flatpak/org.qelectrotech.QElectroTech.json --gpg-sign=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --gpg-homedir=gpg
|
||||||
|
|||||||
+1
-1
Submodule pugixml updated: 2e357d19a3...9d7fcbf741
+8
-3
@@ -57,6 +57,9 @@ DEFINES += QET_ALLOW_OVERRIDE_CTBTD_OPTION
|
|||||||
# Commenter la ligne ci-dessous pour desactiver l'option --config-dir
|
# Commenter la ligne ci-dessous pour desactiver l'option --config-dir
|
||||||
DEFINES += QET_ALLOW_OVERRIDE_CD_OPTION
|
DEFINES += QET_ALLOW_OVERRIDE_CD_OPTION
|
||||||
|
|
||||||
|
# Commenter la ligne ci-dessous pour desactiver l'option --data-dir
|
||||||
|
DEFINES += QET_ALLOW_OVERRIDE_DD_OPTION
|
||||||
|
|
||||||
#comment the line below to disable the project database export
|
#comment the line below to disable the project database export
|
||||||
DEFINES += QET_EXPORT_PROJECT_DB
|
DEFINES += QET_EXPORT_PROJECT_DB
|
||||||
|
|
||||||
@@ -166,7 +169,8 @@ HEADERS += $$files(sources/*.h) \
|
|||||||
$$files(sources/TerminalStrip/GraphicsItem/*.h) \
|
$$files(sources/TerminalStrip/GraphicsItem/*.h) \
|
||||||
$$files(sources/TerminalStrip/GraphicsItem/properties/*.h) \
|
$$files(sources/TerminalStrip/GraphicsItem/properties/*.h) \
|
||||||
$$files(sources/xml/*.h) \
|
$$files(sources/xml/*.h) \
|
||||||
$$files(sources/dxf/*.h)
|
$$files(sources/dxf/*.h) \
|
||||||
|
$$files(sources/qet_elementscaler/*.h)
|
||||||
|
|
||||||
SOURCES += $$files(sources/*.cpp) \
|
SOURCES += $$files(sources/*.cpp) \
|
||||||
$$files(sources/editor/*.cpp) \
|
$$files(sources/editor/*.cpp) \
|
||||||
@@ -208,7 +212,8 @@ SOURCES += $$files(sources/*.cpp) \
|
|||||||
$$files(sources/TerminalStrip/GraphicsItem/*.cpp) \
|
$$files(sources/TerminalStrip/GraphicsItem/*.cpp) \
|
||||||
$$files(sources/TerminalStrip/GraphicsItem/properties/*.cpp) \
|
$$files(sources/TerminalStrip/GraphicsItem/properties/*.cpp) \
|
||||||
$$files(sources/xml/*.cpp) \
|
$$files(sources/xml/*.cpp) \
|
||||||
$$files(sources/dxf/*.cpp)
|
$$files(sources/dxf/*.cpp) \
|
||||||
|
$$files(sources/qet_elementscaler/*.cpp)
|
||||||
|
|
||||||
# Needed for use promote QTreeWidget in terminalstripeditor.ui
|
# Needed for use promote QTreeWidget in terminalstripeditor.ui
|
||||||
INCLUDEPATH += sources/TerminalStrip/ui
|
INCLUDEPATH += sources/TerminalStrip/ui
|
||||||
@@ -279,7 +284,7 @@ mime_package.path = $$join(INSTALL_PREFIX,,,$${QET_MIME_PACKAGE_PATH})
|
|||||||
mime_package.files = misc/qelectrotech.xml
|
mime_package.files = misc/qelectrotech.xml
|
||||||
|
|
||||||
desktop.path = $$join(INSTALL_PREFIX,,,$${QET_DESKTOP_PATH})
|
desktop.path = $$join(INSTALL_PREFIX,,,$${QET_DESKTOP_PATH})
|
||||||
desktop.files = misc/qelectrotech.desktop
|
desktop.files = misc/org.qelectrotech.qelectrotech.desktop
|
||||||
|
|
||||||
appdata.path = $$join(INSTALL_PREFIX,,,$${QET_APPDATA_PATH})
|
appdata.path = $$join(INSTALL_PREFIX,,,$${QET_APPDATA_PATH})
|
||||||
appdata.files = misc/qelectrotech.appdata.xml
|
appdata.files = misc/qelectrotech.appdata.xml
|
||||||
|
|||||||
+3
-1
@@ -49,6 +49,7 @@
|
|||||||
<file>ico/16x16/endline-none.png</file>
|
<file>ico/16x16/endline-none.png</file>
|
||||||
<file>ico/16x16/endline-simple.png</file>
|
<file>ico/16x16/endline-simple.png</file>
|
||||||
<file>ico/16x16/endline-triangle.png</file>
|
<file>ico/16x16/endline-triangle.png</file>
|
||||||
|
<file>ico/16x16/flip.png</file>
|
||||||
<file>ico/16x16/folder-new.png</file>
|
<file>ico/16x16/folder-new.png</file>
|
||||||
<file>ico/16x16/folder.png</file>
|
<file>ico/16x16/folder.png</file>
|
||||||
<file>ico/16x16/go-company.png</file>
|
<file>ico/16x16/go-company.png</file>
|
||||||
@@ -60,6 +61,7 @@
|
|||||||
<file>ico/16x16/list-add.png</file>
|
<file>ico/16x16/list-add.png</file>
|
||||||
<file>ico/16x16/list-remove.png</file>
|
<file>ico/16x16/list-remove.png</file>
|
||||||
<file>ico/16x16/masquer.png</file>
|
<file>ico/16x16/masquer.png</file>
|
||||||
|
<file>ico/16x16/mirror.png</file>
|
||||||
<file>ico/16x16/neutral.png</file>
|
<file>ico/16x16/neutral.png</file>
|
||||||
<file>ico/16x16/north.png</file>
|
<file>ico/16x16/north.png</file>
|
||||||
<file>ico/16x16/orientations.png</file>
|
<file>ico/16x16/orientations.png</file>
|
||||||
@@ -210,7 +212,7 @@
|
|||||||
<file>ico/48x48/view-pim-journal.png</file>
|
<file>ico/48x48/view-pim-journal.png</file>
|
||||||
<file>ico/24x16/nl.png</file>
|
<file>ico/24x16/nl.png</file>
|
||||||
<file>ico/32x32/simplifyrichtext.png</file>
|
<file>ico/32x32/simplifyrichtext.png</file>
|
||||||
<file>ico/24x16/be.png</file>
|
<file>ico/24x16/nl_BE.png</file>
|
||||||
<file>ico/128x128/plasmagik.png</file>
|
<file>ico/128x128/plasmagik.png</file>
|
||||||
<file>ico/22x22/autoconnect.png</file>
|
<file>ico/22x22/autoconnect.png</file>
|
||||||
<file>ico/128x128/project.png</file>
|
<file>ico/128x128/project.png</file>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2024 The QElectroTech Team
|
Copyright 2006-2025 The QElectroTech Team
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
@@ -399,7 +399,7 @@ ElementsLocation ElementCollectionHandler::createDir(ElementsLocation &parent, c
|
|||||||
@brief ElementCollectionHandler::importFromProject
|
@brief ElementCollectionHandler::importFromProject
|
||||||
Import the element represented by location to the embedded collection
|
Import the element represented by location to the embedded collection
|
||||||
of project at the same path.
|
of project at the same path.
|
||||||
location must represente an element owned by a project embedded collection
|
location must represent an element owned by a project embedded collection
|
||||||
@param project : project where copy the element
|
@param project : project where copy the element
|
||||||
@param location : location to copy
|
@param location : location to copy
|
||||||
@return true if import with success
|
@return true if import with success
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2024 The QElectroTech Team
|
Copyright 2006-2025 The QElectroTech Team
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2024 The QElectroTech Team
|
Copyright 2006-2025 The QElectroTech Team
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2024 The QElectroTech Team
|
Copyright 2006-2025 The QElectroTech Team
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2024 The QElectroTech Team
|
Copyright 2006-2025 The QElectroTech Team
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
@@ -26,7 +26,8 @@
|
|||||||
#include "xmlprojectelementcollectionitem.h"
|
#include "xmlprojectelementcollectionitem.h"
|
||||||
|
|
||||||
#include <QFutureWatcher>
|
#include <QFutureWatcher>
|
||||||
#include <QtConcurrent>
|
#include <QtConcurrentMap>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@brief ElementsCollectionModel::ElementsCollectionModel
|
@brief ElementsCollectionModel::ElementsCollectionModel
|
||||||
@@ -111,10 +112,10 @@ QStringList ElementsCollectionModel::mimeTypes() const
|
|||||||
@return
|
@return
|
||||||
*/
|
*/
|
||||||
bool ElementsCollectionModel::canDropMimeData(const QMimeData *data,
|
bool ElementsCollectionModel::canDropMimeData(const QMimeData *data,
|
||||||
Qt::DropAction action,
|
Qt::DropAction action,
|
||||||
int row,
|
int row,
|
||||||
int column,
|
int column,
|
||||||
const QModelIndex &parent) const
|
const QModelIndex &parent) const
|
||||||
{
|
{
|
||||||
if (!(QStandardItemModel::canDropMimeData(data,
|
if (!(QStandardItemModel::canDropMimeData(data,
|
||||||
action,
|
action,
|
||||||
@@ -258,9 +259,9 @@ bool ElementsCollectionModel::dropMimeData(const QMimeData *data,
|
|||||||
@param projects : list of projects to load
|
@param projects : list of projects to load
|
||||||
*/
|
*/
|
||||||
void ElementsCollectionModel::loadCollections(bool common_collection,
|
void ElementsCollectionModel::loadCollections(bool common_collection,
|
||||||
bool company_collection,
|
bool company_collection,
|
||||||
bool custom_collection,
|
bool custom_collection,
|
||||||
QList<QETProject *> projects)
|
QList<QETProject *> projects)
|
||||||
{
|
{
|
||||||
m_items_list_to_setUp.clear();
|
m_items_list_to_setUp.clear();
|
||||||
|
|
||||||
@@ -292,15 +293,9 @@ void ElementsCollectionModel::loadCollections(bool common_collection,
|
|||||||
&QFutureWatcher<void>::finished,
|
&QFutureWatcher<void>::finished,
|
||||||
watcher,
|
watcher,
|
||||||
&QFutureWatcher<void>::deleteLater);
|
&QFutureWatcher<void>::deleteLater);
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove
|
|
||||||
m_future = QtConcurrent::map(m_items_list_to_setUp, setUpData);
|
m_future = QtConcurrent::map(m_items_list_to_setUp, setUpData);
|
||||||
#else
|
|
||||||
# if TODO_LIST
|
|
||||||
# pragma message("@TODO remove code for QT 6 or later")
|
|
||||||
# endif
|
|
||||||
qDebug() << "Help code for QT 6 or later"
|
|
||||||
<< "QtConcurrent::run its backwards now...function, object, args";
|
|
||||||
#endif
|
|
||||||
watcher->setFuture(m_future);
|
watcher->setFuture(m_future);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -313,8 +308,8 @@ void ElementsCollectionModel::addCommonCollection(bool set_data)
|
|||||||
{
|
{
|
||||||
FileElementCollectionItem *feci = new FileElementCollectionItem();
|
FileElementCollectionItem *feci = new FileElementCollectionItem();
|
||||||
if (feci->setRootPath(QETApp::commonElementsDirN(),
|
if (feci->setRootPath(QETApp::commonElementsDirN(),
|
||||||
set_data,
|
set_data,
|
||||||
m_hide_element)) {
|
m_hide_element)) {
|
||||||
invisibleRootItem()->appendRow(feci);
|
invisibleRootItem()->appendRow(feci);
|
||||||
if (set_data)
|
if (set_data)
|
||||||
feci->setUpData();
|
feci->setUpData();
|
||||||
@@ -324,41 +319,41 @@ void ElementsCollectionModel::addCommonCollection(bool set_data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@brief ElementsCollectionModel::addCompanyCollection
|
@brief ElementsCollectionModel::addCompanyCollection
|
||||||
Add the company elements collection to this model
|
Add the company elements collection to this model
|
||||||
@param set_data
|
@param set_data
|
||||||
*/
|
*/
|
||||||
void ElementsCollectionModel::addCompanyCollection(bool set_data)
|
void ElementsCollectionModel::addCompanyCollection(bool set_data)
|
||||||
{
|
{
|
||||||
FileElementCollectionItem *feci = new FileElementCollectionItem();
|
FileElementCollectionItem *feci = new FileElementCollectionItem();
|
||||||
if (feci->setRootPath(QETApp::companyElementsDirN(),
|
if (feci->setRootPath(QETApp::companyElementsDirN(),
|
||||||
set_data,
|
set_data,
|
||||||
m_hide_element)) {
|
m_hide_element)) {
|
||||||
invisibleRootItem()->appendRow(feci);
|
invisibleRootItem()->appendRow(feci);
|
||||||
if (set_data)
|
if (set_data)
|
||||||
feci->setUpData();
|
feci->setUpData();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
delete feci;
|
delete feci;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@brief ElementsCollectionModel::addCustomCollection
|
@brief ElementsCollectionModel::addCustomCollection
|
||||||
Add the custom elements collection to this model
|
Add the custom elements collection to this model
|
||||||
@param set_data
|
@param set_data
|
||||||
*/
|
*/
|
||||||
void ElementsCollectionModel::addCustomCollection(bool set_data)
|
void ElementsCollectionModel::addCustomCollection(bool set_data)
|
||||||
{
|
{
|
||||||
FileElementCollectionItem *feci = new FileElementCollectionItem();
|
FileElementCollectionItem *feci = new FileElementCollectionItem();
|
||||||
if (feci->setRootPath(QETApp::customElementsDirN(),
|
if (feci->setRootPath(QETApp::customElementsDirN(),
|
||||||
set_data,
|
set_data,
|
||||||
m_hide_element)) {
|
m_hide_element)) {
|
||||||
invisibleRootItem()->appendRow(feci);
|
invisibleRootItem()->appendRow(feci);
|
||||||
if (set_data)
|
if (set_data)
|
||||||
feci->setUpData();
|
feci->setUpData();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
delete feci;
|
delete feci;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -579,9 +574,9 @@ QModelIndex ElementsCollectionModel::indexFromLocation(
|
|||||||
{
|
{
|
||||||
QList <ElementCollectionItem *> child_list;
|
QList <ElementCollectionItem *> child_list;
|
||||||
|
|
||||||
for (int i=0 ; i<rowCount() ; i++){
|
for (int i=0 ; i<rowCount() ; i++){
|
||||||
child_list.append(static_cast<ElementCollectionItem *>(item(i)));
|
child_list.append(static_cast<ElementCollectionItem *>(item(i)));
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach(ElementCollectionItem *eci, child_list) {
|
foreach(ElementCollectionItem *eci, child_list) {
|
||||||
|
|
||||||
@@ -590,8 +585,8 @@ QModelIndex ElementsCollectionModel::indexFromLocation(
|
|||||||
if (eci->type() == FileElementCollectionItem::Type) {
|
if (eci->type() == FileElementCollectionItem::Type) {
|
||||||
if (FileElementCollectionItem *feci = static_cast<FileElementCollectionItem *>(eci)) {
|
if (FileElementCollectionItem *feci = static_cast<FileElementCollectionItem *>(eci)) {
|
||||||
if ( (location.isCommonCollection() && feci->isCommonCollection()) ||
|
if ( (location.isCommonCollection() && feci->isCommonCollection()) ||
|
||||||
(location.isCompanyCollection() && feci->isCompanyCollection()) ||
|
(location.isCompanyCollection() && feci->isCompanyCollection()) ||
|
||||||
(location.isCustomCollection() && !feci->isCommonCollection()) ) {
|
(location.isCustomCollection() && !feci->isCommonCollection()) ) {
|
||||||
match_eci = feci->itemAtPath(location.collectionPath(false));
|
match_eci = feci->itemAtPath(location.collectionPath(false));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2024 The QElectroTech Team
|
Copyright 2006-2025 The QElectroTech Team
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
@@ -42,11 +42,11 @@ class ElementsCollectionModel : public QStandardItemModel
|
|||||||
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override;
|
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override;
|
||||||
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
|
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
|
||||||
|
|
||||||
void loadCollections(bool common_collection, bool company_collection, bool custom_collection, QList<QETProject *> projects);
|
void loadCollections(bool common_collection, bool company_collection, bool custom_collection, QList<QETProject *> projects);
|
||||||
|
|
||||||
void addCommonCollection(bool set_data = true);
|
void addCommonCollection(bool set_data = true);
|
||||||
void addCompanyCollection(bool set_data = true);
|
void addCompanyCollection(bool set_data = true);
|
||||||
void addCustomCollection(bool set_data = true);
|
void addCustomCollection(bool set_data = true);
|
||||||
void addLocation(const ElementsLocation& location);
|
void addLocation(const ElementsLocation& location);
|
||||||
|
|
||||||
void addProject(QETProject *project, bool set_data = true);
|
void addProject(QETProject *project, bool set_data = true);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2024 The QElectroTech Team
|
Copyright 2006-2025 The QElectroTech Team
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
@@ -96,7 +96,7 @@ void ElementsCollectionWidget::addProject(QETProject *project)
|
|||||||
m_progress_bar->show();
|
m_progress_bar->show();
|
||||||
m_tree_view->setDisabled(true);
|
m_tree_view->setDisabled(true);
|
||||||
QList <QETProject *> prj; prj.append(project);
|
QList <QETProject *> prj; prj.append(project);
|
||||||
m_model->loadCollections(false, false, false, prj);
|
m_model->loadCollections(false, false, false, prj);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
m_waiting_project.append(project);
|
m_waiting_project.append(project);
|
||||||
@@ -148,26 +148,26 @@ void ElementsCollectionWidget::setUpAction()
|
|||||||
m_open_dir = new QAction(QET::Icons::FolderOpen,
|
m_open_dir = new QAction(QET::Icons::FolderOpen,
|
||||||
tr("Ouvrir le dossier correspondant"), this);
|
tr("Ouvrir le dossier correspondant"), this);
|
||||||
m_edit_element = new QAction(QET::Icons::ElementEdit,
|
m_edit_element = new QAction(QET::Icons::ElementEdit,
|
||||||
tr("Éditer l'élément"), this);
|
tr("Éditer l'élément"), this);
|
||||||
m_delete_element = new QAction(QET::Icons::ElementDelete,
|
m_delete_element = new QAction(QET::Icons::ElementDelete,
|
||||||
tr("Supprimer l'élément"), this);
|
tr("Supprimer l'élément"), this);
|
||||||
m_delete_dir = new QAction(QET::Icons::FolderDelete,
|
m_delete_dir = new QAction(QET::Icons::FolderDelete,
|
||||||
tr("Supprimer le dossier"), this);
|
tr("Supprimer le dossier"), this);
|
||||||
m_reload = new QAction(QET::Icons::ViewRefresh,
|
m_reload = new QAction(QET::Icons::ViewRefresh,
|
||||||
tr("Recharger les collections"), this);
|
tr("Recharger les collections"), this);
|
||||||
m_edit_dir = new QAction(QET::Icons::FolderEdit,
|
m_edit_dir = new QAction(QET::Icons::FolderEdit,
|
||||||
tr("Éditer le dossier"), this);
|
tr("Éditer le dossier"), this);
|
||||||
m_new_directory = new QAction(QET::Icons::FolderNew,
|
m_new_directory = new QAction(QET::Icons::FolderNew,
|
||||||
tr("Nouveau dossier"), this);
|
tr("Nouveau dossier"), this);
|
||||||
m_new_element = new QAction(QET::Icons::ElementNew,
|
m_new_element = new QAction(QET::Icons::ElementNew,
|
||||||
tr("Nouvel élément"), this);
|
tr("Nouvel élément"), this);
|
||||||
m_show_this_dir = new QAction(QET::Icons::FolderOnlyThis,
|
m_show_this_dir = new QAction(QET::Icons::FolderOnlyThis,
|
||||||
tr("Afficher uniquement ce dossier"),
|
tr("Afficher uniquement ce dossier"),
|
||||||
this);
|
this);
|
||||||
m_show_all_dir = new QAction(QET::Icons::FolderShowAll,
|
m_show_all_dir = new QAction(QET::Icons::FolderShowAll,
|
||||||
tr("Afficher tous les dossiers"), this);
|
tr("Afficher tous les dossiers"), this);
|
||||||
m_dir_propertie = new QAction(QET::Icons::FolderProperties,
|
m_dir_propertie = new QAction(QET::Icons::FolderProperties,
|
||||||
tr("Propriété du dossier"), this);
|
tr("Propriété du dossier"), this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -385,10 +385,10 @@ void ElementsCollectionWidget::deleteElement()
|
|||||||
|
|
||||||
ElementsLocation loc(eci->collectionPath());
|
ElementsLocation loc(eci->collectionPath());
|
||||||
if (! (loc.isElement()
|
if (! (loc.isElement()
|
||||||
&& loc.exist()
|
&& loc.exist()
|
||||||
&& loc.isFileSystem()
|
&& loc.isFileSystem()
|
||||||
&& (loc.collectionPath().startsWith("company://")
|
&& (loc.collectionPath().startsWith("company://")
|
||||||
|| loc.collectionPath().startsWith("custom://"))) ) return;
|
|| loc.collectionPath().startsWith("custom://"))) ) return;
|
||||||
|
|
||||||
if (QET::QetMessageBox::question(
|
if (QET::QetMessageBox::question(
|
||||||
this,
|
this,
|
||||||
@@ -401,8 +401,8 @@ void ElementsCollectionWidget::deleteElement()
|
|||||||
if (file.remove())
|
if (file.remove())
|
||||||
{
|
{
|
||||||
m_model->removeRows(m_index_at_context_menu.row(),
|
m_model->removeRows(m_index_at_context_menu.row(),
|
||||||
1,
|
1,
|
||||||
m_index_at_context_menu.parent());
|
m_index_at_context_menu.parent());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -429,10 +429,10 @@ void ElementsCollectionWidget::deleteDirectory()
|
|||||||
|
|
||||||
ElementsLocation loc (eci->collectionPath());
|
ElementsLocation loc (eci->collectionPath());
|
||||||
if (! (loc.isDirectory()
|
if (! (loc.isDirectory()
|
||||||
&& loc.exist()
|
&& loc.exist()
|
||||||
&& loc.isFileSystem()
|
&& loc.isFileSystem()
|
||||||
&& (loc.collectionPath().startsWith("company://")
|
&& (loc.collectionPath().startsWith("company://")
|
||||||
|| loc.collectionPath().startsWith("custom://"))) ) return;
|
|| loc.collectionPath().startsWith("custom://"))) ) return;
|
||||||
|
|
||||||
if (QET::QetMessageBox::question(
|
if (QET::QetMessageBox::question(
|
||||||
this,
|
this,
|
||||||
@@ -446,8 +446,8 @@ void ElementsCollectionWidget::deleteDirectory()
|
|||||||
if (dir.removeRecursively())
|
if (dir.removeRecursively())
|
||||||
{
|
{
|
||||||
m_model->removeRows(m_index_at_context_menu.row(),
|
m_model->removeRows(m_index_at_context_menu.row(),
|
||||||
1,
|
1,
|
||||||
m_index_at_context_menu.parent());
|
m_index_at_context_menu.parent());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -529,7 +529,7 @@ void ElementsCollectionWidget::newElement()
|
|||||||
elmt_wizard.exec();
|
elmt_wizard.exec();
|
||||||
|
|
||||||
foreach (QETElementEditor *element_editor,
|
foreach (QETElementEditor *element_editor,
|
||||||
QETApp::instance()->elementEditors())
|
QETApp::instance()->elementEditors())
|
||||||
connect(element_editor,
|
connect(element_editor,
|
||||||
&QETElementEditor::saveToLocation,
|
&QETElementEditor::saveToLocation,
|
||||||
this,
|
this,
|
||||||
@@ -666,7 +666,7 @@ void ElementsCollectionWidget::reload()
|
|||||||
this,
|
this,
|
||||||
&ElementsCollectionWidget::loadingFinished);
|
&ElementsCollectionWidget::loadingFinished);
|
||||||
|
|
||||||
m_new_model->loadCollections(true, true, true, project_list);
|
m_new_model->loadCollections(true, true, true, project_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -713,7 +713,7 @@ void ElementsCollectionWidget::locationWasSaved(
|
|||||||
const ElementsLocation& location)
|
const ElementsLocation& location)
|
||||||
{
|
{
|
||||||
//Because this method update an item in the model, location must
|
//Because this method update an item in the model, location must
|
||||||
//represente an existing element (in file system of project)
|
//represent an existing element (in file system of project)
|
||||||
if (!location.exist())
|
if (!location.exist())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -765,7 +765,7 @@ void ElementsCollectionWidget::search()
|
|||||||
}
|
}
|
||||||
|
|
||||||
//start the search when text have at least 3 letters.
|
//start the search when text have at least 3 letters.
|
||||||
if (text.count() < 3) {
|
if (text.length() < 3) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -781,13 +781,13 @@ void ElementsCollectionWidget::search()
|
|||||||
QModelIndexList match_index;
|
QModelIndexList match_index;
|
||||||
for (QString txt : text_list) {
|
for (QString txt : text_list) {
|
||||||
match_index << m_model->match(m_showed_index.isValid()
|
match_index << m_model->match(m_showed_index.isValid()
|
||||||
? m_model->index(0,0,m_showed_index)
|
? m_model->index(0,0,m_showed_index)
|
||||||
: m_model->index(0,0),
|
: m_model->index(0,0),
|
||||||
Qt::UserRole+1,
|
Qt::UserRole+1,
|
||||||
QVariant(txt),
|
QVariant(txt),
|
||||||
-1,
|
-1,
|
||||||
Qt::MatchContains
|
Qt::MatchContains
|
||||||
| Qt::MatchRecursive);
|
| Qt::MatchRecursive);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(QModelIndex index : match_index)
|
for(QModelIndex index : match_index)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2024 The QElectroTech Team
|
Copyright 2006-2025 The QElectroTech Team
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2024 The QElectroTech Team
|
Copyright 2006-2025 The QElectroTech Team
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
@@ -293,17 +293,17 @@ void ElementsLocation::setPath(const QString &path)
|
|||||||
else if (path.startsWith("common://") || path.startsWith("company://") || path.startsWith("custom://"))
|
else if (path.startsWith("common://") || path.startsWith("company://") || path.startsWith("custom://"))
|
||||||
{
|
{
|
||||||
QString p;
|
QString p;
|
||||||
if (path.startsWith("common://"))
|
if (path.startsWith("common://"))
|
||||||
{
|
{
|
||||||
tmp_path.remove("common://");
|
tmp_path.remove("common://");
|
||||||
p = QETApp::commonElementsDirN() + "/" + tmp_path;
|
p = QETApp::commonElementsDirN() + "/" + tmp_path;
|
||||||
}
|
}
|
||||||
else if (path.startsWith("company://"))
|
else if (path.startsWith("company://"))
|
||||||
{
|
{
|
||||||
tmp_path.remove("company://");
|
tmp_path.remove("company://");
|
||||||
p = QETApp::companyElementsDirN() + "/" + tmp_path;
|
p = QETApp::companyElementsDirN() + "/" + tmp_path;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
tmp_path.remove("custom://");
|
tmp_path.remove("custom://");
|
||||||
p = QETApp::customElementsDirN() + "/" + tmp_path;
|
p = QETApp::customElementsDirN() + "/" + tmp_path;
|
||||||
@@ -319,19 +319,19 @@ void ElementsLocation::setPath(const QString &path)
|
|||||||
if(path_.endsWith(".elmt"))
|
if(path_.endsWith(".elmt"))
|
||||||
{
|
{
|
||||||
m_file_system_path = path_;
|
m_file_system_path = path_;
|
||||||
if (path_.startsWith(QETApp::commonElementsDirN()))
|
if (path_.startsWith(QETApp::commonElementsDirN()))
|
||||||
{
|
{
|
||||||
path_.remove(QETApp::commonElementsDirN()+="/");
|
path_.remove(QETApp::commonElementsDirN()+="/");
|
||||||
path_.prepend("common://");
|
path_.prepend("common://");
|
||||||
m_collection_path = path_;
|
m_collection_path = path_;
|
||||||
}
|
}
|
||||||
else if (path_.startsWith(QETApp::companyElementsDirN()))
|
else if (path_.startsWith(QETApp::companyElementsDirN()))
|
||||||
{
|
{
|
||||||
path_.remove(QETApp::companyElementsDirN()+="/");
|
path_.remove(QETApp::companyElementsDirN()+="/");
|
||||||
path_.prepend("company://");
|
path_.prepend("company://");
|
||||||
m_collection_path = path_;
|
m_collection_path = path_;
|
||||||
}
|
}
|
||||||
else if (path_.startsWith(QETApp::customElementsDirN()))
|
else if (path_.startsWith(QETApp::customElementsDirN()))
|
||||||
{
|
{
|
||||||
path_.remove(QETApp::customElementsDirN()+="/");
|
path_.remove(QETApp::customElementsDirN()+="/");
|
||||||
path_.prepend("custom://");
|
path_.prepend("custom://");
|
||||||
@@ -341,19 +341,19 @@ void ElementsLocation::setPath(const QString &path)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_file_system_path = path_;
|
m_file_system_path = path_;
|
||||||
if (path_.startsWith(QETApp::commonElementsDirN()))
|
if (path_.startsWith(QETApp::commonElementsDirN()))
|
||||||
{
|
{
|
||||||
path_.remove(QETApp::commonElementsDirN()+="/");
|
path_.remove(QETApp::commonElementsDirN()+="/");
|
||||||
path_.prepend("common://");
|
path_.prepend("common://");
|
||||||
m_collection_path = path_;
|
m_collection_path = path_;
|
||||||
}
|
}
|
||||||
else if (path_.startsWith(QETApp::companyElementsDirN()))
|
else if (path_.startsWith(QETApp::companyElementsDirN()))
|
||||||
{
|
{
|
||||||
path_.remove(QETApp::companyElementsDirN()+="/");
|
path_.remove(QETApp::companyElementsDirN()+="/");
|
||||||
path_.prepend("company://");
|
path_.prepend("company://");
|
||||||
m_collection_path = path_;
|
m_collection_path = path_;
|
||||||
}
|
}
|
||||||
else if (path_.startsWith(QETApp::customElementsDirN()))
|
else if (path_.startsWith(QETApp::customElementsDirN()))
|
||||||
{
|
{
|
||||||
path_.remove(QETApp::customElementsDirN()+="/");
|
path_.remove(QETApp::customElementsDirN()+="/");
|
||||||
path_.prepend("custom://");
|
path_.prepend("custom://");
|
||||||
@@ -501,23 +501,23 @@ bool ElementsLocation::isFileSystem() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@brief ElementsLocation::isCommonCollection
|
@brief ElementsLocation::isCommonCollection
|
||||||
@return
|
@return
|
||||||
True if this location represent an item from the common collection
|
True if this location represent an item from the common collection
|
||||||
*/
|
*/
|
||||||
bool ElementsLocation::isCommonCollection() const
|
bool ElementsLocation::isCommonCollection() const
|
||||||
{
|
{
|
||||||
return fileSystemPath().startsWith(QETApp::commonElementsDirN());
|
return fileSystemPath().startsWith(QETApp::commonElementsDirN());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@brief ElementsLocation::isCompanyCollection
|
@brief ElementsLocation::isCompanyCollection
|
||||||
@return
|
@return
|
||||||
True if this location represent an item from the company collection
|
True if this location represent an item from the company collection
|
||||||
*/
|
*/
|
||||||
bool ElementsLocation::isCompanyCollection() const
|
bool ElementsLocation::isCompanyCollection() const
|
||||||
{
|
{
|
||||||
return fileSystemPath().startsWith(QETApp::companyElementsDirN());
|
return fileSystemPath().startsWith(QETApp::companyElementsDirN());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -591,7 +591,7 @@ bool ElementsLocation::isWritable() const
|
|||||||
/**
|
/**
|
||||||
@brief ElementsLocation::projectCollection
|
@brief ElementsLocation::projectCollection
|
||||||
@return
|
@return
|
||||||
If this location represente a item in an embedded project collection,
|
If this location represents an item in an embedded project collection,
|
||||||
return this collection else return nullptr.
|
return this collection else return nullptr.
|
||||||
*/
|
*/
|
||||||
XmlElementCollection *ElementsLocation::projectCollection() const
|
XmlElementCollection *ElementsLocation::projectCollection() const
|
||||||
@@ -805,15 +805,15 @@ bool ElementsLocation::setXml(const QDomDocument &xml_document) const
|
|||||||
qDebug() << "Help code for QT 6 or later";
|
qDebug() << "Help code for QT 6 or later";
|
||||||
|
|
||||||
QString path_ = collectionPath(false);
|
QString path_ = collectionPath(false);
|
||||||
QRegularExpression rx("^(.*)/(.*\\.elmt)$");
|
QRegularExpression rx(QRegularExpression::anchoredPattern("(.*)/(.*\\.elmt)"));
|
||||||
|
QRegularExpressionMatch match = rx.match(path_);
|
||||||
if (rx.exactMatch(path_))
|
if (match.hasMatch())
|
||||||
{
|
{
|
||||||
return project()
|
return project()
|
||||||
->embeddedElementCollection()
|
->embeddedElementCollection()
|
||||||
->addElementDefinition(
|
->addElementDefinition(
|
||||||
rx.cap(1),
|
match.captured(1),
|
||||||
rx.cap(2),
|
match.captured(2),
|
||||||
xml_document.documentElement());
|
xml_document.documentElement());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -870,7 +870,7 @@ QIcon ElementsLocation::icon() const
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief ElementLocation::name
|
@brief ElementLocation::name
|
||||||
@return The name of the represented element in the current local
|
@return The name of the represented element in the current locale
|
||||||
*/
|
*/
|
||||||
QString ElementsLocation::name() const
|
QString ElementsLocation::name() const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2024 The QElectroTech Team
|
Copyright 2006-2025 The QElectroTech Team
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
@@ -37,7 +37,7 @@ class XmlElementCollection;
|
|||||||
This class represents the location,
|
This class represents the location,
|
||||||
the location of an element or of a category,
|
the location of an element or of a category,
|
||||||
even of a collection ... in a collection.
|
even of a collection ... in a collection.
|
||||||
She encapsulates a virtual path.
|
It encapsulates a virtual path.
|
||||||
\~French
|
\~French
|
||||||
Cette classe represente la localisation, l'emplacement d'un element ou
|
Cette classe represente la localisation, l'emplacement d'un element ou
|
||||||
d'une categorie, voire d'une collection... dans une collection.
|
d'une categorie, voire d'une collection... dans une collection.
|
||||||
@@ -75,9 +75,9 @@ class ElementsLocation
|
|||||||
bool isElement() const;
|
bool isElement() const;
|
||||||
bool isDirectory() const;
|
bool isDirectory() const;
|
||||||
bool isFileSystem() const;
|
bool isFileSystem() const;
|
||||||
bool isCommonCollection() const;
|
bool isCommonCollection() const;
|
||||||
bool isCompanyCollection() const;
|
bool isCompanyCollection() const;
|
||||||
bool isCustomCollection() const;
|
bool isCustomCollection() const;
|
||||||
bool isProject() const;
|
bool isProject() const;
|
||||||
bool exist() const;
|
bool exist() const;
|
||||||
bool isWritable() const;
|
bool isWritable() const;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2024 The QElectroTech Team
|
Copyright 2006-2025 The QElectroTech Team
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
@@ -35,7 +35,17 @@ static int MAX_DND_PIXMAP_HEIGHT = 375;
|
|||||||
*/
|
*/
|
||||||
ElementsTreeView::ElementsTreeView(QWidget *parent) :
|
ElementsTreeView::ElementsTreeView(QWidget *parent) :
|
||||||
QTreeView(parent)
|
QTreeView(parent)
|
||||||
{}
|
{
|
||||||
|
// force du noir sur une alternance de blanc (comme le schema) et de gris
|
||||||
|
// clair, avec du blanc sur bleu pas trop fonce pour la selection
|
||||||
|
QPalette qp = palette();
|
||||||
|
qp.setColor(QPalette::Text, Qt::black);
|
||||||
|
qp.setColor(QPalette::Base, Qt::white);
|
||||||
|
qp.setColor(QPalette::AlternateBase, QColor("#e8e8e8"));
|
||||||
|
qp.setColor(QPalette::Highlight, QColor("#678db2"));
|
||||||
|
qp.setColor(QPalette::HighlightedText, Qt::black);
|
||||||
|
setPalette(qp);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@brief ElementsTreeView::startDrag
|
@brief ElementsTreeView::startDrag
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2024 The QElectroTech Team
|
Copyright 2006-2025 The QElectroTech Team
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user