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
data/lib/gui/gui_spi_settings.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
** Form generated from reading ui file 'gui_spi_settings.ui'
|
3
3
|
**
|
4
|
-
** Created: ven. févr. 12
|
4
|
+
** Created: ven. févr. 12 16:51:57 2016
|
5
5
|
** by: Qt User Interface Compiler version 4.8.6
|
6
6
|
**
|
7
7
|
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
@@ -272,18 +272,22 @@ class Ui_Spi_settings
|
|
272
272
|
Qt::Application.translate("Spi_settings", "0.29", nil, Qt::Application::UnicodeUTF8)])
|
273
273
|
@lbl_cmd_read.text = Qt::Application.translate("Spi_settings", "Read command:", nil, Qt::Application::UnicodeUTF8)
|
274
274
|
@lie_cmd_read.text = ''
|
275
|
+
@lie_cmd_read.placeholderText = Qt::Application.translate("Spi_settings", "in decimal", nil, Qt::Application::UnicodeUTF8)
|
275
276
|
@lbl_cmd_erase.text = Qt::Application.translate("Spi_settings", "Erase command:", nil, Qt::Application::UnicodeUTF8)
|
277
|
+
@lie_cmd_erase.placeholderText = Qt::Application.translate("Spi_settings", "in decimal", nil, Qt::Application::UnicodeUTF8)
|
276
278
|
@lbl_cmd_write.text = Qt::Application.translate("Spi_settings", "Enable write command:", nil, Qt::Application::UnicodeUTF8)
|
279
|
+
@lie_cmd_write_enable.placeholderText = Qt::Application.translate("Spi_settings", "in decimal", nil, Qt::Application::UnicodeUTF8)
|
277
280
|
@lbl_mode.text = Qt::Application.translate("Spi_settings", "Mode:", nil, Qt::Application::UnicodeUTF8)
|
278
281
|
@cbx_mode.insertItems(0, [Qt::Application.translate("Spi_settings", "0", nil, Qt::Application::UnicodeUTF8),
|
279
282
|
Qt::Application.translate("Spi_settings", "1", nil, Qt::Application::UnicodeUTF8),
|
280
283
|
Qt::Application.translate("Spi_settings", "2", nil, Qt::Application::UnicodeUTF8),
|
281
284
|
Qt::Application.translate("Spi_settings", "3", nil, Qt::Application::UnicodeUTF8)])
|
282
285
|
@label.text = Qt::Application.translate("Spi_settings", "Write command:", nil, Qt::Application::UnicodeUTF8)
|
286
|
+
@lie_cmd_write.placeholderText = Qt::Application.translate("Spi_settings", "in decimal", nil, Qt::Application::UnicodeUTF8)
|
283
287
|
@lbl_total_size.text = Qt::Application.translate("Spi_settings", "Total size:", nil, Qt::Application::UnicodeUTF8)
|
284
288
|
@lie_total_size.placeholderText = Qt::Application.translate("Spi_settings", "8 bits word", nil, Qt::Application::UnicodeUTF8)
|
285
289
|
@lbl_page_size.text = Qt::Application.translate("Spi_settings", "Page size:", nil, Qt::Application::UnicodeUTF8)
|
286
|
-
@lie_page_size.placeholderText = Qt::Application.translate("Spi_settings", "in
|
290
|
+
@lie_page_size.placeholderText = Qt::Application.translate("Spi_settings", "in byte", nil, Qt::Application::UnicodeUTF8)
|
287
291
|
@label_2.text = Qt::Application.translate("Spi_settings", "Write page latency:", nil, Qt::Application::UnicodeUTF8)
|
288
292
|
@lie_write_page_latency.placeholderText = Qt::Application.translate("Spi_settings", "in miliseconds", nil, Qt::Application::UnicodeUTF8)
|
289
293
|
@label_3.text = Qt::Application.translate("Spi_settings", "Clear chip time:", nil, Qt::Application::UnicodeUTF8)
|
@@ -0,0 +1,112 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_spi_sniffer.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. juil. 20 09:39:08 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_Spi_sniffer
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :verticalLayout
|
13
|
+
attr_reader :horizontalLayout
|
14
|
+
attr_reader :btn_start
|
15
|
+
attr_reader :cbx_type
|
16
|
+
attr_reader :btn_stop
|
17
|
+
attr_reader :btn_close
|
18
|
+
attr_reader :tbl_result
|
19
|
+
|
20
|
+
def setupUi(spi_sniffer)
|
21
|
+
if spi_sniffer.objectName.nil?
|
22
|
+
spi_sniffer.objectName = "spi_sniffer"
|
23
|
+
end
|
24
|
+
spi_sniffer.resize(400, 604)
|
25
|
+
@gridLayout = Qt::GridLayout.new(spi_sniffer)
|
26
|
+
@gridLayout.objectName = "gridLayout"
|
27
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
28
|
+
@verticalLayout.objectName = "verticalLayout"
|
29
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
30
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
31
|
+
@btn_start = Qt::PushButton.new(spi_sniffer)
|
32
|
+
@btn_start.objectName = "btn_start"
|
33
|
+
|
34
|
+
@horizontalLayout.addWidget(@btn_start)
|
35
|
+
|
36
|
+
@cbx_type = Qt::ComboBox.new(spi_sniffer)
|
37
|
+
@cbx_type.objectName = "cbx_type"
|
38
|
+
|
39
|
+
@horizontalLayout.addWidget(@cbx_type)
|
40
|
+
|
41
|
+
@btn_stop = Qt::PushButton.new(spi_sniffer)
|
42
|
+
@btn_stop.objectName = "btn_stop"
|
43
|
+
@btn_stop.enabled = false
|
44
|
+
|
45
|
+
@horizontalLayout.addWidget(@btn_stop)
|
46
|
+
|
47
|
+
@btn_close = Qt::PushButton.new(spi_sniffer)
|
48
|
+
@btn_close.objectName = "btn_close"
|
49
|
+
|
50
|
+
@horizontalLayout.addWidget(@btn_close)
|
51
|
+
|
52
|
+
|
53
|
+
@verticalLayout.addLayout(@horizontalLayout)
|
54
|
+
|
55
|
+
@tbl_result = Qt::TableWidget.new(spi_sniffer)
|
56
|
+
@tbl_result.objectName = "tbl_result"
|
57
|
+
@tbl_result.sortingEnabled = true
|
58
|
+
|
59
|
+
@verticalLayout.addWidget(@tbl_result)
|
60
|
+
|
61
|
+
|
62
|
+
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
63
|
+
|
64
|
+
|
65
|
+
retranslateUi(spi_sniffer)
|
66
|
+
Qt::Object.connect(@btn_close, SIGNAL('clicked()'), spi_sniffer, SLOT('close()'))
|
67
|
+
Qt::Object.connect(@btn_start, SIGNAL('clicked()'), spi_sniffer, SLOT('start()'))
|
68
|
+
Qt::Object.connect(@btn_stop, SIGNAL('clicked()'), spi_sniffer, SLOT('stop()'))
|
69
|
+
|
70
|
+
Qt::MetaObject.connectSlotsByName(spi_sniffer)
|
71
|
+
end # setupUi
|
72
|
+
|
73
|
+
def setup_ui(spi_sniffer)
|
74
|
+
setupUi(spi_sniffer)
|
75
|
+
end
|
76
|
+
|
77
|
+
def retranslateUi(spi_sniffer)
|
78
|
+
spi_sniffer.windowTitle = Qt::Application.translate("Spi_sniffer", "Hardsploit - SPI sniffer", nil, Qt::Application::UnicodeUTF8)
|
79
|
+
@btn_start.text = Qt::Application.translate("Spi_sniffer", "Start", nil, Qt::Application::UnicodeUTF8)
|
80
|
+
@cbx_type.insertItems(0, [Qt::Application.translate("Spi_sniffer", "Both", nil, Qt::Application::UnicodeUTF8),
|
81
|
+
Qt::Application.translate("Spi_sniffer", "MOSI", nil, Qt::Application::UnicodeUTF8),
|
82
|
+
Qt::Application.translate("Spi_sniffer", "MISO", nil, Qt::Application::UnicodeUTF8)])
|
83
|
+
@btn_stop.text = Qt::Application.translate("Spi_sniffer", "Stop", nil, Qt::Application::UnicodeUTF8)
|
84
|
+
@btn_close.text = Qt::Application.translate("Spi_sniffer", "Close", nil, Qt::Application::UnicodeUTF8)
|
85
|
+
if @tbl_result.columnCount < 3
|
86
|
+
@tbl_result.columnCount = 3
|
87
|
+
end
|
88
|
+
|
89
|
+
__colItem = Qt::TableWidgetItem.new
|
90
|
+
__colItem.setText(Qt::Application.translate("Spi_sniffer", "Number", nil, Qt::Application::UnicodeUTF8))
|
91
|
+
@tbl_result.setHorizontalHeaderItem(0, __colItem)
|
92
|
+
|
93
|
+
__colItem1 = Qt::TableWidgetItem.new
|
94
|
+
__colItem1.setText(Qt::Application.translate("Spi_sniffer", "MOSI", nil, Qt::Application::UnicodeUTF8))
|
95
|
+
@tbl_result.setHorizontalHeaderItem(1, __colItem1)
|
96
|
+
|
97
|
+
__colItem2 = Qt::TableWidgetItem.new
|
98
|
+
__colItem2.setText(Qt::Application.translate("Spi_sniffer", "MISO", nil, Qt::Application::UnicodeUTF8))
|
99
|
+
@tbl_result.setHorizontalHeaderItem(2, __colItem2)
|
100
|
+
end # retranslateUi
|
101
|
+
|
102
|
+
def retranslate_ui(spi_sniffer)
|
103
|
+
retranslateUi(spi_sniffer)
|
104
|
+
end
|
105
|
+
|
106
|
+
end
|
107
|
+
|
108
|
+
module Ui
|
109
|
+
class Spi_sniffer < Ui_Spi_sniffer
|
110
|
+
end
|
111
|
+
end # module Ui
|
112
|
+
|
@@ -0,0 +1,166 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_swd_settings.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mai 18 14:54:28 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_Swd_settings
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :verticalLayout
|
13
|
+
attr_reader :horizontalLayout_2
|
14
|
+
attr_reader :lbl_chip
|
15
|
+
attr_reader :lbl_parameters
|
16
|
+
attr_reader :horizontalSpacer_2
|
17
|
+
attr_reader :formLayout
|
18
|
+
attr_reader :label_2
|
19
|
+
attr_reader :lie_start_address
|
20
|
+
attr_reader :label_3
|
21
|
+
attr_reader :lie_size_address
|
22
|
+
attr_reader :label_4
|
23
|
+
attr_reader :label_5
|
24
|
+
attr_reader :lie_cpu_id_address
|
25
|
+
attr_reader :lie_device_id_address
|
26
|
+
attr_reader :horizontalLayout
|
27
|
+
attr_reader :horizontalSpacer
|
28
|
+
attr_reader :btn_cancel
|
29
|
+
attr_reader :btn_save
|
30
|
+
|
31
|
+
def setupUi(swd_settings)
|
32
|
+
if swd_settings.objectName.nil?
|
33
|
+
swd_settings.objectName = "swd_settings"
|
34
|
+
end
|
35
|
+
swd_settings.windowModality = Qt::ApplicationModal
|
36
|
+
swd_settings.resize(400, 179)
|
37
|
+
@gridLayout = Qt::GridLayout.new(swd_settings)
|
38
|
+
@gridLayout.objectName = "gridLayout"
|
39
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
40
|
+
@verticalLayout.objectName = "verticalLayout"
|
41
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
42
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
43
|
+
@lbl_chip = Qt::Label.new(swd_settings)
|
44
|
+
@lbl_chip.objectName = "lbl_chip"
|
45
|
+
|
46
|
+
@horizontalLayout_2.addWidget(@lbl_chip)
|
47
|
+
|
48
|
+
@lbl_parameters = Qt::Label.new(swd_settings)
|
49
|
+
@lbl_parameters.objectName = "lbl_parameters"
|
50
|
+
|
51
|
+
@horizontalLayout_2.addWidget(@lbl_parameters)
|
52
|
+
|
53
|
+
@horizontalSpacer_2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
54
|
+
|
55
|
+
@horizontalLayout_2.addItem(@horizontalSpacer_2)
|
56
|
+
|
57
|
+
|
58
|
+
@verticalLayout.addLayout(@horizontalLayout_2)
|
59
|
+
|
60
|
+
@formLayout = Qt::FormLayout.new()
|
61
|
+
@formLayout.objectName = "formLayout"
|
62
|
+
@label_2 = Qt::Label.new(swd_settings)
|
63
|
+
@label_2.objectName = "label_2"
|
64
|
+
|
65
|
+
@formLayout.setWidget(0, Qt::FormLayout::LabelRole, @label_2)
|
66
|
+
|
67
|
+
@lie_start_address = Qt::LineEdit.new(swd_settings)
|
68
|
+
@lie_start_address.objectName = "lie_start_address"
|
69
|
+
|
70
|
+
@formLayout.setWidget(0, Qt::FormLayout::FieldRole, @lie_start_address)
|
71
|
+
|
72
|
+
@label_3 = Qt::Label.new(swd_settings)
|
73
|
+
@label_3.objectName = "label_3"
|
74
|
+
|
75
|
+
@formLayout.setWidget(1, Qt::FormLayout::LabelRole, @label_3)
|
76
|
+
|
77
|
+
@lie_size_address = Qt::LineEdit.new(swd_settings)
|
78
|
+
@lie_size_address.objectName = "lie_size_address"
|
79
|
+
|
80
|
+
@formLayout.setWidget(1, Qt::FormLayout::FieldRole, @lie_size_address)
|
81
|
+
|
82
|
+
@label_4 = Qt::Label.new(swd_settings)
|
83
|
+
@label_4.objectName = "label_4"
|
84
|
+
|
85
|
+
@formLayout.setWidget(2, Qt::FormLayout::LabelRole, @label_4)
|
86
|
+
|
87
|
+
@label_5 = Qt::Label.new(swd_settings)
|
88
|
+
@label_5.objectName = "label_5"
|
89
|
+
|
90
|
+
@formLayout.setWidget(3, Qt::FormLayout::LabelRole, @label_5)
|
91
|
+
|
92
|
+
@lie_cpu_id_address = Qt::LineEdit.new(swd_settings)
|
93
|
+
@lie_cpu_id_address.objectName = "lie_cpu_id_address"
|
94
|
+
|
95
|
+
@formLayout.setWidget(2, Qt::FormLayout::FieldRole, @lie_cpu_id_address)
|
96
|
+
|
97
|
+
@lie_device_id_address = Qt::LineEdit.new(swd_settings)
|
98
|
+
@lie_device_id_address.objectName = "lie_device_id_address"
|
99
|
+
|
100
|
+
@formLayout.setWidget(3, Qt::FormLayout::FieldRole, @lie_device_id_address)
|
101
|
+
|
102
|
+
|
103
|
+
@verticalLayout.addLayout(@formLayout)
|
104
|
+
|
105
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
106
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
107
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
108
|
+
|
109
|
+
@horizontalLayout.addItem(@horizontalSpacer)
|
110
|
+
|
111
|
+
@btn_cancel = Qt::PushButton.new(swd_settings)
|
112
|
+
@btn_cancel.objectName = "btn_cancel"
|
113
|
+
|
114
|
+
@horizontalLayout.addWidget(@btn_cancel)
|
115
|
+
|
116
|
+
@btn_save = Qt::PushButton.new(swd_settings)
|
117
|
+
@btn_save.objectName = "btn_save"
|
118
|
+
|
119
|
+
@horizontalLayout.addWidget(@btn_save)
|
120
|
+
|
121
|
+
|
122
|
+
@verticalLayout.addLayout(@horizontalLayout)
|
123
|
+
|
124
|
+
|
125
|
+
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
126
|
+
|
127
|
+
|
128
|
+
retranslateUi(swd_settings)
|
129
|
+
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), swd_settings, SLOT('save_settings()'))
|
130
|
+
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), swd_settings, SLOT('close()'))
|
131
|
+
|
132
|
+
Qt::MetaObject.connectSlotsByName(swd_settings)
|
133
|
+
end # setupUi
|
134
|
+
|
135
|
+
def setup_ui(swd_settings)
|
136
|
+
setupUi(swd_settings)
|
137
|
+
end
|
138
|
+
|
139
|
+
def retranslateUi(swd_settings)
|
140
|
+
swd_settings.windowTitle = Qt::Application.translate("Swd_settings", "Hardsploit - SWD settings", nil, Qt::Application::UnicodeUTF8)
|
141
|
+
@lbl_chip.text = Qt::Application.translate("Swd_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
142
|
+
@lbl_parameters.text = Qt::Application.translate("Swd_settings", "PARAMETERS", nil, Qt::Application::UnicodeUTF8)
|
143
|
+
@label_2.text = Qt::Application.translate("Swd_settings", "Memory start address:", nil, Qt::Application::UnicodeUTF8)
|
144
|
+
@lie_start_address.text = ''
|
145
|
+
@lie_start_address.placeholderText = Qt::Application.translate("Swd_settings", "eg 1ffff7e0", nil, Qt::Application::UnicodeUTF8)
|
146
|
+
@label_3.text = Qt::Application.translate("Swd_settings", "Memory size address:", nil, Qt::Application::UnicodeUTF8)
|
147
|
+
@lie_size_address.placeholderText = Qt::Application.translate("Swd_settings", "eg 08000000", nil, Qt::Application::UnicodeUTF8)
|
148
|
+
@label_4.text = Qt::Application.translate("Swd_settings", "CPU ID address:", nil, Qt::Application::UnicodeUTF8)
|
149
|
+
@label_5.text = Qt::Application.translate("Swd_settings", "Device ID address:", nil, Qt::Application::UnicodeUTF8)
|
150
|
+
@lie_cpu_id_address.placeholderText = Qt::Application.translate("Swd_settings", "eg E000ED00", nil, Qt::Application::UnicodeUTF8)
|
151
|
+
@lie_device_id_address.placeholderText = Qt::Application.translate("Swd_settings", "eg 1FFFF7E8", nil, Qt::Application::UnicodeUTF8)
|
152
|
+
@btn_cancel.text = Qt::Application.translate("Swd_settings", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
153
|
+
@btn_save.text = Qt::Application.translate("Swd_settings", "Save", nil, Qt::Application::UnicodeUTF8)
|
154
|
+
end # retranslateUi
|
155
|
+
|
156
|
+
def retranslate_ui(swd_settings)
|
157
|
+
retranslateUi(swd_settings)
|
158
|
+
end
|
159
|
+
|
160
|
+
end
|
161
|
+
|
162
|
+
module Ui
|
163
|
+
class Swd_settings < Ui_Swd_settings
|
164
|
+
end
|
165
|
+
end # module Ui
|
166
|
+
|
@@ -0,0 +1,114 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_uart_baudrate.ui'
|
3
|
+
**
|
4
|
+
** Created: mar. juil. 19 15:12:34 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_baudrate
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :verticalLayout
|
13
|
+
attr_reader :lbl_tip
|
14
|
+
attr_reader :horizontalLayout
|
15
|
+
attr_reader :btn_start
|
16
|
+
attr_reader :btn_stop
|
17
|
+
attr_reader :lbl_baudrate
|
18
|
+
attr_reader :horizontalLayout_2
|
19
|
+
attr_reader :horizontalSpacer
|
20
|
+
attr_reader :pushButton
|
21
|
+
attr_reader :btn_close
|
22
|
+
|
23
|
+
def setupUi(uart_baudrate)
|
24
|
+
if uart_baudrate.objectName.nil?
|
25
|
+
uart_baudrate.objectName = "uart_baudrate"
|
26
|
+
end
|
27
|
+
uart_baudrate.resize(259, 114)
|
28
|
+
@gridLayout = Qt::GridLayout.new(uart_baudrate)
|
29
|
+
@gridLayout.objectName = "gridLayout"
|
30
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
31
|
+
@verticalLayout.objectName = "verticalLayout"
|
32
|
+
@lbl_tip = Qt::Label.new(uart_baudrate)
|
33
|
+
@lbl_tip.objectName = "lbl_tip"
|
34
|
+
|
35
|
+
@verticalLayout.addWidget(@lbl_tip)
|
36
|
+
|
37
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
38
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
39
|
+
@btn_start = Qt::PushButton.new(uart_baudrate)
|
40
|
+
@btn_start.objectName = "btn_start"
|
41
|
+
|
42
|
+
@horizontalLayout.addWidget(@btn_start)
|
43
|
+
|
44
|
+
@btn_stop = Qt::PushButton.new(uart_baudrate)
|
45
|
+
@btn_stop.objectName = "btn_stop"
|
46
|
+
@btn_stop.enabled = false
|
47
|
+
|
48
|
+
@horizontalLayout.addWidget(@btn_stop)
|
49
|
+
|
50
|
+
|
51
|
+
@verticalLayout.addLayout(@horizontalLayout)
|
52
|
+
|
53
|
+
@lbl_baudrate = Qt::Label.new(uart_baudrate)
|
54
|
+
@lbl_baudrate.objectName = "lbl_baudrate"
|
55
|
+
|
56
|
+
@verticalLayout.addWidget(@lbl_baudrate)
|
57
|
+
|
58
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
59
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
60
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
61
|
+
|
62
|
+
@horizontalLayout_2.addItem(@horizontalSpacer)
|
63
|
+
|
64
|
+
@pushButton = Qt::PushButton.new(uart_baudrate)
|
65
|
+
@pushButton.objectName = "pushButton"
|
66
|
+
|
67
|
+
@horizontalLayout_2.addWidget(@pushButton)
|
68
|
+
|
69
|
+
@btn_close = Qt::PushButton.new(uart_baudrate)
|
70
|
+
@btn_close.objectName = "btn_close"
|
71
|
+
|
72
|
+
@horizontalLayout_2.addWidget(@btn_close)
|
73
|
+
|
74
|
+
|
75
|
+
@verticalLayout.addLayout(@horizontalLayout_2)
|
76
|
+
|
77
|
+
|
78
|
+
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
79
|
+
|
80
|
+
|
81
|
+
retranslateUi(uart_baudrate)
|
82
|
+
Qt::Object.connect(@btn_start, SIGNAL('clicked()'), uart_baudrate, SLOT('start_detect()'))
|
83
|
+
Qt::Object.connect(@btn_stop, SIGNAL('clicked()'), uart_baudrate, SLOT('stop_detect()'))
|
84
|
+
Qt::Object.connect(@btn_close, SIGNAL('clicked()'), uart_baudrate, SLOT('close()'))
|
85
|
+
Qt::Object.connect(@pushButton, SIGNAL('clicked()'), uart_baudrate, SLOT('copy()'))
|
86
|
+
|
87
|
+
Qt::MetaObject.connectSlotsByName(uart_baudrate)
|
88
|
+
end # setupUi
|
89
|
+
|
90
|
+
def setup_ui(uart_baudrate)
|
91
|
+
setupUi(uart_baudrate)
|
92
|
+
end
|
93
|
+
|
94
|
+
def retranslateUi(uart_baudrate)
|
95
|
+
uart_baudrate.windowTitle = Qt::Application.translate("Uart_baudrate", "Hardsploit - Baudrate autodetect", nil, Qt::Application::UnicodeUTF8)
|
96
|
+
@lbl_tip.text = Qt::Application.translate("Uart_baudrate", "Push \"Start\", restart your target then click \"Stop\"", nil, Qt::Application::UnicodeUTF8)
|
97
|
+
@btn_start.text = Qt::Application.translate("Uart_baudrate", "Start", nil, Qt::Application::UnicodeUTF8)
|
98
|
+
@btn_stop.text = Qt::Application.translate("Uart_baudrate", "Stop", nil, Qt::Application::UnicodeUTF8)
|
99
|
+
@lbl_baudrate.text = Qt::Application.translate("Uart_baudrate", "Baud rate detected:", nil, Qt::Application::UnicodeUTF8)
|
100
|
+
@pushButton.text = Qt::Application.translate("Uart_baudrate", "Copy to settings", nil, Qt::Application::UnicodeUTF8)
|
101
|
+
@btn_close.text = Qt::Application.translate("Uart_baudrate", "Close", nil, Qt::Application::UnicodeUTF8)
|
102
|
+
end # retranslateUi
|
103
|
+
|
104
|
+
def retranslate_ui(uart_baudrate)
|
105
|
+
retranslateUi(uart_baudrate)
|
106
|
+
end
|
107
|
+
|
108
|
+
end
|
109
|
+
|
110
|
+
module Ui
|
111
|
+
class Uart_baudrate < Ui_Uart_baudrate
|
112
|
+
end
|
113
|
+
end # module Ui
|
114
|
+
|
@@ -0,0 +1,164 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_uart_console.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mai 25 09:55:50 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_console
|
11
|
+
attr_reader :actionSend
|
12
|
+
attr_reader :gridLayout
|
13
|
+
attr_reader :verticalLayout
|
14
|
+
attr_reader :horizontalLayout_2
|
15
|
+
attr_reader :lbl_chip
|
16
|
+
attr_reader :label
|
17
|
+
attr_reader :btn_connect
|
18
|
+
attr_reader :btn_disconnect
|
19
|
+
attr_reader :pushButton
|
20
|
+
attr_reader :horizontalSpacer
|
21
|
+
attr_reader :btn_clear
|
22
|
+
attr_reader :console
|
23
|
+
attr_reader :horizontalLayout
|
24
|
+
attr_reader :lie_cmd
|
25
|
+
attr_reader :btn_send
|
26
|
+
|
27
|
+
def setupUi(uart_console)
|
28
|
+
if uart_console.objectName.nil?
|
29
|
+
uart_console.objectName = "uart_console"
|
30
|
+
end
|
31
|
+
uart_console.windowModality = Qt::WindowModal
|
32
|
+
uart_console.resize(710, 587)
|
33
|
+
@actionSend = Qt::Action.new(uart_console)
|
34
|
+
@actionSend.objectName = "actionSend"
|
35
|
+
@gridLayout = Qt::GridLayout.new(uart_console)
|
36
|
+
@gridLayout.objectName = "gridLayout"
|
37
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
38
|
+
@verticalLayout.objectName = "verticalLayout"
|
39
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
40
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
41
|
+
@lbl_chip = Qt::Label.new(uart_console)
|
42
|
+
@lbl_chip.objectName = "lbl_chip"
|
43
|
+
|
44
|
+
@horizontalLayout_2.addWidget(@lbl_chip)
|
45
|
+
|
46
|
+
@label = Qt::Label.new(uart_console)
|
47
|
+
@label.objectName = "label"
|
48
|
+
|
49
|
+
@horizontalLayout_2.addWidget(@label)
|
50
|
+
|
51
|
+
@btn_connect = Qt::PushButton.new(uart_console)
|
52
|
+
@btn_connect.objectName = "btn_connect"
|
53
|
+
|
54
|
+
@horizontalLayout_2.addWidget(@btn_connect)
|
55
|
+
|
56
|
+
@btn_disconnect = Qt::PushButton.new(uart_console)
|
57
|
+
@btn_disconnect.objectName = "btn_disconnect"
|
58
|
+
@btn_disconnect.enabled = false
|
59
|
+
|
60
|
+
@horizontalLayout_2.addWidget(@btn_disconnect)
|
61
|
+
|
62
|
+
@pushButton = Qt::PushButton.new(uart_console)
|
63
|
+
@pushButton.objectName = "pushButton"
|
64
|
+
|
65
|
+
@horizontalLayout_2.addWidget(@pushButton)
|
66
|
+
|
67
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
68
|
+
|
69
|
+
@horizontalLayout_2.addItem(@horizontalSpacer)
|
70
|
+
|
71
|
+
@btn_clear = Qt::PushButton.new(uart_console)
|
72
|
+
@btn_clear.objectName = "btn_clear"
|
73
|
+
|
74
|
+
@horizontalLayout_2.addWidget(@btn_clear)
|
75
|
+
|
76
|
+
|
77
|
+
@verticalLayout.addLayout(@horizontalLayout_2)
|
78
|
+
|
79
|
+
@console = Qt::TextEdit.new(uart_console)
|
80
|
+
@console.objectName = "console"
|
81
|
+
@palette = Qt::Palette.new
|
82
|
+
brush = Qt::Brush.new(Qt::Color.new(170, 255, 0, 255))
|
83
|
+
brush.style = Qt::SolidPattern
|
84
|
+
@palette.setBrush(Qt::Palette::Active, Qt::Palette::Text, brush)
|
85
|
+
brush1 = Qt::Brush.new(Qt::Color.new(0, 0, 0, 255))
|
86
|
+
brush1.style = Qt::SolidPattern
|
87
|
+
@palette.setBrush(Qt::Palette::Active, Qt::Palette::Base, brush1)
|
88
|
+
@palette.setBrush(Qt::Palette::Inactive, Qt::Palette::Text, brush)
|
89
|
+
@palette.setBrush(Qt::Palette::Inactive, Qt::Palette::Base, brush1)
|
90
|
+
brush2 = Qt::Brush.new(Qt::Color.new(120, 120, 120, 255))
|
91
|
+
brush2.style = Qt::SolidPattern
|
92
|
+
@palette.setBrush(Qt::Palette::Disabled, Qt::Palette::Text, brush2)
|
93
|
+
brush3 = Qt::Brush.new(Qt::Color.new(240, 240, 240, 255))
|
94
|
+
brush3.style = Qt::SolidPattern
|
95
|
+
@palette.setBrush(Qt::Palette::Disabled, Qt::Palette::Base, brush3)
|
96
|
+
@console.palette = @palette
|
97
|
+
@font = Qt::Font.new
|
98
|
+
@font.family = "Small Fonts"
|
99
|
+
@font.bold = false
|
100
|
+
@font.weight = 50
|
101
|
+
@console.font = @font
|
102
|
+
@console.frameShape = Qt::Frame::StyledPanel
|
103
|
+
@console.frameShadow = Qt::Frame::Sunken
|
104
|
+
@console.readOnly = true
|
105
|
+
|
106
|
+
@verticalLayout.addWidget(@console)
|
107
|
+
|
108
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
109
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
110
|
+
@lie_cmd = Qt::LineEdit.new(uart_console)
|
111
|
+
@lie_cmd.objectName = "lie_cmd"
|
112
|
+
|
113
|
+
@horizontalLayout.addWidget(@lie_cmd)
|
114
|
+
|
115
|
+
@btn_send = Qt::PushButton.new(uart_console)
|
116
|
+
@btn_send.objectName = "btn_send"
|
117
|
+
|
118
|
+
@horizontalLayout.addWidget(@btn_send)
|
119
|
+
|
120
|
+
|
121
|
+
@verticalLayout.addLayout(@horizontalLayout)
|
122
|
+
|
123
|
+
|
124
|
+
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
125
|
+
|
126
|
+
|
127
|
+
retranslateUi(uart_console)
|
128
|
+
Qt::Object.connect(@btn_send, SIGNAL('clicked()'), uart_console, SLOT('send()'))
|
129
|
+
Qt::Object.connect(@btn_connect, SIGNAL('clicked()'), uart_console, SLOT('connect()'))
|
130
|
+
Qt::Object.connect(@btn_disconnect, SIGNAL('clicked()'), uart_console, SLOT('disconnect()'))
|
131
|
+
Qt::Object.connect(@btn_clear, SIGNAL('clicked()'), uart_console, SLOT('clear_console()'))
|
132
|
+
Qt::Object.connect(@pushButton, SIGNAL('clicked()'), uart_console, SLOT('open_settings()'))
|
133
|
+
|
134
|
+
Qt::MetaObject.connectSlotsByName(uart_console)
|
135
|
+
end # setupUi
|
136
|
+
|
137
|
+
def setup_ui(uart_console)
|
138
|
+
setupUi(uart_console)
|
139
|
+
end
|
140
|
+
|
141
|
+
def retranslateUi(uart_console)
|
142
|
+
uart_console.windowTitle = Qt::Application.translate("Uart_console", "Hardsploit - UART console", nil, Qt::Application::UnicodeUTF8)
|
143
|
+
@actionSend.text = Qt::Application.translate("Uart_console", "Send", nil, Qt::Application::UnicodeUTF8)
|
144
|
+
@actionSend.shortcut = Qt::Application.translate("Uart_console", "Return", nil, Qt::Application::UnicodeUTF8)
|
145
|
+
@lbl_chip.text = Qt::Application.translate("Uart_console", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
146
|
+
@label.text = Qt::Application.translate("Uart_console", "UART console", nil, Qt::Application::UnicodeUTF8)
|
147
|
+
@btn_connect.text = Qt::Application.translate("Uart_console", "Connect", nil, Qt::Application::UnicodeUTF8)
|
148
|
+
@btn_disconnect.text = Qt::Application.translate("Uart_console", "Disconnect", nil, Qt::Application::UnicodeUTF8)
|
149
|
+
@pushButton.text = Qt::Application.translate("Uart_console", "Settings", nil, Qt::Application::UnicodeUTF8)
|
150
|
+
@btn_clear.text = Qt::Application.translate("Uart_console", "Clear", nil, Qt::Application::UnicodeUTF8)
|
151
|
+
@btn_send.text = Qt::Application.translate("Uart_console", "Send", nil, Qt::Application::UnicodeUTF8)
|
152
|
+
end # retranslateUi
|
153
|
+
|
154
|
+
def retranslate_ui(uart_console)
|
155
|
+
retranslateUi(uart_console)
|
156
|
+
end
|
157
|
+
|
158
|
+
end
|
159
|
+
|
160
|
+
module Ui
|
161
|
+
class Uart_console < Ui_Uart_console
|
162
|
+
end
|
163
|
+
end # module Ui
|
164
|
+
|