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,377 +1,378 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_chip_management.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_Chip_management
|
11
|
-
attr_reader :actionVersions
|
12
|
-
attr_reader :actionDatabase_file
|
13
|
-
attr_reader :actionError_log_file
|
14
|
-
attr_reader :actionUC
|
15
|
-
attr_reader :actionParallel
|
16
|
-
attr_reader :actionI2C
|
17
|
-
attr_reader :actionSPI
|
18
|
-
attr_reader :actionHardsploit_website
|
19
|
-
attr_reader :actionAdd
|
20
|
-
attr_reader :actionEdit
|
21
|
-
attr_reader :actionDelete
|
22
|
-
attr_reader :actionDisplay_firmware
|
23
|
-
attr_reader :actionWire
|
24
|
-
attr_reader :actionSignal_Mapper
|
25
|
-
attr_reader :actionExport
|
26
|
-
attr_reader :actionImport_2
|
27
|
-
attr_reader :actionTemplate
|
28
|
-
attr_reader :actionSWD
|
29
|
-
attr_reader :actionUART
|
30
|
-
attr_reader :cl_main
|
31
|
-
attr_reader :gridLayout
|
32
|
-
attr_reader :hl_main
|
33
|
-
attr_reader :tw_chip
|
34
|
-
attr_reader :vl_body
|
35
|
-
attr_reader :hl_filters
|
36
|
-
attr_reader :img_search
|
37
|
-
attr_reader :lie_search
|
38
|
-
attr_reader :cbx_manufacturer
|
39
|
-
attr_reader :cbx_type
|
40
|
-
attr_reader :vl_array
|
41
|
-
attr_reader :tbl_chip
|
42
|
-
attr_reader :hl_options
|
43
|
-
attr_reader :lbl_info
|
44
|
-
attr_reader :horizontalSpacer
|
45
|
-
attr_reader :btn_add
|
46
|
-
attr_reader :tbl_console
|
47
|
-
attr_reader :horizontalLayout
|
48
|
-
attr_reader :
|
49
|
-
attr_reader :
|
50
|
-
attr_reader :horizontalSpacer_2
|
51
|
-
attr_reader :menubar
|
52
|
-
attr_reader :menuMenu
|
53
|
-
attr_reader :menuUpload_firmware
|
54
|
-
attr_reader :menuComponent
|
55
|
-
attr_reader :menuAbout
|
56
|
-
attr_reader :menuPath
|
57
|
-
attr_reader :statusbar
|
58
|
-
|
59
|
-
def setupUi(chip_management)
|
60
|
-
if chip_management.objectName.nil?
|
61
|
-
chip_management.objectName = "chip_management"
|
62
|
-
end
|
63
|
-
chip_management.resize(710, 589)
|
64
|
-
chip_management.minimumSize = Qt::Size.new(710, 450)
|
65
|
-
icon = Qt::Icon.new
|
66
|
-
icon.addPixmap(Qt::Pixmap.new("../../../../.designer/images/logoOpale_ico.ico"), Qt::Icon::Normal, Qt::Icon::Off)
|
67
|
-
chip_management.windowIcon = icon
|
68
|
-
@actionVersions = Qt::Action.new(chip_management)
|
69
|
-
@actionVersions.objectName = "actionVersions"
|
70
|
-
@actionDatabase_file = Qt::Action.new(chip_management)
|
71
|
-
@actionDatabase_file.objectName = "actionDatabase_file"
|
72
|
-
@actionError_log_file = Qt::Action.new(chip_management)
|
73
|
-
@actionError_log_file.objectName = "actionError_log_file"
|
74
|
-
@actionUC = Qt::Action.new(chip_management)
|
75
|
-
@actionUC.objectName = "actionUC"
|
76
|
-
@actionParallel = Qt::Action.new(chip_management)
|
77
|
-
@actionParallel.objectName = "actionParallel"
|
78
|
-
@actionI2C = Qt::Action.new(chip_management)
|
79
|
-
@actionI2C.objectName = "actionI2C"
|
80
|
-
@actionSPI = Qt::Action.new(chip_management)
|
81
|
-
@actionSPI.objectName = "actionSPI"
|
82
|
-
@actionHardsploit_website = Qt::Action.new(chip_management)
|
83
|
-
@actionHardsploit_website.objectName = "actionHardsploit_website"
|
84
|
-
@actionAdd = Qt::Action.new(chip_management)
|
85
|
-
@actionAdd.objectName = "actionAdd"
|
86
|
-
@actionEdit = Qt::Action.new(chip_management)
|
87
|
-
@actionEdit.objectName = "actionEdit"
|
88
|
-
@actionDelete = Qt::Action.new(chip_management)
|
89
|
-
@actionDelete.objectName = "actionDelete"
|
90
|
-
@actionDisplay_firmware = Qt::Action.new(chip_management)
|
91
|
-
@actionDisplay_firmware.objectName = "actionDisplay_firmware"
|
92
|
-
@actionWire = Qt::Action.new(chip_management)
|
93
|
-
@actionWire.objectName = "actionWire"
|
94
|
-
@actionSignal_Mapper = Qt::Action.new(chip_management)
|
95
|
-
@actionSignal_Mapper.objectName = "actionSignal_Mapper"
|
96
|
-
@actionExport = Qt::Action.new(chip_management)
|
97
|
-
@actionExport.objectName = "actionExport"
|
98
|
-
@actionImport_2 = Qt::Action.new(chip_management)
|
99
|
-
@actionImport_2.objectName = "actionImport_2"
|
100
|
-
@actionTemplate = Qt::Action.new(chip_management)
|
101
|
-
@actionTemplate.objectName = "actionTemplate"
|
102
|
-
@actionSWD = Qt::Action.new(chip_management)
|
103
|
-
@actionSWD.objectName = "actionSWD"
|
104
|
-
@actionUART = Qt::Action.new(chip_management)
|
105
|
-
@actionUART.objectName = "actionUART"
|
106
|
-
@cl_main = Qt::Widget.new(chip_management)
|
107
|
-
@cl_main.objectName = "cl_main"
|
108
|
-
@gridLayout = Qt::GridLayout.new(@cl_main)
|
109
|
-
@gridLayout.objectName = "gridLayout"
|
110
|
-
@hl_main = Qt::HBoxLayout.new()
|
111
|
-
@hl_main.objectName = "hl_main"
|
112
|
-
@tw_chip = Qt::TreeWidget.new(@cl_main)
|
113
|
-
@tw_chip.objectName = "tw_chip"
|
114
|
-
@tw_chip.minimumSize = Qt::Size.new(200, 0)
|
115
|
-
@tw_chip.maximumSize = Qt::Size.new(150, 16777215)
|
116
|
-
|
117
|
-
@hl_main.addWidget(@tw_chip)
|
118
|
-
|
119
|
-
@vl_body = Qt::VBoxLayout.new()
|
120
|
-
@vl_body.objectName = "vl_body"
|
121
|
-
@hl_filters = Qt::HBoxLayout.new()
|
122
|
-
@hl_filters.objectName = "hl_filters"
|
123
|
-
@img_search = Qt::Label.new(@cl_main)
|
124
|
-
@img_search.objectName = "img_search"
|
125
|
-
|
126
|
-
@hl_filters.addWidget(@img_search)
|
127
|
-
|
128
|
-
@lie_search = Qt::LineEdit.new(@cl_main)
|
129
|
-
@lie_search.objectName = "lie_search"
|
130
|
-
|
131
|
-
@hl_filters.addWidget(@lie_search)
|
132
|
-
|
133
|
-
@cbx_manufacturer = Qt::ComboBox.new(@cl_main)
|
134
|
-
@cbx_manufacturer.objectName = "cbx_manufacturer"
|
135
|
-
@cbx_manufacturer.minimumSize = Qt::Size.new(
|
136
|
-
@cbx_manufacturer.maximumSize = Qt::Size.new(16777215, 16777215)
|
137
|
-
|
138
|
-
@hl_filters.addWidget(@cbx_manufacturer)
|
139
|
-
|
140
|
-
@cbx_type = Qt::ComboBox.new(@cl_main)
|
141
|
-
@cbx_type.objectName = "cbx_type"
|
142
|
-
@cbx_type.minimumSize = Qt::Size.new(
|
143
|
-
@cbx_type.maximumSize = Qt::Size.new(100, 16777215)
|
144
|
-
|
145
|
-
@hl_filters.addWidget(@cbx_type)
|
146
|
-
|
147
|
-
|
148
|
-
@vl_body.addLayout(@hl_filters)
|
149
|
-
|
150
|
-
@vl_array = Qt::VBoxLayout.new()
|
151
|
-
@vl_array.objectName = "vl_array"
|
152
|
-
@tbl_chip = Qt::TableWidget.new(@cl_main)
|
153
|
-
@tbl_chip.objectName = "tbl_chip"
|
154
|
-
|
155
|
-
@vl_array.addWidget(@tbl_chip)
|
156
|
-
|
157
|
-
|
158
|
-
@vl_body.addLayout(@vl_array)
|
159
|
-
|
160
|
-
@hl_options = Qt::HBoxLayout.new()
|
161
|
-
@hl_options.objectName = "hl_options"
|
162
|
-
@lbl_info = Qt::Label.new(@cl_main)
|
163
|
-
@lbl_info.objectName = "lbl_info"
|
164
|
-
|
165
|
-
@hl_options.addWidget(@lbl_info)
|
166
|
-
|
167
|
-
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
168
|
-
|
169
|
-
@hl_options.addItem(@horizontalSpacer)
|
170
|
-
|
171
|
-
@btn_add = Qt::PushButton.new(@cl_main)
|
172
|
-
@btn_add.objectName = "btn_add"
|
173
|
-
|
174
|
-
@hl_options.addWidget(@btn_add)
|
175
|
-
|
176
|
-
|
177
|
-
@vl_body.addLayout(@hl_options)
|
178
|
-
|
179
|
-
|
180
|
-
@hl_main.addLayout(@vl_body)
|
181
|
-
|
182
|
-
|
183
|
-
@gridLayout.addLayout(@hl_main, 2, 0, 1, 1)
|
184
|
-
|
185
|
-
@tbl_console = Qt::TableWidget.new(@cl_main)
|
186
|
-
@tbl_console.objectName = "tbl_console"
|
187
|
-
@tbl_console.minimumSize = Qt::Size.new(0, 100)
|
188
|
-
@tbl_console.maximumSize = Qt::Size.new(16777215, 100)
|
189
|
-
|
190
|
-
@gridLayout.addWidget(@tbl_console, 6, 0, 1, 1)
|
191
|
-
|
192
|
-
@horizontalLayout = Qt::HBoxLayout.new()
|
193
|
-
@horizontalLayout.objectName = "horizontalLayout"
|
194
|
-
@
|
195
|
-
@
|
196
|
-
@
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
@
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
@menubar
|
215
|
-
@menubar.
|
216
|
-
@
|
217
|
-
@menuMenu
|
218
|
-
@
|
219
|
-
@menuUpload_firmware
|
220
|
-
@
|
221
|
-
@menuComponent
|
222
|
-
@
|
223
|
-
@menuAbout
|
224
|
-
@
|
225
|
-
@menuPath
|
226
|
-
|
227
|
-
|
228
|
-
@statusbar
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
@menubar.addAction(@
|
233
|
-
@
|
234
|
-
@menuMenu.addAction(@
|
235
|
-
@menuMenu.addAction(@
|
236
|
-
@
|
237
|
-
@menuUpload_firmware.addAction(@
|
238
|
-
@menuUpload_firmware.addAction(@
|
239
|
-
@menuUpload_firmware.addAction(@
|
240
|
-
@menuUpload_firmware.addAction(@
|
241
|
-
@menuUpload_firmware.addAction(@
|
242
|
-
@menuUpload_firmware.
|
243
|
-
@menuUpload_firmware.
|
244
|
-
@
|
245
|
-
@menuComponent.addAction(@
|
246
|
-
@menuComponent.addAction(@
|
247
|
-
@menuComponent.addAction(@
|
248
|
-
@menuComponent.addAction(@
|
249
|
-
@menuComponent.addAction(@
|
250
|
-
@menuComponent.addAction(@
|
251
|
-
@
|
252
|
-
@menuAbout.addAction(@
|
253
|
-
@menuAbout.addAction(@
|
254
|
-
@
|
255
|
-
@menuPath.addAction(@
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
Qt::Object.connect(@
|
260
|
-
Qt::Object.connect(@
|
261
|
-
Qt::Object.connect(@
|
262
|
-
Qt::Object.connect(@
|
263
|
-
Qt::Object.connect(@
|
264
|
-
Qt::Object.connect(@
|
265
|
-
Qt::Object.connect(@
|
266
|
-
Qt::Object.connect(@
|
267
|
-
Qt::Object.connect(@
|
268
|
-
Qt::Object.connect(@
|
269
|
-
Qt::Object.connect(@
|
270
|
-
Qt::Object.connect(@
|
271
|
-
Qt::Object.connect(@btn_add, SIGNAL('clicked()'), chip_management, SLOT('add_chip()'))
|
272
|
-
Qt::Object.connect(@tw_chip, SIGNAL('itemDoubleClicked(QTreeWidgetItem*,int)'), chip_management, SLOT('load_chip_action(QTreeWidgetItem*,int)'))
|
273
|
-
Qt::Object.connect(@actionDisplay_firmware, SIGNAL('triggered()'), chip_management, SLOT('display_current_firmware()'))
|
274
|
-
Qt::Object.connect(@actionAdd, SIGNAL('triggered()'), chip_management, SLOT('add_chip()'))
|
275
|
-
Qt::Object.connect(@actionDelete, SIGNAL('triggered()'), chip_management, SLOT('delete_chip()'))
|
276
|
-
Qt::Object.connect(@actionEdit, SIGNAL('triggered()'), chip_management, SLOT('edit_chip()'))
|
277
|
-
Qt::Object.connect(@actionWire, SIGNAL('triggered()'), chip_management, SLOT('wire_chip()'))
|
278
|
-
Qt::Object.connect(@
|
279
|
-
Qt::Object.connect(@actionSignal_Mapper, SIGNAL('triggered()'), chip_management, SLOT('open_signal_mapper()'))
|
280
|
-
Qt::Object.connect(@actionExport, SIGNAL('triggered()'), chip_management, SLOT('export()'))
|
281
|
-
Qt::Object.connect(@actionImport_2, SIGNAL('triggered()'), chip_management, SLOT('import()'))
|
282
|
-
Qt::Object.connect(@actionTemplate, SIGNAL('triggered()'), chip_management, SLOT('add_chip()'))
|
283
|
-
Qt::Object.connect(@actionSWD, SIGNAL('triggered()'), chip_management, SLOT('set_firmware()'))
|
284
|
-
Qt::Object.connect(@actionUART, SIGNAL('triggered()'), chip_management, SLOT('set_firmware()'))
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
@
|
297
|
-
@
|
298
|
-
@
|
299
|
-
@
|
300
|
-
@
|
301
|
-
@
|
302
|
-
@
|
303
|
-
@
|
304
|
-
@actionAdd.
|
305
|
-
@
|
306
|
-
@actionEdit.
|
307
|
-
@
|
308
|
-
@actionDelete.
|
309
|
-
@
|
310
|
-
@actionDisplay_firmware.
|
311
|
-
@
|
312
|
-
@actionWire.
|
313
|
-
@
|
314
|
-
@
|
315
|
-
@actionExport.
|
316
|
-
@
|
317
|
-
@actionImport_2.
|
318
|
-
@
|
319
|
-
@actionTemplate.
|
320
|
-
@
|
321
|
-
@
|
322
|
-
@
|
323
|
-
@
|
324
|
-
@
|
325
|
-
@
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
__colItem
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
__colItem1
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
__colItem2
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
__colItem3
|
344
|
-
|
345
|
-
@
|
346
|
-
@
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
__colItem4
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
__colItem5
|
357
|
-
|
358
|
-
@
|
359
|
-
@
|
360
|
-
@
|
361
|
-
@
|
362
|
-
@
|
363
|
-
@
|
364
|
-
@
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
end
|
377
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_chip_management.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mars 8 11:15:02 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_Chip_management
|
11
|
+
attr_reader :actionVersions
|
12
|
+
attr_reader :actionDatabase_file
|
13
|
+
attr_reader :actionError_log_file
|
14
|
+
attr_reader :actionUC
|
15
|
+
attr_reader :actionParallel
|
16
|
+
attr_reader :actionI2C
|
17
|
+
attr_reader :actionSPI
|
18
|
+
attr_reader :actionHardsploit_website
|
19
|
+
attr_reader :actionAdd
|
20
|
+
attr_reader :actionEdit
|
21
|
+
attr_reader :actionDelete
|
22
|
+
attr_reader :actionDisplay_firmware
|
23
|
+
attr_reader :actionWire
|
24
|
+
attr_reader :actionSignal_Mapper
|
25
|
+
attr_reader :actionExport
|
26
|
+
attr_reader :actionImport_2
|
27
|
+
attr_reader :actionTemplate
|
28
|
+
attr_reader :actionSWD
|
29
|
+
attr_reader :actionUART
|
30
|
+
attr_reader :cl_main
|
31
|
+
attr_reader :gridLayout
|
32
|
+
attr_reader :hl_main
|
33
|
+
attr_reader :tw_chip
|
34
|
+
attr_reader :vl_body
|
35
|
+
attr_reader :hl_filters
|
36
|
+
attr_reader :img_search
|
37
|
+
attr_reader :lie_search
|
38
|
+
attr_reader :cbx_manufacturer
|
39
|
+
attr_reader :cbx_type
|
40
|
+
attr_reader :vl_array
|
41
|
+
attr_reader :tbl_chip
|
42
|
+
attr_reader :hl_options
|
43
|
+
attr_reader :lbl_info
|
44
|
+
attr_reader :horizontalSpacer
|
45
|
+
attr_reader :btn_add
|
46
|
+
attr_reader :tbl_console
|
47
|
+
attr_reader :horizontalLayout
|
48
|
+
attr_reader :btn_show_console
|
49
|
+
attr_reader :btn_clear_console
|
50
|
+
attr_reader :horizontalSpacer_2
|
51
|
+
attr_reader :menubar
|
52
|
+
attr_reader :menuMenu
|
53
|
+
attr_reader :menuUpload_firmware
|
54
|
+
attr_reader :menuComponent
|
55
|
+
attr_reader :menuAbout
|
56
|
+
attr_reader :menuPath
|
57
|
+
attr_reader :statusbar
|
58
|
+
|
59
|
+
def setupUi(chip_management)
|
60
|
+
if chip_management.objectName.nil?
|
61
|
+
chip_management.objectName = "chip_management"
|
62
|
+
end
|
63
|
+
chip_management.resize(710, 589)
|
64
|
+
chip_management.minimumSize = Qt::Size.new(710, 450)
|
65
|
+
icon = Qt::Icon.new
|
66
|
+
icon.addPixmap(Qt::Pixmap.new("../../../../.designer/images/logoOpale_ico.ico"), Qt::Icon::Normal, Qt::Icon::Off)
|
67
|
+
chip_management.windowIcon = icon
|
68
|
+
@actionVersions = Qt::Action.new(chip_management)
|
69
|
+
@actionVersions.objectName = "actionVersions"
|
70
|
+
@actionDatabase_file = Qt::Action.new(chip_management)
|
71
|
+
@actionDatabase_file.objectName = "actionDatabase_file"
|
72
|
+
@actionError_log_file = Qt::Action.new(chip_management)
|
73
|
+
@actionError_log_file.objectName = "actionError_log_file"
|
74
|
+
@actionUC = Qt::Action.new(chip_management)
|
75
|
+
@actionUC.objectName = "actionUC"
|
76
|
+
@actionParallel = Qt::Action.new(chip_management)
|
77
|
+
@actionParallel.objectName = "actionParallel"
|
78
|
+
@actionI2C = Qt::Action.new(chip_management)
|
79
|
+
@actionI2C.objectName = "actionI2C"
|
80
|
+
@actionSPI = Qt::Action.new(chip_management)
|
81
|
+
@actionSPI.objectName = "actionSPI"
|
82
|
+
@actionHardsploit_website = Qt::Action.new(chip_management)
|
83
|
+
@actionHardsploit_website.objectName = "actionHardsploit_website"
|
84
|
+
@actionAdd = Qt::Action.new(chip_management)
|
85
|
+
@actionAdd.objectName = "actionAdd"
|
86
|
+
@actionEdit = Qt::Action.new(chip_management)
|
87
|
+
@actionEdit.objectName = "actionEdit"
|
88
|
+
@actionDelete = Qt::Action.new(chip_management)
|
89
|
+
@actionDelete.objectName = "actionDelete"
|
90
|
+
@actionDisplay_firmware = Qt::Action.new(chip_management)
|
91
|
+
@actionDisplay_firmware.objectName = "actionDisplay_firmware"
|
92
|
+
@actionWire = Qt::Action.new(chip_management)
|
93
|
+
@actionWire.objectName = "actionWire"
|
94
|
+
@actionSignal_Mapper = Qt::Action.new(chip_management)
|
95
|
+
@actionSignal_Mapper.objectName = "actionSignal_Mapper"
|
96
|
+
@actionExport = Qt::Action.new(chip_management)
|
97
|
+
@actionExport.objectName = "actionExport"
|
98
|
+
@actionImport_2 = Qt::Action.new(chip_management)
|
99
|
+
@actionImport_2.objectName = "actionImport_2"
|
100
|
+
@actionTemplate = Qt::Action.new(chip_management)
|
101
|
+
@actionTemplate.objectName = "actionTemplate"
|
102
|
+
@actionSWD = Qt::Action.new(chip_management)
|
103
|
+
@actionSWD.objectName = "actionSWD"
|
104
|
+
@actionUART = Qt::Action.new(chip_management)
|
105
|
+
@actionUART.objectName = "actionUART"
|
106
|
+
@cl_main = Qt::Widget.new(chip_management)
|
107
|
+
@cl_main.objectName = "cl_main"
|
108
|
+
@gridLayout = Qt::GridLayout.new(@cl_main)
|
109
|
+
@gridLayout.objectName = "gridLayout"
|
110
|
+
@hl_main = Qt::HBoxLayout.new()
|
111
|
+
@hl_main.objectName = "hl_main"
|
112
|
+
@tw_chip = Qt::TreeWidget.new(@cl_main)
|
113
|
+
@tw_chip.objectName = "tw_chip"
|
114
|
+
@tw_chip.minimumSize = Qt::Size.new(200, 0)
|
115
|
+
@tw_chip.maximumSize = Qt::Size.new(150, 16777215)
|
116
|
+
|
117
|
+
@hl_main.addWidget(@tw_chip)
|
118
|
+
|
119
|
+
@vl_body = Qt::VBoxLayout.new()
|
120
|
+
@vl_body.objectName = "vl_body"
|
121
|
+
@hl_filters = Qt::HBoxLayout.new()
|
122
|
+
@hl_filters.objectName = "hl_filters"
|
123
|
+
@img_search = Qt::Label.new(@cl_main)
|
124
|
+
@img_search.objectName = "img_search"
|
125
|
+
|
126
|
+
@hl_filters.addWidget(@img_search)
|
127
|
+
|
128
|
+
@lie_search = Qt::LineEdit.new(@cl_main)
|
129
|
+
@lie_search.objectName = "lie_search"
|
130
|
+
|
131
|
+
@hl_filters.addWidget(@lie_search)
|
132
|
+
|
133
|
+
@cbx_manufacturer = Qt::ComboBox.new(@cl_main)
|
134
|
+
@cbx_manufacturer.objectName = "cbx_manufacturer"
|
135
|
+
@cbx_manufacturer.minimumSize = Qt::Size.new(87, 0)
|
136
|
+
@cbx_manufacturer.maximumSize = Qt::Size.new(16777215, 16777215)
|
137
|
+
|
138
|
+
@hl_filters.addWidget(@cbx_manufacturer)
|
139
|
+
|
140
|
+
@cbx_type = Qt::ComboBox.new(@cl_main)
|
141
|
+
@cbx_type.objectName = "cbx_type"
|
142
|
+
@cbx_type.minimumSize = Qt::Size.new(87, 0)
|
143
|
+
@cbx_type.maximumSize = Qt::Size.new(100, 16777215)
|
144
|
+
|
145
|
+
@hl_filters.addWidget(@cbx_type)
|
146
|
+
|
147
|
+
|
148
|
+
@vl_body.addLayout(@hl_filters)
|
149
|
+
|
150
|
+
@vl_array = Qt::VBoxLayout.new()
|
151
|
+
@vl_array.objectName = "vl_array"
|
152
|
+
@tbl_chip = Qt::TableWidget.new(@cl_main)
|
153
|
+
@tbl_chip.objectName = "tbl_chip"
|
154
|
+
|
155
|
+
@vl_array.addWidget(@tbl_chip)
|
156
|
+
|
157
|
+
|
158
|
+
@vl_body.addLayout(@vl_array)
|
159
|
+
|
160
|
+
@hl_options = Qt::HBoxLayout.new()
|
161
|
+
@hl_options.objectName = "hl_options"
|
162
|
+
@lbl_info = Qt::Label.new(@cl_main)
|
163
|
+
@lbl_info.objectName = "lbl_info"
|
164
|
+
|
165
|
+
@hl_options.addWidget(@lbl_info)
|
166
|
+
|
167
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
168
|
+
|
169
|
+
@hl_options.addItem(@horizontalSpacer)
|
170
|
+
|
171
|
+
@btn_add = Qt::PushButton.new(@cl_main)
|
172
|
+
@btn_add.objectName = "btn_add"
|
173
|
+
|
174
|
+
@hl_options.addWidget(@btn_add)
|
175
|
+
|
176
|
+
|
177
|
+
@vl_body.addLayout(@hl_options)
|
178
|
+
|
179
|
+
|
180
|
+
@hl_main.addLayout(@vl_body)
|
181
|
+
|
182
|
+
|
183
|
+
@gridLayout.addLayout(@hl_main, 2, 0, 1, 1)
|
184
|
+
|
185
|
+
@tbl_console = Qt::TableWidget.new(@cl_main)
|
186
|
+
@tbl_console.objectName = "tbl_console"
|
187
|
+
@tbl_console.minimumSize = Qt::Size.new(0, 100)
|
188
|
+
@tbl_console.maximumSize = Qt::Size.new(16777215, 100)
|
189
|
+
|
190
|
+
@gridLayout.addWidget(@tbl_console, 6, 0, 1, 1)
|
191
|
+
|
192
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
193
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
194
|
+
@btn_show_console = Qt::PushButton.new(@cl_main)
|
195
|
+
@btn_show_console.objectName = "btn_show_console"
|
196
|
+
@btn_show_console.checkable = true
|
197
|
+
@btn_show_console.checked = true
|
198
|
+
|
199
|
+
@horizontalLayout.addWidget(@btn_show_console)
|
200
|
+
|
201
|
+
@btn_clear_console = Qt::PushButton.new(@cl_main)
|
202
|
+
@btn_clear_console.objectName = "btn_clear_console"
|
203
|
+
|
204
|
+
@horizontalLayout.addWidget(@btn_clear_console)
|
205
|
+
|
206
|
+
@horizontalSpacer_2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
207
|
+
|
208
|
+
@horizontalLayout.addItem(@horizontalSpacer_2)
|
209
|
+
|
210
|
+
|
211
|
+
@gridLayout.addLayout(@horizontalLayout, 4, 0, 1, 1)
|
212
|
+
|
213
|
+
chip_management.centralWidget = @cl_main
|
214
|
+
@menubar = Qt::MenuBar.new(chip_management)
|
215
|
+
@menubar.objectName = "menubar"
|
216
|
+
@menubar.geometry = Qt::Rect.new(0, 0, 710, 21)
|
217
|
+
@menuMenu = Qt::Menu.new(@menubar)
|
218
|
+
@menuMenu.objectName = "menuMenu"
|
219
|
+
@menuUpload_firmware = Qt::Menu.new(@menuMenu)
|
220
|
+
@menuUpload_firmware.objectName = "menuUpload_firmware"
|
221
|
+
@menuComponent = Qt::Menu.new(@menuMenu)
|
222
|
+
@menuComponent.objectName = "menuComponent"
|
223
|
+
@menuAbout = Qt::Menu.new(@menubar)
|
224
|
+
@menuAbout.objectName = "menuAbout"
|
225
|
+
@menuPath = Qt::Menu.new(@menuAbout)
|
226
|
+
@menuPath.objectName = "menuPath"
|
227
|
+
chip_management.setMenuBar(@menubar)
|
228
|
+
@statusbar = Qt::StatusBar.new(chip_management)
|
229
|
+
@statusbar.objectName = "statusbar"
|
230
|
+
chip_management.statusBar = @statusbar
|
231
|
+
|
232
|
+
@menubar.addAction(@menuMenu.menuAction())
|
233
|
+
@menubar.addAction(@menuAbout.menuAction())
|
234
|
+
@menuMenu.addAction(@menuUpload_firmware.menuAction())
|
235
|
+
@menuMenu.addAction(@menuComponent.menuAction())
|
236
|
+
@menuMenu.addAction(@actionSignal_Mapper)
|
237
|
+
@menuUpload_firmware.addAction(@actionDisplay_firmware)
|
238
|
+
@menuUpload_firmware.addAction(@actionParallel)
|
239
|
+
@menuUpload_firmware.addAction(@actionI2C)
|
240
|
+
@menuUpload_firmware.addAction(@actionSPI)
|
241
|
+
@menuUpload_firmware.addAction(@actionSWD)
|
242
|
+
@menuUpload_firmware.addAction(@actionUART)
|
243
|
+
@menuUpload_firmware.addSeparator()
|
244
|
+
@menuUpload_firmware.addAction(@actionUC)
|
245
|
+
@menuComponent.addAction(@actionAdd)
|
246
|
+
@menuComponent.addAction(@actionEdit)
|
247
|
+
@menuComponent.addAction(@actionWire)
|
248
|
+
@menuComponent.addAction(@actionDelete)
|
249
|
+
@menuComponent.addAction(@actionTemplate)
|
250
|
+
@menuComponent.addAction(@actionImport_2)
|
251
|
+
@menuComponent.addAction(@actionExport)
|
252
|
+
@menuAbout.addAction(@actionHardsploit_website)
|
253
|
+
@menuAbout.addAction(@actionVersions)
|
254
|
+
@menuAbout.addAction(@menuPath.menuAction())
|
255
|
+
@menuPath.addAction(@actionDatabase_file)
|
256
|
+
@menuPath.addAction(@actionError_log_file)
|
257
|
+
|
258
|
+
retranslateUi(chip_management)
|
259
|
+
Qt::Object.connect(@tbl_chip, SIGNAL('cellDoubleClicked(int,int)'), chip_management, SLOT('load_tree(int,int)'))
|
260
|
+
Qt::Object.connect(@lie_search, SIGNAL('textEdited(QString)'), chip_management, SLOT('feed_chip_array()'))
|
261
|
+
Qt::Object.connect(@cbx_manufacturer, SIGNAL('currentIndexChanged(int)'), chip_management, SLOT('feed_chip_array()'))
|
262
|
+
Qt::Object.connect(@cbx_type, SIGNAL('currentIndexChanged(int)'), chip_management, SLOT('feed_chip_array()'))
|
263
|
+
Qt::Object.connect(@actionError_log_file, SIGNAL('triggered()'), chip_management, SLOT('get_log_path()'))
|
264
|
+
Qt::Object.connect(@actionHardsploit_website, SIGNAL('triggered()'), chip_management, SLOT('get_hardsploit_website()'))
|
265
|
+
Qt::Object.connect(@actionI2C, SIGNAL('triggered()'), chip_management, SLOT('set_firmware()'))
|
266
|
+
Qt::Object.connect(@actionParallel, SIGNAL('triggered()'), chip_management, SLOT('set_firmware()'))
|
267
|
+
Qt::Object.connect(@actionSPI, SIGNAL('triggered()'), chip_management, SLOT('set_firmware()'))
|
268
|
+
Qt::Object.connect(@actionUC, SIGNAL('triggered()'), chip_management, SLOT('update_uc_firmware()'))
|
269
|
+
Qt::Object.connect(@actionVersions, SIGNAL('triggered()'), chip_management, SLOT('get_hardsploit_versions()'))
|
270
|
+
Qt::Object.connect(@actionDatabase_file, SIGNAL('triggered()'), chip_management, SLOT('get_db_path()'))
|
271
|
+
Qt::Object.connect(@btn_add, SIGNAL('clicked()'), chip_management, SLOT('add_chip()'))
|
272
|
+
Qt::Object.connect(@tw_chip, SIGNAL('itemDoubleClicked(QTreeWidgetItem*,int)'), chip_management, SLOT('load_chip_action(QTreeWidgetItem*,int)'))
|
273
|
+
Qt::Object.connect(@actionDisplay_firmware, SIGNAL('triggered()'), chip_management, SLOT('display_current_firmware()'))
|
274
|
+
Qt::Object.connect(@actionAdd, SIGNAL('triggered()'), chip_management, SLOT('add_chip()'))
|
275
|
+
Qt::Object.connect(@actionDelete, SIGNAL('triggered()'), chip_management, SLOT('delete_chip()'))
|
276
|
+
Qt::Object.connect(@actionEdit, SIGNAL('triggered()'), chip_management, SLOT('edit_chip()'))
|
277
|
+
Qt::Object.connect(@actionWire, SIGNAL('triggered()'), chip_management, SLOT('wire_chip()'))
|
278
|
+
Qt::Object.connect(@btn_clear_console, SIGNAL('clicked()'), @tbl_console, SLOT('clearContents()'))
|
279
|
+
Qt::Object.connect(@actionSignal_Mapper, SIGNAL('triggered()'), chip_management, SLOT('open_signal_mapper()'))
|
280
|
+
Qt::Object.connect(@actionExport, SIGNAL('triggered()'), chip_management, SLOT('export()'))
|
281
|
+
Qt::Object.connect(@actionImport_2, SIGNAL('triggered()'), chip_management, SLOT('import()'))
|
282
|
+
Qt::Object.connect(@actionTemplate, SIGNAL('triggered()'), chip_management, SLOT('add_chip()'))
|
283
|
+
Qt::Object.connect(@actionSWD, SIGNAL('triggered()'), chip_management, SLOT('set_firmware()'))
|
284
|
+
Qt::Object.connect(@actionUART, SIGNAL('triggered()'), chip_management, SLOT('set_firmware()'))
|
285
|
+
Qt::Object.connect(@btn_show_console, SIGNAL('toggled(bool)'), chip_management, SLOT('console_view()'))
|
286
|
+
|
287
|
+
Qt::MetaObject.connectSlotsByName(chip_management)
|
288
|
+
end # setupUi
|
289
|
+
|
290
|
+
def setup_ui(chip_management)
|
291
|
+
setupUi(chip_management)
|
292
|
+
end
|
293
|
+
|
294
|
+
def retranslateUi(chip_management)
|
295
|
+
chip_management.windowTitle = Qt::Application.translate("Chip_management", "Hardsploit - Chip management", nil, Qt::Application::UnicodeUTF8)
|
296
|
+
@actionVersions.text = Qt::Application.translate("Chip_management", "Versions", nil, Qt::Application::UnicodeUTF8)
|
297
|
+
@actionDatabase_file.text = Qt::Application.translate("Chip_management", "Database file", nil, Qt::Application::UnicodeUTF8)
|
298
|
+
@actionError_log_file.text = Qt::Application.translate("Chip_management", "Error log file", nil, Qt::Application::UnicodeUTF8)
|
299
|
+
@actionUC.text = Qt::Application.translate("Chip_management", "Update uC", nil, Qt::Application::UnicodeUTF8)
|
300
|
+
@actionParallel.text = Qt::Application.translate("Chip_management", "Set parallel", nil, Qt::Application::UnicodeUTF8)
|
301
|
+
@actionI2C.text = Qt::Application.translate("Chip_management", "Set I\302\262C", nil, Qt::Application::UnicodeUTF8)
|
302
|
+
@actionSPI.text = Qt::Application.translate("Chip_management", "Set SPI", nil, Qt::Application::UnicodeUTF8)
|
303
|
+
@actionHardsploit_website.text = Qt::Application.translate("Chip_management", "Hardsploit website", nil, Qt::Application::UnicodeUTF8)
|
304
|
+
@actionAdd.text = Qt::Application.translate("Chip_management", "New", nil, Qt::Application::UnicodeUTF8)
|
305
|
+
@actionAdd.shortcut = Qt::Application.translate("Chip_management", "Ctrl+A", nil, Qt::Application::UnicodeUTF8)
|
306
|
+
@actionEdit.text = Qt::Application.translate("Chip_management", "Edit", nil, Qt::Application::UnicodeUTF8)
|
307
|
+
@actionEdit.shortcut = Qt::Application.translate("Chip_management", "Ctrl+E", nil, Qt::Application::UnicodeUTF8)
|
308
|
+
@actionDelete.text = Qt::Application.translate("Chip_management", "Delete", nil, Qt::Application::UnicodeUTF8)
|
309
|
+
@actionDelete.shortcut = Qt::Application.translate("Chip_management", "Ctrl+D", nil, Qt::Application::UnicodeUTF8)
|
310
|
+
@actionDisplay_firmware.text = Qt::Application.translate("Chip_management", "Display current firmware", nil, Qt::Application::UnicodeUTF8)
|
311
|
+
@actionDisplay_firmware.shortcut = Qt::Application.translate("Chip_management", "Ctrl+F", nil, Qt::Application::UnicodeUTF8)
|
312
|
+
@actionWire.text = Qt::Application.translate("Chip_management", "Wire", nil, Qt::Application::UnicodeUTF8)
|
313
|
+
@actionWire.shortcut = Qt::Application.translate("Chip_management", "Ctrl+W", nil, Qt::Application::UnicodeUTF8)
|
314
|
+
@actionSignal_Mapper.text = Qt::Application.translate("Chip_management", "Signal Mapper", nil, Qt::Application::UnicodeUTF8)
|
315
|
+
@actionExport.text = Qt::Application.translate("Chip_management", "Export", nil, Qt::Application::UnicodeUTF8)
|
316
|
+
@actionExport.shortcut = Qt::Application.translate("Chip_management", "Ctrl+C", nil, Qt::Application::UnicodeUTF8)
|
317
|
+
@actionImport_2.text = Qt::Application.translate("Chip_management", "Import", nil, Qt::Application::UnicodeUTF8)
|
318
|
+
@actionImport_2.shortcut = Qt::Application.translate("Chip_management", "Ctrl+V", nil, Qt::Application::UnicodeUTF8)
|
319
|
+
@actionTemplate.text = Qt::Application.translate("Chip_management", "Template", nil, Qt::Application::UnicodeUTF8)
|
320
|
+
@actionTemplate.shortcut = Qt::Application.translate("Chip_management", "Ctrl+T", nil, Qt::Application::UnicodeUTF8)
|
321
|
+
@actionSWD.text = Qt::Application.translate("Chip_management", "Set SWD", nil, Qt::Application::UnicodeUTF8)
|
322
|
+
@actionUART.text = Qt::Application.translate("Chip_management", "Set UART", nil, Qt::Application::UnicodeUTF8)
|
323
|
+
@tw_chip.headerItem.setText(0, Qt::Application.translate("Chip_management", "Current chip", nil, Qt::Application::UnicodeUTF8))
|
324
|
+
@img_search.text = Qt::Application.translate("Chip_management", "Search", nil, Qt::Application::UnicodeUTF8)
|
325
|
+
@cbx_manufacturer.insertItems(0, [Qt::Application.translate("Chip_management", "Manufacturer...", nil, Qt::Application::UnicodeUTF8)])
|
326
|
+
@cbx_type.insertItems(0, [Qt::Application.translate("Chip_management", "Type...", nil, Qt::Application::UnicodeUTF8)])
|
327
|
+
if @tbl_chip.columnCount < 4
|
328
|
+
@tbl_chip.columnCount = 4
|
329
|
+
end
|
330
|
+
|
331
|
+
__colItem = Qt::TableWidgetItem.new
|
332
|
+
__colItem.setText(Qt::Application.translate("Chip_management", "Reference", nil, Qt::Application::UnicodeUTF8))
|
333
|
+
@tbl_chip.setHorizontalHeaderItem(0, __colItem)
|
334
|
+
|
335
|
+
__colItem1 = Qt::TableWidgetItem.new
|
336
|
+
__colItem1.setText(Qt::Application.translate("Chip_management", "Type", nil, Qt::Application::UnicodeUTF8))
|
337
|
+
@tbl_chip.setHorizontalHeaderItem(1, __colItem1)
|
338
|
+
|
339
|
+
__colItem2 = Qt::TableWidgetItem.new
|
340
|
+
__colItem2.setText(Qt::Application.translate("Chip_management", "Manufacturer", nil, Qt::Application::UnicodeUTF8))
|
341
|
+
@tbl_chip.setHorizontalHeaderItem(2, __colItem2)
|
342
|
+
|
343
|
+
__colItem3 = Qt::TableWidgetItem.new
|
344
|
+
__colItem3.setText(Qt::Application.translate("Chip_management", "BUS", nil, Qt::Application::UnicodeUTF8))
|
345
|
+
@tbl_chip.setHorizontalHeaderItem(3, __colItem3)
|
346
|
+
@lbl_info.text = Qt::Application.translate("Chip_management", "Double click a chip reference to load it", nil, Qt::Application::UnicodeUTF8)
|
347
|
+
@btn_add.text = Qt::Application.translate("Chip_management", "Create component", nil, Qt::Application::UnicodeUTF8)
|
348
|
+
if @tbl_console.columnCount < 2
|
349
|
+
@tbl_console.columnCount = 2
|
350
|
+
end
|
351
|
+
|
352
|
+
__colItem4 = Qt::TableWidgetItem.new
|
353
|
+
__colItem4.setText(Qt::Application.translate("Chip_management", "Date / Time", nil, Qt::Application::UnicodeUTF8))
|
354
|
+
@tbl_console.setHorizontalHeaderItem(0, __colItem4)
|
355
|
+
|
356
|
+
__colItem5 = Qt::TableWidgetItem.new
|
357
|
+
__colItem5.setText(Qt::Application.translate("Chip_management", "Message", nil, Qt::Application::UnicodeUTF8))
|
358
|
+
@tbl_console.setHorizontalHeaderItem(1, __colItem5)
|
359
|
+
@btn_show_console.text = Qt::Application.translate("Chip_management", "Console", nil, Qt::Application::UnicodeUTF8)
|
360
|
+
@btn_clear_console.text = Qt::Application.translate("Chip_management", "Clear", nil, Qt::Application::UnicodeUTF8)
|
361
|
+
@menuMenu.title = Qt::Application.translate("Chip_management", "Menu", nil, Qt::Application::UnicodeUTF8)
|
362
|
+
@menuUpload_firmware.title = Qt::Application.translate("Chip_management", "Firmware...", nil, Qt::Application::UnicodeUTF8)
|
363
|
+
@menuComponent.title = Qt::Application.translate("Chip_management", "Component...", nil, Qt::Application::UnicodeUTF8)
|
364
|
+
@menuAbout.title = Qt::Application.translate("Chip_management", "About", nil, Qt::Application::UnicodeUTF8)
|
365
|
+
@menuPath.title = Qt::Application.translate("Chip_management", "Path...", nil, Qt::Application::UnicodeUTF8)
|
366
|
+
end # retranslateUi
|
367
|
+
|
368
|
+
def retranslate_ui(chip_management)
|
369
|
+
retranslateUi(chip_management)
|
370
|
+
end
|
371
|
+
|
372
|
+
end
|
373
|
+
|
374
|
+
module Ui
|
375
|
+
class Chip_management < Ui_Chip_management
|
376
|
+
end
|
377
|
+
end # module Ui
|
378
|
+
|