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_import.rb
CHANGED
@@ -1,131 +1,131 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_import.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_Import
|
11
|
-
attr_reader :gridLayout
|
12
|
-
attr_reader :verticalLayout
|
13
|
-
attr_reader :lbl_import
|
14
|
-
attr_reader :horizontalLayout_3
|
15
|
-
attr_reader :rbn_comp
|
16
|
-
attr_reader :rbn_cmds
|
17
|
-
attr_reader :rbn_both
|
18
|
-
attr_reader :horizontalLayout_2
|
19
|
-
attr_reader :btn_file
|
20
|
-
attr_reader :horizontalSpacer_2
|
21
|
-
attr_reader :horizontalLayout
|
22
|
-
attr_reader :horizontalSpacer
|
23
|
-
attr_reader :btn_cancel
|
24
|
-
attr_reader :btn_import
|
25
|
-
|
26
|
-
def setupUi(import)
|
27
|
-
if import.objectName.nil?
|
28
|
-
import.objectName = "import"
|
29
|
-
end
|
30
|
-
import.resize(304, 120)
|
31
|
-
@gridLayout = Qt::GridLayout.new(import)
|
32
|
-
@gridLayout.objectName = "gridLayout"
|
33
|
-
@verticalLayout = Qt::VBoxLayout.new()
|
34
|
-
@verticalLayout.objectName = "verticalLayout"
|
35
|
-
@lbl_import = Qt::Label.new(import)
|
36
|
-
@lbl_import.objectName = "lbl_import"
|
37
|
-
|
38
|
-
@verticalLayout.addWidget(@lbl_import)
|
39
|
-
|
40
|
-
@horizontalLayout_3 = Qt::HBoxLayout.new()
|
41
|
-
@horizontalLayout_3.objectName = "horizontalLayout_3"
|
42
|
-
@rbn_comp = Qt::RadioButton.new(import)
|
43
|
-
@rbn_comp.objectName = "rbn_comp"
|
44
|
-
@rbn_comp.checked = true
|
45
|
-
|
46
|
-
@horizontalLayout_3.addWidget(@rbn_comp)
|
47
|
-
|
48
|
-
@rbn_cmds = Qt::RadioButton.new(import)
|
49
|
-
@rbn_cmds.objectName = "rbn_cmds"
|
50
|
-
|
51
|
-
@horizontalLayout_3.addWidget(@rbn_cmds)
|
52
|
-
|
53
|
-
@rbn_both = Qt::RadioButton.new(import)
|
54
|
-
@rbn_both.objectName = "rbn_both"
|
55
|
-
|
56
|
-
@horizontalLayout_3.addWidget(@rbn_both)
|
57
|
-
|
58
|
-
|
59
|
-
@verticalLayout.addLayout(@horizontalLayout_3)
|
60
|
-
|
61
|
-
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
62
|
-
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
63
|
-
@btn_file = Qt::PushButton.new(import)
|
64
|
-
@btn_file.objectName = "btn_file"
|
65
|
-
|
66
|
-
@horizontalLayout_2.addWidget(@btn_file)
|
67
|
-
|
68
|
-
@horizontalSpacer_2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
69
|
-
|
70
|
-
@horizontalLayout_2.addItem(@horizontalSpacer_2)
|
71
|
-
|
72
|
-
|
73
|
-
@verticalLayout.addLayout(@horizontalLayout_2)
|
74
|
-
|
75
|
-
@horizontalLayout = Qt::HBoxLayout.new()
|
76
|
-
@horizontalLayout.objectName = "horizontalLayout"
|
77
|
-
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
78
|
-
|
79
|
-
@horizontalLayout.addItem(@horizontalSpacer)
|
80
|
-
|
81
|
-
@btn_cancel = Qt::PushButton.new(import)
|
82
|
-
@btn_cancel.objectName = "btn_cancel"
|
83
|
-
|
84
|
-
@horizontalLayout.addWidget(@btn_cancel)
|
85
|
-
|
86
|
-
@btn_import = Qt::PushButton.new(import)
|
87
|
-
@btn_import.objectName = "btn_import"
|
88
|
-
|
89
|
-
@horizontalLayout.addWidget(@btn_import)
|
90
|
-
|
91
|
-
|
92
|
-
@verticalLayout.addLayout(@horizontalLayout)
|
93
|
-
|
94
|
-
|
95
|
-
@gridLayout.addLayout(@verticalLayout, 1, 0, 1, 1)
|
96
|
-
|
97
|
-
|
98
|
-
retranslateUi(import)
|
99
|
-
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), import, SLOT('close()'))
|
100
|
-
Qt::Object.connect(@btn_import, SIGNAL('clicked()'), import, SLOT('import()'))
|
101
|
-
Qt::Object.connect(@btn_file, SIGNAL('clicked()'), import, SLOT('import_file()'))
|
102
|
-
|
103
|
-
Qt::MetaObject.connectSlotsByName(import)
|
104
|
-
end # setupUi
|
105
|
-
|
106
|
-
def setup_ui(import)
|
107
|
-
setupUi(import)
|
108
|
-
end
|
109
|
-
|
110
|
-
def retranslateUi(import)
|
111
|
-
import.windowTitle = Qt::Application.translate("Import", "Import", nil, Qt::Application::UnicodeUTF8)
|
112
|
-
@lbl_import.text = Qt::Application.translate("Import", "Importing:", nil, Qt::Application::UnicodeUTF8)
|
113
|
-
@rbn_comp.text = Qt::Application.translate("Import", "Component", nil, Qt::Application::UnicodeUTF8)
|
114
|
-
@rbn_cmds.text = Qt::Application.translate("Import", "Commands", nil, Qt::Application::UnicodeUTF8)
|
115
|
-
@rbn_both.text = Qt::Application.translate("Import", "Both", nil, Qt::Application::UnicodeUTF8)
|
116
|
-
@btn_file.text = Qt::Application.translate("Import", "File...", nil, Qt::Application::UnicodeUTF8)
|
117
|
-
@btn_cancel.text = Qt::Application.translate("Import", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
118
|
-
@btn_import.text = Qt::Application.translate("Import", "Import", nil, Qt::Application::UnicodeUTF8)
|
119
|
-
end # retranslateUi
|
120
|
-
|
121
|
-
def retranslate_ui(import)
|
122
|
-
retranslateUi(import)
|
123
|
-
end
|
124
|
-
|
125
|
-
end
|
126
|
-
|
127
|
-
module Ui
|
128
|
-
class Import < Ui_Import
|
129
|
-
end
|
130
|
-
end # module Ui
|
131
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_import.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mars 8 11:15:06 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_Import
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :verticalLayout
|
13
|
+
attr_reader :lbl_import
|
14
|
+
attr_reader :horizontalLayout_3
|
15
|
+
attr_reader :rbn_comp
|
16
|
+
attr_reader :rbn_cmds
|
17
|
+
attr_reader :rbn_both
|
18
|
+
attr_reader :horizontalLayout_2
|
19
|
+
attr_reader :btn_file
|
20
|
+
attr_reader :horizontalSpacer_2
|
21
|
+
attr_reader :horizontalLayout
|
22
|
+
attr_reader :horizontalSpacer
|
23
|
+
attr_reader :btn_cancel
|
24
|
+
attr_reader :btn_import
|
25
|
+
|
26
|
+
def setupUi(import)
|
27
|
+
if import.objectName.nil?
|
28
|
+
import.objectName = "import"
|
29
|
+
end
|
30
|
+
import.resize(304, 120)
|
31
|
+
@gridLayout = Qt::GridLayout.new(import)
|
32
|
+
@gridLayout.objectName = "gridLayout"
|
33
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
34
|
+
@verticalLayout.objectName = "verticalLayout"
|
35
|
+
@lbl_import = Qt::Label.new(import)
|
36
|
+
@lbl_import.objectName = "lbl_import"
|
37
|
+
|
38
|
+
@verticalLayout.addWidget(@lbl_import)
|
39
|
+
|
40
|
+
@horizontalLayout_3 = Qt::HBoxLayout.new()
|
41
|
+
@horizontalLayout_3.objectName = "horizontalLayout_3"
|
42
|
+
@rbn_comp = Qt::RadioButton.new(import)
|
43
|
+
@rbn_comp.objectName = "rbn_comp"
|
44
|
+
@rbn_comp.checked = true
|
45
|
+
|
46
|
+
@horizontalLayout_3.addWidget(@rbn_comp)
|
47
|
+
|
48
|
+
@rbn_cmds = Qt::RadioButton.new(import)
|
49
|
+
@rbn_cmds.objectName = "rbn_cmds"
|
50
|
+
|
51
|
+
@horizontalLayout_3.addWidget(@rbn_cmds)
|
52
|
+
|
53
|
+
@rbn_both = Qt::RadioButton.new(import)
|
54
|
+
@rbn_both.objectName = "rbn_both"
|
55
|
+
|
56
|
+
@horizontalLayout_3.addWidget(@rbn_both)
|
57
|
+
|
58
|
+
|
59
|
+
@verticalLayout.addLayout(@horizontalLayout_3)
|
60
|
+
|
61
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
62
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
63
|
+
@btn_file = Qt::PushButton.new(import)
|
64
|
+
@btn_file.objectName = "btn_file"
|
65
|
+
|
66
|
+
@horizontalLayout_2.addWidget(@btn_file)
|
67
|
+
|
68
|
+
@horizontalSpacer_2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
69
|
+
|
70
|
+
@horizontalLayout_2.addItem(@horizontalSpacer_2)
|
71
|
+
|
72
|
+
|
73
|
+
@verticalLayout.addLayout(@horizontalLayout_2)
|
74
|
+
|
75
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
76
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
77
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
78
|
+
|
79
|
+
@horizontalLayout.addItem(@horizontalSpacer)
|
80
|
+
|
81
|
+
@btn_cancel = Qt::PushButton.new(import)
|
82
|
+
@btn_cancel.objectName = "btn_cancel"
|
83
|
+
|
84
|
+
@horizontalLayout.addWidget(@btn_cancel)
|
85
|
+
|
86
|
+
@btn_import = Qt::PushButton.new(import)
|
87
|
+
@btn_import.objectName = "btn_import"
|
88
|
+
|
89
|
+
@horizontalLayout.addWidget(@btn_import)
|
90
|
+
|
91
|
+
|
92
|
+
@verticalLayout.addLayout(@horizontalLayout)
|
93
|
+
|
94
|
+
|
95
|
+
@gridLayout.addLayout(@verticalLayout, 1, 0, 1, 1)
|
96
|
+
|
97
|
+
|
98
|
+
retranslateUi(import)
|
99
|
+
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), import, SLOT('close()'))
|
100
|
+
Qt::Object.connect(@btn_import, SIGNAL('clicked()'), import, SLOT('import()'))
|
101
|
+
Qt::Object.connect(@btn_file, SIGNAL('clicked()'), import, SLOT('import_file()'))
|
102
|
+
|
103
|
+
Qt::MetaObject.connectSlotsByName(import)
|
104
|
+
end # setupUi
|
105
|
+
|
106
|
+
def setup_ui(import)
|
107
|
+
setupUi(import)
|
108
|
+
end
|
109
|
+
|
110
|
+
def retranslateUi(import)
|
111
|
+
import.windowTitle = Qt::Application.translate("Import", "Import", nil, Qt::Application::UnicodeUTF8)
|
112
|
+
@lbl_import.text = Qt::Application.translate("Import", "Importing:", nil, Qt::Application::UnicodeUTF8)
|
113
|
+
@rbn_comp.text = Qt::Application.translate("Import", "Component", nil, Qt::Application::UnicodeUTF8)
|
114
|
+
@rbn_cmds.text = Qt::Application.translate("Import", "Commands", nil, Qt::Application::UnicodeUTF8)
|
115
|
+
@rbn_both.text = Qt::Application.translate("Import", "Both", nil, Qt::Application::UnicodeUTF8)
|
116
|
+
@btn_file.text = Qt::Application.translate("Import", "File...", nil, Qt::Application::UnicodeUTF8)
|
117
|
+
@btn_cancel.text = Qt::Application.translate("Import", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
118
|
+
@btn_import.text = Qt::Application.translate("Import", "Import", nil, Qt::Application::UnicodeUTF8)
|
119
|
+
end # retranslateUi
|
120
|
+
|
121
|
+
def retranslate_ui(import)
|
122
|
+
retranslateUi(import)
|
123
|
+
end
|
124
|
+
|
125
|
+
end
|
126
|
+
|
127
|
+
module Ui
|
128
|
+
class Import < Ui_Import
|
129
|
+
end
|
130
|
+
end # module Ui
|
131
|
+
|
@@ -1,195 +1,195 @@
|
|
1
|
-
=begin
|
2
|
-
** Form generated from reading ui file 'gui_parallel_settings.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_Parallel_settings
|
11
|
-
attr_reader :gridLayout
|
12
|
-
attr_reader :vl
|
13
|
-
attr_reader :hl2
|
14
|
-
attr_reader :lbl_chip
|
15
|
-
attr_reader :lbl_parameters
|
16
|
-
attr_reader :hs2
|
17
|
-
attr_reader :fl
|
18
|
-
attr_reader :lbl_total_size
|
19
|
-
attr_reader :lie_total_size
|
20
|
-
attr_reader :lbl_latency
|
21
|
-
attr_reader :lie_read_latency
|
22
|
-
attr_reader :lbl_write_latency
|
23
|
-
attr_reader :lie_write_latency
|
24
|
-
attr_reader :lbl_word_size
|
25
|
-
attr_reader :groupBox
|
26
|
-
attr_reader :rbn_8b
|
27
|
-
attr_reader :rbn_16b
|
28
|
-
attr_reader :lbl_page_size
|
29
|
-
attr_reader :lie_page_size
|
30
|
-
attr_reader :hl
|
31
|
-
attr_reader :hs
|
32
|
-
attr_reader :btn_cancel
|
33
|
-
attr_reader :btn_save
|
34
|
-
|
35
|
-
def setupUi(parallel_settings)
|
36
|
-
if parallel_settings.objectName.nil?
|
37
|
-
parallel_settings.objectName = "parallel_settings"
|
38
|
-
end
|
39
|
-
parallel_settings.resize(384, 216)
|
40
|
-
@gridLayout = Qt::GridLayout.new(parallel_settings)
|
41
|
-
@gridLayout.objectName = "gridLayout"
|
42
|
-
@vl = Qt::VBoxLayout.new()
|
43
|
-
@vl.objectName = "vl"
|
44
|
-
@hl2 = Qt::HBoxLayout.new()
|
45
|
-
@hl2.objectName = "hl2"
|
46
|
-
@lbl_chip = Qt::Label.new(parallel_settings)
|
47
|
-
@lbl_chip.objectName = "lbl_chip"
|
48
|
-
|
49
|
-
@hl2.addWidget(@lbl_chip)
|
50
|
-
|
51
|
-
@lbl_parameters = Qt::Label.new(parallel_settings)
|
52
|
-
@lbl_parameters.objectName = "lbl_parameters"
|
53
|
-
|
54
|
-
@hl2.addWidget(@lbl_parameters)
|
55
|
-
|
56
|
-
@hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
57
|
-
|
58
|
-
@hl2.addItem(@hs2)
|
59
|
-
|
60
|
-
|
61
|
-
@vl.addLayout(@hl2)
|
62
|
-
|
63
|
-
@fl = Qt::FormLayout.new()
|
64
|
-
@fl.objectName = "fl"
|
65
|
-
@lbl_total_size = Qt::Label.new(parallel_settings)
|
66
|
-
@lbl_total_size.objectName = "lbl_total_size"
|
67
|
-
|
68
|
-
@fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_total_size)
|
69
|
-
|
70
|
-
@lie_total_size = Qt::LineEdit.new(parallel_settings)
|
71
|
-
@lie_total_size.objectName = "lie_total_size"
|
72
|
-
@lie_total_size.maxLength = 20
|
73
|
-
|
74
|
-
@fl.setWidget(1, Qt::FormLayout::FieldRole, @lie_total_size)
|
75
|
-
|
76
|
-
@lbl_latency = Qt::Label.new(parallel_settings)
|
77
|
-
@lbl_latency.objectName = "lbl_latency"
|
78
|
-
|
79
|
-
@fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_latency)
|
80
|
-
|
81
|
-
@lie_read_latency = Qt::LineEdit.new(parallel_settings)
|
82
|
-
@lie_read_latency.objectName = "lie_read_latency"
|
83
|
-
@lie_read_latency.maxLength = 20
|
84
|
-
|
85
|
-
@fl.setWidget(2, Qt::FormLayout::FieldRole, @lie_read_latency)
|
86
|
-
|
87
|
-
@lbl_write_latency = Qt::Label.new(parallel_settings)
|
88
|
-
@lbl_write_latency.objectName = "lbl_write_latency"
|
89
|
-
|
90
|
-
@fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_write_latency)
|
91
|
-
|
92
|
-
@lie_write_latency = Qt::LineEdit.new(parallel_settings)
|
93
|
-
@lie_write_latency.objectName = "lie_write_latency"
|
94
|
-
|
95
|
-
@fl.setWidget(3, Qt::FormLayout::FieldRole, @lie_write_latency)
|
96
|
-
|
97
|
-
@lbl_word_size = Qt::Label.new(parallel_settings)
|
98
|
-
@lbl_word_size.objectName = "lbl_word_size"
|
99
|
-
|
100
|
-
@fl.setWidget(4, Qt::FormLayout::LabelRole, @lbl_word_size)
|
101
|
-
|
102
|
-
@groupBox = Qt::GroupBox.new(parallel_settings)
|
103
|
-
@groupBox.objectName = "groupBox"
|
104
|
-
@rbn_8b = Qt::RadioButton.new(@groupBox)
|
105
|
-
@rbn_8b.objectName = "rbn_8b"
|
106
|
-
@rbn_8b.geometry = Qt::Rect.new(0, 0, 71, 20)
|
107
|
-
@rbn_8b.checked = true
|
108
|
-
@rbn_16b = Qt::RadioButton.new(@groupBox)
|
109
|
-
@rbn_16b.objectName = "rbn_16b"
|
110
|
-
@rbn_16b.geometry = Qt::Rect.new(80, 0, 81, 21)
|
111
|
-
|
112
|
-
@fl.setWidget(4, Qt::FormLayout::FieldRole, @groupBox)
|
113
|
-
|
114
|
-
@lbl_page_size = Qt::Label.new(parallel_settings)
|
115
|
-
@lbl_page_size.objectName = "lbl_page_size"
|
116
|
-
|
117
|
-
@fl.setWidget(5, Qt::FormLayout::LabelRole, @lbl_page_size)
|
118
|
-
|
119
|
-
@lie_page_size = Qt::LineEdit.new(parallel_settings)
|
120
|
-
@lie_page_size.objectName = "lie_page_size"
|
121
|
-
|
122
|
-
@fl.setWidget(5, Qt::FormLayout::FieldRole, @lie_page_size)
|
123
|
-
|
124
|
-
|
125
|
-
@vl.addLayout(@fl)
|
126
|
-
|
127
|
-
@hl = Qt::HBoxLayout.new()
|
128
|
-
@hl.objectName = "hl"
|
129
|
-
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
130
|
-
|
131
|
-
@hl.addItem(@hs)
|
132
|
-
|
133
|
-
@btn_cancel = Qt::PushButton.new(parallel_settings)
|
134
|
-
@btn_cancel.objectName = "btn_cancel"
|
135
|
-
|
136
|
-
@hl.addWidget(@btn_cancel)
|
137
|
-
|
138
|
-
@btn_save = Qt::PushButton.new(parallel_settings)
|
139
|
-
@btn_save.objectName = "btn_save"
|
140
|
-
@btn_save.maximumSize = Qt::Size.new(16777215, 16777215)
|
141
|
-
|
142
|
-
@hl.addWidget(@btn_save)
|
143
|
-
|
144
|
-
|
145
|
-
@vl.addLayout(@hl)
|
146
|
-
|
147
|
-
|
148
|
-
@gridLayout.addLayout(@vl, 1, 0, 1, 1)
|
149
|
-
|
150
|
-
|
151
|
-
retranslateUi(parallel_settings)
|
152
|
-
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), parallel_settings, SLOT('close()'))
|
153
|
-
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), parallel_settings, SLOT('save_settings()'))
|
154
|
-
|
155
|
-
Qt::MetaObject.connectSlotsByName(parallel_settings)
|
156
|
-
end # setupUi
|
157
|
-
|
158
|
-
def setup_ui(parallel_settings)
|
159
|
-
setupUi(parallel_settings)
|
160
|
-
end
|
161
|
-
|
162
|
-
def retranslateUi(parallel_settings)
|
163
|
-
parallel_settings.windowTitle = Qt::Application.translate("Parallel_settings", "Hardsploit - Parallel settings", nil, Qt::Application::UnicodeUTF8)
|
164
|
-
@lbl_chip.text = Qt::Application.translate("Parallel_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
165
|
-
@lbl_parameters.text = Qt::Application.translate("Parallel_settings", "PARAMETERS", nil, Qt::Application::UnicodeUTF8)
|
166
|
-
@lbl_total_size.text = Qt::Application.translate("Parallel_settings", "Total size:", nil, Qt::Application::UnicodeUTF8)
|
167
|
-
@lie_total_size.text = ''
|
168
|
-
@lie_total_size.placeholderText = Qt::Application.translate("Parallel_settings", "in bytes", nil, Qt::Application::UnicodeUTF8)
|
169
|
-
@lbl_latency.text = Qt::Application.translate("Parallel_settings", "Read latency:", nil, Qt::Application::UnicodeUTF8)
|
170
|
-
@lie_read_latency.placeholderText = Qt::Application.translate("Parallel_settings", " 0 to 1600 nanosecondes", nil, Qt::Application::UnicodeUTF8)
|
171
|
-
@lbl_write_latency.text = Qt::Application.translate("Parallel_settings", "Write latency", nil, Qt::Application::UnicodeUTF8)
|
172
|
-
@lie_write_latency.text = ''
|
173
|
-
@lie_write_latency.placeholderText = Qt::Application.translate("Parallel_settings", "in nanosecondes", nil, Qt::Application::UnicodeUTF8)
|
174
|
-
@lbl_word_size.text = Qt::Application.translate("Parallel_settings", "Word size:", nil, Qt::Application::UnicodeUTF8)
|
175
|
-
@groupBox.title = ''
|
176
|
-
@rbn_8b.text = Qt::Application.translate("Parallel_settings", "8 bits", nil, Qt::Application::UnicodeUTF8)
|
177
|
-
@rbn_16b.text = Qt::Application.translate("Parallel_settings", "16 bits", nil, Qt::Application::UnicodeUTF8)
|
178
|
-
@lbl_page_size.text = Qt::Application.translate("Parallel_settings", "Page size:", nil, Qt::Application::UnicodeUTF8)
|
179
|
-
@lie_page_size.text = ''
|
180
|
-
@lie_page_size.placeholderText = Qt::Application.translate("Parallel_settings", "in bytes", nil, Qt::Application::UnicodeUTF8)
|
181
|
-
@btn_cancel.text = Qt::Application.translate("Parallel_settings", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
182
|
-
@btn_save.text = Qt::Application.translate("Parallel_settings", "Save", nil, Qt::Application::UnicodeUTF8)
|
183
|
-
end # retranslateUi
|
184
|
-
|
185
|
-
def retranslate_ui(parallel_settings)
|
186
|
-
retranslateUi(parallel_settings)
|
187
|
-
end
|
188
|
-
|
189
|
-
end
|
190
|
-
|
191
|
-
module Ui
|
192
|
-
class Parallel_settings < Ui_Parallel_settings
|
193
|
-
end
|
194
|
-
end # module Ui
|
195
|
-
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_parallel_settings.ui'
|
3
|
+
**
|
4
|
+
** Created: mer. mars 8 11:15:06 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_Parallel_settings
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :vl
|
13
|
+
attr_reader :hl2
|
14
|
+
attr_reader :lbl_chip
|
15
|
+
attr_reader :lbl_parameters
|
16
|
+
attr_reader :hs2
|
17
|
+
attr_reader :fl
|
18
|
+
attr_reader :lbl_total_size
|
19
|
+
attr_reader :lie_total_size
|
20
|
+
attr_reader :lbl_latency
|
21
|
+
attr_reader :lie_read_latency
|
22
|
+
attr_reader :lbl_write_latency
|
23
|
+
attr_reader :lie_write_latency
|
24
|
+
attr_reader :lbl_word_size
|
25
|
+
attr_reader :groupBox
|
26
|
+
attr_reader :rbn_8b
|
27
|
+
attr_reader :rbn_16b
|
28
|
+
attr_reader :lbl_page_size
|
29
|
+
attr_reader :lie_page_size
|
30
|
+
attr_reader :hl
|
31
|
+
attr_reader :hs
|
32
|
+
attr_reader :btn_cancel
|
33
|
+
attr_reader :btn_save
|
34
|
+
|
35
|
+
def setupUi(parallel_settings)
|
36
|
+
if parallel_settings.objectName.nil?
|
37
|
+
parallel_settings.objectName = "parallel_settings"
|
38
|
+
end
|
39
|
+
parallel_settings.resize(384, 216)
|
40
|
+
@gridLayout = Qt::GridLayout.new(parallel_settings)
|
41
|
+
@gridLayout.objectName = "gridLayout"
|
42
|
+
@vl = Qt::VBoxLayout.new()
|
43
|
+
@vl.objectName = "vl"
|
44
|
+
@hl2 = Qt::HBoxLayout.new()
|
45
|
+
@hl2.objectName = "hl2"
|
46
|
+
@lbl_chip = Qt::Label.new(parallel_settings)
|
47
|
+
@lbl_chip.objectName = "lbl_chip"
|
48
|
+
|
49
|
+
@hl2.addWidget(@lbl_chip)
|
50
|
+
|
51
|
+
@lbl_parameters = Qt::Label.new(parallel_settings)
|
52
|
+
@lbl_parameters.objectName = "lbl_parameters"
|
53
|
+
|
54
|
+
@hl2.addWidget(@lbl_parameters)
|
55
|
+
|
56
|
+
@hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
57
|
+
|
58
|
+
@hl2.addItem(@hs2)
|
59
|
+
|
60
|
+
|
61
|
+
@vl.addLayout(@hl2)
|
62
|
+
|
63
|
+
@fl = Qt::FormLayout.new()
|
64
|
+
@fl.objectName = "fl"
|
65
|
+
@lbl_total_size = Qt::Label.new(parallel_settings)
|
66
|
+
@lbl_total_size.objectName = "lbl_total_size"
|
67
|
+
|
68
|
+
@fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_total_size)
|
69
|
+
|
70
|
+
@lie_total_size = Qt::LineEdit.new(parallel_settings)
|
71
|
+
@lie_total_size.objectName = "lie_total_size"
|
72
|
+
@lie_total_size.maxLength = 20
|
73
|
+
|
74
|
+
@fl.setWidget(1, Qt::FormLayout::FieldRole, @lie_total_size)
|
75
|
+
|
76
|
+
@lbl_latency = Qt::Label.new(parallel_settings)
|
77
|
+
@lbl_latency.objectName = "lbl_latency"
|
78
|
+
|
79
|
+
@fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_latency)
|
80
|
+
|
81
|
+
@lie_read_latency = Qt::LineEdit.new(parallel_settings)
|
82
|
+
@lie_read_latency.objectName = "lie_read_latency"
|
83
|
+
@lie_read_latency.maxLength = 20
|
84
|
+
|
85
|
+
@fl.setWidget(2, Qt::FormLayout::FieldRole, @lie_read_latency)
|
86
|
+
|
87
|
+
@lbl_write_latency = Qt::Label.new(parallel_settings)
|
88
|
+
@lbl_write_latency.objectName = "lbl_write_latency"
|
89
|
+
|
90
|
+
@fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_write_latency)
|
91
|
+
|
92
|
+
@lie_write_latency = Qt::LineEdit.new(parallel_settings)
|
93
|
+
@lie_write_latency.objectName = "lie_write_latency"
|
94
|
+
|
95
|
+
@fl.setWidget(3, Qt::FormLayout::FieldRole, @lie_write_latency)
|
96
|
+
|
97
|
+
@lbl_word_size = Qt::Label.new(parallel_settings)
|
98
|
+
@lbl_word_size.objectName = "lbl_word_size"
|
99
|
+
|
100
|
+
@fl.setWidget(4, Qt::FormLayout::LabelRole, @lbl_word_size)
|
101
|
+
|
102
|
+
@groupBox = Qt::GroupBox.new(parallel_settings)
|
103
|
+
@groupBox.objectName = "groupBox"
|
104
|
+
@rbn_8b = Qt::RadioButton.new(@groupBox)
|
105
|
+
@rbn_8b.objectName = "rbn_8b"
|
106
|
+
@rbn_8b.geometry = Qt::Rect.new(0, 0, 71, 20)
|
107
|
+
@rbn_8b.checked = true
|
108
|
+
@rbn_16b = Qt::RadioButton.new(@groupBox)
|
109
|
+
@rbn_16b.objectName = "rbn_16b"
|
110
|
+
@rbn_16b.geometry = Qt::Rect.new(80, 0, 81, 21)
|
111
|
+
|
112
|
+
@fl.setWidget(4, Qt::FormLayout::FieldRole, @groupBox)
|
113
|
+
|
114
|
+
@lbl_page_size = Qt::Label.new(parallel_settings)
|
115
|
+
@lbl_page_size.objectName = "lbl_page_size"
|
116
|
+
|
117
|
+
@fl.setWidget(5, Qt::FormLayout::LabelRole, @lbl_page_size)
|
118
|
+
|
119
|
+
@lie_page_size = Qt::LineEdit.new(parallel_settings)
|
120
|
+
@lie_page_size.objectName = "lie_page_size"
|
121
|
+
|
122
|
+
@fl.setWidget(5, Qt::FormLayout::FieldRole, @lie_page_size)
|
123
|
+
|
124
|
+
|
125
|
+
@vl.addLayout(@fl)
|
126
|
+
|
127
|
+
@hl = Qt::HBoxLayout.new()
|
128
|
+
@hl.objectName = "hl"
|
129
|
+
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
130
|
+
|
131
|
+
@hl.addItem(@hs)
|
132
|
+
|
133
|
+
@btn_cancel = Qt::PushButton.new(parallel_settings)
|
134
|
+
@btn_cancel.objectName = "btn_cancel"
|
135
|
+
|
136
|
+
@hl.addWidget(@btn_cancel)
|
137
|
+
|
138
|
+
@btn_save = Qt::PushButton.new(parallel_settings)
|
139
|
+
@btn_save.objectName = "btn_save"
|
140
|
+
@btn_save.maximumSize = Qt::Size.new(16777215, 16777215)
|
141
|
+
|
142
|
+
@hl.addWidget(@btn_save)
|
143
|
+
|
144
|
+
|
145
|
+
@vl.addLayout(@hl)
|
146
|
+
|
147
|
+
|
148
|
+
@gridLayout.addLayout(@vl, 1, 0, 1, 1)
|
149
|
+
|
150
|
+
|
151
|
+
retranslateUi(parallel_settings)
|
152
|
+
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), parallel_settings, SLOT('close()'))
|
153
|
+
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), parallel_settings, SLOT('save_settings()'))
|
154
|
+
|
155
|
+
Qt::MetaObject.connectSlotsByName(parallel_settings)
|
156
|
+
end # setupUi
|
157
|
+
|
158
|
+
def setup_ui(parallel_settings)
|
159
|
+
setupUi(parallel_settings)
|
160
|
+
end
|
161
|
+
|
162
|
+
def retranslateUi(parallel_settings)
|
163
|
+
parallel_settings.windowTitle = Qt::Application.translate("Parallel_settings", "Hardsploit - Parallel settings", nil, Qt::Application::UnicodeUTF8)
|
164
|
+
@lbl_chip.text = Qt::Application.translate("Parallel_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
165
|
+
@lbl_parameters.text = Qt::Application.translate("Parallel_settings", "PARAMETERS", nil, Qt::Application::UnicodeUTF8)
|
166
|
+
@lbl_total_size.text = Qt::Application.translate("Parallel_settings", "Total size:", nil, Qt::Application::UnicodeUTF8)
|
167
|
+
@lie_total_size.text = ''
|
168
|
+
@lie_total_size.placeholderText = Qt::Application.translate("Parallel_settings", "in bytes", nil, Qt::Application::UnicodeUTF8)
|
169
|
+
@lbl_latency.text = Qt::Application.translate("Parallel_settings", "Read latency:", nil, Qt::Application::UnicodeUTF8)
|
170
|
+
@lie_read_latency.placeholderText = Qt::Application.translate("Parallel_settings", " 0 to 1600 nanosecondes", nil, Qt::Application::UnicodeUTF8)
|
171
|
+
@lbl_write_latency.text = Qt::Application.translate("Parallel_settings", "Write latency", nil, Qt::Application::UnicodeUTF8)
|
172
|
+
@lie_write_latency.text = ''
|
173
|
+
@lie_write_latency.placeholderText = Qt::Application.translate("Parallel_settings", "in nanosecondes (7 to 1965)", nil, Qt::Application::UnicodeUTF8)
|
174
|
+
@lbl_word_size.text = Qt::Application.translate("Parallel_settings", "Word size:", nil, Qt::Application::UnicodeUTF8)
|
175
|
+
@groupBox.title = ''
|
176
|
+
@rbn_8b.text = Qt::Application.translate("Parallel_settings", "8 bits", nil, Qt::Application::UnicodeUTF8)
|
177
|
+
@rbn_16b.text = Qt::Application.translate("Parallel_settings", "16 bits", nil, Qt::Application::UnicodeUTF8)
|
178
|
+
@lbl_page_size.text = Qt::Application.translate("Parallel_settings", "Page size:", nil, Qt::Application::UnicodeUTF8)
|
179
|
+
@lie_page_size.text = ''
|
180
|
+
@lie_page_size.placeholderText = Qt::Application.translate("Parallel_settings", "in bytes", nil, Qt::Application::UnicodeUTF8)
|
181
|
+
@btn_cancel.text = Qt::Application.translate("Parallel_settings", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
182
|
+
@btn_save.text = Qt::Application.translate("Parallel_settings", "Save", nil, Qt::Application::UnicodeUTF8)
|
183
|
+
end # retranslateUi
|
184
|
+
|
185
|
+
def retranslate_ui(parallel_settings)
|
186
|
+
retranslateUi(parallel_settings)
|
187
|
+
end
|
188
|
+
|
189
|
+
end
|
190
|
+
|
191
|
+
module Ui
|
192
|
+
class Parallel_settings < Ui_Parallel_settings
|
193
|
+
end
|
194
|
+
end # module Ui
|
195
|
+
|