hardsploit_gui 2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +22 -0
- data/Rakefile +1 -0
- data/bin/hardsploit_gui +3 -0
- data/lib/Firmware/FPGA/I2C/I2C_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_I2C_INTERACT.rpd +0 -0
- data/lib/Firmware/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd +0 -0
- data/lib/Firmware/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd +0 -0
- data/lib/Firmware/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd +0 -0
- data/lib/Firmware/FPGA/TEST/TEST_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_TEST_INTERACT.rpd +0 -0
- data/lib/Firmware/FPGA/VersionFPGA.rb +5 -0
- data/lib/Firmware/UC/HARDSPLOIT_FIRMWARE_UC.bin +0 -0
- data/lib/Firmware/UC/VersionUC.rb +12 -0
- data/lib/HardsploitAPI/HardsploitAPI.rb +134 -0
- data/lib/HardsploitAPI/HardsploitAPI_CONSTANT.rb +145 -0
- data/lib/HardsploitAPI/HardsploitAPI_FIRMWARE.rb +311 -0
- data/lib/HardsploitAPI/HardsploitAPI_I2C.rb +218 -0
- data/lib/HardsploitAPI/HardsploitAPI_NO_MUX_PARALLELE_MEMORY.rb +229 -0
- data/lib/HardsploitAPI/HardsploitAPI_SPI.rb +179 -0
- data/lib/HardsploitAPI/HardsploitAPI_TEST_INTERACT.rb +98 -0
- data/lib/HardsploitAPI/HardsploitAPI_USB_COMMUNICATION.rb +149 -0
- data/lib/HardsploitAPI/LICENSE.txt +674 -0
- data/lib/HardsploitAPI/README.md +22 -0
- data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD.rb +249 -0
- data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_DEBUG.rb +102 -0
- data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_MEM_AP.rb +78 -0
- data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_STM32.rb +104 -0
- data/lib/HardsploitAPI/TRADEMARK +3 -0
- data/lib/LICENSE.txt +674 -0
- data/lib/README.md +22 -0
- data/lib/TRADEMARK +3 -0
- data/lib/class/Chip_editor.rb +448 -0
- data/lib/class/Command_editor.rb +268 -0
- data/lib/class/Command_table.rb +239 -0
- data/lib/class/Console.rb +28 -0
- data/lib/class/Export_manager.rb +124 -0
- data/lib/class/Firmware.rb +29 -0
- data/lib/class/Generic_commands.rb +275 -0
- data/lib/class/HardsploitGUI.rb +462 -0
- data/lib/class/I2C/I2c_command.rb +48 -0
- data/lib/class/I2C/I2c_export.rb +121 -0
- data/lib/class/I2C/I2c_import.rb +92 -0
- data/lib/class/I2C/I2c_settings.rb +117 -0
- data/lib/class/PARALLEL/Parallel_export.rb +146 -0
- data/lib/class/PARALLEL/Parallel_import.rb +88 -0
- data/lib/class/PARALLEL/Parallel_settings.rb +102 -0
- data/lib/class/SPI/Spi_export.rb +141 -0
- data/lib/class/SPI/Spi_import.rb +112 -0
- data/lib/class/SPI/Spi_settings.rb +90 -0
- data/lib/class/Wire_helper.rb +246 -0
- data/lib/db/associations.rb +125 -0
- data/lib/db/hs.db +0 -0
- data/lib/gui/gui_chip_editor.rb +355 -0
- data/lib/gui/gui_chip_management.rb +372 -0
- data/lib/gui/gui_command_editor.rb +218 -0
- data/lib/gui/gui_export_manager.rb +93 -0
- data/lib/gui/gui_generic_commands.rb +164 -0
- data/lib/gui/gui_generic_export.rb +148 -0
- data/lib/gui/gui_generic_import.rb +126 -0
- data/lib/gui/gui_i2c_command.rb +115 -0
- data/lib/gui/gui_i2c_settings.rb +201 -0
- data/lib/gui/gui_parallel_settings.rb +194 -0
- data/lib/gui/gui_spi_import.rb +126 -0
- data/lib/gui/gui_spi_settings.rb +187 -0
- data/lib/gui/gui_wire_helper.rb +99 -0
- data/lib/gui_designer/gui_chip_editor.ui +553 -0
- data/lib/gui_designer/gui_chip_management.ui +842 -0
- data/lib/gui_designer/gui_command_editor.ui +347 -0
- data/lib/gui_designer/gui_export_manager.ui +115 -0
- data/lib/gui_designer/gui_generic_commands.ui +258 -0
- data/lib/gui_designer/gui_generic_export.ui +179 -0
- data/lib/gui_designer/gui_generic_import.ui +142 -0
- data/lib/gui_designer/gui_i2c_command.ui +145 -0
- data/lib/gui_designer/gui_i2c_settings.ui +261 -0
- data/lib/gui_designer/gui_parallel_settings.ui +244 -0
- data/lib/gui_designer/gui_processing.ui +81 -0
- data/lib/gui_designer/gui_spi_settings.ui +321 -0
- data/lib/gui_designer/gui_wire_helper.ui +117 -0
- data/lib/hardsploit.rb +122 -0
- data/lib/images/search.png +0 -0
- data/lib/logs/error.log +0 -0
- metadata +236 -0
@@ -0,0 +1,115 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_i2c_command.ui'
|
3
|
+
**
|
4
|
+
** Created: mar. déc. 22 13:09:06 2015
|
5
|
+
** by: Qt User Interface Compiler version 4.8.6
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_I2c_command
|
11
|
+
attr_reader :gridLayout
|
12
|
+
attr_reader :fl
|
13
|
+
attr_reader :lbl_size
|
14
|
+
attr_reader :lie_size
|
15
|
+
attr_reader :lbl_type_cmd
|
16
|
+
attr_reader :groupBox
|
17
|
+
attr_reader :rbn_read
|
18
|
+
attr_reader :rbn_write
|
19
|
+
attr_reader :hl
|
20
|
+
attr_reader :hs
|
21
|
+
attr_reader :btn_cancel
|
22
|
+
attr_reader :bnt_new_cmd
|
23
|
+
|
24
|
+
def setupUi(i2c_command)
|
25
|
+
if i2c_command.objectName.nil?
|
26
|
+
i2c_command.objectName = "i2c_command"
|
27
|
+
end
|
28
|
+
i2c_command.resize(287, 103)
|
29
|
+
@gridLayout = Qt::GridLayout.new(i2c_command)
|
30
|
+
@gridLayout.objectName = "gridLayout"
|
31
|
+
@fl = Qt::FormLayout.new()
|
32
|
+
@fl.objectName = "fl"
|
33
|
+
@lbl_size = Qt::Label.new(i2c_command)
|
34
|
+
@lbl_size.objectName = "lbl_size"
|
35
|
+
|
36
|
+
@fl.setWidget(0, Qt::FormLayout::LabelRole, @lbl_size)
|
37
|
+
|
38
|
+
@lie_size = Qt::LineEdit.new(i2c_command)
|
39
|
+
@lie_size.objectName = "lie_size"
|
40
|
+
|
41
|
+
@fl.setWidget(0, Qt::FormLayout::FieldRole, @lie_size)
|
42
|
+
|
43
|
+
@lbl_type_cmd = Qt::Label.new(i2c_command)
|
44
|
+
@lbl_type_cmd.objectName = "lbl_type_cmd"
|
45
|
+
|
46
|
+
@fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_type_cmd)
|
47
|
+
|
48
|
+
@groupBox = Qt::GroupBox.new(i2c_command)
|
49
|
+
@groupBox.objectName = "groupBox"
|
50
|
+
@rbn_read = Qt::RadioButton.new(@groupBox)
|
51
|
+
@rbn_read.objectName = "rbn_read"
|
52
|
+
@rbn_read.geometry = Qt::Rect.new(10, -4, 61, 31)
|
53
|
+
@rbn_read.checked = true
|
54
|
+
@rbn_write = Qt::RadioButton.new(@groupBox)
|
55
|
+
@rbn_write.objectName = "rbn_write"
|
56
|
+
@rbn_write.geometry = Qt::Rect.new(90, 0, 61, 21)
|
57
|
+
|
58
|
+
@fl.setWidget(1, Qt::FormLayout::FieldRole, @groupBox)
|
59
|
+
|
60
|
+
|
61
|
+
@gridLayout.addLayout(@fl, 1, 0, 1, 1)
|
62
|
+
|
63
|
+
@hl = Qt::HBoxLayout.new()
|
64
|
+
@hl.objectName = "hl"
|
65
|
+
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
66
|
+
|
67
|
+
@hl.addItem(@hs)
|
68
|
+
|
69
|
+
@btn_cancel = Qt::PushButton.new(i2c_command)
|
70
|
+
@btn_cancel.objectName = "btn_cancel"
|
71
|
+
|
72
|
+
@hl.addWidget(@btn_cancel)
|
73
|
+
|
74
|
+
@bnt_new_cmd = Qt::PushButton.new(i2c_command)
|
75
|
+
@bnt_new_cmd.objectName = "bnt_new_cmd"
|
76
|
+
|
77
|
+
@hl.addWidget(@bnt_new_cmd)
|
78
|
+
|
79
|
+
|
80
|
+
@gridLayout.addLayout(@hl, 2, 0, 1, 1)
|
81
|
+
|
82
|
+
|
83
|
+
retranslateUi(i2c_command)
|
84
|
+
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), i2c_command, SLOT('close()'))
|
85
|
+
Qt::Object.connect(@bnt_new_cmd, SIGNAL('clicked()'), i2c_command, SLOT('open_generic_cmd()'))
|
86
|
+
|
87
|
+
Qt::MetaObject.connectSlotsByName(i2c_command)
|
88
|
+
end # setupUi
|
89
|
+
|
90
|
+
def setup_ui(i2c_command)
|
91
|
+
setupUi(i2c_command)
|
92
|
+
end
|
93
|
+
|
94
|
+
def retranslateUi(i2c_command)
|
95
|
+
i2c_command.windowTitle = Qt::Application.translate("I2c_command", "Hardsploit - I2C Command", nil, Qt::Application::UnicodeUTF8)
|
96
|
+
@lbl_size.text = Qt::Application.translate("I2c_command", "Payload size:", nil, Qt::Application::UnicodeUTF8)
|
97
|
+
@lbl_type_cmd.text = Qt::Application.translate("I2c_command", "Command type:", nil, Qt::Application::UnicodeUTF8)
|
98
|
+
@groupBox.title = ''
|
99
|
+
@rbn_read.text = Qt::Application.translate("I2c_command", "Read", nil, Qt::Application::UnicodeUTF8)
|
100
|
+
@rbn_write.text = Qt::Application.translate("I2c_command", "Write", nil, Qt::Application::UnicodeUTF8)
|
101
|
+
@btn_cancel.text = Qt::Application.translate("I2c_command", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
102
|
+
@bnt_new_cmd.text = Qt::Application.translate("I2c_command", "Open", nil, Qt::Application::UnicodeUTF8)
|
103
|
+
end # retranslateUi
|
104
|
+
|
105
|
+
def retranslate_ui(i2c_command)
|
106
|
+
retranslateUi(i2c_command)
|
107
|
+
end
|
108
|
+
|
109
|
+
end
|
110
|
+
|
111
|
+
module Ui
|
112
|
+
class I2c_command < Ui_I2c_command
|
113
|
+
end
|
114
|
+
end # module Ui
|
115
|
+
|
@@ -0,0 +1,201 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_i2c_settings.ui'
|
3
|
+
**
|
4
|
+
** Created: mar. déc. 22 13:09:24 2015
|
5
|
+
** by: Qt User Interface Compiler version 4.8.6
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_I2c_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_address_w
|
19
|
+
attr_reader :lie_address_w
|
20
|
+
attr_reader :lbl_address_r
|
21
|
+
attr_reader :lie_address_r
|
22
|
+
attr_reader :lbl_frequency
|
23
|
+
attr_reader :cbx_frequency
|
24
|
+
attr_reader :lbl_full_size
|
25
|
+
attr_reader :lie_total_size
|
26
|
+
attr_reader :lbl_bus_scan
|
27
|
+
attr_reader :btn_bus_scan
|
28
|
+
attr_reader :tbl_bus_scan
|
29
|
+
attr_reader :hl
|
30
|
+
attr_reader :hs
|
31
|
+
attr_reader :btn_cancel
|
32
|
+
attr_reader :btn_save
|
33
|
+
|
34
|
+
def setupUi(i2c_settings)
|
35
|
+
if i2c_settings.objectName.nil?
|
36
|
+
i2c_settings.objectName = "i2c_settings"
|
37
|
+
end
|
38
|
+
i2c_settings.resize(358, 396)
|
39
|
+
@gridLayout = Qt::GridLayout.new(i2c_settings)
|
40
|
+
@gridLayout.objectName = "gridLayout"
|
41
|
+
@vl = Qt::VBoxLayout.new()
|
42
|
+
@vl.objectName = "vl"
|
43
|
+
@hl2 = Qt::HBoxLayout.new()
|
44
|
+
@hl2.objectName = "hl2"
|
45
|
+
@lbl_chip = Qt::Label.new(i2c_settings)
|
46
|
+
@lbl_chip.objectName = "lbl_chip"
|
47
|
+
|
48
|
+
@hl2.addWidget(@lbl_chip)
|
49
|
+
|
50
|
+
@lbl_parameters = Qt::Label.new(i2c_settings)
|
51
|
+
@lbl_parameters.objectName = "lbl_parameters"
|
52
|
+
|
53
|
+
@hl2.addWidget(@lbl_parameters)
|
54
|
+
|
55
|
+
@hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
56
|
+
|
57
|
+
@hl2.addItem(@hs2)
|
58
|
+
|
59
|
+
|
60
|
+
@vl.addLayout(@hl2)
|
61
|
+
|
62
|
+
@fl = Qt::FormLayout.new()
|
63
|
+
@fl.objectName = "fl"
|
64
|
+
@lbl_address_w = Qt::Label.new(i2c_settings)
|
65
|
+
@lbl_address_w.objectName = "lbl_address_w"
|
66
|
+
|
67
|
+
@fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_address_w)
|
68
|
+
|
69
|
+
@lie_address_w = Qt::LineEdit.new(i2c_settings)
|
70
|
+
@lie_address_w.objectName = "lie_address_w"
|
71
|
+
@lie_address_w.maxLength = 2
|
72
|
+
|
73
|
+
@fl.setWidget(1, Qt::FormLayout::FieldRole, @lie_address_w)
|
74
|
+
|
75
|
+
@lbl_address_r = Qt::Label.new(i2c_settings)
|
76
|
+
@lbl_address_r.objectName = "lbl_address_r"
|
77
|
+
|
78
|
+
@fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_address_r)
|
79
|
+
|
80
|
+
@lie_address_r = Qt::LineEdit.new(i2c_settings)
|
81
|
+
@lie_address_r.objectName = "lie_address_r"
|
82
|
+
@lie_address_r.maxLength = 2
|
83
|
+
|
84
|
+
@fl.setWidget(2, Qt::FormLayout::FieldRole, @lie_address_r)
|
85
|
+
|
86
|
+
@lbl_frequency = Qt::Label.new(i2c_settings)
|
87
|
+
@lbl_frequency.objectName = "lbl_frequency"
|
88
|
+
|
89
|
+
@fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_frequency)
|
90
|
+
|
91
|
+
@cbx_frequency = Qt::ComboBox.new(i2c_settings)
|
92
|
+
@cbx_frequency.objectName = "cbx_frequency"
|
93
|
+
|
94
|
+
@fl.setWidget(3, Qt::FormLayout::FieldRole, @cbx_frequency)
|
95
|
+
|
96
|
+
@lbl_full_size = Qt::Label.new(i2c_settings)
|
97
|
+
@lbl_full_size.objectName = "lbl_full_size"
|
98
|
+
|
99
|
+
@fl.setWidget(4, Qt::FormLayout::LabelRole, @lbl_full_size)
|
100
|
+
|
101
|
+
@lie_total_size = Qt::LineEdit.new(i2c_settings)
|
102
|
+
@lie_total_size.objectName = "lie_total_size"
|
103
|
+
|
104
|
+
@fl.setWidget(4, Qt::FormLayout::FieldRole, @lie_total_size)
|
105
|
+
|
106
|
+
@lbl_bus_scan = Qt::Label.new(i2c_settings)
|
107
|
+
@lbl_bus_scan.objectName = "lbl_bus_scan"
|
108
|
+
|
109
|
+
@fl.setWidget(5, Qt::FormLayout::LabelRole, @lbl_bus_scan)
|
110
|
+
|
111
|
+
@btn_bus_scan = Qt::PushButton.new(i2c_settings)
|
112
|
+
@btn_bus_scan.objectName = "btn_bus_scan"
|
113
|
+
|
114
|
+
@fl.setWidget(5, Qt::FormLayout::FieldRole, @btn_bus_scan)
|
115
|
+
|
116
|
+
|
117
|
+
@vl.addLayout(@fl)
|
118
|
+
|
119
|
+
@tbl_bus_scan = Qt::TableWidget.new(i2c_settings)
|
120
|
+
@tbl_bus_scan.objectName = "tbl_bus_scan"
|
121
|
+
|
122
|
+
@vl.addWidget(@tbl_bus_scan)
|
123
|
+
|
124
|
+
@hl = Qt::HBoxLayout.new()
|
125
|
+
@hl.objectName = "hl"
|
126
|
+
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
127
|
+
|
128
|
+
@hl.addItem(@hs)
|
129
|
+
|
130
|
+
@btn_cancel = Qt::PushButton.new(i2c_settings)
|
131
|
+
@btn_cancel.objectName = "btn_cancel"
|
132
|
+
|
133
|
+
@hl.addWidget(@btn_cancel)
|
134
|
+
|
135
|
+
@btn_save = Qt::PushButton.new(i2c_settings)
|
136
|
+
@btn_save.objectName = "btn_save"
|
137
|
+
@btn_save.maximumSize = Qt::Size.new(16777215, 16777215)
|
138
|
+
|
139
|
+
@hl.addWidget(@btn_save)
|
140
|
+
|
141
|
+
|
142
|
+
@vl.addLayout(@hl)
|
143
|
+
|
144
|
+
|
145
|
+
@gridLayout.addLayout(@vl, 0, 0, 1, 1)
|
146
|
+
|
147
|
+
|
148
|
+
retranslateUi(i2c_settings)
|
149
|
+
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), i2c_settings, SLOT('close()'))
|
150
|
+
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), i2c_settings, SLOT('save_settings()'))
|
151
|
+
Qt::Object.connect(@btn_bus_scan, SIGNAL('clicked()'), i2c_settings, SLOT('bus_scan()'))
|
152
|
+
|
153
|
+
Qt::MetaObject.connectSlotsByName(i2c_settings)
|
154
|
+
end # setupUi
|
155
|
+
|
156
|
+
def setup_ui(i2c_settings)
|
157
|
+
setupUi(i2c_settings)
|
158
|
+
end
|
159
|
+
|
160
|
+
def retranslateUi(i2c_settings)
|
161
|
+
i2c_settings.windowTitle = Qt::Application.translate("I2c_settings", "Hardsploit - I\302\262C settings", nil, Qt::Application::UnicodeUTF8)
|
162
|
+
@lbl_chip.text = Qt::Application.translate("I2c_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
163
|
+
@lbl_parameters.text = Qt::Application.translate("I2c_settings", "PARAMETERS", nil, Qt::Application::UnicodeUTF8)
|
164
|
+
@lbl_address_w.text = Qt::Application.translate("I2c_settings", "Base address (W):", nil, Qt::Application::UnicodeUTF8)
|
165
|
+
@lie_address_w.placeholderText = Qt::Application.translate("I2c_settings", "in hexadecimal", nil, Qt::Application::UnicodeUTF8)
|
166
|
+
@lbl_address_r.text = Qt::Application.translate("I2c_settings", "Base address (R):", nil, Qt::Application::UnicodeUTF8)
|
167
|
+
@lie_address_r.placeholderText = Qt::Application.translate("I2c_settings", "in hexadecimal", nil, Qt::Application::UnicodeUTF8)
|
168
|
+
@lbl_frequency.text = Qt::Application.translate("I2c_settings", "Frequency (Khz):", nil, Qt::Application::UnicodeUTF8)
|
169
|
+
@cbx_frequency.insertItems(0, [Qt::Application.translate("I2c_settings", "100", nil, Qt::Application::UnicodeUTF8),
|
170
|
+
Qt::Application.translate("I2c_settings", "400", nil, Qt::Application::UnicodeUTF8),
|
171
|
+
Qt::Application.translate("I2c_settings", "1000", nil, Qt::Application::UnicodeUTF8)])
|
172
|
+
@lbl_full_size.text = Qt::Application.translate("I2c_settings", "Total size:", nil, Qt::Application::UnicodeUTF8)
|
173
|
+
@lie_total_size.placeholderText = Qt::Application.translate("I2c_settings", "in octet, to a maximum of 4Go", nil, Qt::Application::UnicodeUTF8)
|
174
|
+
@lbl_bus_scan.text = Qt::Application.translate("I2c_settings", "Bus scan:", nil, Qt::Application::UnicodeUTF8)
|
175
|
+
@btn_bus_scan.text = Qt::Application.translate("I2c_settings", "Launch", nil, Qt::Application::UnicodeUTF8)
|
176
|
+
if @tbl_bus_scan.columnCount < 2
|
177
|
+
@tbl_bus_scan.columnCount = 2
|
178
|
+
end
|
179
|
+
|
180
|
+
__colItem = Qt::TableWidgetItem.new
|
181
|
+
__colItem.setText(Qt::Application.translate("I2c_settings", "Address", nil, Qt::Application::UnicodeUTF8))
|
182
|
+
@tbl_bus_scan.setHorizontalHeaderItem(0, __colItem)
|
183
|
+
|
184
|
+
__colItem1 = Qt::TableWidgetItem.new
|
185
|
+
__colItem1.setText(Qt::Application.translate("I2c_settings", "R/W", nil, Qt::Application::UnicodeUTF8))
|
186
|
+
@tbl_bus_scan.setHorizontalHeaderItem(1, __colItem1)
|
187
|
+
@btn_cancel.text = Qt::Application.translate("I2c_settings", "Close", nil, Qt::Application::UnicodeUTF8)
|
188
|
+
@btn_save.text = Qt::Application.translate("I2c_settings", "Save", nil, Qt::Application::UnicodeUTF8)
|
189
|
+
end # retranslateUi
|
190
|
+
|
191
|
+
def retranslate_ui(i2c_settings)
|
192
|
+
retranslateUi(i2c_settings)
|
193
|
+
end
|
194
|
+
|
195
|
+
end
|
196
|
+
|
197
|
+
module Ui
|
198
|
+
class I2c_settings < Ui_I2c_settings
|
199
|
+
end
|
200
|
+
end # module Ui
|
201
|
+
|
@@ -0,0 +1,194 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'gui_parallel_settings.ui'
|
3
|
+
**
|
4
|
+
** Created: mar. déc. 8 14:46:14 2015
|
5
|
+
** by: Qt User Interface Compiler version 4.8.6
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_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_16b = Qt::RadioButton.new(@groupBox)
|
108
|
+
@rbn_16b.objectName = "rbn_16b"
|
109
|
+
@rbn_16b.geometry = Qt::Rect.new(80, 0, 81, 21)
|
110
|
+
|
111
|
+
@fl.setWidget(4, Qt::FormLayout::FieldRole, @groupBox)
|
112
|
+
|
113
|
+
@lbl_page_size = Qt::Label.new(parallel_settings)
|
114
|
+
@lbl_page_size.objectName = "lbl_page_size"
|
115
|
+
|
116
|
+
@fl.setWidget(5, Qt::FormLayout::LabelRole, @lbl_page_size)
|
117
|
+
|
118
|
+
@lie_page_size = Qt::LineEdit.new(parallel_settings)
|
119
|
+
@lie_page_size.objectName = "lie_page_size"
|
120
|
+
|
121
|
+
@fl.setWidget(5, Qt::FormLayout::FieldRole, @lie_page_size)
|
122
|
+
|
123
|
+
|
124
|
+
@vl.addLayout(@fl)
|
125
|
+
|
126
|
+
@hl = Qt::HBoxLayout.new()
|
127
|
+
@hl.objectName = "hl"
|
128
|
+
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
129
|
+
|
130
|
+
@hl.addItem(@hs)
|
131
|
+
|
132
|
+
@btn_cancel = Qt::PushButton.new(parallel_settings)
|
133
|
+
@btn_cancel.objectName = "btn_cancel"
|
134
|
+
|
135
|
+
@hl.addWidget(@btn_cancel)
|
136
|
+
|
137
|
+
@btn_save = Qt::PushButton.new(parallel_settings)
|
138
|
+
@btn_save.objectName = "btn_save"
|
139
|
+
@btn_save.maximumSize = Qt::Size.new(16777215, 16777215)
|
140
|
+
|
141
|
+
@hl.addWidget(@btn_save)
|
142
|
+
|
143
|
+
|
144
|
+
@vl.addLayout(@hl)
|
145
|
+
|
146
|
+
|
147
|
+
@gridLayout.addLayout(@vl, 1, 0, 1, 1)
|
148
|
+
|
149
|
+
|
150
|
+
retranslateUi(parallel_settings)
|
151
|
+
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), parallel_settings, SLOT('close()'))
|
152
|
+
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), parallel_settings, SLOT('save_settings()'))
|
153
|
+
|
154
|
+
Qt::MetaObject.connectSlotsByName(parallel_settings)
|
155
|
+
end # setupUi
|
156
|
+
|
157
|
+
def setup_ui(parallel_settings)
|
158
|
+
setupUi(parallel_settings)
|
159
|
+
end
|
160
|
+
|
161
|
+
def retranslateUi(parallel_settings)
|
162
|
+
parallel_settings.windowTitle = Qt::Application.translate("Parallel_settings", "Hardsploit - Parallel settings", nil, Qt::Application::UnicodeUTF8)
|
163
|
+
@lbl_chip.text = Qt::Application.translate("Parallel_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
|
164
|
+
@lbl_parameters.text = Qt::Application.translate("Parallel_settings", "PARAMETERS", nil, Qt::Application::UnicodeUTF8)
|
165
|
+
@lbl_total_size.text = Qt::Application.translate("Parallel_settings", "Total size:", nil, Qt::Application::UnicodeUTF8)
|
166
|
+
@lie_total_size.text = ''
|
167
|
+
@lie_total_size.placeholderText = Qt::Application.translate("Parallel_settings", "in bytes", nil, Qt::Application::UnicodeUTF8)
|
168
|
+
@lbl_latency.text = Qt::Application.translate("Parallel_settings", "Read latency:", nil, Qt::Application::UnicodeUTF8)
|
169
|
+
@lie_read_latency.placeholderText = Qt::Application.translate("Parallel_settings", " 0 to 1600 nanosecondes", nil, Qt::Application::UnicodeUTF8)
|
170
|
+
@lbl_write_latency.text = Qt::Application.translate("Parallel_settings", "Write latency", nil, Qt::Application::UnicodeUTF8)
|
171
|
+
@lie_write_latency.text = ''
|
172
|
+
@lie_write_latency.placeholderText = Qt::Application.translate("Parallel_settings", "in nanosecondes", nil, Qt::Application::UnicodeUTF8)
|
173
|
+
@lbl_word_size.text = Qt::Application.translate("Parallel_settings", "Word size:", nil, Qt::Application::UnicodeUTF8)
|
174
|
+
@groupBox.title = ''
|
175
|
+
@rbn_8b.text = Qt::Application.translate("Parallel_settings", "8 bits", nil, Qt::Application::UnicodeUTF8)
|
176
|
+
@rbn_16b.text = Qt::Application.translate("Parallel_settings", "16 bits", nil, Qt::Application::UnicodeUTF8)
|
177
|
+
@lbl_page_size.text = Qt::Application.translate("Parallel_settings", "Page size:", nil, Qt::Application::UnicodeUTF8)
|
178
|
+
@lie_page_size.text = ''
|
179
|
+
@lie_page_size.placeholderText = Qt::Application.translate("Parallel_settings", "in bytes", nil, Qt::Application::UnicodeUTF8)
|
180
|
+
@btn_cancel.text = Qt::Application.translate("Parallel_settings", "Cancel", nil, Qt::Application::UnicodeUTF8)
|
181
|
+
@btn_save.text = Qt::Application.translate("Parallel_settings", "Save", nil, Qt::Application::UnicodeUTF8)
|
182
|
+
end # retranslateUi
|
183
|
+
|
184
|
+
def retranslate_ui(parallel_settings)
|
185
|
+
retranslateUi(parallel_settings)
|
186
|
+
end
|
187
|
+
|
188
|
+
end
|
189
|
+
|
190
|
+
module Ui
|
191
|
+
class Parallel_settings < Ui_Parallel_settings
|
192
|
+
end
|
193
|
+
end # module Ui
|
194
|
+
|