hardsploit_gui 2.2 → 2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/hardsploit_gui +2 -2
- data/lib/{Firmware → Firmwares}/FPGA/I2C/I2C_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_I2C_INTERACT.rpd +0 -0
- data/lib/{Firmware/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd → Firmwares/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd} +0 -0
- data/lib/Firmwares/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd +0 -0
- data/lib/{Firmware/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd → Firmwares/FPGA/SPI/SPI_SNIFFER/HARDSPLOIT_FIRMWARE_FPGA_SPI_SNIFFER.rpd} +0 -0
- data/lib/Firmwares/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd +0 -0
- data/lib/{Firmware → Firmwares}/FPGA/TEST/TEST_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_TEST_INTERACT.rpd +0 -0
- data/lib/Firmwares/FPGA/UART/UART_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_UART_INTERACT.rpd +0 -0
- data/lib/{Firmware → Firmwares}/FPGA/VersionFPGA.rb +1 -1
- data/lib/{Firmware → Firmwares}/UC/HARDSPLOIT_FIRMWARE_UC.bin +0 -0
- data/lib/{Firmware → Firmwares}/UC/VersionUC.rb +1 -1
- data/lib/HardsploitAPI/Core/HardsploitAPI.rb +210 -0
- data/lib/HardsploitAPI/Core/HardsploitAPI_CONSTANT.rb +150 -0
- data/lib/HardsploitAPI/Core/HardsploitAPI_ERROR.rb +109 -0
- data/lib/HardsploitAPI/Core/HardsploitAPI_FIRMWARE.rb +305 -0
- data/lib/HardsploitAPI/{HardsploitAPI_PROGRESS.rb → Core/HardsploitAPI_PROGRESS.rb} +0 -0
- data/lib/HardsploitAPI/Core/HardsploitAPI_USB_COMMUNICATION.rb +166 -0
- data/lib/HardsploitAPI/Modules/I2C/HardsploitAPI_I2C.rb +356 -0
- data/lib/HardsploitAPI/{HardsploitAPI_NO_MUX_PARALLELE_MEMORY.rb → Modules/NO_MUX_PARALLEL_MEMORY/HardsploitAPI_NO_MUX_PARALLEL_MEMORY.rb} +26 -49
- data/lib/HardsploitAPI/Modules/NRF24L01/HardsploitAPI_NRF24L01.rb +306 -0
- data/lib/HardsploitAPI/Modules/SPI/HardsploitAPI_SPI.rb +340 -0
- data/lib/HardsploitAPI/Modules/SPI_SNIFFER/HardsploitAPI_SPI_SNIFFER.rb +83 -0
- data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD.rb +367 -0
- data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD_DEBUG.rb +89 -0
- data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD_MEM_AP.rb +61 -0
- data/lib/HardsploitAPI/{SWD → Modules/SWD}/HardsploitAPI_SWD_STM32.rb +32 -15
- data/lib/HardsploitAPI/{HardsploitAPI_TEST_INTERACT.rb → Modules/TEST/HardsploitAPI_TEST_INTERACT.rb} +1 -1
- data/lib/HardsploitAPI/Modules/UART/HardsploitAPI_UART.rb +196 -0
- data/lib/Hardsploit_gui.rb +96 -0
- data/lib/class/Chip_editor.rb +186 -330
- data/lib/class/Chip_management.rb +496 -0
- data/lib/class/Command_editor.rb +130 -182
- data/lib/class/Command_table.rb +16 -22
- data/lib/class/Console.rb +0 -2
- data/lib/class/ErrorMsg.rb +312 -0
- data/lib/class/Export.rb +140 -0
- data/lib/class/Export_manager.rb +43 -43
- data/lib/class/Firmware.rb +52 -11
- data/lib/class/Generic_commands.rb +180 -190
- data/lib/class/Import.rb +193 -0
- data/lib/class/Progress_bar.rb +1 -0
- data/lib/class/Signal_mapper.rb +120 -0
- data/lib/class/Wire_helper.rb +132 -148
- data/lib/class/{I2C → i2c}/I2c_command.rb +16 -13
- data/lib/class/i2c/I2c_export.rb +95 -0
- data/lib/class/i2c/I2c_import.rb +117 -0
- data/lib/class/i2c/I2c_scanner.rb +114 -0
- data/lib/class/i2c/I2c_settings.rb +148 -0
- data/lib/class/parallel/Parallel_export.rb +118 -0
- data/lib/class/parallel/Parallel_import.rb +113 -0
- data/lib/class/parallel/Parallel_settings.rb +81 -0
- data/lib/class/spi/Spi_export.rb +108 -0
- data/lib/class/spi/Spi_import.rb +159 -0
- data/lib/class/spi/Spi_settings.rb +108 -0
- data/lib/class/spi/Spi_sniffer.rb +101 -0
- data/lib/class/swd/Swd.rb +125 -0
- data/lib/class/swd/Swd_scanner.rb +121 -0
- data/lib/class/swd/Swd_settings.rb +76 -0
- data/lib/class/uart/Uart_baudrate.rb +62 -0
- data/lib/class/uart/Uart_console.rb +115 -0
- data/lib/class/uart/Uart_settings.rb +102 -0
- data/lib/db/associations.rb +42 -29
- data/lib/db/database.rb +4 -0
- data/lib/db/development.sqlite3 +0 -0
- data/lib/db/migrate/004_create_manufacturers.rb +13 -0
- data/lib/db/migrate/005_create_packages.rb +13 -0
- data/lib/db/migrate/006_create_chip_types.rb +11 -0
- data/lib/db/migrate/007_create_buses.rb +11 -0
- data/lib/db/migrate/008_create_signals.rb +14 -0
- data/lib/db/migrate/009_create_chips.rb +25 -0
- data/lib/db/migrate/010_create_commands.rb +21 -0
- data/lib/db/migrate/011_create_bytes.rb +19 -0
- data/lib/db/migrate/012_create_i2c_settings.rb +21 -0
- data/lib/db/migrate/013_create_spi_settings.rb +26 -0
- data/lib/db/migrate/014_create_parallel_settings.rb +21 -0
- data/lib/db/migrate/015_create_pins.rb +19 -0
- data/lib/db/migrate/016_create_uses.rb +17 -0
- data/lib/db/migrate/017_create_swd_settings.rb +19 -0
- data/lib/db/migrate/018_create_uart_settings.rb +22 -0
- data/lib/db/schema.rb +157 -0
- data/lib/db/seeds.rb +161 -0
- data/lib/gui/gui_chip_editor.rb +23 -22
- data/lib/gui/gui_chip_management.rb +43 -38
- data/lib/gui/gui_command_editor.rb +2 -1
- data/lib/gui/gui_export.rb +132 -0
- data/lib/gui/gui_generic_commands.rb +69 -31
- data/lib/gui/gui_generic_export.rb +18 -2
- data/lib/gui/gui_generic_import.rb +18 -2
- data/lib/gui/gui_i2c_command.rb +2 -1
- data/lib/gui/gui_i2c_settings.rb +2 -2
- data/lib/gui/gui_import.rb +131 -0
- data/lib/gui/gui_parallel_settings.rb +2 -1
- data/lib/gui/gui_progress_bar.rb +2 -1
- data/lib/gui/gui_signal_mapper.rb +121 -0
- data/lib/gui/gui_signal_scanner.rb +146 -0
- data/lib/gui/gui_spi_settings.rb +6 -2
- data/lib/gui/gui_spi_sniffer.rb +112 -0
- data/lib/gui/gui_swd_settings.rb +166 -0
- data/lib/gui/gui_uart_baudrate.rb +114 -0
- data/lib/gui/gui_uart_console.rb +164 -0
- data/lib/gui/gui_uart_settings.rb +243 -0
- data/lib/gui_designer/gui_chip_editor.ui +9 -6
- data/lib/gui_designer/gui_chip_management.ui +79 -35
- data/lib/gui_designer/gui_command_editor.ui +3 -0
- data/lib/gui_designer/gui_export.ui +171 -0
- data/lib/gui_designer/gui_generic_commands.ui +274 -190
- data/lib/gui_designer/gui_generic_export.ui +24 -1
- data/lib/gui_designer/gui_generic_import.ui +25 -2
- data/lib/gui_designer/gui_i2c_command.ui +3 -0
- data/lib/gui_designer/gui_i2c_settings.ui +2 -2
- data/lib/gui_designer/gui_import.ui +168 -0
- data/lib/gui_designer/gui_parallel_settings.ui +4 -1
- data/lib/gui_designer/gui_progress_bar.ui +3 -0
- data/lib/gui_designer/gui_signal_mapper.ui +179 -0
- data/lib/gui_designer/gui_signal_scanner.ui +261 -0
- data/lib/gui_designer/gui_spi_settings.ui +15 -2
- data/lib/gui_designer/gui_spi_sniffer.ui +156 -0
- data/lib/gui_designer/gui_swd_settings.ui +189 -0
- data/lib/gui_designer/gui_uart_baudrate.ui +161 -0
- data/lib/gui_designer/gui_uart_console.ui +284 -0
- data/lib/gui_designer/gui_uart_settings.ui +280 -0
- data/lib/logs/error.log +63 -0
- data/lib/models/bus.rb +19 -0
- data/lib/models/byte.rb +29 -0
- data/lib/models/chip.rb +41 -0
- data/lib/models/chip_type.rb +14 -0
- data/lib/models/command.rb +20 -0
- data/lib/models/i2c_setting.rb +41 -0
- data/lib/models/manufacturer.rb +14 -0
- data/lib/models/package.rb +26 -0
- data/lib/models/parallel_setting.rb +37 -0
- data/lib/models/pin.rb +14 -0
- data/lib/models/signall.rb +20 -0
- data/lib/models/spi_setting.rb +67 -0
- data/lib/models/swd_setting.rb +25 -0
- data/lib/models/uart_setting.rb +52 -0
- data/lib/models/use.rb +6 -0
- data/lib/startHardsploit.rb +2 -2
- metadata +106 -41
- data/lib/Firmware/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd +0 -0
- data/lib/HardsploitAPI/HardsploitAPI.rb +0 -133
- data/lib/HardsploitAPI/HardsploitAPI_CONSTANT.rb +0 -145
- data/lib/HardsploitAPI/HardsploitAPI_ERROR.rb +0 -38
- data/lib/HardsploitAPI/HardsploitAPI_FIRMWARE.rb +0 -311
- data/lib/HardsploitAPI/HardsploitAPI_I2C.rb +0 -360
- data/lib/HardsploitAPI/HardsploitAPI_SPI.rb +0 -369
- data/lib/HardsploitAPI/HardsploitAPI_USB_COMMUNICATION.rb +0 -148
- data/lib/HardsploitAPI/LICENSE.txt +0 -674
- data/lib/HardsploitAPI/README.md +0 -22
- data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD.rb +0 -249
- data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_DEBUG.rb +0 -102
- data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_MEM_AP.rb +0 -78
- data/lib/HardsploitAPI/TRADEMARK +0 -3
- data/lib/class/HardsploitGUI.rb +0 -463
- data/lib/class/I2C/I2c_export.rb +0 -118
- data/lib/class/I2C/I2c_import.rb +0 -79
- data/lib/class/I2C/I2c_settings.rb +0 -129
- data/lib/class/PARALLEL/Parallel_export.rb +0 -146
- data/lib/class/PARALLEL/Parallel_import.rb +0 -88
- data/lib/class/PARALLEL/Parallel_settings.rb +0 -102
- data/lib/class/SPI/Spi_export.rb +0 -138
- data/lib/class/SPI/Spi_import.rb +0 -113
- data/lib/class/SPI/Spi_settings.rb +0 -134
- data/lib/db/hs.db +0 -0
- data/lib/hardsploit.rb +0 -131
@@ -0,0 +1,243 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_uart_settings.ui'
|
3
|
+
**
|
4
|
+
** Created: mar. juil. 19 14:22:54 2016
|
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_Uart_settings
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :verticalLayout_2
|
13
|
+
attr_reader :horizontalLayout_2
|
14
|
+
attr_reader :lbl_chip
|
15
|
+
attr_reader :lbl_uart
|
16
|
+
attr_reader :horizontalSpacer_2
|
17
|
+
attr_reader :formLayout
|
18
|
+
attr_reader :label
|
19
|
+
attr_reader :lie_baud_rate
|
20
|
+
attr_reader :label_2
|
21
|
+
attr_reader :lie_word_size
|
22
|
+
attr_reader :label_3
|
23
|
+
attr_reader :lie_parity_bit
|
24
|
+
attr_reader :label_4
|
25
|
+
attr_reader :lie_parity_type
|
26
|
+
attr_reader :label_5
|
27
|
+
attr_reader :lie_stop_bits_nbr
|
28
|
+
attr_reader :label_6
|
29
|
+
attr_reader :lie_idle_line_lvl
|
30
|
+
attr_reader :label_7
|
31
|
+
attr_reader :horizontalLayout_3
|
32
|
+
attr_reader :rbn_cr
|
33
|
+
attr_reader :rbn_lf
|
34
|
+
attr_reader :rbn_both
|
35
|
+
attr_reader :label_8
|
36
|
+
attr_reader :pushButton_3
|
37
|
+
attr_reader :horizontalLayout
|
38
|
+
attr_reader :horizontalSpacer
|
39
|
+
attr_reader :pushButton_2
|
40
|
+
attr_reader :pushButton
|
41
|
+
|
42
|
+
def setupUi(uart_settings)
|
43
|
+
if uart_settings.objectName.nil?
|
44
|
+
uart_settings.objectName = "uart_settings"
|
45
|
+
end
|
46
|
+
uart_settings.windowModality = Qt::WindowModal
|
47
|
+
uart_settings.resize(254, 291)
|
48
|
+
@gridLayout = Qt::GridLayout.new(uart_settings)
|
49
|
+
@gridLayout.objectName = "gridLayout"
|
50
|
+
@verticalLayout_2 = Qt::VBoxLayout.new()
|
51
|
+
@verticalLayout_2.objectName = "verticalLayout_2"
|
52
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
53
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
54
|
+
@lbl_chip = Qt::Label.new(uart_settings)
|
55
|
+
@lbl_chip.objectName = "lbl_chip"
|
56
|
+
|
57
|
+
@horizontalLayout_2.addWidget(@lbl_chip)
|
58
|
+
|
59
|
+
@lbl_uart = Qt::Label.new(uart_settings)
|
60
|
+
@lbl_uart.objectName = "lbl_uart"
|
61
|
+
|
62
|
+
@horizontalLayout_2.addWidget(@lbl_uart)
|
63
|
+
|
64
|
+
@horizontalSpacer_2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
65
|
+
|
66
|
+
@horizontalLayout_2.addItem(@horizontalSpacer_2)
|
67
|
+
|
68
|
+
|
69
|
+
@verticalLayout_2.addLayout(@horizontalLayout_2)
|
70
|
+
|
71
|
+
@formLayout = Qt::FormLayout.new()
|
72
|
+
@formLayout.objectName = "formLayout"
|
73
|
+
@label = Qt::Label.new(uart_settings)
|
74
|
+
@label.objectName = "label"
|
75
|
+
|
76
|
+
@formLayout.setWidget(1, Qt::FormLayout::LabelRole, @label)
|
77
|
+
|
78
|
+
@lie_baud_rate = Qt::LineEdit.new(uart_settings)
|
79
|
+
@lie_baud_rate.objectName = "lie_baud_rate"
|
80
|
+
|
81
|
+
@formLayout.setWidget(1, Qt::FormLayout::FieldRole, @lie_baud_rate)
|
82
|
+
|
83
|
+
@label_2 = Qt::Label.new(uart_settings)
|
84
|
+
@label_2.objectName = "label_2"
|
85
|
+
|
86
|
+
@formLayout.setWidget(3, Qt::FormLayout::LabelRole, @label_2)
|
87
|
+
|
88
|
+
@lie_word_size = Qt::LineEdit.new(uart_settings)
|
89
|
+
@lie_word_size.objectName = "lie_word_size"
|
90
|
+
|
91
|
+
@formLayout.setWidget(3, Qt::FormLayout::FieldRole, @lie_word_size)
|
92
|
+
|
93
|
+
@label_3 = Qt::Label.new(uart_settings)
|
94
|
+
@label_3.objectName = "label_3"
|
95
|
+
|
96
|
+
@formLayout.setWidget(4, Qt::FormLayout::LabelRole, @label_3)
|
97
|
+
|
98
|
+
@lie_parity_bit = Qt::LineEdit.new(uart_settings)
|
99
|
+
@lie_parity_bit.objectName = "lie_parity_bit"
|
100
|
+
|
101
|
+
@formLayout.setWidget(4, Qt::FormLayout::FieldRole, @lie_parity_bit)
|
102
|
+
|
103
|
+
@label_4 = Qt::Label.new(uart_settings)
|
104
|
+
@label_4.objectName = "label_4"
|
105
|
+
|
106
|
+
@formLayout.setWidget(5, Qt::FormLayout::LabelRole, @label_4)
|
107
|
+
|
108
|
+
@lie_parity_type = Qt::LineEdit.new(uart_settings)
|
109
|
+
@lie_parity_type.objectName = "lie_parity_type"
|
110
|
+
|
111
|
+
@formLayout.setWidget(5, Qt::FormLayout::FieldRole, @lie_parity_type)
|
112
|
+
|
113
|
+
@label_5 = Qt::Label.new(uart_settings)
|
114
|
+
@label_5.objectName = "label_5"
|
115
|
+
|
116
|
+
@formLayout.setWidget(6, Qt::FormLayout::LabelRole, @label_5)
|
117
|
+
|
118
|
+
@lie_stop_bits_nbr = Qt::LineEdit.new(uart_settings)
|
119
|
+
@lie_stop_bits_nbr.objectName = "lie_stop_bits_nbr"
|
120
|
+
|
121
|
+
@formLayout.setWidget(6, Qt::FormLayout::FieldRole, @lie_stop_bits_nbr)
|
122
|
+
|
123
|
+
@label_6 = Qt::Label.new(uart_settings)
|
124
|
+
@label_6.objectName = "label_6"
|
125
|
+
|
126
|
+
@formLayout.setWidget(7, Qt::FormLayout::LabelRole, @label_6)
|
127
|
+
|
128
|
+
@lie_idle_line_lvl = Qt::LineEdit.new(uart_settings)
|
129
|
+
@lie_idle_line_lvl.objectName = "lie_idle_line_lvl"
|
130
|
+
|
131
|
+
@formLayout.setWidget(7, Qt::FormLayout::FieldRole, @lie_idle_line_lvl)
|
132
|
+
|
133
|
+
@label_7 = Qt::Label.new(uart_settings)
|
134
|
+
@label_7.objectName = "label_7"
|
135
|
+
|
136
|
+
@formLayout.setWidget(8, Qt::FormLayout::LabelRole, @label_7)
|
137
|
+
|
138
|
+
@horizontalLayout_3 = Qt::HBoxLayout.new()
|
139
|
+
@horizontalLayout_3.objectName = "horizontalLayout_3"
|
140
|
+
@rbn_cr = Qt::RadioButton.new(uart_settings)
|
141
|
+
@rbn_cr.objectName = "rbn_cr"
|
142
|
+
@rbn_cr.checked = true
|
143
|
+
|
144
|
+
@horizontalLayout_3.addWidget(@rbn_cr)
|
145
|
+
|
146
|
+
@rbn_lf = Qt::RadioButton.new(uart_settings)
|
147
|
+
@rbn_lf.objectName = "rbn_lf"
|
148
|
+
|
149
|
+
@horizontalLayout_3.addWidget(@rbn_lf)
|
150
|
+
|
151
|
+
@rbn_both = Qt::RadioButton.new(uart_settings)
|
152
|
+
@rbn_both.objectName = "rbn_both"
|
153
|
+
|
154
|
+
@horizontalLayout_3.addWidget(@rbn_both)
|
155
|
+
|
156
|
+
|
157
|
+
@formLayout.setLayout(8, Qt::FormLayout::FieldRole, @horizontalLayout_3)
|
158
|
+
|
159
|
+
@label_8 = Qt::Label.new(uart_settings)
|
160
|
+
@label_8.objectName = "label_8"
|
161
|
+
|
162
|
+
@formLayout.setWidget(2, Qt::FormLayout::LabelRole, @label_8)
|
163
|
+
|
164
|
+
@pushButton_3 = Qt::PushButton.new(uart_settings)
|
165
|
+
@pushButton_3.objectName = "pushButton_3"
|
166
|
+
|
167
|
+
@formLayout.setWidget(2, Qt::FormLayout::FieldRole, @pushButton_3)
|
168
|
+
|
169
|
+
|
170
|
+
@verticalLayout_2.addLayout(@formLayout)
|
171
|
+
|
172
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
173
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
174
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
175
|
+
|
176
|
+
@horizontalLayout.addItem(@horizontalSpacer)
|
177
|
+
|
178
|
+
@pushButton_2 = Qt::PushButton.new(uart_settings)
|
179
|
+
@pushButton_2.objectName = "pushButton_2"
|
180
|
+
|
181
|
+
@horizontalLayout.addWidget(@pushButton_2)
|
182
|
+
|
183
|
+
@pushButton = Qt::PushButton.new(uart_settings)
|
184
|
+
@pushButton.objectName = "pushButton"
|
185
|
+
|
186
|
+
@horizontalLayout.addWidget(@pushButton)
|
187
|
+
|
188
|
+
|
189
|
+
@verticalLayout_2.addLayout(@horizontalLayout)
|
190
|
+
|
191
|
+
|
192
|
+
@gridLayout.addLayout(@verticalLayout_2, 0, 0, 1, 1)
|
193
|
+
|
194
|
+
|
195
|
+
retranslateUi(uart_settings)
|
196
|
+
Qt::Object.connect(@pushButton, SIGNAL('clicked()'), uart_settings, SLOT('save_settings()'))
|
197
|
+
Qt::Object.connect(@pushButton_2, SIGNAL('clicked()'), uart_settings, SLOT('close()'))
|
198
|
+
Qt::Object.connect(@pushButton_3, SIGNAL('clicked()'), uart_settings, SLOT('autodetect()'))
|
199
|
+
|
200
|
+
Qt::MetaObject.connectSlotsByName(uart_settings)
|
201
|
+
end # setupUi
|
202
|
+
|
203
|
+
def setup_ui(uart_settings)
|
204
|
+
setupUi(uart_settings)
|
205
|
+
end
|
206
|
+
|
207
|
+
def retranslateUi(uart_settings)
|
208
|
+
uart_settings.windowTitle = Qt::Application.translate("Uart_settings", "Hardsploit - UART settings", nil, Qt::Application::UnicodeUTF8)
|
209
|
+
@lbl_chip.text = Qt::Application.translate("Uart_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
210
|
+
@lbl_uart.text = Qt::Application.translate("Uart_settings", "UART settings", nil, Qt::Application::UnicodeUTF8)
|
211
|
+
@label.text = Qt::Application.translate("Uart_settings", "Baud rate (manual):", nil, Qt::Application::UnicodeUTF8)
|
212
|
+
@lie_baud_rate.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
213
|
+
@label_2.text = Qt::Application.translate("Uart_settings", "Word size:", nil, Qt::Application::UnicodeUTF8)
|
214
|
+
@lie_word_size.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
215
|
+
@label_3.text = Qt::Application.translate("Uart_settings", "Parity bit:", nil, Qt::Application::UnicodeUTF8)
|
216
|
+
@lie_parity_bit.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
217
|
+
@label_4.text = Qt::Application.translate("Uart_settings", "Parity type:", nil, Qt::Application::UnicodeUTF8)
|
218
|
+
@lie_parity_type.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
219
|
+
@label_5.text = Qt::Application.translate("Uart_settings", "Stop bits number:", nil, Qt::Application::UnicodeUTF8)
|
220
|
+
@lie_stop_bits_nbr.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
221
|
+
@label_6.text = Qt::Application.translate("Uart_settings", "Idle line level:", nil, Qt::Application::UnicodeUTF8)
|
222
|
+
@lie_idle_line_lvl.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8)
|
223
|
+
@label_7.text = Qt::Application.translate("Uart_settings", "CR / LF:", nil, Qt::Application::UnicodeUTF8)
|
224
|
+
@rbn_cr.text = Qt::Application.translate("Uart_settings", "CR", nil, Qt::Application::UnicodeUTF8)
|
225
|
+
@rbn_lf.text = Qt::Application.translate("Uart_settings", "LF", nil, Qt::Application::UnicodeUTF8)
|
226
|
+
@rbn_both.text = Qt::Application.translate("Uart_settings", "Both", nil, Qt::Application::UnicodeUTF8)
|
227
|
+
@label_8.text = Qt::Application.translate("Uart_settings", "Baud rate (auto):", nil, Qt::Application::UnicodeUTF8)
|
228
|
+
@pushButton_3.text = Qt::Application.translate("Uart_settings", "Autodetection", nil, Qt::Application::UnicodeUTF8)
|
229
|
+
@pushButton_2.text = Qt::Application.translate("Uart_settings", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
230
|
+
@pushButton.text = Qt::Application.translate("Uart_settings", "Save", nil, Qt::Application::UnicodeUTF8)
|
231
|
+
end # retranslateUi
|
232
|
+
|
233
|
+
def retranslate_ui(uart_settings)
|
234
|
+
retranslateUi(uart_settings)
|
235
|
+
end
|
236
|
+
|
237
|
+
end
|
238
|
+
|
239
|
+
module Ui
|
240
|
+
class Uart_settings < Ui_Uart_settings
|
241
|
+
end
|
242
|
+
end # module Ui
|
243
|
+
|
@@ -2,6 +2,9 @@
|
|
2
2
|
<ui version="4.0">
|
3
3
|
<class>Chip_editor</class>
|
4
4
|
<widget class="QWidget" name="Chip_editor">
|
5
|
+
<property name="windowModality">
|
6
|
+
<enum>Qt::ApplicationModal</enum>
|
7
|
+
</property>
|
5
8
|
<property name="geometry">
|
6
9
|
<rect>
|
7
10
|
<x>0</x>
|
@@ -202,7 +205,7 @@
|
|
202
205
|
</widget>
|
203
206
|
</item>
|
204
207
|
<item>
|
205
|
-
<widget class="QPushButton" name="
|
208
|
+
<widget class="QPushButton" name="btn_delete_manufacturer">
|
206
209
|
<property name="maximumSize">
|
207
210
|
<size>
|
208
211
|
<width>30</width>
|
@@ -245,7 +248,7 @@
|
|
245
248
|
</widget>
|
246
249
|
</item>
|
247
250
|
<item>
|
248
|
-
<widget class="QPushButton" name="
|
251
|
+
<widget class="QPushButton" name="btn_delete_type">
|
249
252
|
<property name="maximumSize">
|
250
253
|
<size>
|
251
254
|
<width>30</width>
|
@@ -291,7 +294,7 @@
|
|
291
294
|
</widget>
|
292
295
|
</item>
|
293
296
|
<item>
|
294
|
-
<widget class="QPushButton" name="
|
297
|
+
<widget class="QPushButton" name="btn_delete_package">
|
295
298
|
<property name="maximumSize">
|
296
299
|
<size>
|
297
300
|
<width>30</width>
|
@@ -423,7 +426,7 @@
|
|
423
426
|
</hints>
|
424
427
|
</connection>
|
425
428
|
<connection>
|
426
|
-
<sender>
|
429
|
+
<sender>btn_delete_manufacturer</sender>
|
427
430
|
<signal>clicked()</signal>
|
428
431
|
<receiver>Chip_editor</receiver>
|
429
432
|
<slot>delete_cbx_element()</slot>
|
@@ -439,7 +442,7 @@
|
|
439
442
|
</hints>
|
440
443
|
</connection>
|
441
444
|
<connection>
|
442
|
-
<sender>
|
445
|
+
<sender>btn_delete_type</sender>
|
443
446
|
<signal>clicked()</signal>
|
444
447
|
<receiver>Chip_editor</receiver>
|
445
448
|
<slot>delete_cbx_element()</slot>
|
@@ -455,7 +458,7 @@
|
|
455
458
|
</hints>
|
456
459
|
</connection>
|
457
460
|
<connection>
|
458
|
-
<sender>
|
461
|
+
<sender>btn_delete_package</sender>
|
459
462
|
<signal>clicked()</signal>
|
460
463
|
<receiver>Chip_editor</receiver>
|
461
464
|
<slot>delete_cbx_element()</slot>
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<widget class="QTreeWidget" name="tw_chip">
|
32
32
|
<property name="minimumSize">
|
33
33
|
<size>
|
34
|
-
<width>
|
34
|
+
<width>200</width>
|
35
35
|
<height>0</height>
|
36
36
|
</size>
|
37
37
|
</property>
|
@@ -264,6 +264,8 @@
|
|
264
264
|
<addaction name="actionParallel"/>
|
265
265
|
<addaction name="actionI2C"/>
|
266
266
|
<addaction name="actionSPI"/>
|
267
|
+
<addaction name="actionSWD"/>
|
268
|
+
<addaction name="actionUART"/>
|
267
269
|
<addaction name="separator"/>
|
268
270
|
<addaction name="actionUC"/>
|
269
271
|
</widget>
|
@@ -273,12 +275,15 @@
|
|
273
275
|
</property>
|
274
276
|
<addaction name="actionAdd"/>
|
275
277
|
<addaction name="actionEdit"/>
|
276
|
-
<addaction name="actionDelete"/>
|
277
|
-
<addaction name="actionExport_current"/>
|
278
278
|
<addaction name="actionWire"/>
|
279
|
+
<addaction name="actionDelete"/>
|
280
|
+
<addaction name="actionTemplate"/>
|
281
|
+
<addaction name="actionImport_2"/>
|
282
|
+
<addaction name="actionExport"/>
|
279
283
|
</widget>
|
280
284
|
<addaction name="menuUpload_firmware"/>
|
281
285
|
<addaction name="menuComponent"/>
|
286
|
+
<addaction name="actionSignal_Mapper"/>
|
282
287
|
</widget>
|
283
288
|
<widget class="QMenu" name="menuAbout">
|
284
289
|
<property name="title">
|
@@ -295,17 +300,7 @@
|
|
295
300
|
<addaction name="actionVersions"/>
|
296
301
|
<addaction name="menuPath"/>
|
297
302
|
</widget>
|
298
|
-
<widget class="QMenu" name="menuSWD">
|
299
|
-
<property name="title">
|
300
|
-
<string>SWD</string>
|
301
|
-
</property>
|
302
|
-
<addaction name="actionSWD_detect"/>
|
303
|
-
<addaction name="actionSWD_export"/>
|
304
|
-
<addaction name="actionSWD_import"/>
|
305
|
-
<addaction name="actionSWD_erase"/>
|
306
|
-
</widget>
|
307
303
|
<addaction name="menuMenu"/>
|
308
|
-
<addaction name="menuSWD"/>
|
309
304
|
<addaction name="menuAbout"/>
|
310
305
|
</widget>
|
311
306
|
<widget class="QStatusBar" name="statusbar"/>
|
@@ -351,7 +346,7 @@
|
|
351
346
|
</action>
|
352
347
|
<action name="actionAdd">
|
353
348
|
<property name="text">
|
354
|
-
<string>
|
349
|
+
<string>New</string>
|
355
350
|
</property>
|
356
351
|
<property name="shortcut">
|
357
352
|
<string>Ctrl+A</string>
|
@@ -373,11 +368,6 @@
|
|
373
368
|
<string>Ctrl+D</string>
|
374
369
|
</property>
|
375
370
|
</action>
|
376
|
-
<action name="actionExport_current">
|
377
|
-
<property name="text">
|
378
|
-
<string>Export</string>
|
379
|
-
</property>
|
380
|
-
</action>
|
381
371
|
<action name="actionDisplay_firmware">
|
382
372
|
<property name="text">
|
383
373
|
<string>Display current firmware</string>
|
@@ -394,24 +384,43 @@
|
|
394
384
|
<string>Ctrl+W</string>
|
395
385
|
</property>
|
396
386
|
</action>
|
397
|
-
<action name="
|
387
|
+
<action name="actionSignal_Mapper">
|
398
388
|
<property name="text">
|
399
|
-
<string>
|
389
|
+
<string>Signal Mapper</string>
|
400
390
|
</property>
|
401
391
|
</action>
|
402
|
-
<action name="
|
392
|
+
<action name="actionExport">
|
403
393
|
<property name="text">
|
404
|
-
<string>Export
|
394
|
+
<string>Export</string>
|
395
|
+
</property>
|
396
|
+
<property name="shortcut">
|
397
|
+
<string>Ctrl+C</string>
|
405
398
|
</property>
|
406
399
|
</action>
|
407
|
-
<action name="
|
400
|
+
<action name="actionImport_2">
|
408
401
|
<property name="text">
|
409
|
-
<string>Import
|
402
|
+
<string>Import</string>
|
403
|
+
</property>
|
404
|
+
<property name="shortcut">
|
405
|
+
<string>Ctrl+V</string>
|
410
406
|
</property>
|
411
407
|
</action>
|
412
|
-
<action name="
|
408
|
+
<action name="actionTemplate">
|
413
409
|
<property name="text">
|
414
|
-
<string>
|
410
|
+
<string>Template</string>
|
411
|
+
</property>
|
412
|
+
<property name="shortcut">
|
413
|
+
<string>Ctrl+T</string>
|
414
|
+
</property>
|
415
|
+
</action>
|
416
|
+
<action name="actionSWD">
|
417
|
+
<property name="text">
|
418
|
+
<string>Set SWD</string>
|
419
|
+
</property>
|
420
|
+
</action>
|
421
|
+
<action name="actionUART">
|
422
|
+
<property name="text">
|
423
|
+
<string>Set UART</string>
|
415
424
|
</property>
|
416
425
|
</action>
|
417
426
|
</widget>
|
@@ -754,10 +763,26 @@
|
|
754
763
|
</hints>
|
755
764
|
</connection>
|
756
765
|
<connection>
|
757
|
-
<sender>
|
766
|
+
<sender>actionSignal_Mapper</sender>
|
767
|
+
<signal>triggered()</signal>
|
768
|
+
<receiver>Chip_management</receiver>
|
769
|
+
<slot>open_signal_mapper()</slot>
|
770
|
+
<hints>
|
771
|
+
<hint type="sourcelabel">
|
772
|
+
<x>-1</x>
|
773
|
+
<y>-1</y>
|
774
|
+
</hint>
|
775
|
+
<hint type="destinationlabel">
|
776
|
+
<x>354</x>
|
777
|
+
<y>294</y>
|
778
|
+
</hint>
|
779
|
+
</hints>
|
780
|
+
</connection>
|
781
|
+
<connection>
|
782
|
+
<sender>actionExport</sender>
|
758
783
|
<signal>triggered()</signal>
|
759
784
|
<receiver>Chip_management</receiver>
|
760
|
-
<slot>
|
785
|
+
<slot>export()</slot>
|
761
786
|
<hints>
|
762
787
|
<hint type="sourcelabel">
|
763
788
|
<x>-1</x>
|
@@ -770,10 +795,10 @@
|
|
770
795
|
</hints>
|
771
796
|
</connection>
|
772
797
|
<connection>
|
773
|
-
<sender>
|
798
|
+
<sender>actionImport_2</sender>
|
774
799
|
<signal>triggered()</signal>
|
775
800
|
<receiver>Chip_management</receiver>
|
776
|
-
<slot>
|
801
|
+
<slot>import()</slot>
|
777
802
|
<hints>
|
778
803
|
<hint type="sourcelabel">
|
779
804
|
<x>-1</x>
|
@@ -786,10 +811,10 @@
|
|
786
811
|
</hints>
|
787
812
|
</connection>
|
788
813
|
<connection>
|
789
|
-
<sender>
|
814
|
+
<sender>actionTemplate</sender>
|
790
815
|
<signal>triggered()</signal>
|
791
816
|
<receiver>Chip_management</receiver>
|
792
|
-
<slot>
|
817
|
+
<slot>add_chip()</slot>
|
793
818
|
<hints>
|
794
819
|
<hint type="sourcelabel">
|
795
820
|
<x>-1</x>
|
@@ -802,10 +827,26 @@
|
|
802
827
|
</hints>
|
803
828
|
</connection>
|
804
829
|
<connection>
|
805
|
-
<sender>
|
830
|
+
<sender>actionSWD</sender>
|
806
831
|
<signal>triggered()</signal>
|
807
832
|
<receiver>Chip_management</receiver>
|
808
|
-
<slot>
|
833
|
+
<slot>set_firmware()</slot>
|
834
|
+
<hints>
|
835
|
+
<hint type="sourcelabel">
|
836
|
+
<x>-1</x>
|
837
|
+
<y>-1</y>
|
838
|
+
</hint>
|
839
|
+
<hint type="destinationlabel">
|
840
|
+
<x>354</x>
|
841
|
+
<y>294</y>
|
842
|
+
</hint>
|
843
|
+
</hints>
|
844
|
+
</connection>
|
845
|
+
<connection>
|
846
|
+
<sender>actionUART</sender>
|
847
|
+
<signal>triggered()</signal>
|
848
|
+
<receiver>Chip_management</receiver>
|
849
|
+
<slot>set_firmware()</slot>
|
809
850
|
<hints>
|
810
851
|
<hint type="sourcelabel">
|
811
852
|
<x>-1</x>
|
@@ -838,5 +879,8 @@
|
|
838
879
|
<slot>swd_import()</slot>
|
839
880
|
<slot>swd_export()</slot>
|
840
881
|
<slot>swd_erase()</slot>
|
882
|
+
<slot>open_signal_mapper()</slot>
|
883
|
+
<slot>import()</slot>
|
884
|
+
<slot>export()</slot>
|
841
885
|
</slots>
|
842
886
|
</ui>
|