hardsploit_gui 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/Hardsploit_gui.rb +4 -5
- data/lib/class/Chip_clone.rb +70 -0
- data/lib/class/Chip_editor.rb +1 -0
- data/lib/class/Chip_management.rb +73 -52
- data/lib/class/ErrorMsg.rb +1 -0
- data/lib/class/Firmware.rb +1 -1
- data/lib/class/Progress_bar.rb +1 -1
- data/lib/class/Wire_helper.rb +6 -3
- data/lib/class/{I2C → i2c}/I2c_command.rb +0 -0
- data/lib/class/{I2C/I2c_export.rb → i2c/I2c_read.rb} +15 -15
- data/lib/class/{I2C → i2c}/I2c_scanner.rb +2 -1
- data/lib/class/{I2C → i2c}/I2c_settings.rb +1 -0
- data/lib/class/{I2C/I2c_import.rb → i2c/I2c_write.rb} +13 -12
- data/lib/class/{PARALLEL/Parallel_export.rb → parallel/Parallel_read.rb} +17 -18
- data/lib/class/{PARALLEL → parallel}/Parallel_settings.rb +0 -0
- data/lib/class/{PARALLEL/Parallel_import.rb → parallel/Parallel_write.rb} +11 -10
- data/lib/class/{SPI/Spi_export.rb → spi/Spi_read.rb} +15 -15
- data/lib/class/{SPI → spi}/Spi_settings.rb +0 -0
- data/lib/class/{SPI → spi}/Spi_sniffer.rb +2 -1
- data/lib/class/{SPI/Spi_import.rb → spi/Spi_write.rb} +13 -12
- data/lib/class/swd/Swd.rb +10 -10
- data/lib/class/swd/Swd_scanner.rb +2 -1
- data/lib/class/uart/Uart_baudrate.rb +1 -1
- data/lib/class/uart/Uart_console.rb +1 -1
- data/lib/class/uart/Uart_settings.rb +1 -0
- data/lib/db/development.sqlite3 +0 -0
- data/lib/gui/gui_chip_clone.rb +87 -0
- data/lib/gui/gui_chip_editor.rb +349 -349
- data/lib/gui/gui_chip_management.rb +378 -377
- data/lib/gui/gui_command_editor.rb +219 -219
- data/lib/gui/gui_export.rb +132 -132
- data/lib/gui/gui_export_manager.rb +93 -93
- data/lib/gui/gui_generic_commands.rb +202 -202
- data/lib/gui/gui_generic_read.rb +185 -0
- data/lib/gui/gui_generic_write.rb +142 -0
- data/lib/gui/gui_i2c_command.rb +116 -116
- data/lib/gui/gui_i2c_settings.rb +242 -230
- data/lib/gui/gui_import.rb +131 -131
- data/lib/gui/gui_parallel_settings.rb +195 -195
- data/lib/gui/gui_progress_bar.rb +85 -85
- data/lib/gui/gui_signal_mapper.rb +121 -121
- data/lib/gui/gui_signal_scanner.rb +146 -146
- data/lib/gui/gui_spi_settings.rb +313 -313
- data/lib/gui/gui_spi_sniffer.rb +112 -112
- data/lib/gui/gui_swd_settings.rb +166 -166
- data/lib/gui/gui_uart_baudrate.rb +114 -114
- data/lib/gui/gui_uart_console.rb +164 -164
- data/lib/gui/gui_uart_settings.rb +243 -243
- data/lib/gui/gui_wire_helper.rb +99 -99
- data/lib/gui_designer/compile_to_ruby.sh +14 -0
- data/lib/gui_designer/gui_chip_clone.ui +96 -0
- data/lib/gui_designer/gui_chip_management.ui +25 -22
- data/lib/gui_designer/{gui_generic_export.ui → gui_generic_read.ui} +152 -72
- data/lib/gui_designer/{gui_generic_import.ui → gui_generic_write.ui} +47 -47
- data/lib/gui_designer/gui_i2c_settings.ui +68 -60
- data/lib/hardsploit-api/Examples/swdProgrammer.rb +76 -0
- data/lib/hardsploit-api/Examples/testI2C.rb +183 -0
- data/lib/hardsploit-api/Examples/testNRF24L01.rb +122 -0
- data/lib/hardsploit-api/Examples/testParralel.rb +84 -0
- data/lib/hardsploit-api/Examples/testSPI.rb +113 -0
- data/lib/hardsploit-api/Examples/testSPISniffer.rb +91 -0
- data/lib/hardsploit-api/Examples/testSWD.rb +224 -0
- data/lib/hardsploit-api/Examples/testUARTBufferOverflow.rb +113 -0
- data/lib/hardsploit-api/Examples/testUARTConsole.rb +74 -0
- data/lib/hardsploit-api/Examples/testUARTFuzzer.rb +109 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/I2C/I2C_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_I2C_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/SPI/SPI_SNIFFER/HARDSPLOIT_FIRMWARE_FPGA_SPI_SNIFFER.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/TEST/TEST_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_TEST_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/UART/UART_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_UART_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/VersionFPGA.rb +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/UC/HARDSPLOIT_FIRMWARE_UC.bin +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/UC/VersionUC.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_CONSTANT.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_ERROR.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_FIRMWARE.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_PROGRESS.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_USB_COMMUNICATION.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/I2C/HardsploitAPI_I2C.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/NO_MUX_PARALLEL_MEMORY/HardsploitAPI_NO_MUX_PARALLEL_MEMORY.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/NRF24L01/HardsploitAPI_NRF24L01.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SPI/HardsploitAPI_SPI.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SPI_SNIFFER/HardsploitAPI_SPI_SNIFFER.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD_DEBUG.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD_MEM_AP.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD_STM32.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/TEST/HardsploitAPI_TEST_INTERACT.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/UART/HardsploitAPI_UART.rb +0 -0
- data/lib/hardsploit-api/LICENSE.txt +674 -0
- data/lib/hardsploit-api/README.md +22 -0
- data/lib/hardsploit-api/TRADEMARK +3 -0
- data/lib/logs/error.log +80 -0
- metadata +65 -49
- data/lib/gui/gui_generic_export.rb +0 -164
- data/lib/gui/gui_generic_import.rb +0 -142
- data/lib/gui/gui_spi_import.rb +0 -126
@@ -1,243 +1,243 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_uart_settings.ui'
|
3
|
-
**
|
4
|
-
** Created:
|
5
|
-
** by: Qt User Interface Compiler version 4.8.
|
6
|
-
**
|
7
|
-
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
-
=end
|
9
|
-
|
10
|
-
class Ui_Uart_settings
|
11
|
-
attr_reader :gridLayout
|
12
|
-
attr_reader :verticalLayout_2
|
13
|
-
attr_reader :horizontalLayout_2
|
14
|
-
attr_reader :lbl_chip
|
15
|
-
attr_reader :lbl_uart
|
16
|
-
attr_reader :horizontalSpacer_2
|
17
|
-
attr_reader :formLayout
|
18
|
-
attr_reader :label
|
19
|
-
attr_reader :lie_baud_rate
|
20
|
-
attr_reader :label_2
|
21
|
-
attr_reader :lie_word_size
|
22
|
-
attr_reader :label_3
|
23
|
-
attr_reader :lie_parity_bit
|
24
|
-
attr_reader :label_4
|
25
|
-
attr_reader :lie_parity_type
|
26
|
-
attr_reader :label_5
|
27
|
-
attr_reader :lie_stop_bits_nbr
|
28
|
-
attr_reader :label_6
|
29
|
-
attr_reader :lie_idle_line_lvl
|
30
|
-
attr_reader :label_7
|
31
|
-
attr_reader :horizontalLayout_3
|
32
|
-
attr_reader :rbn_cr
|
33
|
-
attr_reader :rbn_lf
|
34
|
-
attr_reader :rbn_both
|
35
|
-
attr_reader :label_8
|
36
|
-
attr_reader :pushButton_3
|
37
|
-
attr_reader :horizontalLayout
|
38
|
-
attr_reader :horizontalSpacer
|
39
|
-
attr_reader :pushButton_2
|
40
|
-
attr_reader :pushButton
|
41
|
-
|
42
|
-
def setupUi(uart_settings)
|
43
|
-
if uart_settings.objectName.nil?
|
44
|
-
uart_settings.objectName = "uart_settings"
|
45
|
-
end
|
46
|
-
uart_settings.windowModality = Qt::WindowModal
|
47
|
-
uart_settings.resize(254, 291)
|
48
|
-
@gridLayout = Qt::GridLayout.new(uart_settings)
|
49
|
-
@gridLayout.objectName = "gridLayout"
|
50
|
-
@verticalLayout_2 = Qt::VBoxLayout.new()
|
51
|
-
@verticalLayout_2.objectName = "verticalLayout_2"
|
52
|
-
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
53
|
-
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
54
|
-
@lbl_chip = Qt::Label.new(uart_settings)
|
55
|
-
@lbl_chip.objectName = "lbl_chip"
|
56
|
-
|
57
|
-
@horizontalLayout_2.addWidget(@lbl_chip)
|
58
|
-
|
59
|
-
@lbl_uart = Qt::Label.new(uart_settings)
|
60
|
-
@lbl_uart.objectName = "lbl_uart"
|
61
|
-
|
62
|
-
@horizontalLayout_2.addWidget(@lbl_uart)
|
63
|
-
|
64
|
-
@horizontalSpacer_2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
65
|
-
|
66
|
-
@horizontalLayout_2.addItem(@horizontalSpacer_2)
|
67
|
-
|
68
|
-
|
69
|
-
@verticalLayout_2.addLayout(@horizontalLayout_2)
|
70
|
-
|
71
|
-
@formLayout = Qt::FormLayout.new()
|
72
|
-
@formLayout.objectName = "formLayout"
|
73
|
-
@label = Qt::Label.new(uart_settings)
|
74
|
-
@label.objectName = "label"
|
75
|
-
|
76
|
-
@formLayout.setWidget(1, Qt::FormLayout::LabelRole, @label)
|
77
|
-
|
78
|
-
@lie_baud_rate = Qt::LineEdit.new(uart_settings)
|
79
|
-
@lie_baud_rate.objectName = "lie_baud_rate"
|
80
|
-
|
81
|
-
@formLayout.setWidget(1, Qt::FormLayout::FieldRole, @lie_baud_rate)
|
82
|
-
|
83
|
-
@label_2 = Qt::Label.new(uart_settings)
|
84
|
-
@label_2.objectName = "label_2"
|
85
|
-
|
86
|
-
@formLayout.setWidget(3, Qt::FormLayout::LabelRole, @label_2)
|
87
|
-
|
88
|
-
@lie_word_size = Qt::LineEdit.new(uart_settings)
|
89
|
-
@lie_word_size.objectName = "lie_word_size"
|
90
|
-
|
91
|
-
@formLayout.setWidget(3, Qt::FormLayout::FieldRole, @lie_word_size)
|
92
|
-
|
93
|
-
@label_3 = Qt::Label.new(uart_settings)
|
94
|
-
@label_3.objectName = "label_3"
|
95
|
-
|
96
|
-
@formLayout.setWidget(4, Qt::FormLayout::LabelRole, @label_3)
|
97
|
-
|
98
|
-
@lie_parity_bit = Qt::LineEdit.new(uart_settings)
|
99
|
-
@lie_parity_bit.objectName = "lie_parity_bit"
|
100
|
-
|
101
|
-
@formLayout.setWidget(4, Qt::FormLayout::FieldRole, @lie_parity_bit)
|
102
|
-
|
103
|
-
@label_4 = Qt::Label.new(uart_settings)
|
104
|
-
@label_4.objectName = "label_4"
|
105
|
-
|
106
|
-
@formLayout.setWidget(5, Qt::FormLayout::LabelRole, @label_4)
|
107
|
-
|
108
|
-
@lie_parity_type = Qt::LineEdit.new(uart_settings)
|
109
|
-
@lie_parity_type.objectName = "lie_parity_type"
|
110
|
-
|
111
|
-
@formLayout.setWidget(5, Qt::FormLayout::FieldRole, @lie_parity_type)
|
112
|
-
|
113
|
-
@label_5 = Qt::Label.new(uart_settings)
|
114
|
-
@label_5.objectName = "label_5"
|
115
|
-
|
116
|
-
@formLayout.setWidget(6, Qt::FormLayout::LabelRole, @label_5)
|
117
|
-
|
118
|
-
@lie_stop_bits_nbr = Qt::LineEdit.new(uart_settings)
|
119
|
-
@lie_stop_bits_nbr.objectName = "lie_stop_bits_nbr"
|
120
|
-
|
121
|
-
@formLayout.setWidget(6, Qt::FormLayout::FieldRole, @lie_stop_bits_nbr)
|
122
|
-
|
123
|
-
@label_6 = Qt::Label.new(uart_settings)
|
124
|
-
@label_6.objectName = "label_6"
|
125
|
-
|
126
|
-
@formLayout.setWidget(7, Qt::FormLayout::LabelRole, @label_6)
|
127
|
-
|
128
|
-
@lie_idle_line_lvl = Qt::LineEdit.new(uart_settings)
|
129
|
-
@lie_idle_line_lvl.objectName = "lie_idle_line_lvl"
|
130
|
-
|
131
|
-
@formLayout.setWidget(7, Qt::FormLayout::FieldRole, @lie_idle_line_lvl)
|
132
|
-
|
133
|
-
@label_7 = Qt::Label.new(uart_settings)
|
134
|
-
@label_7.objectName = "label_7"
|
135
|
-
|
136
|
-
@formLayout.setWidget(8, Qt::FormLayout::LabelRole, @label_7)
|
137
|
-
|
138
|
-
@horizontalLayout_3 = Qt::HBoxLayout.new()
|
139
|
-
@horizontalLayout_3.objectName = "horizontalLayout_3"
|
140
|
-
@rbn_cr = Qt::RadioButton.new(uart_settings)
|
141
|
-
@rbn_cr.objectName = "rbn_cr"
|
142
|
-
@rbn_cr.checked = true
|
143
|
-
|
144
|
-
@horizontalLayout_3.addWidget(@rbn_cr)
|
145
|
-
|
146
|
-
@rbn_lf = Qt::RadioButton.new(uart_settings)
|
147
|
-
@rbn_lf.objectName = "rbn_lf"
|
148
|
-
|
149
|
-
@horizontalLayout_3.addWidget(@rbn_lf)
|
150
|
-
|
151
|
-
@rbn_both = Qt::RadioButton.new(uart_settings)
|
152
|
-
@rbn_both.objectName = "rbn_both"
|
153
|
-
|
154
|
-
@horizontalLayout_3.addWidget(@rbn_both)
|
155
|
-
|
156
|
-
|
157
|
-
@formLayout.setLayout(8, Qt::FormLayout::FieldRole, @horizontalLayout_3)
|
158
|
-
|
159
|
-
@label_8 = Qt::Label.new(uart_settings)
|
160
|
-
@label_8.objectName = "label_8"
|
161
|
-
|
162
|
-
@formLayout.setWidget(2, Qt::FormLayout::LabelRole, @label_8)
|
163
|
-
|
164
|
-
@pushButton_3 = Qt::PushButton.new(uart_settings)
|
165
|
-
@pushButton_3.objectName = "pushButton_3"
|
166
|
-
|
167
|
-
@formLayout.setWidget(2, Qt::FormLayout::FieldRole, @pushButton_3)
|
168
|
-
|
169
|
-
|
170
|
-
@verticalLayout_2.addLayout(@formLayout)
|
171
|
-
|
172
|
-
@horizontalLayout = Qt::HBoxLayout.new()
|
173
|
-
@horizontalLayout.objectName = "horizontalLayout"
|
174
|
-
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
175
|
-
|
176
|
-
@horizontalLayout.addItem(@horizontalSpacer)
|
177
|
-
|
178
|
-
@pushButton_2 = Qt::PushButton.new(uart_settings)
|
179
|
-
@pushButton_2.objectName = "pushButton_2"
|
180
|
-
|
181
|
-
@horizontalLayout.addWidget(@pushButton_2)
|
182
|
-
|
183
|
-
@pushButton = Qt::PushButton.new(uart_settings)
|
184
|
-
@pushButton.objectName = "pushButton"
|
185
|
-
|
186
|
-
@horizontalLayout.addWidget(@pushButton)
|
187
|
-
|
188
|
-
|
189
|
-
@verticalLayout_2.addLayout(@horizontalLayout)
|
190
|
-
|
191
|
-
|
192
|
-
@gridLayout.addLayout(@verticalLayout_2, 0, 0, 1, 1)
|
193
|
-
|
194
|
-
|
195
|
-
retranslateUi(uart_settings)
|
196
|
-
Qt::Object.connect(@pushButton, SIGNAL('clicked()'), uart_settings, SLOT('save_settings()'))
|
197
|
-
Qt::Object.connect(@pushButton_2, SIGNAL('clicked()'), uart_settings, SLOT('close()'))
|
198
|
-
Qt::Object.connect(@pushButton_3, SIGNAL('clicked()'), uart_settings, SLOT('autodetect()'))
|
199
|
-
|
200
|
-
Qt::MetaObject.connectSlotsByName(uart_settings)
|
201
|
-
end # setupUi
|
202
|
-
|
203
|
-
def setup_ui(uart_settings)
|
204
|
-
setupUi(uart_settings)
|
205
|
-
end
|
206
|
-
|
207
|
-
def retranslateUi(uart_settings)
|
208
|
-
uart_settings.windowTitle = Qt::Application.translate("Uart_settings", "Hardsploit - UART settings", nil, Qt::Application::UnicodeUTF8)
|
209
|
-
@lbl_chip.text = Qt::Application.translate("Uart_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
210
|
-
@lbl_uart.text = Qt::Application.translate("Uart_settings", "UART settings", nil, Qt::Application::UnicodeUTF8)
|
211
|
-
@label.text = Qt::Application.translate("Uart_settings", "Baud rate (manual):", nil, Qt::Application::UnicodeUTF8)
|
212
|
-
@lie_baud_rate.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
213
|
-
@label_2.text = Qt::Application.translate("Uart_settings", "Word size:", nil, Qt::Application::UnicodeUTF8)
|
214
|
-
@lie_word_size.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
215
|
-
@label_3.text = Qt::Application.translate("Uart_settings", "Parity bit:", nil, Qt::Application::UnicodeUTF8)
|
216
|
-
@lie_parity_bit.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
217
|
-
@label_4.text = Qt::Application.translate("Uart_settings", "Parity type:", nil, Qt::Application::UnicodeUTF8)
|
218
|
-
@lie_parity_type.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
219
|
-
@label_5.text = Qt::Application.translate("Uart_settings", "Stop bits number:", nil, Qt::Application::UnicodeUTF8)
|
220
|
-
@lie_stop_bits_nbr.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
221
|
-
@label_6.text = Qt::Application.translate("Uart_settings", "Idle line level:", nil, Qt::Application::UnicodeUTF8)
|
222
|
-
@lie_idle_line_lvl.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
223
|
-
@label_7.text = Qt::Application.translate("Uart_settings", "CR / LF:", nil, Qt::Application::UnicodeUTF8)
|
224
|
-
@rbn_cr.text = Qt::Application.translate("Uart_settings", "CR", nil, Qt::Application::UnicodeUTF8)
|
225
|
-
@rbn_lf.text = Qt::Application.translate("Uart_settings", "LF", nil, Qt::Application::UnicodeUTF8)
|
226
|
-
@rbn_both.text = Qt::Application.translate("Uart_settings", "Both", nil, Qt::Application::UnicodeUTF8)
|
227
|
-
@label_8.text = Qt::Application.translate("Uart_settings", "Baud rate (auto):", nil, Qt::Application::UnicodeUTF8)
|
228
|
-
@pushButton_3.text = Qt::Application.translate("Uart_settings", "Autodetection", nil, Qt::Application::UnicodeUTF8)
|
229
|
-
@pushButton_2.text = Qt::Application.translate("Uart_settings", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
230
|
-
@pushButton.text = Qt::Application.translate("Uart_settings", "Save", nil, Qt::Application::UnicodeUTF8)
|
231
|
-
end # retranslateUi
|
232
|
-
|
233
|
-
def retranslate_ui(uart_settings)
|
234
|
-
retranslateUi(uart_settings)
|
235
|
-
end
|
236
|
-
|
237
|
-
end
|
238
|
-
|
239
|
-
module Ui
|
240
|
-
class Uart_settings < Ui_Uart_settings
|
241
|
-
end
|
242
|
-
end # module Ui
|
243
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_uart_settings.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mars 8 11:15:10 2017
|
5
|
+
** by: Qt User Interface Compiler version 4.8.7
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_Uart_settings
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :verticalLayout_2
|
13
|
+
attr_reader :horizontalLayout_2
|
14
|
+
attr_reader :lbl_chip
|
15
|
+
attr_reader :lbl_uart
|
16
|
+
attr_reader :horizontalSpacer_2
|
17
|
+
attr_reader :formLayout
|
18
|
+
attr_reader :label
|
19
|
+
attr_reader :lie_baud_rate
|
20
|
+
attr_reader :label_2
|
21
|
+
attr_reader :lie_word_size
|
22
|
+
attr_reader :label_3
|
23
|
+
attr_reader :lie_parity_bit
|
24
|
+
attr_reader :label_4
|
25
|
+
attr_reader :lie_parity_type
|
26
|
+
attr_reader :label_5
|
27
|
+
attr_reader :lie_stop_bits_nbr
|
28
|
+
attr_reader :label_6
|
29
|
+
attr_reader :lie_idle_line_lvl
|
30
|
+
attr_reader :label_7
|
31
|
+
attr_reader :horizontalLayout_3
|
32
|
+
attr_reader :rbn_cr
|
33
|
+
attr_reader :rbn_lf
|
34
|
+
attr_reader :rbn_both
|
35
|
+
attr_reader :label_8
|
36
|
+
attr_reader :pushButton_3
|
37
|
+
attr_reader :horizontalLayout
|
38
|
+
attr_reader :horizontalSpacer
|
39
|
+
attr_reader :pushButton_2
|
40
|
+
attr_reader :pushButton
|
41
|
+
|
42
|
+
def setupUi(uart_settings)
|
43
|
+
if uart_settings.objectName.nil?
|
44
|
+
uart_settings.objectName = "uart_settings"
|
45
|
+
end
|
46
|
+
uart_settings.windowModality = Qt::WindowModal
|
47
|
+
uart_settings.resize(254, 291)
|
48
|
+
@gridLayout = Qt::GridLayout.new(uart_settings)
|
49
|
+
@gridLayout.objectName = "gridLayout"
|
50
|
+
@verticalLayout_2 = Qt::VBoxLayout.new()
|
51
|
+
@verticalLayout_2.objectName = "verticalLayout_2"
|
52
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
53
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
54
|
+
@lbl_chip = Qt::Label.new(uart_settings)
|
55
|
+
@lbl_chip.objectName = "lbl_chip"
|
56
|
+
|
57
|
+
@horizontalLayout_2.addWidget(@lbl_chip)
|
58
|
+
|
59
|
+
@lbl_uart = Qt::Label.new(uart_settings)
|
60
|
+
@lbl_uart.objectName = "lbl_uart"
|
61
|
+
|
62
|
+
@horizontalLayout_2.addWidget(@lbl_uart)
|
63
|
+
|
64
|
+
@horizontalSpacer_2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
65
|
+
|
66
|
+
@horizontalLayout_2.addItem(@horizontalSpacer_2)
|
67
|
+
|
68
|
+
|
69
|
+
@verticalLayout_2.addLayout(@horizontalLayout_2)
|
70
|
+
|
71
|
+
@formLayout = Qt::FormLayout.new()
|
72
|
+
@formLayout.objectName = "formLayout"
|
73
|
+
@label = Qt::Label.new(uart_settings)
|
74
|
+
@label.objectName = "label"
|
75
|
+
|
76
|
+
@formLayout.setWidget(1, Qt::FormLayout::LabelRole, @label)
|
77
|
+
|
78
|
+
@lie_baud_rate = Qt::LineEdit.new(uart_settings)
|
79
|
+
@lie_baud_rate.objectName = "lie_baud_rate"
|
80
|
+
|
81
|
+
@formLayout.setWidget(1, Qt::FormLayout::FieldRole, @lie_baud_rate)
|
82
|
+
|
83
|
+
@label_2 = Qt::Label.new(uart_settings)
|
84
|
+
@label_2.objectName = "label_2"
|
85
|
+
|
86
|
+
@formLayout.setWidget(3, Qt::FormLayout::LabelRole, @label_2)
|
87
|
+
|
88
|
+
@lie_word_size = Qt::LineEdit.new(uart_settings)
|
89
|
+
@lie_word_size.objectName = "lie_word_size"
|
90
|
+
|
91
|
+
@formLayout.setWidget(3, Qt::FormLayout::FieldRole, @lie_word_size)
|
92
|
+
|
93
|
+
@label_3 = Qt::Label.new(uart_settings)
|
94
|
+
@label_3.objectName = "label_3"
|
95
|
+
|
96
|
+
@formLayout.setWidget(4, Qt::FormLayout::LabelRole, @label_3)
|
97
|
+
|
98
|
+
@lie_parity_bit = Qt::LineEdit.new(uart_settings)
|
99
|
+
@lie_parity_bit.objectName = "lie_parity_bit"
|
100
|
+
|
101
|
+
@formLayout.setWidget(4, Qt::FormLayout::FieldRole, @lie_parity_bit)
|
102
|
+
|
103
|
+
@label_4 = Qt::Label.new(uart_settings)
|
104
|
+
@label_4.objectName = "label_4"
|
105
|
+
|
106
|
+
@formLayout.setWidget(5, Qt::FormLayout::LabelRole, @label_4)
|
107
|
+
|
108
|
+
@lie_parity_type = Qt::LineEdit.new(uart_settings)
|
109
|
+
@lie_parity_type.objectName = "lie_parity_type"
|
110
|
+
|
111
|
+
@formLayout.setWidget(5, Qt::FormLayout::FieldRole, @lie_parity_type)
|
112
|
+
|
113
|
+
@label_5 = Qt::Label.new(uart_settings)
|
114
|
+
@label_5.objectName = "label_5"
|
115
|
+
|
116
|
+
@formLayout.setWidget(6, Qt::FormLayout::LabelRole, @label_5)
|
117
|
+
|
118
|
+
@lie_stop_bits_nbr = Qt::LineEdit.new(uart_settings)
|
119
|
+
@lie_stop_bits_nbr.objectName = "lie_stop_bits_nbr"
|
120
|
+
|
121
|
+
@formLayout.setWidget(6, Qt::FormLayout::FieldRole, @lie_stop_bits_nbr)
|
122
|
+
|
123
|
+
@label_6 = Qt::Label.new(uart_settings)
|
124
|
+
@label_6.objectName = "label_6"
|
125
|
+
|
126
|
+
@formLayout.setWidget(7, Qt::FormLayout::LabelRole, @label_6)
|
127
|
+
|
128
|
+
@lie_idle_line_lvl = Qt::LineEdit.new(uart_settings)
|
129
|
+
@lie_idle_line_lvl.objectName = "lie_idle_line_lvl"
|
130
|
+
|
131
|
+
@formLayout.setWidget(7, Qt::FormLayout::FieldRole, @lie_idle_line_lvl)
|
132
|
+
|
133
|
+
@label_7 = Qt::Label.new(uart_settings)
|
134
|
+
@label_7.objectName = "label_7"
|
135
|
+
|
136
|
+
@formLayout.setWidget(8, Qt::FormLayout::LabelRole, @label_7)
|
137
|
+
|
138
|
+
@horizontalLayout_3 = Qt::HBoxLayout.new()
|
139
|
+
@horizontalLayout_3.objectName = "horizontalLayout_3"
|
140
|
+
@rbn_cr = Qt::RadioButton.new(uart_settings)
|
141
|
+
@rbn_cr.objectName = "rbn_cr"
|
142
|
+
@rbn_cr.checked = true
|
143
|
+
|
144
|
+
@horizontalLayout_3.addWidget(@rbn_cr)
|
145
|
+
|
146
|
+
@rbn_lf = Qt::RadioButton.new(uart_settings)
|
147
|
+
@rbn_lf.objectName = "rbn_lf"
|
148
|
+
|
149
|
+
@horizontalLayout_3.addWidget(@rbn_lf)
|
150
|
+
|
151
|
+
@rbn_both = Qt::RadioButton.new(uart_settings)
|
152
|
+
@rbn_both.objectName = "rbn_both"
|
153
|
+
|
154
|
+
@horizontalLayout_3.addWidget(@rbn_both)
|
155
|
+
|
156
|
+
|
157
|
+
@formLayout.setLayout(8, Qt::FormLayout::FieldRole, @horizontalLayout_3)
|
158
|
+
|
159
|
+
@label_8 = Qt::Label.new(uart_settings)
|
160
|
+
@label_8.objectName = "label_8"
|
161
|
+
|
162
|
+
@formLayout.setWidget(2, Qt::FormLayout::LabelRole, @label_8)
|
163
|
+
|
164
|
+
@pushButton_3 = Qt::PushButton.new(uart_settings)
|
165
|
+
@pushButton_3.objectName = "pushButton_3"
|
166
|
+
|
167
|
+
@formLayout.setWidget(2, Qt::FormLayout::FieldRole, @pushButton_3)
|
168
|
+
|
169
|
+
|
170
|
+
@verticalLayout_2.addLayout(@formLayout)
|
171
|
+
|
172
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
173
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
174
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
175
|
+
|
176
|
+
@horizontalLayout.addItem(@horizontalSpacer)
|
177
|
+
|
178
|
+
@pushButton_2 = Qt::PushButton.new(uart_settings)
|
179
|
+
@pushButton_2.objectName = "pushButton_2"
|
180
|
+
|
181
|
+
@horizontalLayout.addWidget(@pushButton_2)
|
182
|
+
|
183
|
+
@pushButton = Qt::PushButton.new(uart_settings)
|
184
|
+
@pushButton.objectName = "pushButton"
|
185
|
+
|
186
|
+
@horizontalLayout.addWidget(@pushButton)
|
187
|
+
|
188
|
+
|
189
|
+
@verticalLayout_2.addLayout(@horizontalLayout)
|
190
|
+
|
191
|
+
|
192
|
+
@gridLayout.addLayout(@verticalLayout_2, 0, 0, 1, 1)
|
193
|
+
|
194
|
+
|
195
|
+
retranslateUi(uart_settings)
|
196
|
+
Qt::Object.connect(@pushButton, SIGNAL('clicked()'), uart_settings, SLOT('save_settings()'))
|
197
|
+
Qt::Object.connect(@pushButton_2, SIGNAL('clicked()'), uart_settings, SLOT('close()'))
|
198
|
+
Qt::Object.connect(@pushButton_3, SIGNAL('clicked()'), uart_settings, SLOT('autodetect()'))
|
199
|
+
|
200
|
+
Qt::MetaObject.connectSlotsByName(uart_settings)
|
201
|
+
end # setupUi
|
202
|
+
|
203
|
+
def setup_ui(uart_settings)
|
204
|
+
setupUi(uart_settings)
|
205
|
+
end
|
206
|
+
|
207
|
+
def retranslateUi(uart_settings)
|
208
|
+
uart_settings.windowTitle = Qt::Application.translate("Uart_settings", "Hardsploit - UART settings", nil, Qt::Application::UnicodeUTF8)
|
209
|
+
@lbl_chip.text = Qt::Application.translate("Uart_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
210
|
+
@lbl_uart.text = Qt::Application.translate("Uart_settings", "UART settings", nil, Qt::Application::UnicodeUTF8)
|
211
|
+
@label.text = Qt::Application.translate("Uart_settings", "Baud rate (manual):", nil, Qt::Application::UnicodeUTF8)
|
212
|
+
@lie_baud_rate.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
213
|
+
@label_2.text = Qt::Application.translate("Uart_settings", "Word size:", nil, Qt::Application::UnicodeUTF8)
|
214
|
+
@lie_word_size.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
215
|
+
@label_3.text = Qt::Application.translate("Uart_settings", "Parity bit:", nil, Qt::Application::UnicodeUTF8)
|
216
|
+
@lie_parity_bit.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
217
|
+
@label_4.text = Qt::Application.translate("Uart_settings", "Parity type:", nil, Qt::Application::UnicodeUTF8)
|
218
|
+
@lie_parity_type.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
219
|
+
@label_5.text = Qt::Application.translate("Uart_settings", "Stop bits number:", nil, Qt::Application::UnicodeUTF8)
|
220
|
+
@lie_stop_bits_nbr.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
221
|
+
@label_6.text = Qt::Application.translate("Uart_settings", "Idle line level:", nil, Qt::Application::UnicodeUTF8)
|
222
|
+
@lie_idle_line_lvl.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
223
|
+
@label_7.text = Qt::Application.translate("Uart_settings", "CR / LF:", nil, Qt::Application::UnicodeUTF8)
|
224
|
+
@rbn_cr.text = Qt::Application.translate("Uart_settings", "CR", nil, Qt::Application::UnicodeUTF8)
|
225
|
+
@rbn_lf.text = Qt::Application.translate("Uart_settings", "LF", nil, Qt::Application::UnicodeUTF8)
|
226
|
+
@rbn_both.text = Qt::Application.translate("Uart_settings", "Both", nil, Qt::Application::UnicodeUTF8)
|
227
|
+
@label_8.text = Qt::Application.translate("Uart_settings", "Baud rate (auto):", nil, Qt::Application::UnicodeUTF8)
|
228
|
+
@pushButton_3.text = Qt::Application.translate("Uart_settings", "Autodetection", nil, Qt::Application::UnicodeUTF8)
|
229
|
+
@pushButton_2.text = Qt::Application.translate("Uart_settings", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
230
|
+
@pushButton.text = Qt::Application.translate("Uart_settings", "Save", nil, Qt::Application::UnicodeUTF8)
|
231
|
+
end # retranslateUi
|
232
|
+
|
233
|
+
def retranslate_ui(uart_settings)
|
234
|
+
retranslateUi(uart_settings)
|
235
|
+
end
|
236
|
+
|
237
|
+
end
|
238
|
+
|
239
|
+
module Ui
|
240
|
+
class Uart_settings < Ui_Uart_settings
|
241
|
+
end
|
242
|
+
end # module Ui
|
243
|
+
|