hardsploit_gui 2.0 → 2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/Firmware/FPGA/I2C/I2C_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_I2C_INTERACT.rpd +0 -0
  3. data/lib/HardsploitAPI/HardsploitAPI.rb +5 -6
  4. data/lib/HardsploitAPI/HardsploitAPI_CONSTANT.rb +1 -1
  5. data/lib/HardsploitAPI/HardsploitAPI_ERROR.rb +38 -0
  6. data/lib/HardsploitAPI/HardsploitAPI_FIRMWARE.rb +3 -3
  7. data/lib/HardsploitAPI/HardsploitAPI_I2C.rb +145 -3
  8. data/lib/HardsploitAPI/HardsploitAPI_PROGRESS.rb +28 -0
  9. data/lib/HardsploitAPI/HardsploitAPI_SPI.rb +195 -5
  10. data/lib/HardsploitAPI/HardsploitAPI_USB_COMMUNICATION.rb +0 -1
  11. data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD.rb +1 -1
  12. data/lib/class/Generic_commands.rb +31 -36
  13. data/lib/class/HardsploitGUI.rb +5 -4
  14. data/lib/class/I2C/I2c_export.rb +6 -9
  15. data/lib/class/I2C/I2c_import.rb +15 -28
  16. data/lib/class/I2C/I2c_settings.rb +20 -8
  17. data/lib/class/Progress_bar.rb +31 -0
  18. data/lib/class/SPI/Spi_export.rb +6 -9
  19. data/lib/class/SPI/Spi_import.rb +33 -32
  20. data/lib/class/SPI/Spi_settings.rb +50 -4
  21. data/lib/db/hs.db +0 -0
  22. data/lib/gui/gui_chip_editor.rb +120 -127
  23. data/lib/gui/gui_i2c_settings.rb +34 -5
  24. data/lib/gui/gui_progress_bar.rb +84 -0
  25. data/lib/gui/gui_spi_settings.rb +175 -49
  26. data/lib/gui_designer/gui_chip_editor.ui +134 -141
  27. data/lib/gui_designer/gui_i2c_settings.ui +35 -4
  28. data/lib/gui_designer/gui_progress_bar.ui +83 -0
  29. data/lib/gui_designer/gui_spi_settings.ui +159 -34
  30. data/lib/hardsploit.rb +12 -3
  31. data/lib/logs/error.log +1 -0
  32. data/lib/startHardsploit.rb +10 -0
  33. metadata +8 -3
  34. data/lib/gui_designer/gui_processing.ui +0 -81
@@ -16,8 +16,13 @@ class Spi_settings < Qt::Widget
16
16
  @spi_settings_gui.setupUi(self)
17
17
  @spi_settings_gui.lbl_chip.setText(chip.chip_reference)
18
18
  inputRestrict(@spi_settings_gui.lie_total_size, 0)
19
- inputRestrict(@spi_settings_gui.lie_cmd_read, 0)
20
19
  inputRestrict(@spi_settings_gui.lie_page_size, 0)
20
+ inputRestrict(@spi_settings_gui.lie_write_page_latency, 0)
21
+ inputRestrict(@spi_settings_gui.lie_cmd_read, 0)
22
+ inputRestrict(@spi_settings_gui.lie_cmd_write, 0)
23
+ inputRestrict(@spi_settings_gui.lie_cmd_write_enable, 0)
24
+ inputRestrict(@spi_settings_gui.lie_cmd_erase, 0)
25
+ inputRestrict(@spi_settings_gui.lie_erase_time, 0)
21
26
  @chip_settings = Spi.find_by(spi_chip: chip.chip_id)
22
27
  @chip = chip
23
28
  feed_settings_form
@@ -37,8 +42,20 @@ class Spi_settings < Qt::Widget
37
42
  @spi_settings_gui.cbx_mode.setCurrentIndex(@spi_settings_gui.cbx_mode.findText(@chip_settings.spi_mode.to_s))
38
43
  @spi_settings_gui.cbx_frequency.setCurrentIndex(@spi_settings_gui.cbx_frequency.findText(@chip_settings.spi_frequency))
39
44
  @spi_settings_gui.lie_cmd_read.setText(@chip_settings.spi_command_read.to_s)
45
+ @spi_settings_gui.lie_cmd_write.setText(@chip_settings.spi_command_write.to_s)
46
+ @spi_settings_gui.lie_write_page_latency.setText(@chip_settings.spi_write_page_latency.to_s)
47
+ @spi_settings_gui.lie_cmd_write_enable.setText(@chip_settings.spi_command_write_enable.to_s)
48
+ @spi_settings_gui.lie_cmd_erase.setText(@chip_settings.spi_command_erase.to_s)
49
+ @spi_settings_gui.lie_erase_time.setText(@chip_settings.spi_erase_time.to_s)
40
50
  @spi_settings_gui.lie_page_size.setText(@chip_settings.spi_page_size.to_s)
41
51
  @spi_settings_gui.lie_total_size.setText(@chip_settings.spi_total_size.to_s)
52
+ unless @chip_settings.spi_is_flash.nil?
53
+ if @chip_settings.spi_is_flash.zero?
54
+ @spi_settings_gui.rbn_no.setChecked(true)
55
+ else
56
+ @spi_settings_gui.rbn_yes.setChecked(true)
57
+ end
58
+ end
42
59
  end
43
60
  rescue Exception => msg
44
61
  logger = Logger.new($logFilePath)
@@ -46,11 +63,25 @@ class Spi_settings < Qt::Widget
46
63
  Qt::MessageBox.new(Qt::MessageBox::Critical, 'Critical error', 'Error while loading the form. Consult the log for more details').exec
47
64
  end
48
65
 
66
+ def is_flash?
67
+ if @spi_settings_gui.rbn_no.isChecked
68
+ return 0
69
+ else
70
+ return 1
71
+ end
72
+ end
73
+
49
74
  def create
50
75
  @chip_settings = Spi.create(
51
76
  spi_mode: @spi_settings_gui.cbx_mode.currentText,
52
77
  spi_frequency: @spi_settings_gui.cbx_frequency.currentText,
78
+ spi_write_page_latency: @spi_settings_gui.lie_write_page_latency.text,
53
79
  spi_command_read: @spi_settings_gui.lie_cmd_read.text,
80
+ spi_command_write: @spi_settings_gui.lie_cmd_write.text,
81
+ spi_command_write_enable: @spi_settings_gui.lie_cmd_write_enable.text,
82
+ spi_command_erase: @spi_settings_gui.lie_cmd_erase.text,
83
+ spi_erase_time: @spi_settings_gui.lie_erase_time.text,
84
+ spi_is_flash: is_flash?,
54
85
  spi_page_size: @spi_settings_gui.lie_page_size.text,
55
86
  spi_total_size: @spi_settings_gui.lie_total_size.text,
56
87
  spi_chip: @chip.chip_id
@@ -69,18 +100,33 @@ class Spi_settings < Qt::Widget
69
100
  if @chip_settings.spi_frequency != @spi_settings_gui.cbx_frequency.currentText
70
101
  @chip_settings.update(spi_frequency: @spi_settings_gui.cbx_frequency.currentText)
71
102
  end
103
+ if @chip_settings.spi_write_page_latency != @spi_settings_gui.lie_write_page_latency.text
104
+ @chip_settings.update(spi_write_page_latency: @spi_settings_gui.lie_write_page_latency.text)
105
+ end
72
106
  if @chip_settings.spi_command_read != @spi_settings_gui.lie_cmd_read.text
73
- if @spi_settings_gui.lie_cmd_read.text.empty?
74
- @spi_settings_gui.lie_cmd_read.setText('3')
75
- end
76
107
  @chip_settings.update(spi_command_read: @spi_settings_gui.lie_cmd_read.text)
77
108
  end
109
+ if @chip_settings.spi_command_write != @spi_settings_gui.lie_cmd_write.text
110
+ @chip_settings.update(spi_command_write: @spi_settings_gui.lie_cmd_write.text)
111
+ end
112
+ if @chip_settings.spi_command_write_enable != @spi_settings_gui.lie_cmd_write_enable.text
113
+ @chip_settings.update(spi_command_write_enable: @spi_settings_gui.lie_cmd_write_enable.text)
114
+ end
115
+ if @chip_settings.spi_command_erase != @spi_settings_gui.lie_cmd_erase.text
116
+ @chip_settings.update(spi_command_erase: @spi_settings_gui.lie_cmd_erase.text)
117
+ end
118
+ if @chip_settings.spi_erase_time != @spi_settings_gui.lie_erase_time.text
119
+ @chip_settings.update(spi_erase_time: @spi_settings_gui.lie_erase_time.text)
120
+ end
78
121
  if @chip_settings.spi_page_size != @spi_settings_gui.lie_page_size.text
79
122
  @chip_settings.update(spi_page_size: @spi_settings_gui.lie_page_size.text)
80
123
  end
81
124
  if @chip_settings.spi_total_size != @spi_settings_gui.lie_total_size.text
82
125
  @chip_settings.update(spi_total_size: @spi_settings_gui.lie_total_size.text)
83
126
  end
127
+ if @chip_settings.spi_is_flash != is_flash?
128
+ @chip_settings.update(spi_is_flash: is_flash?)
129
+ end
84
130
  Qt::MessageBox.new(Qt::MessageBox::Information, 'Succes', 'SPI parameters saved successfully').exec
85
131
  rescue Exception => msg
86
132
  logger = Logger.new($logFilePath)
Binary file
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  ** Form generated from reading ui file 'gui_chip_editor.ui'
3
3
  **
4
- ** Created: mar. déc. 22 16:54:43 2015
4
+ ** Created: mer. févr. 10 14:26:34 2016
5
5
  ** by: Qt User Interface Compiler version 4.8.6
6
6
  **
7
7
  ** WARNING! All changes made in this file will be lost when recompiling ui file!
@@ -18,38 +18,37 @@ class Ui_Chip_editor
18
18
  attr_reader :vl
19
19
  attr_reader :fl
20
20
  attr_reader :lbl_ref
21
+ attr_reader :lie_reference
22
+ attr_reader :lbl_description
23
+ attr_reader :lie_description
24
+ attr_reader :lbl_voltage
25
+ attr_reader :hl2
26
+ attr_reader :groupBox
27
+ attr_reader :rbn_3v
28
+ attr_reader :rbn_5v
29
+ attr_reader :lbl_manu
30
+ attr_reader :hl4
31
+ attr_reader :cbx_manufacturer
32
+ attr_reader :btn_manu_remove
33
+ attr_reader :lie_manu_name
34
+ attr_reader :lbl_type
35
+ attr_reader :hl5
36
+ attr_reader :cbx_type
37
+ attr_reader :btn_type_remove
38
+ attr_reader :lie_type_name
21
39
  attr_reader :lbl_package
22
40
  attr_reader :hl1
23
41
  attr_reader :cbx_package
24
42
  attr_reader :btn_pack_remove
25
- attr_reader :lbl_pack_new
26
43
  attr_reader :lbl_name
27
44
  attr_reader :lie_pack_name
28
45
  attr_reader :lbl_pack_pin
29
46
  attr_reader :lie_pack_pin
30
47
  attr_reader :lbl_pack_shape
31
- attr_reader :lie_reference
32
- attr_reader :hl2
33
- attr_reader :groupBox
34
- attr_reader :rbn_3v
35
- attr_reader :rbn_5v
36
- attr_reader :lbl_voltage
37
48
  attr_reader :hl3
38
49
  attr_reader :groupBox_2
39
50
  attr_reader :rbn_square
40
51
  attr_reader :rbn_rectangular
41
- attr_reader :lbl_manu
42
- attr_reader :lie_manu_name
43
- attr_reader :lbl_type
44
- attr_reader :hl5
45
- attr_reader :cbx_type
46
- attr_reader :btn_type_remove
47
- attr_reader :lie_type_name
48
- attr_reader :lbl_description
49
- attr_reader :lie_description
50
- attr_reader :hl4
51
- attr_reader :cbx_manufacturer
52
- attr_reader :btn_manu_remove
53
52
 
54
53
  def setupUi(chip_editor)
55
54
  if chip_editor.objectName.nil?
@@ -98,64 +97,27 @@ class Ui_Chip_editor
98
97
 
99
98
  @fl.setWidget(0, Qt::FormLayout::LabelRole, @lbl_ref)
100
99
 
101
- @lbl_package = Qt::Label.new(chip_editor)
102
- @lbl_package.objectName = "lbl_package"
103
-
104
- @fl.setWidget(7, Qt::FormLayout::LabelRole, @lbl_package)
105
-
106
- @hl1 = Qt::HBoxLayout.new()
107
- @hl1.objectName = "hl1"
108
- @cbx_package = Qt::ComboBox.new(chip_editor)
109
- @cbx_package.objectName = "cbx_package"
110
-
111
- @hl1.addWidget(@cbx_package)
112
-
113
- @btn_pack_remove = Qt::PushButton.new(chip_editor)
114
- @btn_pack_remove.objectName = "btn_pack_remove"
115
- @btn_pack_remove.maximumSize = Qt::Size.new(30, 16777215)
116
-
117
- @hl1.addWidget(@btn_pack_remove)
118
-
119
-
120
- @fl.setLayout(7, Qt::FormLayout::FieldRole, @hl1)
121
-
122
- @lbl_pack_new = Qt::Label.new(chip_editor)
123
- @lbl_pack_new.objectName = "lbl_pack_new"
124
-
125
- @fl.setWidget(10, Qt::FormLayout::LabelRole, @lbl_pack_new)
126
-
127
- @lbl_name = Qt::Label.new(chip_editor)
128
- @lbl_name.objectName = "lbl_name"
129
-
130
- @fl.setWidget(11, Qt::FormLayout::LabelRole, @lbl_name)
131
-
132
- @lie_pack_name = Qt::LineEdit.new(chip_editor)
133
- @lie_pack_name.objectName = "lie_pack_name"
134
- @lie_pack_name.maxLength = 30
135
-
136
- @fl.setWidget(11, Qt::FormLayout::FieldRole, @lie_pack_name)
137
-
138
- @lbl_pack_pin = Qt::Label.new(chip_editor)
139
- @lbl_pack_pin.objectName = "lbl_pack_pin"
100
+ @lie_reference = Qt::LineEdit.new(chip_editor)
101
+ @lie_reference.objectName = "lie_reference"
102
+ @lie_reference.maxLength = 30
140
103
 
141
- @fl.setWidget(12, Qt::FormLayout::LabelRole, @lbl_pack_pin)
104
+ @fl.setWidget(0, Qt::FormLayout::FieldRole, @lie_reference)
142
105
 
143
- @lie_pack_pin = Qt::LineEdit.new(chip_editor)
144
- @lie_pack_pin.objectName = "lie_pack_pin"
145
- @lie_pack_pin.maxLength = 3
106
+ @lbl_description = Qt::Label.new(chip_editor)
107
+ @lbl_description.objectName = "lbl_description"
146
108
 
147
- @fl.setWidget(12, Qt::FormLayout::FieldRole, @lie_pack_pin)
109
+ @fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_description)
148
110
 
149
- @lbl_pack_shape = Qt::Label.new(chip_editor)
150
- @lbl_pack_shape.objectName = "lbl_pack_shape"
111
+ @lie_description = Qt::LineEdit.new(chip_editor)
112
+ @lie_description.objectName = "lie_description"
113
+ @lie_description.maxLength = 200
151
114
 
152
- @fl.setWidget(13, Qt::FormLayout::LabelRole, @lbl_pack_shape)
115
+ @fl.setWidget(1, Qt::FormLayout::FieldRole, @lie_description)
153
116
 
154
- @lie_reference = Qt::LineEdit.new(chip_editor)
155
- @lie_reference.objectName = "lie_reference"
156
- @lie_reference.maxLength = 30
117
+ @lbl_voltage = Qt::Label.new(chip_editor)
118
+ @lbl_voltage.objectName = "lbl_voltage"
157
119
 
158
- @fl.setWidget(0, Qt::FormLayout::FieldRole, @lie_reference)
120
+ @fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_voltage)
159
121
 
160
122
  @hl2 = Qt::HBoxLayout.new()
161
123
  @hl2.objectName = "hl2"
@@ -176,35 +138,26 @@ class Ui_Chip_editor
176
138
 
177
139
  @fl.setLayout(2, Qt::FormLayout::FieldRole, @hl2)
178
140
 
179
- @lbl_voltage = Qt::Label.new(chip_editor)
180
- @lbl_voltage.objectName = "lbl_voltage"
141
+ @lbl_manu = Qt::Label.new(chip_editor)
142
+ @lbl_manu.objectName = "lbl_manu"
181
143
 
182
- @fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_voltage)
144
+ @fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_manu)
183
145
 
184
- @hl3 = Qt::HBoxLayout.new()
185
- @hl3.objectName = "hl3"
186
- @groupBox_2 = Qt::GroupBox.new(chip_editor)
187
- @groupBox_2.objectName = "groupBox_2"
188
- @rbn_square = Qt::RadioButton.new(@groupBox_2)
189
- @rbn_square.objectName = "rbn_square"
190
- @rbn_square.geometry = Qt::Rect.new(10, 0, 81, 20)
191
- @rbn_square.checked = true
192
- @rbn_square.autoExclusive = true
193
- @rbn_rectangular = Qt::RadioButton.new(@groupBox_2)
194
- @rbn_rectangular.objectName = "rbn_rectangular"
195
- @rbn_rectangular.geometry = Qt::Rect.new(110, 0, 109, 20)
196
- @rbn_rectangular.checked = false
197
- @rbn_rectangular.autoExclusive = true
146
+ @hl4 = Qt::HBoxLayout.new()
147
+ @hl4.objectName = "hl4"
148
+ @cbx_manufacturer = Qt::ComboBox.new(chip_editor)
149
+ @cbx_manufacturer.objectName = "cbx_manufacturer"
198
150
 
199
- @hl3.addWidget(@groupBox_2)
151
+ @hl4.addWidget(@cbx_manufacturer)
200
152
 
153
+ @btn_manu_remove = Qt::PushButton.new(chip_editor)
154
+ @btn_manu_remove.objectName = "btn_manu_remove"
155
+ @btn_manu_remove.maximumSize = Qt::Size.new(30, 16777215)
201
156
 
202
- @fl.setLayout(13, Qt::FormLayout::FieldRole, @hl3)
157
+ @hl4.addWidget(@btn_manu_remove)
203
158
 
204
- @lbl_manu = Qt::Label.new(chip_editor)
205
- @lbl_manu.objectName = "lbl_manu"
206
159
 
207
- @fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_manu)
160
+ @fl.setLayout(3, Qt::FormLayout::FieldRole, @hl4)
208
161
 
209
162
  @lie_manu_name = Qt::LineEdit.new(chip_editor)
210
163
  @lie_manu_name.objectName = "lie_manu_name"
@@ -239,32 +192,73 @@ class Ui_Chip_editor
239
192
 
240
193
  @fl.setWidget(6, Qt::FormLayout::FieldRole, @lie_type_name)
241
194
 
242
- @lbl_description = Qt::Label.new(chip_editor)
243
- @lbl_description.objectName = "lbl_description"
195
+ @lbl_package = Qt::Label.new(chip_editor)
196
+ @lbl_package.objectName = "lbl_package"
244
197
 
245
- @fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_description)
198
+ @fl.setWidget(7, Qt::FormLayout::LabelRole, @lbl_package)
246
199
 
247
- @lie_description = Qt::LineEdit.new(chip_editor)
248
- @lie_description.objectName = "lie_description"
249
- @lie_description.maxLength = 200
200
+ @hl1 = Qt::HBoxLayout.new()
201
+ @hl1.objectName = "hl1"
202
+ @cbx_package = Qt::ComboBox.new(chip_editor)
203
+ @cbx_package.objectName = "cbx_package"
250
204
 
251
- @fl.setWidget(1, Qt::FormLayout::FieldRole, @lie_description)
205
+ @hl1.addWidget(@cbx_package)
252
206
 
253
- @hl4 = Qt::HBoxLayout.new()
254
- @hl4.objectName = "hl4"
255
- @cbx_manufacturer = Qt::ComboBox.new(chip_editor)
256
- @cbx_manufacturer.objectName = "cbx_manufacturer"
207
+ @btn_pack_remove = Qt::PushButton.new(chip_editor)
208
+ @btn_pack_remove.objectName = "btn_pack_remove"
209
+ @btn_pack_remove.maximumSize = Qt::Size.new(30, 16777215)
257
210
 
258
- @hl4.addWidget(@cbx_manufacturer)
211
+ @hl1.addWidget(@btn_pack_remove)
259
212
 
260
- @btn_manu_remove = Qt::PushButton.new(chip_editor)
261
- @btn_manu_remove.objectName = "btn_manu_remove"
262
- @btn_manu_remove.maximumSize = Qt::Size.new(30, 16777215)
263
213
 
264
- @hl4.addWidget(@btn_manu_remove)
214
+ @fl.setLayout(7, Qt::FormLayout::FieldRole, @hl1)
215
+
216
+ @lbl_name = Qt::Label.new(chip_editor)
217
+ @lbl_name.objectName = "lbl_name"
265
218
 
219
+ @fl.setWidget(8, Qt::FormLayout::LabelRole, @lbl_name)
266
220
 
267
- @fl.setLayout(3, Qt::FormLayout::FieldRole, @hl4)
221
+ @lie_pack_name = Qt::LineEdit.new(chip_editor)
222
+ @lie_pack_name.objectName = "lie_pack_name"
223
+ @lie_pack_name.maxLength = 30
224
+
225
+ @fl.setWidget(8, Qt::FormLayout::FieldRole, @lie_pack_name)
226
+
227
+ @lbl_pack_pin = Qt::Label.new(chip_editor)
228
+ @lbl_pack_pin.objectName = "lbl_pack_pin"
229
+
230
+ @fl.setWidget(9, Qt::FormLayout::LabelRole, @lbl_pack_pin)
231
+
232
+ @lie_pack_pin = Qt::LineEdit.new(chip_editor)
233
+ @lie_pack_pin.objectName = "lie_pack_pin"
234
+ @lie_pack_pin.maxLength = 3
235
+
236
+ @fl.setWidget(9, Qt::FormLayout::FieldRole, @lie_pack_pin)
237
+
238
+ @lbl_pack_shape = Qt::Label.new(chip_editor)
239
+ @lbl_pack_shape.objectName = "lbl_pack_shape"
240
+
241
+ @fl.setWidget(10, Qt::FormLayout::LabelRole, @lbl_pack_shape)
242
+
243
+ @hl3 = Qt::HBoxLayout.new()
244
+ @hl3.objectName = "hl3"
245
+ @groupBox_2 = Qt::GroupBox.new(chip_editor)
246
+ @groupBox_2.objectName = "groupBox_2"
247
+ @rbn_square = Qt::RadioButton.new(@groupBox_2)
248
+ @rbn_square.objectName = "rbn_square"
249
+ @rbn_square.geometry = Qt::Rect.new(10, 0, 81, 20)
250
+ @rbn_square.checked = true
251
+ @rbn_square.autoExclusive = true
252
+ @rbn_rectangular = Qt::RadioButton.new(@groupBox_2)
253
+ @rbn_rectangular.objectName = "rbn_rectangular"
254
+ @rbn_rectangular.geometry = Qt::Rect.new(110, 0, 109, 20)
255
+ @rbn_rectangular.checked = false
256
+ @rbn_rectangular.autoExclusive = true
257
+
258
+ @hl3.addWidget(@groupBox_2)
259
+
260
+
261
+ @fl.setLayout(10, Qt::FormLayout::FieldRole, @hl3)
268
262
 
269
263
 
270
264
  @vl.addLayout(@fl)
@@ -311,35 +305,34 @@ class Ui_Chip_editor
311
305
  @btn_cancel.text = Qt::Application.translate("Chip_editor", "Cancel", nil, Qt::Application::UnicodeUTF8)
312
306
  @btn_add.text = Qt::Application.translate("Chip_editor", "Add", nil, Qt::Application::UnicodeUTF8)
313
307
  @lbl_ref.text = Qt::Application.translate("Chip_editor", "Name / Reference:", nil, Qt::Application::UnicodeUTF8)
308
+ @lie_reference.placeholderText = Qt::Application.translate("Chip_editor", "30 chars max", nil, Qt::Application::UnicodeUTF8)
309
+ @lbl_description.text = Qt::Application.translate("Chip_editor", "Description:", nil, Qt::Application::UnicodeUTF8)
310
+ @lie_description.placeholderText = Qt::Application.translate("Chip_editor", "200 chars max", nil, Qt::Application::UnicodeUTF8)
311
+ @lbl_voltage.text = Qt::Application.translate("Chip_editor", "Voltage:", nil, Qt::Application::UnicodeUTF8)
312
+ @groupBox.title = ''
313
+ @rbn_3v.text = Qt::Application.translate("Chip_editor", "3,3V", nil, Qt::Application::UnicodeUTF8)
314
+ @rbn_5v.text = Qt::Application.translate("Chip_editor", "5V", nil, Qt::Application::UnicodeUTF8)
315
+ @lbl_manu.text = Qt::Application.translate("Chip_editor", "Manufacturer:", nil, Qt::Application::UnicodeUTF8)
316
+ @cbx_manufacturer.insertItems(0, [Qt::Application.translate("Chip_editor", "Select...", nil, Qt::Application::UnicodeUTF8)])
317
+ @btn_manu_remove.text = Qt::Application.translate("Chip_editor", "X", nil, Qt::Application::UnicodeUTF8)
318
+ @lie_manu_name.placeholderText = Qt::Application.translate("Chip_editor", "Other...", nil, Qt::Application::UnicodeUTF8)
319
+ @lbl_type.text = Qt::Application.translate("Chip_editor", "Type:", nil, Qt::Application::UnicodeUTF8)
320
+ @cbx_type.insertItems(0, [Qt::Application.translate("Chip_editor", "Select...", nil, Qt::Application::UnicodeUTF8)])
321
+ @btn_type_remove.text = Qt::Application.translate("Chip_editor", "X", nil, Qt::Application::UnicodeUTF8)
322
+ @lie_type_name.text = ''
323
+ @lie_type_name.placeholderText = Qt::Application.translate("Chip_editor", "Other...", nil, Qt::Application::UnicodeUTF8)
314
324
  @lbl_package.text = Qt::Application.translate("Chip_editor", "Package:", nil, Qt::Application::UnicodeUTF8)
315
325
  @cbx_package.insertItems(0, [Qt::Application.translate("Chip_editor", "Select...", nil, Qt::Application::UnicodeUTF8)])
316
326
  @btn_pack_remove.text = Qt::Application.translate("Chip_editor", "X", nil, Qt::Application::UnicodeUTF8)
317
- @lbl_pack_new.text = Qt::Application.translate("Chip_editor", "Not in the list ? Create a new one", nil, Qt::Application::UnicodeUTF8)
318
327
  @lbl_name.text = Qt::Application.translate("Chip_editor", "Package name:", nil, Qt::Application::UnicodeUTF8)
319
328
  @lie_pack_name.placeholderText = Qt::Application.translate("Chip_editor", "30 chars max", nil, Qt::Application::UnicodeUTF8)
320
329
  @lbl_pack_pin.text = Qt::Application.translate("Chip_editor", "Package pin number:", nil, Qt::Application::UnicodeUTF8)
321
330
  @lie_pack_pin.inputMask = ''
322
331
  @lie_pack_pin.placeholderText = Qt::Application.translate("Chip_editor", "4-144", nil, Qt::Application::UnicodeUTF8)
323
332
  @lbl_pack_shape.text = Qt::Application.translate("Chip_editor", "Package shape:", nil, Qt::Application::UnicodeUTF8)
324
- @lie_reference.placeholderText = Qt::Application.translate("Chip_editor", "30 chars max", nil, Qt::Application::UnicodeUTF8)
325
- @groupBox.title = ''
326
- @rbn_3v.text = Qt::Application.translate("Chip_editor", "3,3V", nil, Qt::Application::UnicodeUTF8)
327
- @rbn_5v.text = Qt::Application.translate("Chip_editor", "5V", nil, Qt::Application::UnicodeUTF8)
328
- @lbl_voltage.text = Qt::Application.translate("Chip_editor", "Voltage:", nil, Qt::Application::UnicodeUTF8)
329
333
  @groupBox_2.title = ''
330
334
  @rbn_square.text = Qt::Application.translate("Chip_editor", "Square", nil, Qt::Application::UnicodeUTF8)
331
335
  @rbn_rectangular.text = Qt::Application.translate("Chip_editor", "Rectangular", nil, Qt::Application::UnicodeUTF8)
332
- @lbl_manu.text = Qt::Application.translate("Chip_editor", "Manufacturer:", nil, Qt::Application::UnicodeUTF8)
333
- @lie_manu_name.placeholderText = Qt::Application.translate("Chip_editor", "Other...", nil, Qt::Application::UnicodeUTF8)
334
- @lbl_type.text = Qt::Application.translate("Chip_editor", "Type:", nil, Qt::Application::UnicodeUTF8)
335
- @cbx_type.insertItems(0, [Qt::Application.translate("Chip_editor", "Select...", nil, Qt::Application::UnicodeUTF8)])
336
- @btn_type_remove.text = Qt::Application.translate("Chip_editor", "X", nil, Qt::Application::UnicodeUTF8)
337
- @lie_type_name.text = ''
338
- @lie_type_name.placeholderText = Qt::Application.translate("Chip_editor", "Other...", nil, Qt::Application::UnicodeUTF8)
339
- @lbl_description.text = Qt::Application.translate("Chip_editor", "Description:", nil, Qt::Application::UnicodeUTF8)
340
- @lie_description.placeholderText = Qt::Application.translate("Chip_editor", "200 chars max", nil, Qt::Application::UnicodeUTF8)
341
- @cbx_manufacturer.insertItems(0, [Qt::Application.translate("Chip_editor", "Select...", nil, Qt::Application::UnicodeUTF8)])
342
- @btn_manu_remove.text = Qt::Application.translate("Chip_editor", "X", nil, Qt::Application::UnicodeUTF8)
343
336
  end # retranslateUi
344
337
 
345
338
  def retranslate_ui(chip_editor)
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  ** Form generated from reading ui file 'gui_i2c_settings.ui'
3
3
  **
4
- ** Created: mar. déc. 22 13:09:24 2015
4
+ ** Created: ven. févr. 12 11:41:41 2016
5
5
  ** by: Qt User Interface Compiler version 4.8.6
6
6
  **
7
7
  ** WARNING! All changes made in this file will be lost when recompiling ui file!
@@ -25,6 +25,10 @@ class Ui_I2c_settings
25
25
  attr_reader :lie_total_size
26
26
  attr_reader :lbl_bus_scan
27
27
  attr_reader :btn_bus_scan
28
+ attr_reader :lie_page_size
29
+ attr_reader :lbl_page_size
30
+ attr_reader :lbl_write_page_latency
31
+ attr_reader :lie_write_page_latency
28
32
  attr_reader :tbl_bus_scan
29
33
  attr_reader :hl
30
34
  attr_reader :hs
@@ -96,22 +100,42 @@ class Ui_I2c_settings
96
100
  @lbl_full_size = Qt::Label.new(i2c_settings)
97
101
  @lbl_full_size.objectName = "lbl_full_size"
98
102
 
99
- @fl.setWidget(4, Qt::FormLayout::LabelRole, @lbl_full_size)
103
+ @fl.setWidget(6, Qt::FormLayout::LabelRole, @lbl_full_size)
100
104
 
101
105
  @lie_total_size = Qt::LineEdit.new(i2c_settings)
102
106
  @lie_total_size.objectName = "lie_total_size"
103
107
 
104
- @fl.setWidget(4, Qt::FormLayout::FieldRole, @lie_total_size)
108
+ @fl.setWidget(6, Qt::FormLayout::FieldRole, @lie_total_size)
105
109
 
106
110
  @lbl_bus_scan = Qt::Label.new(i2c_settings)
107
111
  @lbl_bus_scan.objectName = "lbl_bus_scan"
108
112
 
109
- @fl.setWidget(5, Qt::FormLayout::LabelRole, @lbl_bus_scan)
113
+ @fl.setWidget(7, Qt::FormLayout::LabelRole, @lbl_bus_scan)
110
114
 
111
115
  @btn_bus_scan = Qt::PushButton.new(i2c_settings)
112
116
  @btn_bus_scan.objectName = "btn_bus_scan"
113
117
 
114
- @fl.setWidget(5, Qt::FormLayout::FieldRole, @btn_bus_scan)
118
+ @fl.setWidget(7, Qt::FormLayout::FieldRole, @btn_bus_scan)
119
+
120
+ @lie_page_size = Qt::LineEdit.new(i2c_settings)
121
+ @lie_page_size.objectName = "lie_page_size"
122
+
123
+ @fl.setWidget(5, Qt::FormLayout::FieldRole, @lie_page_size)
124
+
125
+ @lbl_page_size = Qt::Label.new(i2c_settings)
126
+ @lbl_page_size.objectName = "lbl_page_size"
127
+
128
+ @fl.setWidget(5, Qt::FormLayout::LabelRole, @lbl_page_size)
129
+
130
+ @lbl_write_page_latency = Qt::Label.new(i2c_settings)
131
+ @lbl_write_page_latency.objectName = "lbl_write_page_latency"
132
+
133
+ @fl.setWidget(4, Qt::FormLayout::LabelRole, @lbl_write_page_latency)
134
+
135
+ @lie_write_page_latency = Qt::LineEdit.new(i2c_settings)
136
+ @lie_write_page_latency.objectName = "lie_write_page_latency"
137
+
138
+ @fl.setWidget(4, Qt::FormLayout::FieldRole, @lie_write_page_latency)
115
139
 
116
140
 
117
141
  @vl.addLayout(@fl)
@@ -173,6 +197,11 @@ class Ui_I2c_settings
173
197
  @lie_total_size.placeholderText = Qt::Application.translate("I2c_settings", "in octet, to a maximum of 4Go", nil, Qt::Application::UnicodeUTF8)
174
198
  @lbl_bus_scan.text = Qt::Application.translate("I2c_settings", "Bus scan:", nil, Qt::Application::UnicodeUTF8)
175
199
  @btn_bus_scan.text = Qt::Application.translate("I2c_settings", "Launch", nil, Qt::Application::UnicodeUTF8)
200
+ @lie_page_size.text = ''
201
+ @lie_page_size.placeholderText = Qt::Application.translate("I2c_settings", "in octet", nil, Qt::Application::UnicodeUTF8)
202
+ @lbl_page_size.text = Qt::Application.translate("I2c_settings", "Page size:", nil, Qt::Application::UnicodeUTF8)
203
+ @lbl_write_page_latency.text = Qt::Application.translate("I2c_settings", "Write page latency:", nil, Qt::Application::UnicodeUTF8)
204
+ @lie_write_page_latency.placeholderText = Qt::Application.translate("I2c_settings", "in miliseconds", nil, Qt::Application::UnicodeUTF8)
176
205
  if @tbl_bus_scan.columnCount < 2
177
206
  @tbl_bus_scan.columnCount = 2
178
207
  end