hardsploit_gui 2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +22 -0
- data/Rakefile +1 -0
- data/bin/hardsploit_gui +3 -0
- data/lib/Firmware/FPGA/I2C/I2C_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_I2C_INTERACT.rpd +0 -0
- data/lib/Firmware/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd +0 -0
- data/lib/Firmware/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd +0 -0
- data/lib/Firmware/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd +0 -0
- data/lib/Firmware/FPGA/TEST/TEST_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_TEST_INTERACT.rpd +0 -0
- data/lib/Firmware/FPGA/VersionFPGA.rb +5 -0
- data/lib/Firmware/UC/HARDSPLOIT_FIRMWARE_UC.bin +0 -0
- data/lib/Firmware/UC/VersionUC.rb +12 -0
- data/lib/HardsploitAPI/HardsploitAPI.rb +134 -0
- data/lib/HardsploitAPI/HardsploitAPI_CONSTANT.rb +145 -0
- data/lib/HardsploitAPI/HardsploitAPI_FIRMWARE.rb +311 -0
- data/lib/HardsploitAPI/HardsploitAPI_I2C.rb +218 -0
- data/lib/HardsploitAPI/HardsploitAPI_NO_MUX_PARALLELE_MEMORY.rb +229 -0
- data/lib/HardsploitAPI/HardsploitAPI_SPI.rb +179 -0
- data/lib/HardsploitAPI/HardsploitAPI_TEST_INTERACT.rb +98 -0
- data/lib/HardsploitAPI/HardsploitAPI_USB_COMMUNICATION.rb +149 -0
- data/lib/HardsploitAPI/LICENSE.txt +674 -0
- data/lib/HardsploitAPI/README.md +22 -0
- data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD.rb +249 -0
- data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_DEBUG.rb +102 -0
- data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_MEM_AP.rb +78 -0
- data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_STM32.rb +104 -0
- data/lib/HardsploitAPI/TRADEMARK +3 -0
- data/lib/LICENSE.txt +674 -0
- data/lib/README.md +22 -0
- data/lib/TRADEMARK +3 -0
- data/lib/class/Chip_editor.rb +448 -0
- data/lib/class/Command_editor.rb +268 -0
- data/lib/class/Command_table.rb +239 -0
- data/lib/class/Console.rb +28 -0
- data/lib/class/Export_manager.rb +124 -0
- data/lib/class/Firmware.rb +29 -0
- data/lib/class/Generic_commands.rb +275 -0
- data/lib/class/HardsploitGUI.rb +462 -0
- data/lib/class/I2C/I2c_command.rb +48 -0
- data/lib/class/I2C/I2c_export.rb +121 -0
- data/lib/class/I2C/I2c_import.rb +92 -0
- data/lib/class/I2C/I2c_settings.rb +117 -0
- data/lib/class/PARALLEL/Parallel_export.rb +146 -0
- data/lib/class/PARALLEL/Parallel_import.rb +88 -0
- data/lib/class/PARALLEL/Parallel_settings.rb +102 -0
- data/lib/class/SPI/Spi_export.rb +141 -0
- data/lib/class/SPI/Spi_import.rb +112 -0
- data/lib/class/SPI/Spi_settings.rb +90 -0
- data/lib/class/Wire_helper.rb +246 -0
- data/lib/db/associations.rb +125 -0
- data/lib/db/hs.db +0 -0
- data/lib/gui/gui_chip_editor.rb +355 -0
- data/lib/gui/gui_chip_management.rb +372 -0
- data/lib/gui/gui_command_editor.rb +218 -0
- data/lib/gui/gui_export_manager.rb +93 -0
- data/lib/gui/gui_generic_commands.rb +164 -0
- data/lib/gui/gui_generic_export.rb +148 -0
- data/lib/gui/gui_generic_import.rb +126 -0
- data/lib/gui/gui_i2c_command.rb +115 -0
- data/lib/gui/gui_i2c_settings.rb +201 -0
- data/lib/gui/gui_parallel_settings.rb +194 -0
- data/lib/gui/gui_spi_import.rb +126 -0
- data/lib/gui/gui_spi_settings.rb +187 -0
- data/lib/gui/gui_wire_helper.rb +99 -0
- data/lib/gui_designer/gui_chip_editor.ui +553 -0
- data/lib/gui_designer/gui_chip_management.ui +842 -0
- data/lib/gui_designer/gui_command_editor.ui +347 -0
- data/lib/gui_designer/gui_export_manager.ui +115 -0
- data/lib/gui_designer/gui_generic_commands.ui +258 -0
- data/lib/gui_designer/gui_generic_export.ui +179 -0
- data/lib/gui_designer/gui_generic_import.ui +142 -0
- data/lib/gui_designer/gui_i2c_command.ui +145 -0
- data/lib/gui_designer/gui_i2c_settings.ui +261 -0
- data/lib/gui_designer/gui_parallel_settings.ui +244 -0
- data/lib/gui_designer/gui_processing.ui +81 -0
- data/lib/gui_designer/gui_spi_settings.ui +321 -0
- data/lib/gui_designer/gui_wire_helper.ui +117 -0
- data/lib/hardsploit.rb +122 -0
- data/lib/images/search.png +0 -0
- data/lib/logs/error.log +0 -0
- metadata +236 -0
@@ -0,0 +1,372 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_chip_management.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. déc. 16 13:41:26 2015
|
5
|
+
** by: Qt User Interface Compiler version 4.8.6
|
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 :actionExport_current
|
23
|
+
attr_reader :actionDisplay_firmware
|
24
|
+
attr_reader :actionWire
|
25
|
+
attr_reader :actionSWD_detect
|
26
|
+
attr_reader :actionSWD_export
|
27
|
+
attr_reader :actionSWD_import
|
28
|
+
attr_reader :actionSWD_erase
|
29
|
+
attr_reader :cl_main
|
30
|
+
attr_reader :gridLayout
|
31
|
+
attr_reader :hl_main
|
32
|
+
attr_reader :tw_chip
|
33
|
+
attr_reader :vl_body
|
34
|
+
attr_reader :hl_filters
|
35
|
+
attr_reader :img_search
|
36
|
+
attr_reader :lie_search
|
37
|
+
attr_reader :cbx_manufacturer
|
38
|
+
attr_reader :cbx_type
|
39
|
+
attr_reader :vl_array
|
40
|
+
attr_reader :tbl_chip
|
41
|
+
attr_reader :hl_options
|
42
|
+
attr_reader :lbl_info
|
43
|
+
attr_reader :horizontalSpacer
|
44
|
+
attr_reader :btn_add
|
45
|
+
attr_reader :tbl_console
|
46
|
+
attr_reader :horizontalLayout
|
47
|
+
attr_reader :check_console
|
48
|
+
attr_reader :pushButton
|
49
|
+
attr_reader :horizontalSpacer_2
|
50
|
+
attr_reader :menubar
|
51
|
+
attr_reader :menuMenu
|
52
|
+
attr_reader :menuUpload_firmware
|
53
|
+
attr_reader :menuComponent
|
54
|
+
attr_reader :menuAbout
|
55
|
+
attr_reader :menuPath
|
56
|
+
attr_reader :menuSWD
|
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
|
+
@actionExport_current = Qt::Action.new(chip_management)
|
91
|
+
@actionExport_current.objectName = "actionExport_current"
|
92
|
+
@actionDisplay_firmware = Qt::Action.new(chip_management)
|
93
|
+
@actionDisplay_firmware.objectName = "actionDisplay_firmware"
|
94
|
+
@actionWire = Qt::Action.new(chip_management)
|
95
|
+
@actionWire.objectName = "actionWire"
|
96
|
+
@actionSWD_detect = Qt::Action.new(chip_management)
|
97
|
+
@actionSWD_detect.objectName = "actionSWD_detect"
|
98
|
+
@actionSWD_export = Qt::Action.new(chip_management)
|
99
|
+
@actionSWD_export.objectName = "actionSWD_export"
|
100
|
+
@actionSWD_import = Qt::Action.new(chip_management)
|
101
|
+
@actionSWD_import.objectName = "actionSWD_import"
|
102
|
+
@actionSWD_erase = Qt::Action.new(chip_management)
|
103
|
+
@actionSWD_erase.objectName = "actionSWD_erase"
|
104
|
+
@cl_main = Qt::Widget.new(chip_management)
|
105
|
+
@cl_main.objectName = "cl_main"
|
106
|
+
@gridLayout = Qt::GridLayout.new(@cl_main)
|
107
|
+
@gridLayout.objectName = "gridLayout"
|
108
|
+
@hl_main = Qt::HBoxLayout.new()
|
109
|
+
@hl_main.objectName = "hl_main"
|
110
|
+
@tw_chip = Qt::TreeWidget.new(@cl_main)
|
111
|
+
@tw_chip.objectName = "tw_chip"
|
112
|
+
@tw_chip.minimumSize = Qt::Size.new(150, 0)
|
113
|
+
@tw_chip.maximumSize = Qt::Size.new(150, 16777215)
|
114
|
+
|
115
|
+
@hl_main.addWidget(@tw_chip)
|
116
|
+
|
117
|
+
@vl_body = Qt::VBoxLayout.new()
|
118
|
+
@vl_body.objectName = "vl_body"
|
119
|
+
@hl_filters = Qt::HBoxLayout.new()
|
120
|
+
@hl_filters.objectName = "hl_filters"
|
121
|
+
@img_search = Qt::Label.new(@cl_main)
|
122
|
+
@img_search.objectName = "img_search"
|
123
|
+
|
124
|
+
@hl_filters.addWidget(@img_search)
|
125
|
+
|
126
|
+
@lie_search = Qt::LineEdit.new(@cl_main)
|
127
|
+
@lie_search.objectName = "lie_search"
|
128
|
+
|
129
|
+
@hl_filters.addWidget(@lie_search)
|
130
|
+
|
131
|
+
@cbx_manufacturer = Qt::ComboBox.new(@cl_main)
|
132
|
+
@cbx_manufacturer.objectName = "cbx_manufacturer"
|
133
|
+
@cbx_manufacturer.minimumSize = Qt::Size.new(200, 0)
|
134
|
+
@cbx_manufacturer.maximumSize = Qt::Size.new(16777215, 16777215)
|
135
|
+
|
136
|
+
@hl_filters.addWidget(@cbx_manufacturer)
|
137
|
+
|
138
|
+
@cbx_type = Qt::ComboBox.new(@cl_main)
|
139
|
+
@cbx_type.objectName = "cbx_type"
|
140
|
+
@cbx_type.minimumSize = Qt::Size.new(100, 0)
|
141
|
+
@cbx_type.maximumSize = Qt::Size.new(100, 16777215)
|
142
|
+
|
143
|
+
@hl_filters.addWidget(@cbx_type)
|
144
|
+
|
145
|
+
|
146
|
+
@vl_body.addLayout(@hl_filters)
|
147
|
+
|
148
|
+
@vl_array = Qt::VBoxLayout.new()
|
149
|
+
@vl_array.objectName = "vl_array"
|
150
|
+
@tbl_chip = Qt::TableWidget.new(@cl_main)
|
151
|
+
@tbl_chip.objectName = "tbl_chip"
|
152
|
+
|
153
|
+
@vl_array.addWidget(@tbl_chip)
|
154
|
+
|
155
|
+
|
156
|
+
@vl_body.addLayout(@vl_array)
|
157
|
+
|
158
|
+
@hl_options = Qt::HBoxLayout.new()
|
159
|
+
@hl_options.objectName = "hl_options"
|
160
|
+
@lbl_info = Qt::Label.new(@cl_main)
|
161
|
+
@lbl_info.objectName = "lbl_info"
|
162
|
+
|
163
|
+
@hl_options.addWidget(@lbl_info)
|
164
|
+
|
165
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
166
|
+
|
167
|
+
@hl_options.addItem(@horizontalSpacer)
|
168
|
+
|
169
|
+
@btn_add = Qt::PushButton.new(@cl_main)
|
170
|
+
@btn_add.objectName = "btn_add"
|
171
|
+
|
172
|
+
@hl_options.addWidget(@btn_add)
|
173
|
+
|
174
|
+
|
175
|
+
@vl_body.addLayout(@hl_options)
|
176
|
+
|
177
|
+
|
178
|
+
@hl_main.addLayout(@vl_body)
|
179
|
+
|
180
|
+
|
181
|
+
@gridLayout.addLayout(@hl_main, 2, 0, 1, 1)
|
182
|
+
|
183
|
+
@tbl_console = Qt::TableWidget.new(@cl_main)
|
184
|
+
@tbl_console.objectName = "tbl_console"
|
185
|
+
@tbl_console.minimumSize = Qt::Size.new(0, 100)
|
186
|
+
@tbl_console.maximumSize = Qt::Size.new(16777215, 100)
|
187
|
+
|
188
|
+
@gridLayout.addWidget(@tbl_console, 6, 0, 1, 1)
|
189
|
+
|
190
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
191
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
192
|
+
@check_console = Qt::CheckBox.new(@cl_main)
|
193
|
+
@check_console.objectName = "check_console"
|
194
|
+
@check_console.checked = true
|
195
|
+
|
196
|
+
@horizontalLayout.addWidget(@check_console)
|
197
|
+
|
198
|
+
@pushButton = Qt::PushButton.new(@cl_main)
|
199
|
+
@pushButton.objectName = "pushButton"
|
200
|
+
|
201
|
+
@horizontalLayout.addWidget(@pushButton)
|
202
|
+
|
203
|
+
@horizontalSpacer_2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
204
|
+
|
205
|
+
@horizontalLayout.addItem(@horizontalSpacer_2)
|
206
|
+
|
207
|
+
|
208
|
+
@gridLayout.addLayout(@horizontalLayout, 4, 0, 1, 1)
|
209
|
+
|
210
|
+
chip_management.centralWidget = @cl_main
|
211
|
+
@menubar = Qt::MenuBar.new(chip_management)
|
212
|
+
@menubar.objectName = "menubar"
|
213
|
+
@menubar.geometry = Qt::Rect.new(0, 0, 710, 21)
|
214
|
+
@menuMenu = Qt::Menu.new(@menubar)
|
215
|
+
@menuMenu.objectName = "menuMenu"
|
216
|
+
@menuUpload_firmware = Qt::Menu.new(@menuMenu)
|
217
|
+
@menuUpload_firmware.objectName = "menuUpload_firmware"
|
218
|
+
@menuComponent = Qt::Menu.new(@menuMenu)
|
219
|
+
@menuComponent.objectName = "menuComponent"
|
220
|
+
@menuAbout = Qt::Menu.new(@menubar)
|
221
|
+
@menuAbout.objectName = "menuAbout"
|
222
|
+
@menuPath = Qt::Menu.new(@menuAbout)
|
223
|
+
@menuPath.objectName = "menuPath"
|
224
|
+
@menuSWD = Qt::Menu.new(@menubar)
|
225
|
+
@menuSWD.objectName = "menuSWD"
|
226
|
+
chip_management.setMenuBar(@menubar)
|
227
|
+
@statusbar = Qt::StatusBar.new(chip_management)
|
228
|
+
@statusbar.objectName = "statusbar"
|
229
|
+
chip_management.statusBar = @statusbar
|
230
|
+
|
231
|
+
@menubar.addAction(@menuMenu.menuAction())
|
232
|
+
@menubar.addAction(@menuSWD.menuAction())
|
233
|
+
@menubar.addAction(@menuAbout.menuAction())
|
234
|
+
@menuMenu.addAction(@menuUpload_firmware.menuAction())
|
235
|
+
@menuMenu.addAction(@menuComponent.menuAction())
|
236
|
+
@menuUpload_firmware.addAction(@actionDisplay_firmware)
|
237
|
+
@menuUpload_firmware.addAction(@actionParallel)
|
238
|
+
@menuUpload_firmware.addAction(@actionI2C)
|
239
|
+
@menuUpload_firmware.addAction(@actionSPI)
|
240
|
+
@menuUpload_firmware.addSeparator()
|
241
|
+
@menuUpload_firmware.addAction(@actionUC)
|
242
|
+
@menuComponent.addAction(@actionAdd)
|
243
|
+
@menuComponent.addAction(@actionEdit)
|
244
|
+
@menuComponent.addAction(@actionDelete)
|
245
|
+
@menuComponent.addAction(@actionExport_current)
|
246
|
+
@menuComponent.addAction(@actionWire)
|
247
|
+
@menuAbout.addAction(@actionHardsploit_website)
|
248
|
+
@menuAbout.addAction(@actionVersions)
|
249
|
+
@menuAbout.addAction(@menuPath.menuAction())
|
250
|
+
@menuPath.addAction(@actionDatabase_file)
|
251
|
+
@menuPath.addAction(@actionError_log_file)
|
252
|
+
@menuSWD.addAction(@actionSWD_detect)
|
253
|
+
@menuSWD.addAction(@actionSWD_export)
|
254
|
+
@menuSWD.addAction(@actionSWD_import)
|
255
|
+
@menuSWD.addAction(@actionSWD_erase)
|
256
|
+
|
257
|
+
retranslateUi(chip_management)
|
258
|
+
Qt::Object.connect(@tbl_chip, SIGNAL('cellDoubleClicked(int,int)'), chip_management, SLOT('load_tree(int,int)'))
|
259
|
+
Qt::Object.connect(@lie_search, SIGNAL('textEdited(QString)'), chip_management, SLOT('feed_chip_array()'))
|
260
|
+
Qt::Object.connect(@cbx_manufacturer, SIGNAL('currentIndexChanged(int)'), chip_management, SLOT('feed_chip_array()'))
|
261
|
+
Qt::Object.connect(@cbx_type, SIGNAL('currentIndexChanged(int)'), chip_management, SLOT('feed_chip_array()'))
|
262
|
+
Qt::Object.connect(@actionError_log_file, SIGNAL('triggered()'), chip_management, SLOT('get_log_path()'))
|
263
|
+
Qt::Object.connect(@actionHardsploit_website, SIGNAL('triggered()'), chip_management, SLOT('get_hardsploit_website()'))
|
264
|
+
Qt::Object.connect(@actionI2C, SIGNAL('triggered()'), chip_management, SLOT('set_firmware()'))
|
265
|
+
Qt::Object.connect(@actionParallel, SIGNAL('triggered()'), chip_management, SLOT('set_firmware()'))
|
266
|
+
Qt::Object.connect(@actionSPI, SIGNAL('triggered()'), chip_management, SLOT('set_firmware()'))
|
267
|
+
Qt::Object.connect(@actionUC, SIGNAL('triggered()'), chip_management, SLOT('update_uc_firmware()'))
|
268
|
+
Qt::Object.connect(@actionVersions, SIGNAL('triggered()'), chip_management, SLOT('get_hardsploit_versions()'))
|
269
|
+
Qt::Object.connect(@actionDatabase_file, SIGNAL('triggered()'), chip_management, SLOT('get_db_path()'))
|
270
|
+
Qt::Object.connect(@check_console, SIGNAL('toggled(bool)'), chip_management, SLOT('console_view()'))
|
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(@pushButton, SIGNAL('clicked()'), @tbl_console, SLOT('clearContents()'))
|
279
|
+
Qt::Object.connect(@actionSWD_detect, SIGNAL('triggered()'), chip_management, SLOT('swd_detect()'))
|
280
|
+
Qt::Object.connect(@actionSWD_export, SIGNAL('triggered()'), chip_management, SLOT('swd_export()'))
|
281
|
+
Qt::Object.connect(@actionSWD_import, SIGNAL('triggered()'), chip_management, SLOT('swd_import()'))
|
282
|
+
Qt::Object.connect(@actionSWD_erase, SIGNAL('triggered()'), chip_management, SLOT('swd_erase()'))
|
283
|
+
|
284
|
+
Qt::MetaObject.connectSlotsByName(chip_management)
|
285
|
+
end # setupUi
|
286
|
+
|
287
|
+
def setup_ui(chip_management)
|
288
|
+
setupUi(chip_management)
|
289
|
+
end
|
290
|
+
|
291
|
+
def retranslateUi(chip_management)
|
292
|
+
chip_management.windowTitle = Qt::Application.translate("Chip_management", "Hardsploit - Chip management", nil, Qt::Application::UnicodeUTF8)
|
293
|
+
@actionVersions.text = Qt::Application.translate("Chip_management", "Versions", nil, Qt::Application::UnicodeUTF8)
|
294
|
+
@actionDatabase_file.text = Qt::Application.translate("Chip_management", "Database file", nil, Qt::Application::UnicodeUTF8)
|
295
|
+
@actionError_log_file.text = Qt::Application.translate("Chip_management", "Error log file", nil, Qt::Application::UnicodeUTF8)
|
296
|
+
@actionUC.text = Qt::Application.translate("Chip_management", "Update uC", nil, Qt::Application::UnicodeUTF8)
|
297
|
+
@actionParallel.text = Qt::Application.translate("Chip_management", "Set parallel", nil, Qt::Application::UnicodeUTF8)
|
298
|
+
@actionI2C.text = Qt::Application.translate("Chip_management", "Set I\302\262C", nil, Qt::Application::UnicodeUTF8)
|
299
|
+
@actionSPI.text = Qt::Application.translate("Chip_management", "Set SPI", nil, Qt::Application::UnicodeUTF8)
|
300
|
+
@actionHardsploit_website.text = Qt::Application.translate("Chip_management", "Hardsploit website", nil, Qt::Application::UnicodeUTF8)
|
301
|
+
@actionAdd.text = Qt::Application.translate("Chip_management", "Add new", nil, Qt::Application::UnicodeUTF8)
|
302
|
+
@actionAdd.shortcut = Qt::Application.translate("Chip_management", "Ctrl+A", nil, Qt::Application::UnicodeUTF8)
|
303
|
+
@actionEdit.text = Qt::Application.translate("Chip_management", "Edit", nil, Qt::Application::UnicodeUTF8)
|
304
|
+
@actionEdit.shortcut = Qt::Application.translate("Chip_management", "Ctrl+E", nil, Qt::Application::UnicodeUTF8)
|
305
|
+
@actionDelete.text = Qt::Application.translate("Chip_management", "Delete", nil, Qt::Application::UnicodeUTF8)
|
306
|
+
@actionDelete.shortcut = Qt::Application.translate("Chip_management", "Ctrl+D", nil, Qt::Application::UnicodeUTF8)
|
307
|
+
@actionExport_current.text = Qt::Application.translate("Chip_management", "Export", nil, Qt::Application::UnicodeUTF8)
|
308
|
+
@actionDisplay_firmware.text = Qt::Application.translate("Chip_management", "Display current firmware", nil, Qt::Application::UnicodeUTF8)
|
309
|
+
@actionDisplay_firmware.shortcut = Qt::Application.translate("Chip_management", "Ctrl+F", nil, Qt::Application::UnicodeUTF8)
|
310
|
+
@actionWire.text = Qt::Application.translate("Chip_management", "Wire", nil, Qt::Application::UnicodeUTF8)
|
311
|
+
@actionWire.shortcut = Qt::Application.translate("Chip_management", "Ctrl+W", nil, Qt::Application::UnicodeUTF8)
|
312
|
+
@actionSWD_detect.text = Qt::Application.translate("Chip_management", "Detect", nil, Qt::Application::UnicodeUTF8)
|
313
|
+
@actionSWD_export.text = Qt::Application.translate("Chip_management", "Export (Dump)", nil, Qt::Application::UnicodeUTF8)
|
314
|
+
@actionSWD_import.text = Qt::Application.translate("Chip_management", "Import (Write)", nil, Qt::Application::UnicodeUTF8)
|
315
|
+
@actionSWD_erase.text = Qt::Application.translate("Chip_management", "Erase", nil, Qt::Application::UnicodeUTF8)
|
316
|
+
@tw_chip.headerItem.setText(0, Qt::Application.translate("Chip_management", "Current chip", nil, Qt::Application::UnicodeUTF8))
|
317
|
+
@img_search.text = Qt::Application.translate("Chip_management", "Search", nil, Qt::Application::UnicodeUTF8)
|
318
|
+
@cbx_manufacturer.insertItems(0, [Qt::Application.translate("Chip_management", "Manufacturer...", nil, Qt::Application::UnicodeUTF8)])
|
319
|
+
@cbx_type.insertItems(0, [Qt::Application.translate("Chip_management", "Type...", nil, Qt::Application::UnicodeUTF8)])
|
320
|
+
if @tbl_chip.columnCount < 4
|
321
|
+
@tbl_chip.columnCount = 4
|
322
|
+
end
|
323
|
+
|
324
|
+
__colItem = Qt::TableWidgetItem.new
|
325
|
+
__colItem.setText(Qt::Application.translate("Chip_management", "Reference", nil, Qt::Application::UnicodeUTF8))
|
326
|
+
@tbl_chip.setHorizontalHeaderItem(0, __colItem)
|
327
|
+
|
328
|
+
__colItem1 = Qt::TableWidgetItem.new
|
329
|
+
__colItem1.setText(Qt::Application.translate("Chip_management", "Type", nil, Qt::Application::UnicodeUTF8))
|
330
|
+
@tbl_chip.setHorizontalHeaderItem(1, __colItem1)
|
331
|
+
|
332
|
+
__colItem2 = Qt::TableWidgetItem.new
|
333
|
+
__colItem2.setText(Qt::Application.translate("Chip_management", "Manufacturer", nil, Qt::Application::UnicodeUTF8))
|
334
|
+
@tbl_chip.setHorizontalHeaderItem(2, __colItem2)
|
335
|
+
|
336
|
+
__colItem3 = Qt::TableWidgetItem.new
|
337
|
+
__colItem3.setText(Qt::Application.translate("Chip_management", "BUS", nil, Qt::Application::UnicodeUTF8))
|
338
|
+
@tbl_chip.setHorizontalHeaderItem(3, __colItem3)
|
339
|
+
@lbl_info.text = Qt::Application.translate("Chip_management", "Double click a chip reference to load it", nil, Qt::Application::UnicodeUTF8)
|
340
|
+
@btn_add.text = Qt::Application.translate("Chip_management", "Create component", nil, Qt::Application::UnicodeUTF8)
|
341
|
+
if @tbl_console.columnCount < 2
|
342
|
+
@tbl_console.columnCount = 2
|
343
|
+
end
|
344
|
+
|
345
|
+
__colItem4 = Qt::TableWidgetItem.new
|
346
|
+
__colItem4.setText(Qt::Application.translate("Chip_management", "Date / Time", nil, Qt::Application::UnicodeUTF8))
|
347
|
+
@tbl_console.setHorizontalHeaderItem(0, __colItem4)
|
348
|
+
|
349
|
+
__colItem5 = Qt::TableWidgetItem.new
|
350
|
+
__colItem5.setText(Qt::Application.translate("Chip_management", "Message", nil, Qt::Application::UnicodeUTF8))
|
351
|
+
@tbl_console.setHorizontalHeaderItem(1, __colItem5)
|
352
|
+
@check_console.text = Qt::Application.translate("Chip_management", "Console:", nil, Qt::Application::UnicodeUTF8)
|
353
|
+
@pushButton.text = Qt::Application.translate("Chip_management", "Clear", nil, Qt::Application::UnicodeUTF8)
|
354
|
+
@menuMenu.title = Qt::Application.translate("Chip_management", "Menu", nil, Qt::Application::UnicodeUTF8)
|
355
|
+
@menuUpload_firmware.title = Qt::Application.translate("Chip_management", "Firmware...", nil, Qt::Application::UnicodeUTF8)
|
356
|
+
@menuComponent.title = Qt::Application.translate("Chip_management", "Component...", nil, Qt::Application::UnicodeUTF8)
|
357
|
+
@menuAbout.title = Qt::Application.translate("Chip_management", "About", nil, Qt::Application::UnicodeUTF8)
|
358
|
+
@menuPath.title = Qt::Application.translate("Chip_management", "Path...", nil, Qt::Application::UnicodeUTF8)
|
359
|
+
@menuSWD.title = Qt::Application.translate("Chip_management", "SWD", nil, Qt::Application::UnicodeUTF8)
|
360
|
+
end # retranslateUi
|
361
|
+
|
362
|
+
def retranslate_ui(chip_management)
|
363
|
+
retranslateUi(chip_management)
|
364
|
+
end
|
365
|
+
|
366
|
+
end
|
367
|
+
|
368
|
+
module Ui
|
369
|
+
class Chip_management < Ui_Chip_management
|
370
|
+
end
|
371
|
+
end # module Ui
|
372
|
+
|
@@ -0,0 +1,218 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_command_editor.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. déc. 9 14:17:48 2015
|
5
|
+
** by: Qt User Interface Compiler version 4.8.6
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_Command_editor
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :vl
|
13
|
+
attr_reader :vl2
|
14
|
+
attr_reader :fl
|
15
|
+
attr_reader :lbl_chip
|
16
|
+
attr_reader :lbl_chip_val
|
17
|
+
attr_reader :lbl_cmd
|
18
|
+
attr_reader :lbl_cmd_val
|
19
|
+
attr_reader :lbl_name
|
20
|
+
attr_reader :lie_name
|
21
|
+
attr_reader :lbl_description
|
22
|
+
attr_reader :lie_description
|
23
|
+
attr_reader :vl3
|
24
|
+
attr_reader :label
|
25
|
+
attr_reader :tbl_bytes
|
26
|
+
attr_reader :hl2
|
27
|
+
attr_reader :btn_clone
|
28
|
+
attr_reader :btn_remove
|
29
|
+
attr_reader :btn_add_row
|
30
|
+
attr_reader :lie_text_2_bytes
|
31
|
+
attr_reader :horizontalSpacer
|
32
|
+
attr_reader :hl
|
33
|
+
attr_reader :hs
|
34
|
+
attr_reader :btn_cancel
|
35
|
+
attr_reader :btn_validate
|
36
|
+
|
37
|
+
def setupUi(command_editor)
|
38
|
+
if command_editor.objectName.nil?
|
39
|
+
command_editor.objectName = "command_editor"
|
40
|
+
end
|
41
|
+
command_editor.resize(540, 440)
|
42
|
+
@gridLayout = Qt::GridLayout.new(command_editor)
|
43
|
+
@gridLayout.objectName = "gridLayout"
|
44
|
+
@vl = Qt::VBoxLayout.new()
|
45
|
+
@vl.objectName = "vl"
|
46
|
+
@vl2 = Qt::VBoxLayout.new()
|
47
|
+
@vl2.objectName = "vl2"
|
48
|
+
@fl = Qt::FormLayout.new()
|
49
|
+
@fl.objectName = "fl"
|
50
|
+
@lbl_chip = Qt::Label.new(command_editor)
|
51
|
+
@lbl_chip.objectName = "lbl_chip"
|
52
|
+
|
53
|
+
@fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_chip)
|
54
|
+
|
55
|
+
@lbl_chip_val = Qt::Label.new(command_editor)
|
56
|
+
@lbl_chip_val.objectName = "lbl_chip_val"
|
57
|
+
|
58
|
+
@fl.setWidget(2, Qt::FormLayout::FieldRole, @lbl_chip_val)
|
59
|
+
|
60
|
+
@lbl_cmd = Qt::Label.new(command_editor)
|
61
|
+
@lbl_cmd.objectName = "lbl_cmd"
|
62
|
+
|
63
|
+
@fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_cmd)
|
64
|
+
|
65
|
+
@lbl_cmd_val = Qt::Label.new(command_editor)
|
66
|
+
@lbl_cmd_val.objectName = "lbl_cmd_val"
|
67
|
+
|
68
|
+
@fl.setWidget(3, Qt::FormLayout::FieldRole, @lbl_cmd_val)
|
69
|
+
|
70
|
+
@lbl_name = Qt::Label.new(command_editor)
|
71
|
+
@lbl_name.objectName = "lbl_name"
|
72
|
+
|
73
|
+
@fl.setWidget(6, Qt::FormLayout::LabelRole, @lbl_name)
|
74
|
+
|
75
|
+
@lie_name = Qt::LineEdit.new(command_editor)
|
76
|
+
@lie_name.objectName = "lie_name"
|
77
|
+
@lie_name.maximumSize = Qt::Size.new(300, 16777215)
|
78
|
+
@lie_name.maxLength = 25
|
79
|
+
|
80
|
+
@fl.setWidget(6, Qt::FormLayout::FieldRole, @lie_name)
|
81
|
+
|
82
|
+
@lbl_description = Qt::Label.new(command_editor)
|
83
|
+
@lbl_description.objectName = "lbl_description"
|
84
|
+
|
85
|
+
@fl.setWidget(7, Qt::FormLayout::LabelRole, @lbl_description)
|
86
|
+
|
87
|
+
@lie_description = Qt::LineEdit.new(command_editor)
|
88
|
+
@lie_description.objectName = "lie_description"
|
89
|
+
@lie_description.maximumSize = Qt::Size.new(300, 16777215)
|
90
|
+
@lie_description.maxLength = 200
|
91
|
+
|
92
|
+
@fl.setWidget(7, Qt::FormLayout::FieldRole, @lie_description)
|
93
|
+
|
94
|
+
|
95
|
+
@vl2.addLayout(@fl)
|
96
|
+
|
97
|
+
@vl3 = Qt::VBoxLayout.new()
|
98
|
+
@vl3.objectName = "vl3"
|
99
|
+
@label = Qt::Label.new(command_editor)
|
100
|
+
@label.objectName = "label"
|
101
|
+
|
102
|
+
@vl3.addWidget(@label)
|
103
|
+
|
104
|
+
@tbl_bytes = Qt::TableWidget.new(command_editor)
|
105
|
+
@tbl_bytes.objectName = "tbl_bytes"
|
106
|
+
@font = Qt::Font.new
|
107
|
+
@font.family = "Arial"
|
108
|
+
@tbl_bytes.font = @font
|
109
|
+
@tbl_bytes.sortingEnabled = true
|
110
|
+
|
111
|
+
@vl3.addWidget(@tbl_bytes)
|
112
|
+
|
113
|
+
@hl2 = Qt::HBoxLayout.new()
|
114
|
+
@hl2.objectName = "hl2"
|
115
|
+
@btn_clone = Qt::PushButton.new(command_editor)
|
116
|
+
@btn_clone.objectName = "btn_clone"
|
117
|
+
@btn_clone.minimumSize = Qt::Size.new(0, 0)
|
118
|
+
@btn_clone.maximumSize = Qt::Size.new(16777215, 16777215)
|
119
|
+
|
120
|
+
@hl2.addWidget(@btn_clone)
|
121
|
+
|
122
|
+
@btn_remove = Qt::PushButton.new(command_editor)
|
123
|
+
@btn_remove.objectName = "btn_remove"
|
124
|
+
@btn_remove.maximumSize = Qt::Size.new(30, 16777215)
|
125
|
+
|
126
|
+
@hl2.addWidget(@btn_remove)
|
127
|
+
|
128
|
+
@btn_add_row = Qt::PushButton.new(command_editor)
|
129
|
+
@btn_add_row.objectName = "btn_add_row"
|
130
|
+
@btn_add_row.maximumSize = Qt::Size.new(30, 16777215)
|
131
|
+
|
132
|
+
@hl2.addWidget(@btn_add_row)
|
133
|
+
|
134
|
+
@lie_text_2_bytes = Qt::LineEdit.new(command_editor)
|
135
|
+
@lie_text_2_bytes.objectName = "lie_text_2_bytes"
|
136
|
+
@lie_text_2_bytes.maxLength = 200
|
137
|
+
|
138
|
+
@hl2.addWidget(@lie_text_2_bytes)
|
139
|
+
|
140
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
141
|
+
|
142
|
+
@hl2.addItem(@horizontalSpacer)
|
143
|
+
|
144
|
+
|
145
|
+
@vl3.addLayout(@hl2)
|
146
|
+
|
147
|
+
|
148
|
+
@vl2.addLayout(@vl3)
|
149
|
+
|
150
|
+
|
151
|
+
@vl.addLayout(@vl2)
|
152
|
+
|
153
|
+
@hl = Qt::HBoxLayout.new()
|
154
|
+
@hl.objectName = "hl"
|
155
|
+
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
156
|
+
|
157
|
+
@hl.addItem(@hs)
|
158
|
+
|
159
|
+
@btn_cancel = Qt::PushButton.new(command_editor)
|
160
|
+
@btn_cancel.objectName = "btn_cancel"
|
161
|
+
|
162
|
+
@hl.addWidget(@btn_cancel)
|
163
|
+
|
164
|
+
@btn_validate = Qt::PushButton.new(command_editor)
|
165
|
+
@btn_validate.objectName = "btn_validate"
|
166
|
+
|
167
|
+
@hl.addWidget(@btn_validate)
|
168
|
+
|
169
|
+
|
170
|
+
@vl.addLayout(@hl)
|
171
|
+
|
172
|
+
|
173
|
+
@gridLayout.addLayout(@vl, 0, 0, 1, 1)
|
174
|
+
|
175
|
+
|
176
|
+
retranslateUi(command_editor)
|
177
|
+
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), command_editor, SLOT('close()'))
|
178
|
+
Qt::Object.connect(@btn_clone, SIGNAL('clicked()'), command_editor, SLOT('clone_row()'))
|
179
|
+
Qt::Object.connect(@btn_remove, SIGNAL('clicked()'), command_editor, SLOT('remove_row()'))
|
180
|
+
Qt::Object.connect(@btn_add_row, SIGNAL('clicked()'), command_editor, SLOT('add_row()'))
|
181
|
+
Qt::Object.connect(@tbl_bytes, SIGNAL('itemChanged(QTableWidgetItem*)'), command_editor, SLOT('check_cell_content(QTableWidgetItem*)'))
|
182
|
+
|
183
|
+
Qt::MetaObject.connectSlotsByName(command_editor)
|
184
|
+
end # setupUi
|
185
|
+
|
186
|
+
def setup_ui(command_editor)
|
187
|
+
setupUi(command_editor)
|
188
|
+
end
|
189
|
+
|
190
|
+
def retranslateUi(command_editor)
|
191
|
+
command_editor.windowTitle = Qt::Application.translate("Command_editor", "Hardsploit - Command editor", nil, Qt::Application::UnicodeUTF8)
|
192
|
+
@lbl_chip.text = Qt::Application.translate("Command_editor", "Current chip:", nil, Qt::Application::UnicodeUTF8)
|
193
|
+
@lbl_chip_val.text = Qt::Application.translate("Command_editor", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
194
|
+
@lbl_cmd.text = Qt::Application.translate("Command_editor", "Current command:", nil, Qt::Application::UnicodeUTF8)
|
195
|
+
@lbl_cmd_val.text = Qt::Application.translate("Command_editor", "[CMD]", nil, Qt::Application::UnicodeUTF8)
|
196
|
+
@lbl_name.text = Qt::Application.translate("Command_editor", "Name:", nil, Qt::Application::UnicodeUTF8)
|
197
|
+
@lie_name.inputMask = ''
|
198
|
+
@lbl_description.text = Qt::Application.translate("Command_editor", "Description:", nil, Qt::Application::UnicodeUTF8)
|
199
|
+
@label.text = Qt::Application.translate("Command_editor", "Command bytes array:", nil, Qt::Application::UnicodeUTF8)
|
200
|
+
@btn_clone.text = Qt::Application.translate("Command_editor", "Clone", nil, Qt::Application::UnicodeUTF8)
|
201
|
+
@btn_remove.text = Qt::Application.translate("Command_editor", "-", nil, Qt::Application::UnicodeUTF8)
|
202
|
+
@btn_add_row.text = Qt::Application.translate("Command_editor", "+", nil, Qt::Application::UnicodeUTF8)
|
203
|
+
@lie_text_2_bytes.placeholderText = Qt::Application.translate("Command_editor", "Text to command bytes", nil, Qt::Application::UnicodeUTF8)
|
204
|
+
@btn_cancel.text = Qt::Application.translate("Command_editor", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
205
|
+
@btn_validate.text = Qt::Application.translate("Command_editor", "Add", nil, Qt::Application::UnicodeUTF8)
|
206
|
+
end # retranslateUi
|
207
|
+
|
208
|
+
def retranslate_ui(command_editor)
|
209
|
+
retranslateUi(command_editor)
|
210
|
+
end
|
211
|
+
|
212
|
+
end
|
213
|
+
|
214
|
+
module Ui
|
215
|
+
class Command_editor < Ui_Command_editor
|
216
|
+
end
|
217
|
+
end # module Ui
|
218
|
+
|