hardsploit_gui 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/Hardsploit_gui.rb +4 -5
- data/lib/class/Chip_clone.rb +70 -0
- data/lib/class/Chip_editor.rb +1 -0
- data/lib/class/Chip_management.rb +73 -52
- data/lib/class/ErrorMsg.rb +1 -0
- data/lib/class/Firmware.rb +1 -1
- data/lib/class/Progress_bar.rb +1 -1
- data/lib/class/Wire_helper.rb +6 -3
- data/lib/class/{I2C → i2c}/I2c_command.rb +0 -0
- data/lib/class/{I2C/I2c_export.rb → i2c/I2c_read.rb} +15 -15
- data/lib/class/{I2C → i2c}/I2c_scanner.rb +2 -1
- data/lib/class/{I2C → i2c}/I2c_settings.rb +1 -0
- data/lib/class/{I2C/I2c_import.rb → i2c/I2c_write.rb} +13 -12
- data/lib/class/{PARALLEL/Parallel_export.rb → parallel/Parallel_read.rb} +17 -18
- data/lib/class/{PARALLEL → parallel}/Parallel_settings.rb +0 -0
- data/lib/class/{PARALLEL/Parallel_import.rb → parallel/Parallel_write.rb} +11 -10
- data/lib/class/{SPI/Spi_export.rb → spi/Spi_read.rb} +15 -15
- data/lib/class/{SPI → spi}/Spi_settings.rb +0 -0
- data/lib/class/{SPI → spi}/Spi_sniffer.rb +2 -1
- data/lib/class/{SPI/Spi_import.rb → spi/Spi_write.rb} +13 -12
- data/lib/class/swd/Swd.rb +10 -10
- data/lib/class/swd/Swd_scanner.rb +2 -1
- data/lib/class/uart/Uart_baudrate.rb +1 -1
- data/lib/class/uart/Uart_console.rb +1 -1
- data/lib/class/uart/Uart_settings.rb +1 -0
- data/lib/db/development.sqlite3 +0 -0
- data/lib/gui/gui_chip_clone.rb +87 -0
- data/lib/gui/gui_chip_editor.rb +349 -349
- data/lib/gui/gui_chip_management.rb +378 -377
- data/lib/gui/gui_command_editor.rb +219 -219
- data/lib/gui/gui_export.rb +132 -132
- data/lib/gui/gui_export_manager.rb +93 -93
- data/lib/gui/gui_generic_commands.rb +202 -202
- data/lib/gui/gui_generic_read.rb +185 -0
- data/lib/gui/gui_generic_write.rb +142 -0
- data/lib/gui/gui_i2c_command.rb +116 -116
- data/lib/gui/gui_i2c_settings.rb +242 -230
- data/lib/gui/gui_import.rb +131 -131
- data/lib/gui/gui_parallel_settings.rb +195 -195
- data/lib/gui/gui_progress_bar.rb +85 -85
- data/lib/gui/gui_signal_mapper.rb +121 -121
- data/lib/gui/gui_signal_scanner.rb +146 -146
- data/lib/gui/gui_spi_settings.rb +313 -313
- data/lib/gui/gui_spi_sniffer.rb +112 -112
- data/lib/gui/gui_swd_settings.rb +166 -166
- data/lib/gui/gui_uart_baudrate.rb +114 -114
- data/lib/gui/gui_uart_console.rb +164 -164
- data/lib/gui/gui_uart_settings.rb +243 -243
- data/lib/gui/gui_wire_helper.rb +99 -99
- data/lib/gui_designer/compile_to_ruby.sh +14 -0
- data/lib/gui_designer/gui_chip_clone.ui +96 -0
- data/lib/gui_designer/gui_chip_management.ui +25 -22
- data/lib/gui_designer/{gui_generic_export.ui → gui_generic_read.ui} +152 -72
- data/lib/gui_designer/{gui_generic_import.ui → gui_generic_write.ui} +47 -47
- data/lib/gui_designer/gui_i2c_settings.ui +68 -60
- data/lib/hardsploit-api/Examples/swdProgrammer.rb +76 -0
- data/lib/hardsploit-api/Examples/testI2C.rb +183 -0
- data/lib/hardsploit-api/Examples/testNRF24L01.rb +122 -0
- data/lib/hardsploit-api/Examples/testParralel.rb +84 -0
- data/lib/hardsploit-api/Examples/testSPI.rb +113 -0
- data/lib/hardsploit-api/Examples/testSPISniffer.rb +91 -0
- data/lib/hardsploit-api/Examples/testSWD.rb +224 -0
- data/lib/hardsploit-api/Examples/testUARTBufferOverflow.rb +113 -0
- data/lib/hardsploit-api/Examples/testUARTConsole.rb +74 -0
- data/lib/hardsploit-api/Examples/testUARTFuzzer.rb +109 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/I2C/I2C_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_I2C_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/SPI/SPI_SNIFFER/HARDSPLOIT_FIRMWARE_FPGA_SPI_SNIFFER.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/TEST/TEST_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_TEST_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/UART/UART_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_UART_INTERACT.rpd +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/VersionFPGA.rb +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/UC/HARDSPLOIT_FIRMWARE_UC.bin +0 -0
- data/lib/{Firmwares → hardsploit-api/Firmwares}/UC/VersionUC.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_CONSTANT.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_ERROR.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_FIRMWARE.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_PROGRESS.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_USB_COMMUNICATION.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/I2C/HardsploitAPI_I2C.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/NO_MUX_PARALLEL_MEMORY/HardsploitAPI_NO_MUX_PARALLEL_MEMORY.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/NRF24L01/HardsploitAPI_NRF24L01.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SPI/HardsploitAPI_SPI.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SPI_SNIFFER/HardsploitAPI_SPI_SNIFFER.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD_DEBUG.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD_MEM_AP.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD_STM32.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/TEST/HardsploitAPI_TEST_INTERACT.rb +0 -0
- data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/UART/HardsploitAPI_UART.rb +0 -0
- data/lib/hardsploit-api/LICENSE.txt +674 -0
- data/lib/hardsploit-api/README.md +22 -0
- data/lib/hardsploit-api/TRADEMARK +3 -0
- data/lib/logs/error.log +80 -0
- metadata +65 -49
- data/lib/gui/gui_generic_export.rb +0 -164
- data/lib/gui/gui_generic_import.rb +0 -142
- data/lib/gui/gui_spi_import.rb +0 -126
data/lib/gui/gui_progress_bar.rb
CHANGED
@@ -1,85 +1,85 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_progress_bar.ui'
|
3
|
-
**
|
4
|
-
** Created:
|
5
|
-
** by: Qt User Interface Compiler version 4.8.
|
6
|
-
**
|
7
|
-
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
-
=end
|
9
|
-
|
10
|
-
class Ui_Progress_bar
|
11
|
-
attr_reader :gridLayout
|
12
|
-
attr_reader :lbl_status
|
13
|
-
attr_reader :pgb
|
14
|
-
attr_reader :horizontalLayout
|
15
|
-
attr_reader :lbl_time
|
16
|
-
attr_reader :horizontalSpacer
|
17
|
-
attr_reader :lbl_close
|
18
|
-
|
19
|
-
def setupUi(progress_bar)
|
20
|
-
if progress_bar.objectName.nil?
|
21
|
-
progress_bar.objectName = "progress_bar"
|
22
|
-
end
|
23
|
-
progress_bar.windowModality = Qt::ApplicationModal
|
24
|
-
progress_bar.resize(358, 90)
|
25
|
-
@gridLayout = Qt::GridLayout.new(progress_bar)
|
26
|
-
@gridLayout.objectName = "gridLayout"
|
27
|
-
@lbl_status = Qt::Label.new(progress_bar)
|
28
|
-
@lbl_status.objectName = "lbl_status"
|
29
|
-
|
30
|
-
@gridLayout.addWidget(@lbl_status, 0, 0, 1, 1)
|
31
|
-
|
32
|
-
@pgb = Qt::ProgressBar.new(progress_bar)
|
33
|
-
@pgb.objectName = "pgb"
|
34
|
-
@pgb.value = 0
|
35
|
-
|
36
|
-
@gridLayout.addWidget(@pgb, 1, 0, 1, 1)
|
37
|
-
|
38
|
-
@horizontalLayout = Qt::HBoxLayout.new()
|
39
|
-
@horizontalLayout.objectName = "horizontalLayout"
|
40
|
-
@lbl_time = Qt::Label.new(progress_bar)
|
41
|
-
@lbl_time.objectName = "lbl_time"
|
42
|
-
|
43
|
-
@horizontalLayout.addWidget(@lbl_time)
|
44
|
-
|
45
|
-
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
46
|
-
|
47
|
-
@horizontalLayout.addItem(@horizontalSpacer)
|
48
|
-
|
49
|
-
@lbl_close = Qt::PushButton.new(progress_bar)
|
50
|
-
@lbl_close.objectName = "lbl_close"
|
51
|
-
|
52
|
-
@horizontalLayout.addWidget(@lbl_close)
|
53
|
-
|
54
|
-
|
55
|
-
@gridLayout.addLayout(@horizontalLayout, 3, 0, 1, 1)
|
56
|
-
|
57
|
-
|
58
|
-
retranslateUi(progress_bar)
|
59
|
-
Qt::Object.connect(@lbl_close, SIGNAL('clicked()'), progress_bar, SLOT('close()'))
|
60
|
-
|
61
|
-
Qt::MetaObject.connectSlotsByName(progress_bar)
|
62
|
-
end # setupUi
|
63
|
-
|
64
|
-
def setup_ui(progress_bar)
|
65
|
-
setupUi(progress_bar)
|
66
|
-
end
|
67
|
-
|
68
|
-
def retranslateUi(progress_bar)
|
69
|
-
progress_bar.windowTitle = Qt::Application.translate("Progress_bar", "Processing...", nil, Qt::Application::UnicodeUTF8)
|
70
|
-
@lbl_status.text = Qt::Application.translate("Progress_bar", "[STATUS]", nil, Qt::Application::UnicodeUTF8)
|
71
|
-
@lbl_time.text = Qt::Application.translate("Progress_bar", "[TIME]", nil, Qt::Application::UnicodeUTF8)
|
72
|
-
@lbl_close.text = Qt::Application.translate("Progress_bar", "Close", nil, Qt::Application::UnicodeUTF8)
|
73
|
-
end # retranslateUi
|
74
|
-
|
75
|
-
def retranslate_ui(progress_bar)
|
76
|
-
retranslateUi(progress_bar)
|
77
|
-
end
|
78
|
-
|
79
|
-
end
|
80
|
-
|
81
|
-
module Ui
|
82
|
-
class Progress_bar < Ui_Progress_bar
|
83
|
-
end
|
84
|
-
end # module Ui
|
85
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_progress_bar.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mars 8 11:15:07 2017
|
5
|
+
** by: Qt User Interface Compiler version 4.8.7
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_Progress_bar
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :lbl_status
|
13
|
+
attr_reader :pgb
|
14
|
+
attr_reader :horizontalLayout
|
15
|
+
attr_reader :lbl_time
|
16
|
+
attr_reader :horizontalSpacer
|
17
|
+
attr_reader :lbl_close
|
18
|
+
|
19
|
+
def setupUi(progress_bar)
|
20
|
+
if progress_bar.objectName.nil?
|
21
|
+
progress_bar.objectName = "progress_bar"
|
22
|
+
end
|
23
|
+
progress_bar.windowModality = Qt::ApplicationModal
|
24
|
+
progress_bar.resize(358, 90)
|
25
|
+
@gridLayout = Qt::GridLayout.new(progress_bar)
|
26
|
+
@gridLayout.objectName = "gridLayout"
|
27
|
+
@lbl_status = Qt::Label.new(progress_bar)
|
28
|
+
@lbl_status.objectName = "lbl_status"
|
29
|
+
|
30
|
+
@gridLayout.addWidget(@lbl_status, 0, 0, 1, 1)
|
31
|
+
|
32
|
+
@pgb = Qt::ProgressBar.new(progress_bar)
|
33
|
+
@pgb.objectName = "pgb"
|
34
|
+
@pgb.value = 0
|
35
|
+
|
36
|
+
@gridLayout.addWidget(@pgb, 1, 0, 1, 1)
|
37
|
+
|
38
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
39
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
40
|
+
@lbl_time = Qt::Label.new(progress_bar)
|
41
|
+
@lbl_time.objectName = "lbl_time"
|
42
|
+
|
43
|
+
@horizontalLayout.addWidget(@lbl_time)
|
44
|
+
|
45
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
46
|
+
|
47
|
+
@horizontalLayout.addItem(@horizontalSpacer)
|
48
|
+
|
49
|
+
@lbl_close = Qt::PushButton.new(progress_bar)
|
50
|
+
@lbl_close.objectName = "lbl_close"
|
51
|
+
|
52
|
+
@horizontalLayout.addWidget(@lbl_close)
|
53
|
+
|
54
|
+
|
55
|
+
@gridLayout.addLayout(@horizontalLayout, 3, 0, 1, 1)
|
56
|
+
|
57
|
+
|
58
|
+
retranslateUi(progress_bar)
|
59
|
+
Qt::Object.connect(@lbl_close, SIGNAL('clicked()'), progress_bar, SLOT('close()'))
|
60
|
+
|
61
|
+
Qt::MetaObject.connectSlotsByName(progress_bar)
|
62
|
+
end # setupUi
|
63
|
+
|
64
|
+
def setup_ui(progress_bar)
|
65
|
+
setupUi(progress_bar)
|
66
|
+
end
|
67
|
+
|
68
|
+
def retranslateUi(progress_bar)
|
69
|
+
progress_bar.windowTitle = Qt::Application.translate("Progress_bar", "Processing...", nil, Qt::Application::UnicodeUTF8)
|
70
|
+
@lbl_status.text = Qt::Application.translate("Progress_bar", "[STATUS]", nil, Qt::Application::UnicodeUTF8)
|
71
|
+
@lbl_time.text = Qt::Application.translate("Progress_bar", "[TIME]", nil, Qt::Application::UnicodeUTF8)
|
72
|
+
@lbl_close.text = Qt::Application.translate("Progress_bar", "Close", nil, Qt::Application::UnicodeUTF8)
|
73
|
+
end # retranslateUi
|
74
|
+
|
75
|
+
def retranslate_ui(progress_bar)
|
76
|
+
retranslateUi(progress_bar)
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
80
|
+
|
81
|
+
module Ui
|
82
|
+
class Progress_bar < Ui_Progress_bar
|
83
|
+
end
|
84
|
+
end # module Ui
|
85
|
+
|
@@ -1,121 +1,121 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_signal_mapper.ui'
|
3
|
-
**
|
4
|
-
** Created: mer.
|
5
|
-
** by: Qt User Interface Compiler version 4.8.
|
6
|
-
**
|
7
|
-
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
-
=end
|
9
|
-
|
10
|
-
class Ui_Signal_mapper
|
11
|
-
attr_reader :gridLayout
|
12
|
-
attr_reader :vl
|
13
|
-
attr_reader :hl
|
14
|
-
attr_reader :lbl_bus
|
15
|
-
attr_reader :cbx_bus
|
16
|
-
attr_reader :hs
|
17
|
-
attr_reader :map_table
|
18
|
-
attr_reader :hl2
|
19
|
-
attr_reader :hs2
|
20
|
-
attr_reader :btn_cancel
|
21
|
-
attr_reader :btn_save
|
22
|
-
|
23
|
-
def setupUi(signal_mapper)
|
24
|
-
if signal_mapper.objectName.nil?
|
25
|
-
signal_mapper.objectName = "signal_mapper"
|
26
|
-
end
|
27
|
-
signal_mapper.resize(268, 411)
|
28
|
-
@gridLayout = Qt::GridLayout.new(signal_mapper)
|
29
|
-
@gridLayout.objectName = "gridLayout"
|
30
|
-
@vl = Qt::VBoxLayout.new()
|
31
|
-
@vl.objectName = "vl"
|
32
|
-
@hl = Qt::HBoxLayout.new()
|
33
|
-
@hl.objectName = "hl"
|
34
|
-
@lbl_bus = Qt::Label.new(signal_mapper)
|
35
|
-
@lbl_bus.objectName = "lbl_bus"
|
36
|
-
|
37
|
-
@hl.addWidget(@lbl_bus)
|
38
|
-
|
39
|
-
@cbx_bus = Qt::ComboBox.new(signal_mapper)
|
40
|
-
@cbx_bus.objectName = "cbx_bus"
|
41
|
-
|
42
|
-
@hl.addWidget(@cbx_bus)
|
43
|
-
|
44
|
-
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
45
|
-
|
46
|
-
@hl.addItem(@hs)
|
47
|
-
|
48
|
-
|
49
|
-
@vl.addLayout(@hl)
|
50
|
-
|
51
|
-
@map_table = Qt::TableWidget.new(signal_mapper)
|
52
|
-
@map_table.objectName = "map_table"
|
53
|
-
|
54
|
-
@vl.addWidget(@map_table)
|
55
|
-
|
56
|
-
@hl2 = Qt::HBoxLayout.new()
|
57
|
-
@hl2.objectName = "hl2"
|
58
|
-
@hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
59
|
-
|
60
|
-
@hl2.addItem(@hs2)
|
61
|
-
|
62
|
-
@btn_cancel = Qt::PushButton.new(signal_mapper)
|
63
|
-
@btn_cancel.objectName = "btn_cancel"
|
64
|
-
|
65
|
-
@hl2.addWidget(@btn_cancel)
|
66
|
-
|
67
|
-
@btn_save = Qt::PushButton.new(signal_mapper)
|
68
|
-
@btn_save.objectName = "btn_save"
|
69
|
-
|
70
|
-
@hl2.addWidget(@btn_save)
|
71
|
-
|
72
|
-
|
73
|
-
@vl.addLayout(@hl2)
|
74
|
-
|
75
|
-
|
76
|
-
@gridLayout.addLayout(@vl, 0, 0, 1, 1)
|
77
|
-
|
78
|
-
|
79
|
-
retranslateUi(signal_mapper)
|
80
|
-
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), signal_mapper, SLOT('close()'))
|
81
|
-
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), signal_mapper, SLOT('save_signal_mapping()'))
|
82
|
-
Qt::Object.connect(@cbx_bus, SIGNAL('currentIndexChanged(QString)'), signal_mapper, SLOT('update_map_table(QString)'))
|
83
|
-
Qt::Object.connect(@map_table, SIGNAL('itemChanged(QTableWidgetItem*)'), signal_mapper, SLOT('check_mapping_value(QTableWidgetItem*)'))
|
84
|
-
|
85
|
-
Qt::MetaObject.connectSlotsByName(signal_mapper)
|
86
|
-
end # setupUi
|
87
|
-
|
88
|
-
def setup_ui(signal_mapper)
|
89
|
-
setupUi(signal_mapper)
|
90
|
-
end
|
91
|
-
|
92
|
-
def retranslateUi(signal_mapper)
|
93
|
-
signal_mapper.windowTitle = Qt::Application.translate("Signal_mapper", "Signal mapper", nil, Qt::Application::UnicodeUTF8)
|
94
|
-
@lbl_bus.text = Qt::Application.translate("Signal_mapper", "Select a bus", nil, Qt::Application::UnicodeUTF8)
|
95
|
-
@cbx_bus.insertItems(0, [Qt::Application.translate("Signal_mapper", "Bus...", nil, Qt::Application::UnicodeUTF8)])
|
96
|
-
if @map_table.columnCount < 2
|
97
|
-
@map_table.columnCount = 2
|
98
|
-
end
|
99
|
-
|
100
|
-
__colItem = Qt::TableWidgetItem.new
|
101
|
-
__colItem.setText(Qt::Application.translate("Signal_mapper", "Signal Name", nil, Qt::Application::UnicodeUTF8))
|
102
|
-
@map_table.setHorizontalHeaderItem(0, __colItem)
|
103
|
-
|
104
|
-
__colItem1 = Qt::TableWidgetItem.new
|
105
|
-
__colItem1.setText(Qt::Application.translate("Signal_mapper", "Associated Pin", nil, Qt::Application::UnicodeUTF8))
|
106
|
-
@map_table.setHorizontalHeaderItem(1, __colItem1)
|
107
|
-
@btn_cancel.text = Qt::Application.translate("Signal_mapper", "Close", nil, Qt::Application::UnicodeUTF8)
|
108
|
-
@btn_save.text = Qt::Application.translate("Signal_mapper", "Save", nil, Qt::Application::UnicodeUTF8)
|
109
|
-
end # retranslateUi
|
110
|
-
|
111
|
-
def retranslate_ui(signal_mapper)
|
112
|
-
retranslateUi(signal_mapper)
|
113
|
-
end
|
114
|
-
|
115
|
-
end
|
116
|
-
|
117
|
-
module Ui
|
118
|
-
class Signal_mapper < Ui_Signal_mapper
|
119
|
-
end
|
120
|
-
end # module Ui
|
121
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_signal_mapper.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mars 8 11:15:07 2017
|
5
|
+
** by: Qt User Interface Compiler version 4.8.7
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_Signal_mapper
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :vl
|
13
|
+
attr_reader :hl
|
14
|
+
attr_reader :lbl_bus
|
15
|
+
attr_reader :cbx_bus
|
16
|
+
attr_reader :hs
|
17
|
+
attr_reader :map_table
|
18
|
+
attr_reader :hl2
|
19
|
+
attr_reader :hs2
|
20
|
+
attr_reader :btn_cancel
|
21
|
+
attr_reader :btn_save
|
22
|
+
|
23
|
+
def setupUi(signal_mapper)
|
24
|
+
if signal_mapper.objectName.nil?
|
25
|
+
signal_mapper.objectName = "signal_mapper"
|
26
|
+
end
|
27
|
+
signal_mapper.resize(268, 411)
|
28
|
+
@gridLayout = Qt::GridLayout.new(signal_mapper)
|
29
|
+
@gridLayout.objectName = "gridLayout"
|
30
|
+
@vl = Qt::VBoxLayout.new()
|
31
|
+
@vl.objectName = "vl"
|
32
|
+
@hl = Qt::HBoxLayout.new()
|
33
|
+
@hl.objectName = "hl"
|
34
|
+
@lbl_bus = Qt::Label.new(signal_mapper)
|
35
|
+
@lbl_bus.objectName = "lbl_bus"
|
36
|
+
|
37
|
+
@hl.addWidget(@lbl_bus)
|
38
|
+
|
39
|
+
@cbx_bus = Qt::ComboBox.new(signal_mapper)
|
40
|
+
@cbx_bus.objectName = "cbx_bus"
|
41
|
+
|
42
|
+
@hl.addWidget(@cbx_bus)
|
43
|
+
|
44
|
+
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
45
|
+
|
46
|
+
@hl.addItem(@hs)
|
47
|
+
|
48
|
+
|
49
|
+
@vl.addLayout(@hl)
|
50
|
+
|
51
|
+
@map_table = Qt::TableWidget.new(signal_mapper)
|
52
|
+
@map_table.objectName = "map_table"
|
53
|
+
|
54
|
+
@vl.addWidget(@map_table)
|
55
|
+
|
56
|
+
@hl2 = Qt::HBoxLayout.new()
|
57
|
+
@hl2.objectName = "hl2"
|
58
|
+
@hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
59
|
+
|
60
|
+
@hl2.addItem(@hs2)
|
61
|
+
|
62
|
+
@btn_cancel = Qt::PushButton.new(signal_mapper)
|
63
|
+
@btn_cancel.objectName = "btn_cancel"
|
64
|
+
|
65
|
+
@hl2.addWidget(@btn_cancel)
|
66
|
+
|
67
|
+
@btn_save = Qt::PushButton.new(signal_mapper)
|
68
|
+
@btn_save.objectName = "btn_save"
|
69
|
+
|
70
|
+
@hl2.addWidget(@btn_save)
|
71
|
+
|
72
|
+
|
73
|
+
@vl.addLayout(@hl2)
|
74
|
+
|
75
|
+
|
76
|
+
@gridLayout.addLayout(@vl, 0, 0, 1, 1)
|
77
|
+
|
78
|
+
|
79
|
+
retranslateUi(signal_mapper)
|
80
|
+
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), signal_mapper, SLOT('close()'))
|
81
|
+
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), signal_mapper, SLOT('save_signal_mapping()'))
|
82
|
+
Qt::Object.connect(@cbx_bus, SIGNAL('currentIndexChanged(QString)'), signal_mapper, SLOT('update_map_table(QString)'))
|
83
|
+
Qt::Object.connect(@map_table, SIGNAL('itemChanged(QTableWidgetItem*)'), signal_mapper, SLOT('check_mapping_value(QTableWidgetItem*)'))
|
84
|
+
|
85
|
+
Qt::MetaObject.connectSlotsByName(signal_mapper)
|
86
|
+
end # setupUi
|
87
|
+
|
88
|
+
def setup_ui(signal_mapper)
|
89
|
+
setupUi(signal_mapper)
|
90
|
+
end
|
91
|
+
|
92
|
+
def retranslateUi(signal_mapper)
|
93
|
+
signal_mapper.windowTitle = Qt::Application.translate("Signal_mapper", "Signal mapper", nil, Qt::Application::UnicodeUTF8)
|
94
|
+
@lbl_bus.text = Qt::Application.translate("Signal_mapper", "Select a bus", nil, Qt::Application::UnicodeUTF8)
|
95
|
+
@cbx_bus.insertItems(0, [Qt::Application.translate("Signal_mapper", "Bus...", nil, Qt::Application::UnicodeUTF8)])
|
96
|
+
if @map_table.columnCount < 2
|
97
|
+
@map_table.columnCount = 2
|
98
|
+
end
|
99
|
+
|
100
|
+
__colItem = Qt::TableWidgetItem.new
|
101
|
+
__colItem.setText(Qt::Application.translate("Signal_mapper", "Signal Name", nil, Qt::Application::UnicodeUTF8))
|
102
|
+
@map_table.setHorizontalHeaderItem(0, __colItem)
|
103
|
+
|
104
|
+
__colItem1 = Qt::TableWidgetItem.new
|
105
|
+
__colItem1.setText(Qt::Application.translate("Signal_mapper", "Associated Pin", nil, Qt::Application::UnicodeUTF8))
|
106
|
+
@map_table.setHorizontalHeaderItem(1, __colItem1)
|
107
|
+
@btn_cancel.text = Qt::Application.translate("Signal_mapper", "Close", nil, Qt::Application::UnicodeUTF8)
|
108
|
+
@btn_save.text = Qt::Application.translate("Signal_mapper", "Save", nil, Qt::Application::UnicodeUTF8)
|
109
|
+
end # retranslateUi
|
110
|
+
|
111
|
+
def retranslate_ui(signal_mapper)
|
112
|
+
retranslateUi(signal_mapper)
|
113
|
+
end
|
114
|
+
|
115
|
+
end
|
116
|
+
|
117
|
+
module Ui
|
118
|
+
class Signal_mapper < Ui_Signal_mapper
|
119
|
+
end
|
120
|
+
end # module Ui
|
121
|
+
|
@@ -1,146 +1,146 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_signal_scanner.ui'
|
3
|
-
**
|
4
|
-
** Created: mer.
|
5
|
-
** by: Qt User Interface Compiler version 4.8.
|
6
|
-
**
|
7
|
-
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
-
=end
|
9
|
-
|
10
|
-
class Ui_Signal_scanner
|
11
|
-
attr_reader :gridLayout
|
12
|
-
attr_reader :verticalLayout
|
13
|
-
attr_reader :horizontalLayout_2
|
14
|
-
attr_reader :lbl_nbr_pin
|
15
|
-
attr_reader :cbx_start
|
16
|
-
attr_reader :label
|
17
|
-
attr_reader :cbx_stop
|
18
|
-
attr_reader :tbl_result
|
19
|
-
attr_reader :horizontalLayout
|
20
|
-
attr_reader :btn_scan
|
21
|
-
attr_reader :btn_autowiring
|
22
|
-
attr_reader :btn_close
|
23
|
-
|
24
|
-
def setupUi(signal_scanner)
|
25
|
-
if signal_scanner.objectName.nil?
|
26
|
-
signal_scanner.objectName = "signal_scanner"
|
27
|
-
end
|
28
|
-
signal_scanner.windowModality = Qt::ApplicationModal
|
29
|
-
signal_scanner.resize(259, 368)
|
30
|
-
@gridLayout = Qt::GridLayout.new(signal_scanner)
|
31
|
-
@gridLayout.objectName = "gridLayout"
|
32
|
-
@verticalLayout = Qt::VBoxLayout.new()
|
33
|
-
@verticalLayout.objectName = "verticalLayout"
|
34
|
-
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
35
|
-
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
36
|
-
@lbl_nbr_pin = Qt::Label.new(signal_scanner)
|
37
|
-
@lbl_nbr_pin.objectName = "lbl_nbr_pin"
|
38
|
-
|
39
|
-
@horizontalLayout_2.addWidget(@lbl_nbr_pin)
|
40
|
-
|
41
|
-
@cbx_start = Qt::ComboBox.new(signal_scanner)
|
42
|
-
@cbx_start.objectName = "cbx_start"
|
43
|
-
@cbx_start.minimumSize = Qt::Size.new(50, 0)
|
44
|
-
@cbx_start.maximumSize = Qt::Size.new(50, 16777215)
|
45
|
-
|
46
|
-
@horizontalLayout_2.addWidget(@cbx_start)
|
47
|
-
|
48
|
-
@label = Qt::Label.new(signal_scanner)
|
49
|
-
@label.objectName = "label"
|
50
|
-
@label.minimumSize = Qt::Size.new(20, 0)
|
51
|
-
@label.maximumSize = Qt::Size.new(20, 16777215)
|
52
|
-
@label.alignment = Qt::AlignCenter
|
53
|
-
|
54
|
-
@horizontalLayout_2.addWidget(@label)
|
55
|
-
|
56
|
-
@cbx_stop = Qt::ComboBox.new(signal_scanner)
|
57
|
-
@cbx_stop.objectName = "cbx_stop"
|
58
|
-
@cbx_stop.minimumSize = Qt::Size.new(50, 0)
|
59
|
-
@cbx_stop.maximumSize = Qt::Size.new(50, 16777215)
|
60
|
-
|
61
|
-
@horizontalLayout_2.addWidget(@cbx_stop)
|
62
|
-
|
63
|
-
|
64
|
-
@verticalLayout.addLayout(@horizontalLayout_2)
|
65
|
-
|
66
|
-
@tbl_result = Qt::TableWidget.new(signal_scanner)
|
67
|
-
@tbl_result.objectName = "tbl_result"
|
68
|
-
|
69
|
-
@verticalLayout.addWidget(@tbl_result)
|
70
|
-
|
71
|
-
@horizontalLayout = Qt::HBoxLayout.new()
|
72
|
-
@horizontalLayout.objectName = "horizontalLayout"
|
73
|
-
@btn_scan = Qt::PushButton.new(signal_scanner)
|
74
|
-
@btn_scan.objectName = "btn_scan"
|
75
|
-
|
76
|
-
@horizontalLayout.addWidget(@btn_scan)
|
77
|
-
|
78
|
-
@btn_autowiring = Qt::PushButton.new(signal_scanner)
|
79
|
-
@btn_autowiring.objectName = "btn_autowiring"
|
80
|
-
|
81
|
-
@horizontalLayout.addWidget(@btn_autowiring)
|
82
|
-
|
83
|
-
@btn_close = Qt::PushButton.new(signal_scanner)
|
84
|
-
@btn_close.objectName = "btn_close"
|
85
|
-
|
86
|
-
@horizontalLayout.addWidget(@btn_close)
|
87
|
-
|
88
|
-
|
89
|
-
@verticalLayout.addLayout(@horizontalLayout)
|
90
|
-
|
91
|
-
|
92
|
-
@gridLayout.addLayout(@verticalLayout, 1, 0, 1, 1)
|
93
|
-
|
94
|
-
|
95
|
-
retranslateUi(signal_scanner)
|
96
|
-
Qt::Object.connect(@btn_close, SIGNAL('clicked()'), signal_scanner, SLOT('close()'))
|
97
|
-
Qt::Object.connect(@btn_scan, SIGNAL('clicked()'), signal_scanner, SLOT('scan()'))
|
98
|
-
Qt::Object.connect(@btn_autowiring, SIGNAL('clicked()'), signal_scanner, SLOT('autowiring()'))
|
99
|
-
Qt::Object.connect(@cbx_start, SIGNAL('currentIndexChanged(QString)'), signal_scanner, SLOT('update_cbx(QString)'))
|
100
|
-
Qt::Object.connect(@cbx_stop, SIGNAL('currentIndexChanged(QString)'), signal_scanner, SLOT('update_tbl(QString)'))
|
101
|
-
|
102
|
-
Qt::MetaObject.connectSlotsByName(signal_scanner)
|
103
|
-
end # setupUi
|
104
|
-
|
105
|
-
def setup_ui(signal_scanner)
|
106
|
-
setupUi(signal_scanner)
|
107
|
-
end
|
108
|
-
|
109
|
-
def retranslateUi(signal_scanner)
|
110
|
-
signal_scanner.windowTitle = Qt::Application.translate("Signal_scanner", "Hardsploit - Scanner", nil, Qt::Application::UnicodeUTF8)
|
111
|
-
@lbl_nbr_pin.text = Qt::Application.translate("Signal_scanner", "Pin used:", nil, Qt::Application::UnicodeUTF8)
|
112
|
-
@cbx_start.insertItems(0, [Qt::Application.translate("Signal_scanner", "B0", nil, Qt::Application::UnicodeUTF8),
|
113
|
-
Qt::Application.translate("Signal_scanner", "B1", nil, Qt::Application::UnicodeUTF8),
|
114
|
-
Qt::Application.translate("Signal_scanner", "B2", nil, Qt::Application::UnicodeUTF8),
|
115
|
-
Qt::Application.translate("Signal_scanner", "B3", nil, Qt::Application::UnicodeUTF8),
|
116
|
-
Qt::Application.translate("Signal_scanner", "B4", nil, Qt::Application::UnicodeUTF8),
|
117
|
-
Qt::Application.translate("Signal_scanner", "B5", nil, Qt::Application::UnicodeUTF8),
|
118
|
-
Qt::Application.translate("Signal_scanner", "B6", nil, Qt::Application::UnicodeUTF8)])
|
119
|
-
@label.text = Qt::Application.translate("Signal_scanner", "to", nil, Qt::Application::UnicodeUTF8)
|
120
|
-
if @tbl_result.columnCount < 2
|
121
|
-
@tbl_result.columnCount = 2
|
122
|
-
end
|
123
|
-
|
124
|
-
__colItem = Qt::TableWidgetItem.new
|
125
|
-
__colItem.setText(Qt::Application.translate("Signal_scanner", "Hardsploit PIN", nil, Qt::Application::UnicodeUTF8))
|
126
|
-
@tbl_result.setHorizontalHeaderItem(0, __colItem)
|
127
|
-
|
128
|
-
__colItem1 = Qt::TableWidgetItem.new
|
129
|
-
__colItem1.setText(Qt::Application.translate("Signal_scanner", "Signal found", nil, Qt::Application::UnicodeUTF8))
|
130
|
-
@tbl_result.setHorizontalHeaderItem(1, __colItem1)
|
131
|
-
@btn_scan.text = Qt::Application.translate("Signal_scanner", "Scan", nil, Qt::Application::UnicodeUTF8)
|
132
|
-
@btn_autowiring.text = Qt::Application.translate("Signal_scanner", "Autowiring", nil, Qt::Application::UnicodeUTF8)
|
133
|
-
@btn_close.text = Qt::Application.translate("Signal_scanner", "Close", nil, Qt::Application::UnicodeUTF8)
|
134
|
-
end # retranslateUi
|
135
|
-
|
136
|
-
def retranslate_ui(signal_scanner)
|
137
|
-
retranslateUi(signal_scanner)
|
138
|
-
end
|
139
|
-
|
140
|
-
end
|
141
|
-
|
142
|
-
module Ui
|
143
|
-
class Signal_scanner < Ui_Signal_scanner
|
144
|
-
end
|
145
|
-
end # module Ui
|
146
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_signal_scanner.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mars 8 11:15:07 2017
|
5
|
+
** by: Qt User Interface Compiler version 4.8.7
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_Signal_scanner
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :verticalLayout
|
13
|
+
attr_reader :horizontalLayout_2
|
14
|
+
attr_reader :lbl_nbr_pin
|
15
|
+
attr_reader :cbx_start
|
16
|
+
attr_reader :label
|
17
|
+
attr_reader :cbx_stop
|
18
|
+
attr_reader :tbl_result
|
19
|
+
attr_reader :horizontalLayout
|
20
|
+
attr_reader :btn_scan
|
21
|
+
attr_reader :btn_autowiring
|
22
|
+
attr_reader :btn_close
|
23
|
+
|
24
|
+
def setupUi(signal_scanner)
|
25
|
+
if signal_scanner.objectName.nil?
|
26
|
+
signal_scanner.objectName = "signal_scanner"
|
27
|
+
end
|
28
|
+
signal_scanner.windowModality = Qt::ApplicationModal
|
29
|
+
signal_scanner.resize(259, 368)
|
30
|
+
@gridLayout = Qt::GridLayout.new(signal_scanner)
|
31
|
+
@gridLayout.objectName = "gridLayout"
|
32
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
33
|
+
@verticalLayout.objectName = "verticalLayout"
|
34
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
35
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
36
|
+
@lbl_nbr_pin = Qt::Label.new(signal_scanner)
|
37
|
+
@lbl_nbr_pin.objectName = "lbl_nbr_pin"
|
38
|
+
|
39
|
+
@horizontalLayout_2.addWidget(@lbl_nbr_pin)
|
40
|
+
|
41
|
+
@cbx_start = Qt::ComboBox.new(signal_scanner)
|
42
|
+
@cbx_start.objectName = "cbx_start"
|
43
|
+
@cbx_start.minimumSize = Qt::Size.new(50, 0)
|
44
|
+
@cbx_start.maximumSize = Qt::Size.new(50, 16777215)
|
45
|
+
|
46
|
+
@horizontalLayout_2.addWidget(@cbx_start)
|
47
|
+
|
48
|
+
@label = Qt::Label.new(signal_scanner)
|
49
|
+
@label.objectName = "label"
|
50
|
+
@label.minimumSize = Qt::Size.new(20, 0)
|
51
|
+
@label.maximumSize = Qt::Size.new(20, 16777215)
|
52
|
+
@label.alignment = Qt::AlignCenter
|
53
|
+
|
54
|
+
@horizontalLayout_2.addWidget(@label)
|
55
|
+
|
56
|
+
@cbx_stop = Qt::ComboBox.new(signal_scanner)
|
57
|
+
@cbx_stop.objectName = "cbx_stop"
|
58
|
+
@cbx_stop.minimumSize = Qt::Size.new(50, 0)
|
59
|
+
@cbx_stop.maximumSize = Qt::Size.new(50, 16777215)
|
60
|
+
|
61
|
+
@horizontalLayout_2.addWidget(@cbx_stop)
|
62
|
+
|
63
|
+
|
64
|
+
@verticalLayout.addLayout(@horizontalLayout_2)
|
65
|
+
|
66
|
+
@tbl_result = Qt::TableWidget.new(signal_scanner)
|
67
|
+
@tbl_result.objectName = "tbl_result"
|
68
|
+
|
69
|
+
@verticalLayout.addWidget(@tbl_result)
|
70
|
+
|
71
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
72
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
73
|
+
@btn_scan = Qt::PushButton.new(signal_scanner)
|
74
|
+
@btn_scan.objectName = "btn_scan"
|
75
|
+
|
76
|
+
@horizontalLayout.addWidget(@btn_scan)
|
77
|
+
|
78
|
+
@btn_autowiring = Qt::PushButton.new(signal_scanner)
|
79
|
+
@btn_autowiring.objectName = "btn_autowiring"
|
80
|
+
|
81
|
+
@horizontalLayout.addWidget(@btn_autowiring)
|
82
|
+
|
83
|
+
@btn_close = Qt::PushButton.new(signal_scanner)
|
84
|
+
@btn_close.objectName = "btn_close"
|
85
|
+
|
86
|
+
@horizontalLayout.addWidget(@btn_close)
|
87
|
+
|
88
|
+
|
89
|
+
@verticalLayout.addLayout(@horizontalLayout)
|
90
|
+
|
91
|
+
|
92
|
+
@gridLayout.addLayout(@verticalLayout, 1, 0, 1, 1)
|
93
|
+
|
94
|
+
|
95
|
+
retranslateUi(signal_scanner)
|
96
|
+
Qt::Object.connect(@btn_close, SIGNAL('clicked()'), signal_scanner, SLOT('close()'))
|
97
|
+
Qt::Object.connect(@btn_scan, SIGNAL('clicked()'), signal_scanner, SLOT('scan()'))
|
98
|
+
Qt::Object.connect(@btn_autowiring, SIGNAL('clicked()'), signal_scanner, SLOT('autowiring()'))
|
99
|
+
Qt::Object.connect(@cbx_start, SIGNAL('currentIndexChanged(QString)'), signal_scanner, SLOT('update_cbx(QString)'))
|
100
|
+
Qt::Object.connect(@cbx_stop, SIGNAL('currentIndexChanged(QString)'), signal_scanner, SLOT('update_tbl(QString)'))
|
101
|
+
|
102
|
+
Qt::MetaObject.connectSlotsByName(signal_scanner)
|
103
|
+
end # setupUi
|
104
|
+
|
105
|
+
def setup_ui(signal_scanner)
|
106
|
+
setupUi(signal_scanner)
|
107
|
+
end
|
108
|
+
|
109
|
+
def retranslateUi(signal_scanner)
|
110
|
+
signal_scanner.windowTitle = Qt::Application.translate("Signal_scanner", "Hardsploit - Scanner", nil, Qt::Application::UnicodeUTF8)
|
111
|
+
@lbl_nbr_pin.text = Qt::Application.translate("Signal_scanner", "Pin used:", nil, Qt::Application::UnicodeUTF8)
|
112
|
+
@cbx_start.insertItems(0, [Qt::Application.translate("Signal_scanner", "B0", nil, Qt::Application::UnicodeUTF8),
|
113
|
+
Qt::Application.translate("Signal_scanner", "B1", nil, Qt::Application::UnicodeUTF8),
|
114
|
+
Qt::Application.translate("Signal_scanner", "B2", nil, Qt::Application::UnicodeUTF8),
|
115
|
+
Qt::Application.translate("Signal_scanner", "B3", nil, Qt::Application::UnicodeUTF8),
|
116
|
+
Qt::Application.translate("Signal_scanner", "B4", nil, Qt::Application::UnicodeUTF8),
|
117
|
+
Qt::Application.translate("Signal_scanner", "B5", nil, Qt::Application::UnicodeUTF8),
|
118
|
+
Qt::Application.translate("Signal_scanner", "B6", nil, Qt::Application::UnicodeUTF8)])
|
119
|
+
@label.text = Qt::Application.translate("Signal_scanner", "to", nil, Qt::Application::UnicodeUTF8)
|
120
|
+
if @tbl_result.columnCount < 2
|
121
|
+
@tbl_result.columnCount = 2
|
122
|
+
end
|
123
|
+
|
124
|
+
__colItem = Qt::TableWidgetItem.new
|
125
|
+
__colItem.setText(Qt::Application.translate("Signal_scanner", "Hardsploit PIN", nil, Qt::Application::UnicodeUTF8))
|
126
|
+
@tbl_result.setHorizontalHeaderItem(0, __colItem)
|
127
|
+
|
128
|
+
__colItem1 = Qt::TableWidgetItem.new
|
129
|
+
__colItem1.setText(Qt::Application.translate("Signal_scanner", "Signal found", nil, Qt::Application::UnicodeUTF8))
|
130
|
+
@tbl_result.setHorizontalHeaderItem(1, __colItem1)
|
131
|
+
@btn_scan.text = Qt::Application.translate("Signal_scanner", "Scan", nil, Qt::Application::UnicodeUTF8)
|
132
|
+
@btn_autowiring.text = Qt::Application.translate("Signal_scanner", "Autowiring", nil, Qt::Application::UnicodeUTF8)
|
133
|
+
@btn_close.text = Qt::Application.translate("Signal_scanner", "Close", nil, Qt::Application::UnicodeUTF8)
|
134
|
+
end # retranslateUi
|
135
|
+
|
136
|
+
def retranslate_ui(signal_scanner)
|
137
|
+
retranslateUi(signal_scanner)
|
138
|
+
end
|
139
|
+
|
140
|
+
end
|
141
|
+
|
142
|
+
module Ui
|
143
|
+
class Signal_scanner < Ui_Signal_scanner
|
144
|
+
end
|
145
|
+
end # module Ui
|
146
|
+
|