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
data/lib/gui/gui_spi_settings.rb
CHANGED
@@ -1,313 +1,313 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_spi_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_Spi_settings
|
11
|
-
attr_reader :gridLayout
|
12
|
-
attr_reader :hl
|
13
|
-
attr_reader :lbl_chip
|
14
|
-
attr_reader :lbl_param
|
15
|
-
attr_reader :hs
|
16
|
-
attr_reader :hl2
|
17
|
-
attr_reader :fl
|
18
|
-
attr_reader :lbl_frequency
|
19
|
-
attr_reader :cbx_frequency
|
20
|
-
attr_reader :lbl_cmd_read
|
21
|
-
attr_reader :lie_cmd_read
|
22
|
-
attr_reader :lbl_cmd_erase
|
23
|
-
attr_reader :lie_cmd_erase
|
24
|
-
attr_reader :lbl_cmd_write
|
25
|
-
attr_reader :lie_cmd_write_enable
|
26
|
-
attr_reader :lbl_mode
|
27
|
-
attr_reader :cbx_mode
|
28
|
-
attr_reader :label
|
29
|
-
attr_reader :lie_cmd_write
|
30
|
-
attr_reader :fl2
|
31
|
-
attr_reader :lbl_total_size
|
32
|
-
attr_reader :lie_total_size
|
33
|
-
attr_reader :lbl_page_size
|
34
|
-
attr_reader :lie_page_size
|
35
|
-
attr_reader :label_2
|
36
|
-
attr_reader :lie_write_page_latency
|
37
|
-
attr_reader :label_3
|
38
|
-
attr_reader :lie_erase_time
|
39
|
-
attr_reader :label_4
|
40
|
-
attr_reader :rbn_yes
|
41
|
-
attr_reader :label_5
|
42
|
-
attr_reader :rbn_no
|
43
|
-
attr_reader :horizontalLayout
|
44
|
-
attr_reader :horizontalSpacer
|
45
|
-
attr_reader :btn_cancel
|
46
|
-
attr_reader :btn_save
|
47
|
-
|
48
|
-
def setupUi(spi_settings)
|
49
|
-
if spi_settings.objectName.nil?
|
50
|
-
spi_settings.objectName = "spi_settings"
|
51
|
-
end
|
52
|
-
spi_settings.resize(528, 237)
|
53
|
-
@gridLayout = Qt::GridLayout.new(spi_settings)
|
54
|
-
@gridLayout.objectName = "gridLayout"
|
55
|
-
@hl = Qt::HBoxLayout.new()
|
56
|
-
@hl.objectName = "hl"
|
57
|
-
@lbl_chip = Qt::Label.new(spi_settings)
|
58
|
-
@lbl_chip.objectName = "lbl_chip"
|
59
|
-
|
60
|
-
@hl.addWidget(@lbl_chip)
|
61
|
-
|
62
|
-
@lbl_param = Qt::Label.new(spi_settings)
|
63
|
-
@lbl_param.objectName = "lbl_param"
|
64
|
-
|
65
|
-
@hl.addWidget(@lbl_param)
|
66
|
-
|
67
|
-
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
68
|
-
|
69
|
-
@hl.addItem(@hs)
|
70
|
-
|
71
|
-
|
72
|
-
@gridLayout.addLayout(@hl, 1, 0, 1, 1)
|
73
|
-
|
74
|
-
@hl2 = Qt::HBoxLayout.new()
|
75
|
-
@hl2.objectName = "hl2"
|
76
|
-
@fl = Qt::FormLayout.new()
|
77
|
-
@fl.objectName = "fl"
|
78
|
-
@lbl_frequency = Qt::Label.new(spi_settings)
|
79
|
-
@lbl_frequency.objectName = "lbl_frequency"
|
80
|
-
|
81
|
-
@fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_frequency)
|
82
|
-
|
83
|
-
@cbx_frequency = Qt::ComboBox.new(spi_settings)
|
84
|
-
@cbx_frequency.objectName = "cbx_frequency"
|
85
|
-
@cbx_frequency.maximumSize = Qt::Size.new(100, 16777215)
|
86
|
-
|
87
|
-
@fl.setWidget(2, Qt::FormLayout::FieldRole, @cbx_frequency)
|
88
|
-
|
89
|
-
@lbl_cmd_read = Qt::Label.new(spi_settings)
|
90
|
-
@lbl_cmd_read.objectName = "lbl_cmd_read"
|
91
|
-
|
92
|
-
@fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_cmd_read)
|
93
|
-
|
94
|
-
@lie_cmd_read = Qt::LineEdit.new(spi_settings)
|
95
|
-
@lie_cmd_read.objectName = "lie_cmd_read"
|
96
|
-
@lie_cmd_read.maximumSize = Qt::Size.new(100, 16777215)
|
97
|
-
@lie_cmd_read.maxLength = 5
|
98
|
-
|
99
|
-
@fl.setWidget(3, Qt::FormLayout::FieldRole, @lie_cmd_read)
|
100
|
-
|
101
|
-
@lbl_cmd_erase = Qt::Label.new(spi_settings)
|
102
|
-
@lbl_cmd_erase.objectName = "lbl_cmd_erase"
|
103
|
-
|
104
|
-
@fl.setWidget(5, Qt::FormLayout::LabelRole, @lbl_cmd_erase)
|
105
|
-
|
106
|
-
@lie_cmd_erase = Qt::LineEdit.new(spi_settings)
|
107
|
-
@lie_cmd_erase.objectName = "lie_cmd_erase"
|
108
|
-
@lie_cmd_erase.maxLength = 5
|
109
|
-
|
110
|
-
@fl.setWidget(5, Qt::FormLayout::FieldRole, @lie_cmd_erase)
|
111
|
-
|
112
|
-
@lbl_cmd_write = Qt::Label.new(spi_settings)
|
113
|
-
@lbl_cmd_write.objectName = "lbl_cmd_write"
|
114
|
-
|
115
|
-
@fl.setWidget(6, Qt::FormLayout::LabelRole, @lbl_cmd_write)
|
116
|
-
|
117
|
-
@lie_cmd_write_enable = Qt::LineEdit.new(spi_settings)
|
118
|
-
@lie_cmd_write_enable.objectName = "lie_cmd_write_enable"
|
119
|
-
@lie_cmd_write_enable.maxLength = 5
|
120
|
-
|
121
|
-
@fl.setWidget(6, Qt::FormLayout::FieldRole, @lie_cmd_write_enable)
|
122
|
-
|
123
|
-
@lbl_mode = Qt::Label.new(spi_settings)
|
124
|
-
@lbl_mode.objectName = "lbl_mode"
|
125
|
-
|
126
|
-
@fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_mode)
|
127
|
-
|
128
|
-
@cbx_mode = Qt::ComboBox.new(spi_settings)
|
129
|
-
@cbx_mode.objectName = "cbx_mode"
|
130
|
-
@cbx_mode.maximumSize = Qt::Size.new(100, 16777215)
|
131
|
-
|
132
|
-
@fl.setWidget(1, Qt::FormLayout::FieldRole, @cbx_mode)
|
133
|
-
|
134
|
-
@label = Qt::Label.new(spi_settings)
|
135
|
-
@label.objectName = "label"
|
136
|
-
|
137
|
-
@fl.setWidget(4, Qt::FormLayout::LabelRole, @label)
|
138
|
-
|
139
|
-
@lie_cmd_write = Qt::LineEdit.new(spi_settings)
|
140
|
-
@lie_cmd_write.objectName = "lie_cmd_write"
|
141
|
-
|
142
|
-
@fl.setWidget(4, Qt::FormLayout::FieldRole, @lie_cmd_write)
|
143
|
-
|
144
|
-
|
145
|
-
@hl2.addLayout(@fl)
|
146
|
-
|
147
|
-
@fl2 = Qt::FormLayout.new()
|
148
|
-
@fl2.objectName = "fl2"
|
149
|
-
@lbl_total_size = Qt::Label.new(spi_settings)
|
150
|
-
@lbl_total_size.objectName = "lbl_total_size"
|
151
|
-
|
152
|
-
@fl2.setWidget(0, Qt::FormLayout::LabelRole, @lbl_total_size)
|
153
|
-
|
154
|
-
@lie_total_size = Qt::LineEdit.new(spi_settings)
|
155
|
-
@lie_total_size.objectName = "lie_total_size"
|
156
|
-
@lie_total_size.maximumSize = Qt::Size.new(100, 16777215)
|
157
|
-
@lie_total_size.maxLength = 20
|
158
|
-
|
159
|
-
@fl2.setWidget(0, Qt::FormLayout::FieldRole, @lie_total_size)
|
160
|
-
|
161
|
-
@lbl_page_size = Qt::Label.new(spi_settings)
|
162
|
-
@lbl_page_size.objectName = "lbl_page_size"
|
163
|
-
|
164
|
-
@fl2.setWidget(1, Qt::FormLayout::LabelRole, @lbl_page_size)
|
165
|
-
|
166
|
-
@lie_page_size = Qt::LineEdit.new(spi_settings)
|
167
|
-
@lie_page_size.objectName = "lie_page_size"
|
168
|
-
@lie_page_size.maximumSize = Qt::Size.new(100, 16777215)
|
169
|
-
@lie_page_size.maxLength = 10
|
170
|
-
|
171
|
-
@fl2.setWidget(1, Qt::FormLayout::FieldRole, @lie_page_size)
|
172
|
-
|
173
|
-
@label_2 = Qt::Label.new(spi_settings)
|
174
|
-
@label_2.objectName = "label_2"
|
175
|
-
|
176
|
-
@fl2.setWidget(2, Qt::FormLayout::LabelRole, @label_2)
|
177
|
-
|
178
|
-
@lie_write_page_latency = Qt::LineEdit.new(spi_settings)
|
179
|
-
@lie_write_page_latency.objectName = "lie_write_page_latency"
|
180
|
-
@lie_write_page_latency.maxLength = 10
|
181
|
-
|
182
|
-
@fl2.setWidget(2, Qt::FormLayout::FieldRole, @lie_write_page_latency)
|
183
|
-
|
184
|
-
@label_3 = Qt::Label.new(spi_settings)
|
185
|
-
@label_3.objectName = "label_3"
|
186
|
-
|
187
|
-
@fl2.setWidget(3, Qt::FormLayout::LabelRole, @label_3)
|
188
|
-
|
189
|
-
@lie_erase_time = Qt::LineEdit.new(spi_settings)
|
190
|
-
@lie_erase_time.objectName = "lie_erase_time"
|
191
|
-
@lie_erase_time.maxLength = 10
|
192
|
-
|
193
|
-
@fl2.setWidget(3, Qt::FormLayout::FieldRole, @lie_erase_time)
|
194
|
-
|
195
|
-
@label_4 = Qt::Label.new(spi_settings)
|
196
|
-
@label_4.objectName = "label_4"
|
197
|
-
|
198
|
-
@fl2.setWidget(4, Qt::FormLayout::LabelRole, @label_4)
|
199
|
-
|
200
|
-
@rbn_yes = Qt::RadioButton.new(spi_settings)
|
201
|
-
@rbn_yes.objectName = "rbn_yes"
|
202
|
-
@rbn_yes.checked = true
|
203
|
-
|
204
|
-
@fl2.setWidget(4, Qt::FormLayout::FieldRole, @rbn_yes)
|
205
|
-
|
206
|
-
@label_5 = Qt::Label.new(spi_settings)
|
207
|
-
@label_5.objectName = "label_5"
|
208
|
-
|
209
|
-
@fl2.setWidget(5, Qt::FormLayout::LabelRole, @label_5)
|
210
|
-
|
211
|
-
@rbn_no = Qt::RadioButton.new(spi_settings)
|
212
|
-
@rbn_no.objectName = "rbn_no"
|
213
|
-
|
214
|
-
@fl2.setWidget(5, Qt::FormLayout::FieldRole, @rbn_no)
|
215
|
-
|
216
|
-
|
217
|
-
@hl2.addLayout(@fl2)
|
218
|
-
|
219
|
-
|
220
|
-
@gridLayout.addLayout(@hl2, 2, 0, 1, 1)
|
221
|
-
|
222
|
-
@horizontalLayout = Qt::HBoxLayout.new()
|
223
|
-
@horizontalLayout.objectName = "horizontalLayout"
|
224
|
-
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
225
|
-
|
226
|
-
@horizontalLayout.addItem(@horizontalSpacer)
|
227
|
-
|
228
|
-
@btn_cancel = Qt::PushButton.new(spi_settings)
|
229
|
-
@btn_cancel.objectName = "btn_cancel"
|
230
|
-
|
231
|
-
@horizontalLayout.addWidget(@btn_cancel)
|
232
|
-
|
233
|
-
@btn_save = Qt::PushButton.new(spi_settings)
|
234
|
-
@btn_save.objectName = "btn_save"
|
235
|
-
@btn_save.maximumSize = Qt::Size.new(16777215, 16777215)
|
236
|
-
|
237
|
-
@horizontalLayout.addWidget(@btn_save)
|
238
|
-
|
239
|
-
|
240
|
-
@gridLayout.addLayout(@horizontalLayout, 3, 0, 1, 1)
|
241
|
-
|
242
|
-
|
243
|
-
retranslateUi(spi_settings)
|
244
|
-
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), spi_settings, SLOT('save_settings()'))
|
245
|
-
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), spi_settings, SLOT('close()'))
|
246
|
-
|
247
|
-
Qt::MetaObject.connectSlotsByName(spi_settings)
|
248
|
-
end # setupUi
|
249
|
-
|
250
|
-
def setup_ui(spi_settings)
|
251
|
-
setupUi(spi_settings)
|
252
|
-
end
|
253
|
-
|
254
|
-
def retranslateUi(spi_settings)
|
255
|
-
spi_settings.windowTitle = Qt::Application.translate("Spi_settings", "Hardsploit - Bus settings", nil, Qt::Application::UnicodeUTF8)
|
256
|
-
@lbl_chip.text = Qt::Application.translate("Spi_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
257
|
-
@lbl_param.text = Qt::Application.translate("Spi_settings", "PARAMETERS", nil, Qt::Application::UnicodeUTF8)
|
258
|
-
@lbl_frequency.text = Qt::Application.translate("Spi_settings", "Frequency (Mhz):", nil, Qt::Application::UnicodeUTF8)
|
259
|
-
@cbx_frequency.insertItems(0, [Qt::Application.translate("Spi_settings", "25.00", nil, Qt::Application::UnicodeUTF8),
|
260
|
-
Qt::Application.translate("Spi_settings", "18.75", nil, Qt::Application::UnicodeUTF8),
|
261
|
-
Qt::Application.translate("Spi_settings", "15.00", nil, Qt::Application::UnicodeUTF8),
|
262
|
-
Qt::Application.translate("Spi_settings", "12.50", nil, Qt::Application::UnicodeUTF8),
|
263
|
-
Qt::Application.translate("Spi_settings", "10.71", nil, Qt::Application::UnicodeUTF8),
|
264
|
-
Qt::Application.translate("Spi_settings", "9.38", nil, Qt::Application::UnicodeUTF8),
|
265
|
-
Qt::Application.translate("Spi_settings", "7.50", nil, Qt::Application::UnicodeUTF8),
|
266
|
-
Qt::Application.translate("Spi_settings", "5.00", nil, Qt::Application::UnicodeUTF8),
|
267
|
-
Qt::Application.translate("Spi_settings", "3.95", nil, Qt::Application::UnicodeUTF8),
|
268
|
-
Qt::Application.translate("Spi_settings", "3.00", nil, Qt::Application::UnicodeUTF8),
|
269
|
-
Qt::Application.translate("Spi_settings", "2.03", nil, Qt::Application::UnicodeUTF8),
|
270
|
-
Qt::Application.translate("Spi_settings", "1.00", nil, Qt::Application::UnicodeUTF8),
|
271
|
-
Qt::Application.translate("Spi_settings", "0.50", nil, Qt::Application::UnicodeUTF8),
|
272
|
-
Qt::Application.translate("Spi_settings", "0.29", nil, Qt::Application::UnicodeUTF8)])
|
273
|
-
@lbl_cmd_read.text = Qt::Application.translate("Spi_settings", "Read command:", nil, Qt::Application::UnicodeUTF8)
|
274
|
-
@lie_cmd_read.text = ''
|
275
|
-
@lie_cmd_read.placeholderText = Qt::Application.translate("Spi_settings", "in decimal", nil, Qt::Application::UnicodeUTF8)
|
276
|
-
@lbl_cmd_erase.text = Qt::Application.translate("Spi_settings", "Erase command:", nil, Qt::Application::UnicodeUTF8)
|
277
|
-
@lie_cmd_erase.placeholderText = Qt::Application.translate("Spi_settings", "in decimal", nil, Qt::Application::UnicodeUTF8)
|
278
|
-
@lbl_cmd_write.text = Qt::Application.translate("Spi_settings", "Enable write command:", nil, Qt::Application::UnicodeUTF8)
|
279
|
-
@lie_cmd_write_enable.placeholderText = Qt::Application.translate("Spi_settings", "in decimal", nil, Qt::Application::UnicodeUTF8)
|
280
|
-
@lbl_mode.text = Qt::Application.translate("Spi_settings", "Mode:", nil, Qt::Application::UnicodeUTF8)
|
281
|
-
@cbx_mode.insertItems(0, [Qt::Application.translate("Spi_settings", "0", nil, Qt::Application::UnicodeUTF8),
|
282
|
-
Qt::Application.translate("Spi_settings", "1", nil, Qt::Application::UnicodeUTF8),
|
283
|
-
Qt::Application.translate("Spi_settings", "2", nil, Qt::Application::UnicodeUTF8),
|
284
|
-
Qt::Application.translate("Spi_settings", "3", nil, Qt::Application::UnicodeUTF8)])
|
285
|
-
@label.text = Qt::Application.translate("Spi_settings", "Write command:", nil, Qt::Application::UnicodeUTF8)
|
286
|
-
@lie_cmd_write.placeholderText = Qt::Application.translate("Spi_settings", "in decimal", nil, Qt::Application::UnicodeUTF8)
|
287
|
-
@lbl_total_size.text = Qt::Application.translate("Spi_settings", "Total size:", nil, Qt::Application::UnicodeUTF8)
|
288
|
-
@lie_total_size.placeholderText = Qt::Application.translate("Spi_settings", "8 bits word", nil, Qt::Application::UnicodeUTF8)
|
289
|
-
@lbl_page_size.text = Qt::Application.translate("Spi_settings", "Page size:", nil, Qt::Application::UnicodeUTF8)
|
290
|
-
@lie_page_size.placeholderText = Qt::Application.translate("Spi_settings", "in byte", nil, Qt::Application::UnicodeUTF8)
|
291
|
-
@label_2.text = Qt::Application.translate("Spi_settings", "Write page latency:", nil, Qt::Application::UnicodeUTF8)
|
292
|
-
@lie_write_page_latency.placeholderText = Qt::Application.translate("Spi_settings", "in miliseconds", nil, Qt::Application::UnicodeUTF8)
|
293
|
-
@label_3.text = Qt::Application.translate("Spi_settings", "Clear chip time:", nil, Qt::Application::UnicodeUTF8)
|
294
|
-
@lie_erase_time.placeholderText = Qt::Application.translate("Spi_settings", "in seconds", nil, Qt::Application::UnicodeUTF8)
|
295
|
-
@label_4.text = Qt::Application.translate("Spi_settings", "Flash memory:", nil, Qt::Application::UnicodeUTF8)
|
296
|
-
@rbn_yes.text = Qt::Application.translate("Spi_settings", "Yes", nil, Qt::Application::UnicodeUTF8)
|
297
|
-
@label_5.text = ''
|
298
|
-
@rbn_no.text = Qt::Application.translate("Spi_settings", "No", nil, Qt::Application::UnicodeUTF8)
|
299
|
-
@btn_cancel.text = Qt::Application.translate("Spi_settings", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
300
|
-
@btn_save.text = Qt::Application.translate("Spi_settings", "Save", nil, Qt::Application::UnicodeUTF8)
|
301
|
-
end # retranslateUi
|
302
|
-
|
303
|
-
def retranslate_ui(spi_settings)
|
304
|
-
retranslateUi(spi_settings)
|
305
|
-
end
|
306
|
-
|
307
|
-
end
|
308
|
-
|
309
|
-
module Ui
|
310
|
-
class Spi_settings < Ui_Spi_settings
|
311
|
-
end
|
312
|
-
end # module Ui
|
313
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_spi_settings.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mars 8 11:15:08 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_Spi_settings
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :hl
|
13
|
+
attr_reader :lbl_chip
|
14
|
+
attr_reader :lbl_param
|
15
|
+
attr_reader :hs
|
16
|
+
attr_reader :hl2
|
17
|
+
attr_reader :fl
|
18
|
+
attr_reader :lbl_frequency
|
19
|
+
attr_reader :cbx_frequency
|
20
|
+
attr_reader :lbl_cmd_read
|
21
|
+
attr_reader :lie_cmd_read
|
22
|
+
attr_reader :lbl_cmd_erase
|
23
|
+
attr_reader :lie_cmd_erase
|
24
|
+
attr_reader :lbl_cmd_write
|
25
|
+
attr_reader :lie_cmd_write_enable
|
26
|
+
attr_reader :lbl_mode
|
27
|
+
attr_reader :cbx_mode
|
28
|
+
attr_reader :label
|
29
|
+
attr_reader :lie_cmd_write
|
30
|
+
attr_reader :fl2
|
31
|
+
attr_reader :lbl_total_size
|
32
|
+
attr_reader :lie_total_size
|
33
|
+
attr_reader :lbl_page_size
|
34
|
+
attr_reader :lie_page_size
|
35
|
+
attr_reader :label_2
|
36
|
+
attr_reader :lie_write_page_latency
|
37
|
+
attr_reader :label_3
|
38
|
+
attr_reader :lie_erase_time
|
39
|
+
attr_reader :label_4
|
40
|
+
attr_reader :rbn_yes
|
41
|
+
attr_reader :label_5
|
42
|
+
attr_reader :rbn_no
|
43
|
+
attr_reader :horizontalLayout
|
44
|
+
attr_reader :horizontalSpacer
|
45
|
+
attr_reader :btn_cancel
|
46
|
+
attr_reader :btn_save
|
47
|
+
|
48
|
+
def setupUi(spi_settings)
|
49
|
+
if spi_settings.objectName.nil?
|
50
|
+
spi_settings.objectName = "spi_settings"
|
51
|
+
end
|
52
|
+
spi_settings.resize(528, 237)
|
53
|
+
@gridLayout = Qt::GridLayout.new(spi_settings)
|
54
|
+
@gridLayout.objectName = "gridLayout"
|
55
|
+
@hl = Qt::HBoxLayout.new()
|
56
|
+
@hl.objectName = "hl"
|
57
|
+
@lbl_chip = Qt::Label.new(spi_settings)
|
58
|
+
@lbl_chip.objectName = "lbl_chip"
|
59
|
+
|
60
|
+
@hl.addWidget(@lbl_chip)
|
61
|
+
|
62
|
+
@lbl_param = Qt::Label.new(spi_settings)
|
63
|
+
@lbl_param.objectName = "lbl_param"
|
64
|
+
|
65
|
+
@hl.addWidget(@lbl_param)
|
66
|
+
|
67
|
+
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
68
|
+
|
69
|
+
@hl.addItem(@hs)
|
70
|
+
|
71
|
+
|
72
|
+
@gridLayout.addLayout(@hl, 1, 0, 1, 1)
|
73
|
+
|
74
|
+
@hl2 = Qt::HBoxLayout.new()
|
75
|
+
@hl2.objectName = "hl2"
|
76
|
+
@fl = Qt::FormLayout.new()
|
77
|
+
@fl.objectName = "fl"
|
78
|
+
@lbl_frequency = Qt::Label.new(spi_settings)
|
79
|
+
@lbl_frequency.objectName = "lbl_frequency"
|
80
|
+
|
81
|
+
@fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_frequency)
|
82
|
+
|
83
|
+
@cbx_frequency = Qt::ComboBox.new(spi_settings)
|
84
|
+
@cbx_frequency.objectName = "cbx_frequency"
|
85
|
+
@cbx_frequency.maximumSize = Qt::Size.new(100, 16777215)
|
86
|
+
|
87
|
+
@fl.setWidget(2, Qt::FormLayout::FieldRole, @cbx_frequency)
|
88
|
+
|
89
|
+
@lbl_cmd_read = Qt::Label.new(spi_settings)
|
90
|
+
@lbl_cmd_read.objectName = "lbl_cmd_read"
|
91
|
+
|
92
|
+
@fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_cmd_read)
|
93
|
+
|
94
|
+
@lie_cmd_read = Qt::LineEdit.new(spi_settings)
|
95
|
+
@lie_cmd_read.objectName = "lie_cmd_read"
|
96
|
+
@lie_cmd_read.maximumSize = Qt::Size.new(100, 16777215)
|
97
|
+
@lie_cmd_read.maxLength = 5
|
98
|
+
|
99
|
+
@fl.setWidget(3, Qt::FormLayout::FieldRole, @lie_cmd_read)
|
100
|
+
|
101
|
+
@lbl_cmd_erase = Qt::Label.new(spi_settings)
|
102
|
+
@lbl_cmd_erase.objectName = "lbl_cmd_erase"
|
103
|
+
|
104
|
+
@fl.setWidget(5, Qt::FormLayout::LabelRole, @lbl_cmd_erase)
|
105
|
+
|
106
|
+
@lie_cmd_erase = Qt::LineEdit.new(spi_settings)
|
107
|
+
@lie_cmd_erase.objectName = "lie_cmd_erase"
|
108
|
+
@lie_cmd_erase.maxLength = 5
|
109
|
+
|
110
|
+
@fl.setWidget(5, Qt::FormLayout::FieldRole, @lie_cmd_erase)
|
111
|
+
|
112
|
+
@lbl_cmd_write = Qt::Label.new(spi_settings)
|
113
|
+
@lbl_cmd_write.objectName = "lbl_cmd_write"
|
114
|
+
|
115
|
+
@fl.setWidget(6, Qt::FormLayout::LabelRole, @lbl_cmd_write)
|
116
|
+
|
117
|
+
@lie_cmd_write_enable = Qt::LineEdit.new(spi_settings)
|
118
|
+
@lie_cmd_write_enable.objectName = "lie_cmd_write_enable"
|
119
|
+
@lie_cmd_write_enable.maxLength = 5
|
120
|
+
|
121
|
+
@fl.setWidget(6, Qt::FormLayout::FieldRole, @lie_cmd_write_enable)
|
122
|
+
|
123
|
+
@lbl_mode = Qt::Label.new(spi_settings)
|
124
|
+
@lbl_mode.objectName = "lbl_mode"
|
125
|
+
|
126
|
+
@fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_mode)
|
127
|
+
|
128
|
+
@cbx_mode = Qt::ComboBox.new(spi_settings)
|
129
|
+
@cbx_mode.objectName = "cbx_mode"
|
130
|
+
@cbx_mode.maximumSize = Qt::Size.new(100, 16777215)
|
131
|
+
|
132
|
+
@fl.setWidget(1, Qt::FormLayout::FieldRole, @cbx_mode)
|
133
|
+
|
134
|
+
@label = Qt::Label.new(spi_settings)
|
135
|
+
@label.objectName = "label"
|
136
|
+
|
137
|
+
@fl.setWidget(4, Qt::FormLayout::LabelRole, @label)
|
138
|
+
|
139
|
+
@lie_cmd_write = Qt::LineEdit.new(spi_settings)
|
140
|
+
@lie_cmd_write.objectName = "lie_cmd_write"
|
141
|
+
|
142
|
+
@fl.setWidget(4, Qt::FormLayout::FieldRole, @lie_cmd_write)
|
143
|
+
|
144
|
+
|
145
|
+
@hl2.addLayout(@fl)
|
146
|
+
|
147
|
+
@fl2 = Qt::FormLayout.new()
|
148
|
+
@fl2.objectName = "fl2"
|
149
|
+
@lbl_total_size = Qt::Label.new(spi_settings)
|
150
|
+
@lbl_total_size.objectName = "lbl_total_size"
|
151
|
+
|
152
|
+
@fl2.setWidget(0, Qt::FormLayout::LabelRole, @lbl_total_size)
|
153
|
+
|
154
|
+
@lie_total_size = Qt::LineEdit.new(spi_settings)
|
155
|
+
@lie_total_size.objectName = "lie_total_size"
|
156
|
+
@lie_total_size.maximumSize = Qt::Size.new(100, 16777215)
|
157
|
+
@lie_total_size.maxLength = 20
|
158
|
+
|
159
|
+
@fl2.setWidget(0, Qt::FormLayout::FieldRole, @lie_total_size)
|
160
|
+
|
161
|
+
@lbl_page_size = Qt::Label.new(spi_settings)
|
162
|
+
@lbl_page_size.objectName = "lbl_page_size"
|
163
|
+
|
164
|
+
@fl2.setWidget(1, Qt::FormLayout::LabelRole, @lbl_page_size)
|
165
|
+
|
166
|
+
@lie_page_size = Qt::LineEdit.new(spi_settings)
|
167
|
+
@lie_page_size.objectName = "lie_page_size"
|
168
|
+
@lie_page_size.maximumSize = Qt::Size.new(100, 16777215)
|
169
|
+
@lie_page_size.maxLength = 10
|
170
|
+
|
171
|
+
@fl2.setWidget(1, Qt::FormLayout::FieldRole, @lie_page_size)
|
172
|
+
|
173
|
+
@label_2 = Qt::Label.new(spi_settings)
|
174
|
+
@label_2.objectName = "label_2"
|
175
|
+
|
176
|
+
@fl2.setWidget(2, Qt::FormLayout::LabelRole, @label_2)
|
177
|
+
|
178
|
+
@lie_write_page_latency = Qt::LineEdit.new(spi_settings)
|
179
|
+
@lie_write_page_latency.objectName = "lie_write_page_latency"
|
180
|
+
@lie_write_page_latency.maxLength = 10
|
181
|
+
|
182
|
+
@fl2.setWidget(2, Qt::FormLayout::FieldRole, @lie_write_page_latency)
|
183
|
+
|
184
|
+
@label_3 = Qt::Label.new(spi_settings)
|
185
|
+
@label_3.objectName = "label_3"
|
186
|
+
|
187
|
+
@fl2.setWidget(3, Qt::FormLayout::LabelRole, @label_3)
|
188
|
+
|
189
|
+
@lie_erase_time = Qt::LineEdit.new(spi_settings)
|
190
|
+
@lie_erase_time.objectName = "lie_erase_time"
|
191
|
+
@lie_erase_time.maxLength = 10
|
192
|
+
|
193
|
+
@fl2.setWidget(3, Qt::FormLayout::FieldRole, @lie_erase_time)
|
194
|
+
|
195
|
+
@label_4 = Qt::Label.new(spi_settings)
|
196
|
+
@label_4.objectName = "label_4"
|
197
|
+
|
198
|
+
@fl2.setWidget(4, Qt::FormLayout::LabelRole, @label_4)
|
199
|
+
|
200
|
+
@rbn_yes = Qt::RadioButton.new(spi_settings)
|
201
|
+
@rbn_yes.objectName = "rbn_yes"
|
202
|
+
@rbn_yes.checked = true
|
203
|
+
|
204
|
+
@fl2.setWidget(4, Qt::FormLayout::FieldRole, @rbn_yes)
|
205
|
+
|
206
|
+
@label_5 = Qt::Label.new(spi_settings)
|
207
|
+
@label_5.objectName = "label_5"
|
208
|
+
|
209
|
+
@fl2.setWidget(5, Qt::FormLayout::LabelRole, @label_5)
|
210
|
+
|
211
|
+
@rbn_no = Qt::RadioButton.new(spi_settings)
|
212
|
+
@rbn_no.objectName = "rbn_no"
|
213
|
+
|
214
|
+
@fl2.setWidget(5, Qt::FormLayout::FieldRole, @rbn_no)
|
215
|
+
|
216
|
+
|
217
|
+
@hl2.addLayout(@fl2)
|
218
|
+
|
219
|
+
|
220
|
+
@gridLayout.addLayout(@hl2, 2, 0, 1, 1)
|
221
|
+
|
222
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
223
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
224
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
225
|
+
|
226
|
+
@horizontalLayout.addItem(@horizontalSpacer)
|
227
|
+
|
228
|
+
@btn_cancel = Qt::PushButton.new(spi_settings)
|
229
|
+
@btn_cancel.objectName = "btn_cancel"
|
230
|
+
|
231
|
+
@horizontalLayout.addWidget(@btn_cancel)
|
232
|
+
|
233
|
+
@btn_save = Qt::PushButton.new(spi_settings)
|
234
|
+
@btn_save.objectName = "btn_save"
|
235
|
+
@btn_save.maximumSize = Qt::Size.new(16777215, 16777215)
|
236
|
+
|
237
|
+
@horizontalLayout.addWidget(@btn_save)
|
238
|
+
|
239
|
+
|
240
|
+
@gridLayout.addLayout(@horizontalLayout, 3, 0, 1, 1)
|
241
|
+
|
242
|
+
|
243
|
+
retranslateUi(spi_settings)
|
244
|
+
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), spi_settings, SLOT('save_settings()'))
|
245
|
+
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), spi_settings, SLOT('close()'))
|
246
|
+
|
247
|
+
Qt::MetaObject.connectSlotsByName(spi_settings)
|
248
|
+
end # setupUi
|
249
|
+
|
250
|
+
def setup_ui(spi_settings)
|
251
|
+
setupUi(spi_settings)
|
252
|
+
end
|
253
|
+
|
254
|
+
def retranslateUi(spi_settings)
|
255
|
+
spi_settings.windowTitle = Qt::Application.translate("Spi_settings", "Hardsploit - Bus settings", nil, Qt::Application::UnicodeUTF8)
|
256
|
+
@lbl_chip.text = Qt::Application.translate("Spi_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
257
|
+
@lbl_param.text = Qt::Application.translate("Spi_settings", "PARAMETERS", nil, Qt::Application::UnicodeUTF8)
|
258
|
+
@lbl_frequency.text = Qt::Application.translate("Spi_settings", "Frequency (Mhz):", nil, Qt::Application::UnicodeUTF8)
|
259
|
+
@cbx_frequency.insertItems(0, [Qt::Application.translate("Spi_settings", "25.00", nil, Qt::Application::UnicodeUTF8),
|
260
|
+
Qt::Application.translate("Spi_settings", "18.75", nil, Qt::Application::UnicodeUTF8),
|
261
|
+
Qt::Application.translate("Spi_settings", "15.00", nil, Qt::Application::UnicodeUTF8),
|
262
|
+
Qt::Application.translate("Spi_settings", "12.50", nil, Qt::Application::UnicodeUTF8),
|
263
|
+
Qt::Application.translate("Spi_settings", "10.71", nil, Qt::Application::UnicodeUTF8),
|
264
|
+
Qt::Application.translate("Spi_settings", "9.38", nil, Qt::Application::UnicodeUTF8),
|
265
|
+
Qt::Application.translate("Spi_settings", "7.50", nil, Qt::Application::UnicodeUTF8),
|
266
|
+
Qt::Application.translate("Spi_settings", "5.00", nil, Qt::Application::UnicodeUTF8),
|
267
|
+
Qt::Application.translate("Spi_settings", "3.95", nil, Qt::Application::UnicodeUTF8),
|
268
|
+
Qt::Application.translate("Spi_settings", "3.00", nil, Qt::Application::UnicodeUTF8),
|
269
|
+
Qt::Application.translate("Spi_settings", "2.03", nil, Qt::Application::UnicodeUTF8),
|
270
|
+
Qt::Application.translate("Spi_settings", "1.00", nil, Qt::Application::UnicodeUTF8),
|
271
|
+
Qt::Application.translate("Spi_settings", "0.50", nil, Qt::Application::UnicodeUTF8),
|
272
|
+
Qt::Application.translate("Spi_settings", "0.29", nil, Qt::Application::UnicodeUTF8)])
|
273
|
+
@lbl_cmd_read.text = Qt::Application.translate("Spi_settings", "Read command:", nil, Qt::Application::UnicodeUTF8)
|
274
|
+
@lie_cmd_read.text = ''
|
275
|
+
@lie_cmd_read.placeholderText = Qt::Application.translate("Spi_settings", "in decimal", nil, Qt::Application::UnicodeUTF8)
|
276
|
+
@lbl_cmd_erase.text = Qt::Application.translate("Spi_settings", "Erase command:", nil, Qt::Application::UnicodeUTF8)
|
277
|
+
@lie_cmd_erase.placeholderText = Qt::Application.translate("Spi_settings", "in decimal", nil, Qt::Application::UnicodeUTF8)
|
278
|
+
@lbl_cmd_write.text = Qt::Application.translate("Spi_settings", "Enable write command:", nil, Qt::Application::UnicodeUTF8)
|
279
|
+
@lie_cmd_write_enable.placeholderText = Qt::Application.translate("Spi_settings", "in decimal", nil, Qt::Application::UnicodeUTF8)
|
280
|
+
@lbl_mode.text = Qt::Application.translate("Spi_settings", "Mode:", nil, Qt::Application::UnicodeUTF8)
|
281
|
+
@cbx_mode.insertItems(0, [Qt::Application.translate("Spi_settings", "0", nil, Qt::Application::UnicodeUTF8),
|
282
|
+
Qt::Application.translate("Spi_settings", "1", nil, Qt::Application::UnicodeUTF8),
|
283
|
+
Qt::Application.translate("Spi_settings", "2", nil, Qt::Application::UnicodeUTF8),
|
284
|
+
Qt::Application.translate("Spi_settings", "3", nil, Qt::Application::UnicodeUTF8)])
|
285
|
+
@label.text = Qt::Application.translate("Spi_settings", "Write command:", nil, Qt::Application::UnicodeUTF8)
|
286
|
+
@lie_cmd_write.placeholderText = Qt::Application.translate("Spi_settings", "in decimal", nil, Qt::Application::UnicodeUTF8)
|
287
|
+
@lbl_total_size.text = Qt::Application.translate("Spi_settings", "Total size:", nil, Qt::Application::UnicodeUTF8)
|
288
|
+
@lie_total_size.placeholderText = Qt::Application.translate("Spi_settings", "8 bits word", nil, Qt::Application::UnicodeUTF8)
|
289
|
+
@lbl_page_size.text = Qt::Application.translate("Spi_settings", "Page size:", nil, Qt::Application::UnicodeUTF8)
|
290
|
+
@lie_page_size.placeholderText = Qt::Application.translate("Spi_settings", "in byte", nil, Qt::Application::UnicodeUTF8)
|
291
|
+
@label_2.text = Qt::Application.translate("Spi_settings", "Write page latency:", nil, Qt::Application::UnicodeUTF8)
|
292
|
+
@lie_write_page_latency.placeholderText = Qt::Application.translate("Spi_settings", "in miliseconds", nil, Qt::Application::UnicodeUTF8)
|
293
|
+
@label_3.text = Qt::Application.translate("Spi_settings", "Clear chip time:", nil, Qt::Application::UnicodeUTF8)
|
294
|
+
@lie_erase_time.placeholderText = Qt::Application.translate("Spi_settings", "in seconds", nil, Qt::Application::UnicodeUTF8)
|
295
|
+
@label_4.text = Qt::Application.translate("Spi_settings", "Flash memory:", nil, Qt::Application::UnicodeUTF8)
|
296
|
+
@rbn_yes.text = Qt::Application.translate("Spi_settings", "Yes", nil, Qt::Application::UnicodeUTF8)
|
297
|
+
@label_5.text = ''
|
298
|
+
@rbn_no.text = Qt::Application.translate("Spi_settings", "No", nil, Qt::Application::UnicodeUTF8)
|
299
|
+
@btn_cancel.text = Qt::Application.translate("Spi_settings", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
300
|
+
@btn_save.text = Qt::Application.translate("Spi_settings", "Save", nil, Qt::Application::UnicodeUTF8)
|
301
|
+
end # retranslateUi
|
302
|
+
|
303
|
+
def retranslate_ui(spi_settings)
|
304
|
+
retranslateUi(spi_settings)
|
305
|
+
end
|
306
|
+
|
307
|
+
end
|
308
|
+
|
309
|
+
module Ui
|
310
|
+
class Spi_settings < Ui_Spi_settings
|
311
|
+
end
|
312
|
+
end # module Ui
|
313
|
+
|