Skip to content

Commit e3dc75c

Browse files
committed
Fixed WriteSingleCoil offset for client SendMessage window, added some icons, fixed Server help files
1 parent e85bb37 commit e3dc75c

36 files changed

+94
-87
lines changed

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "src/modbus"]
2-
path = src/modbus
3-
url = https://github.com/serhmarch/ModbusLib
1+
[submodule "modbus"]
2+
path = modbus
3+
url = https://github.com/serhmarch/ModbusLib.git

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.5) # 2.2 - case insensitive syntax
22

3-
project(ModbusTools VERSION 0.3.9 LANGUAGES CXX)
3+
project(ModbusTools VERSION 0.3.10 LANGUAGES CXX)
44

55
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
66
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
@@ -21,4 +21,7 @@ if (NOT WIN32)
2121
#set(CMAKE_INSTALL_RPATH "\${ORIGIN}")
2222
endif()
2323

24+
set(MB_QT_ENABLED ON)
25+
add_subdirectory(modbus/src)
26+
2427
add_subdirectory(src)

src/ModbusTools.pro renamed to ModbusTools.pro

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ INSTALLS += help
1616

1717
CONFIG += ordered
1818

19-
SUBDIRS += modbus
20-
SUBDIRS += core
21-
SUBDIRS += client
22-
SUBDIRS += server
23-
24-
modbus.file = modbus/src/modbus.pro
25-
core.depends = modbus
26-
client.depends = modbus core
27-
server.depends = modbus core
19+
SUBDIRS += modbus/src/modbus.pro
20+
SUBDIRS += src/core
21+
SUBDIRS += src/client
22+
SUBDIRS += src/server

doc/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,14 @@ Must be created project collection file `ModbusClient.qhcp`:
4242
Then `qhelpgenerator` must be executed, compiled help `*.qch` and compiled collection `*.qhc` files must be created:
4343

4444
```console
45-
c:\Qt\5.15.2\msvc2019_64\bin>qhelpgenerator "path\to\ModbusTools\doc\output\ModbusClient.qhcp"
46-
c:\Qt\5.15.2\msvc2019_64\bin>qhelpgenerator "path\to\ModbusTools\doc\output\ModbusServer.qhcp"
45+
c:\Qt\5.15.2\msvc2019_64\bin\qhelpgenerator.exe "output/ModbusClient.qhcp"
46+
c:\Qt\5.15.2\msvc2019_64\bin\qhelpgenerator.exe "output/ModbusServer.qhcp"
47+
```
48+
49+
To check correctness of help generation Qt assistant can be used:
50+
```console
51+
c:\Qt\5.15.2\msvc2019_64\bin>assistant.exe -collectionFile ModbusClient.qhc
52+
c:\Qt\5.15.2\msvc2019_64\bin>assistant.exe -collectionFile ModbusServer.qhc
4753
```
4854

4955
# File System with help
@@ -55,4 +61,4 @@ Assumed application dir view:
5561
* ModbusClient.qch
5662
* ModbusClient.qhc
5763
* ModbusServer.qch
58-
* ModbusServer.qhc
64+
* ModbusServer.qhc

doc/output/ModbusServer.chm

0 Bytes
Binary file not shown.

doc/output/ModbusServer.qhc

0 Bytes
Binary file not shown.

doc/output/ModbusServer.qhcp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</file>
99
</generate>
1010
<register>
11-
<file>output/ModbusServer.qch</file>
11+
<file>ModbusServer.qch</file>
1212
</register>
1313
</docFiles>
1414
</QHelpCollectionProject>

examples/CMakePresets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"name": "Linux-Debug",
6767
"displayName": "Linux GCC Config Debug",
6868
"inherits": "Linux-Base",
69-
"binaryDir": "~/tmp/cmake/ModbusTools/Linux/Debug",
69+
"binaryDir": "env{HOME}/tmp/cmake/ModbusTools/Linux/Debug",
7070
"cacheVariables": {
7171
"CMAKE_BUILD_TYPE": "Debug"
7272
}
@@ -75,7 +75,7 @@
7575
"name": "Linux-Release",
7676
"displayName": "Linux GCC Config Release",
7777
"inherits": "Linux-Base",
78-
"binaryDir": "~/tmp/cmake/ModbusTools/Linux/Release",
78+
"binaryDir": "env{HOME}/tmp/cmake/ModbusTools/Linux/Release",
7979
"cacheVariables": {
8080
"CMAKE_BUILD_TYPE": "Release"
8181
}

modbus

Submodule modbus added at 22e23bb

src/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
set(MB_QT_ENABLED ON)
2-
add_subdirectory(modbus/src)
3-
41
add_subdirectory(core)
52

63
add_subdirectory(client)

0 commit comments

Comments
 (0)