|
14 | 14 | <string>Modbus Test Server</string> |
15 | 15 | </property> |
16 | 16 | <widget class="QWidget" name="centralWidget"> |
17 | | - <layout class="QVBoxLayout" name="verticalLayout_2"> |
| 17 | + <layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,1"> |
18 | 18 | <item> |
19 | 19 | <layout class="QHBoxLayout" name="horizontalLayout"> |
20 | 20 | <item> |
|
43 | 43 | </item> |
44 | 44 | <item> |
45 | 45 | <layout class="QGridLayout" name="gridLayout_3"> |
46 | | - <item row="3" column="0"> |
| 46 | + <item row="4" column="0"> |
47 | 47 | <widget class="QCheckBox" name="chkIllegalDataValue"> |
48 | 48 | <property name="text"> |
49 | 49 | <string>IllegalDataValue (0x03)</string> |
50 | 50 | </property> |
51 | 51 | </widget> |
52 | 52 | </item> |
53 | | - <item row="1" column="0"> |
| 53 | + <item row="2" column="0"> |
54 | 54 | <widget class="QCheckBox" name="chkIllegalFunction"> |
55 | 55 | <property name="text"> |
56 | 56 | <string>Illegal Function (0x01)</string> |
57 | 57 | </property> |
58 | 58 | </widget> |
59 | 59 | </item> |
60 | | - <item row="4" column="0"> |
| 60 | + <item row="5" column="0"> |
61 | 61 | <widget class="QCheckBox" name="chkGatewayPathUnavailable"> |
62 | 62 | <property name="text"> |
63 | 63 | <string>GatewayPathUnavailable (0x0A)</string> |
64 | 64 | </property> |
65 | 65 | </widget> |
66 | 66 | </item> |
67 | | - <item row="5" column="0"> |
| 67 | + <item row="6" column="0"> |
68 | 68 | <widget class="QCheckBox" name="chkTargetNoResponse"> |
69 | 69 | <property name="text"> |
70 | 70 | <string>GatewayTargetDeviceFailedToResponse (0x0B)</string> |
71 | 71 | </property> |
72 | 72 | </widget> |
73 | 73 | </item> |
74 | | - <item row="2" column="0"> |
| 74 | + <item row="3" column="0"> |
75 | 75 | <widget class="QCheckBox" name="chkIllegalDataAddress"> |
76 | 76 | <property name="text"> |
77 | 77 | <string>IllegalDataAddress (0x02)</string> |
78 | 78 | </property> |
79 | 79 | </widget> |
80 | 80 | </item> |
81 | | - <item row="0" column="0"> |
| 81 | + <item row="1" column="0"> |
82 | 82 | <widget class="QCheckBox" name="chkNone"> |
83 | 83 | <property name="text"> |
84 | 84 | <string>None</string> |
85 | 85 | </property> |
86 | 86 | </widget> |
87 | 87 | </item> |
| 88 | + <item row="0" column="0"> |
| 89 | + <widget class="Line" name="line"> |
| 90 | + <property name="orientation"> |
| 91 | + <enum>Qt::Horizontal</enum> |
| 92 | + </property> |
| 93 | + </widget> |
| 94 | + </item> |
88 | 95 | </layout> |
89 | 96 | </item> |
90 | 97 | </layout> |
|
106 | 113 | </property> |
107 | 114 | </widget> |
108 | 115 | </item> |
109 | | - <item row="2" column="1"> |
110 | | - <widget class="QSpinBox" name="spinSlaveId"> |
111 | | - <property name="value"> |
112 | | - <number>1</number> |
| 116 | + <item row="3" column="1"> |
| 117 | + <spacer name="verticalSpacer"> |
| 118 | + <property name="orientation"> |
| 119 | + <enum>Qt::Vertical</enum> |
| 120 | + </property> |
| 121 | + <property name="sizeHint" stdset="0"> |
| 122 | + <size> |
| 123 | + <width>20</width> |
| 124 | + <height>40</height> |
| 125 | + </size> |
| 126 | + </property> |
| 127 | + </spacer> |
| 128 | + </item> |
| 129 | + <item row="2" column="0"> |
| 130 | + <widget class="QLabel" name="label_2"> |
| 131 | + <property name="text"> |
| 132 | + <string>Slave id</string> |
113 | 133 | </property> |
114 | 134 | </widget> |
115 | 135 | </item> |
|
126 | 146 | </property> |
127 | 147 | </widget> |
128 | 148 | </item> |
| 149 | + <item row="1" column="1"> |
| 150 | + <widget class="QSpinBox" name="spinSlavePort"> |
| 151 | + <property name="minimum"> |
| 152 | + <number>256</number> |
| 153 | + </property> |
| 154 | + <property name="maximum"> |
| 155 | + <number>65535</number> |
| 156 | + </property> |
| 157 | + <property name="value"> |
| 158 | + <number>5020</number> |
| 159 | + </property> |
| 160 | + </widget> |
| 161 | + </item> |
129 | 162 | <item row="1" column="0"> |
130 | 163 | <widget class="QLabel" name="label"> |
131 | 164 | <property name="text"> |
132 | 165 | <string>Slave port</string> |
133 | 166 | </property> |
134 | 167 | </widget> |
135 | 168 | </item> |
| 169 | + <item row="2" column="1"> |
| 170 | + <widget class="QSpinBox" name="spinSlaveId"> |
| 171 | + <property name="value"> |
| 172 | + <number>1</number> |
| 173 | + </property> |
| 174 | + </widget> |
| 175 | + </item> |
136 | 176 | <item row="1" column="3"> |
137 | 177 | <spacer name="horizontalSpacer"> |
138 | 178 | <property name="orientation"> |
|
146 | 186 | </property> |
147 | 187 | </spacer> |
148 | 188 | </item> |
149 | | - <item row="1" column="1"> |
150 | | - <widget class="QSpinBox" name="spinSlavePort"> |
151 | | - <property name="minimum"> |
152 | | - <number>256</number> |
153 | | - </property> |
154 | | - <property name="maximum"> |
155 | | - <number>65535</number> |
156 | | - </property> |
157 | | - <property name="value"> |
158 | | - <number>5020</number> |
159 | | - </property> |
160 | | - </widget> |
161 | | - </item> |
162 | | - <item row="2" column="0"> |
163 | | - <widget class="QLabel" name="label_2"> |
164 | | - <property name="text"> |
165 | | - <string>Slave id</string> |
166 | | - </property> |
167 | | - </widget> |
168 | | - </item> |
169 | 189 | </layout> |
170 | 190 | </widget> |
171 | 191 | </item> |
|
182 | 202 | </item> |
183 | 203 | <item> |
184 | 204 | <layout class="QGridLayout" name="gridLayout_2"> |
| 205 | + <item row="2" column="0"> |
| 206 | + <widget class="QLabel" name="label_3"> |
| 207 | + <property name="text"> |
| 208 | + <string>Register data</string> |
| 209 | + </property> |
| 210 | + </widget> |
| 211 | + </item> |
185 | 212 | <item row="0" column="0"> |
186 | 213 | <widget class="QCheckBox" name="checkAutoIncrement"> |
187 | 214 | <property name="text"> |
188 | 215 | <string>Auto increment data (1/sec)</string> |
189 | 216 | </property> |
190 | 217 | </widget> |
191 | 218 | </item> |
| 219 | + <item row="3" column="0"> |
| 220 | + <widget class="QTableView" name="tblRegData"/> |
| 221 | + </item> |
192 | 222 | <item row="1" column="0"> |
193 | | - <widget class="QLabel" name="label_3"> |
194 | | - <property name="text"> |
195 | | - <string>Register data</string> |
| 223 | + <widget class="Line" name="line_2"> |
| 224 | + <property name="orientation"> |
| 225 | + <enum>Qt::Horizontal</enum> |
196 | 226 | </property> |
197 | 227 | </widget> |
198 | 228 | </item> |
199 | | - <item row="2" column="0"> |
200 | | - <widget class="QTableView" name="tblRegData"/> |
201 | | - </item> |
202 | 229 | </layout> |
203 | 230 | </item> |
204 | 231 | </layout> |
|
0 commit comments