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.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/lib/Hardsploit_gui.rb +4 -5
  3. data/lib/class/Chip_clone.rb +70 -0
  4. data/lib/class/Chip_editor.rb +1 -0
  5. data/lib/class/Chip_management.rb +73 -52
  6. data/lib/class/ErrorMsg.rb +1 -0
  7. data/lib/class/Firmware.rb +1 -1
  8. data/lib/class/Progress_bar.rb +1 -1
  9. data/lib/class/Wire_helper.rb +6 -3
  10. data/lib/class/{I2C → i2c}/I2c_command.rb +0 -0
  11. data/lib/class/{I2C/I2c_export.rb → i2c/I2c_read.rb} +15 -15
  12. data/lib/class/{I2C → i2c}/I2c_scanner.rb +2 -1
  13. data/lib/class/{I2C → i2c}/I2c_settings.rb +1 -0
  14. data/lib/class/{I2C/I2c_import.rb → i2c/I2c_write.rb} +13 -12
  15. data/lib/class/{PARALLEL/Parallel_export.rb → parallel/Parallel_read.rb} +17 -18
  16. data/lib/class/{PARALLEL → parallel}/Parallel_settings.rb +0 -0
  17. data/lib/class/{PARALLEL/Parallel_import.rb → parallel/Parallel_write.rb} +11 -10
  18. data/lib/class/{SPI/Spi_export.rb → spi/Spi_read.rb} +15 -15
  19. data/lib/class/{SPI → spi}/Spi_settings.rb +0 -0
  20. data/lib/class/{SPI → spi}/Spi_sniffer.rb +2 -1
  21. data/lib/class/{SPI/Spi_import.rb → spi/Spi_write.rb} +13 -12
  22. data/lib/class/swd/Swd.rb +10 -10
  23. data/lib/class/swd/Swd_scanner.rb +2 -1
  24. data/lib/class/uart/Uart_baudrate.rb +1 -1
  25. data/lib/class/uart/Uart_console.rb +1 -1
  26. data/lib/class/uart/Uart_settings.rb +1 -0
  27. data/lib/db/development.sqlite3 +0 -0
  28. data/lib/gui/gui_chip_clone.rb +87 -0
  29. data/lib/gui/gui_chip_editor.rb +349 -349
  30. data/lib/gui/gui_chip_management.rb +378 -377
  31. data/lib/gui/gui_command_editor.rb +219 -219
  32. data/lib/gui/gui_export.rb +132 -132
  33. data/lib/gui/gui_export_manager.rb +93 -93
  34. data/lib/gui/gui_generic_commands.rb +202 -202
  35. data/lib/gui/gui_generic_read.rb +185 -0
  36. data/lib/gui/gui_generic_write.rb +142 -0
  37. data/lib/gui/gui_i2c_command.rb +116 -116
  38. data/lib/gui/gui_i2c_settings.rb +242 -230
  39. data/lib/gui/gui_import.rb +131 -131
  40. data/lib/gui/gui_parallel_settings.rb +195 -195
  41. data/lib/gui/gui_progress_bar.rb +85 -85
  42. data/lib/gui/gui_signal_mapper.rb +121 -121
  43. data/lib/gui/gui_signal_scanner.rb +146 -146
  44. data/lib/gui/gui_spi_settings.rb +313 -313
  45. data/lib/gui/gui_spi_sniffer.rb +112 -112
  46. data/lib/gui/gui_swd_settings.rb +166 -166
  47. data/lib/gui/gui_uart_baudrate.rb +114 -114
  48. data/lib/gui/gui_uart_console.rb +164 -164
  49. data/lib/gui/gui_uart_settings.rb +243 -243
  50. data/lib/gui/gui_wire_helper.rb +99 -99
  51. data/lib/gui_designer/compile_to_ruby.sh +14 -0
  52. data/lib/gui_designer/gui_chip_clone.ui +96 -0
  53. data/lib/gui_designer/gui_chip_management.ui +25 -22
  54. data/lib/gui_designer/{gui_generic_export.ui → gui_generic_read.ui} +152 -72
  55. data/lib/gui_designer/{gui_generic_import.ui → gui_generic_write.ui} +47 -47
  56. data/lib/gui_designer/gui_i2c_settings.ui +68 -60
  57. data/lib/hardsploit-api/Examples/swdProgrammer.rb +76 -0
  58. data/lib/hardsploit-api/Examples/testI2C.rb +183 -0
  59. data/lib/hardsploit-api/Examples/testNRF24L01.rb +122 -0
  60. data/lib/hardsploit-api/Examples/testParralel.rb +84 -0
  61. data/lib/hardsploit-api/Examples/testSPI.rb +113 -0
  62. data/lib/hardsploit-api/Examples/testSPISniffer.rb +91 -0
  63. data/lib/hardsploit-api/Examples/testSWD.rb +224 -0
  64. data/lib/hardsploit-api/Examples/testUARTBufferOverflow.rb +113 -0
  65. data/lib/hardsploit-api/Examples/testUARTConsole.rb +74 -0
  66. data/lib/hardsploit-api/Examples/testUARTFuzzer.rb +109 -0
  67. data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/I2C/I2C_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_I2C_INTERACT.rpd +0 -0
  68. data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd +0 -0
  69. data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd +0 -0
  70. data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/SPI/SPI_SNIFFER/HARDSPLOIT_FIRMWARE_FPGA_SPI_SNIFFER.rpd +0 -0
  71. data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd +0 -0
  72. data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/TEST/TEST_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_TEST_INTERACT.rpd +0 -0
  73. data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/UART/UART_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_UART_INTERACT.rpd +0 -0
  74. data/lib/{Firmwares → hardsploit-api/Firmwares}/FPGA/VersionFPGA.rb +0 -0
  75. data/lib/{Firmwares → hardsploit-api/Firmwares}/UC/HARDSPLOIT_FIRMWARE_UC.bin +0 -0
  76. data/lib/{Firmwares → hardsploit-api/Firmwares}/UC/VersionUC.rb +0 -0
  77. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI.rb +0 -0
  78. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_CONSTANT.rb +0 -0
  79. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_ERROR.rb +0 -0
  80. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_FIRMWARE.rb +0 -0
  81. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_PROGRESS.rb +0 -0
  82. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Core/HardsploitAPI_USB_COMMUNICATION.rb +0 -0
  83. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/I2C/HardsploitAPI_I2C.rb +0 -0
  84. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/NO_MUX_PARALLEL_MEMORY/HardsploitAPI_NO_MUX_PARALLEL_MEMORY.rb +0 -0
  85. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/NRF24L01/HardsploitAPI_NRF24L01.rb +0 -0
  86. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SPI/HardsploitAPI_SPI.rb +0 -0
  87. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SPI_SNIFFER/HardsploitAPI_SPI_SNIFFER.rb +0 -0
  88. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD.rb +0 -0
  89. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD_DEBUG.rb +0 -0
  90. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD_MEM_AP.rb +0 -0
  91. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/SWD/HardsploitAPI_SWD_STM32.rb +0 -0
  92. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/TEST/HardsploitAPI_TEST_INTERACT.rb +0 -0
  93. data/lib/{HardsploitAPI → hardsploit-api/HardsploitAPI}/Modules/UART/HardsploitAPI_UART.rb +0 -0
  94. data/lib/hardsploit-api/LICENSE.txt +674 -0
  95. data/lib/hardsploit-api/README.md +22 -0
  96. data/lib/hardsploit-api/TRADEMARK +3 -0
  97. data/lib/logs/error.log +80 -0
  98. metadata +65 -49
  99. data/lib/gui/gui_generic_export.rb +0 -164
  100. data/lib/gui/gui_generic_import.rb +0 -142
  101. data/lib/gui/gui_spi_import.rb +0 -126
@@ -7,7 +7,7 @@
7
7
 
8
8
  require_relative '../../gui/gui_uart_console'
9
9
  require_relative '../../gui/gui_uart_settings'
10
- require_relative '../../HardsploitAPI/Modules/UART/HardsploitAPI_UART'
10
+ require_relative '../../hardsploit-api/HardsploitAPI/Modules/UART/HardsploitAPI_UART'
11
11
  class Uart_console < Qt::Widget
12
12
  slots 'send()'
13
13
  slots 'update()'
@@ -95,6 +95,7 @@ class Uart_settings < Qt::Widget
95
95
  end
96
96
 
97
97
  def autodetect
98
+ return ErrorMsg.new.hardsploit_not_found unless HardsploitAPI.getNumberOfBoardAvailable > 0
98
99
  baudUART = Uart_baudrate.new(@view)
99
100
  baudUART.setWindowModality(Qt::ApplicationModal)
100
101
  baudUART.show
Binary file
@@ -0,0 +1,87 @@
1
+ =begin
2
+ ** Form generated from reading ui file 'gui_chip_clone.ui'
3
+ **
4
+ ** Created: mer. mars 8 11:15:01 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_Chip_clone
11
+ attr_reader :gridLayout
12
+ attr_reader :verticalLayout
13
+ attr_reader :lbl_clone
14
+ attr_reader :lie_reference
15
+ attr_reader :horizontalLayout
16
+ attr_reader :btn_cancel
17
+ attr_reader :btn_clone
18
+
19
+ def setupUi(chip_clone)
20
+ if chip_clone.objectName.nil?
21
+ chip_clone.objectName = "chip_clone"
22
+ end
23
+ chip_clone.resize(178, 90)
24
+ @gridLayout = Qt::GridLayout.new(chip_clone)
25
+ @gridLayout.objectName = "gridLayout"
26
+ @verticalLayout = Qt::VBoxLayout.new()
27
+ @verticalLayout.objectName = "verticalLayout"
28
+ @lbl_clone = Qt::Label.new(chip_clone)
29
+ @lbl_clone.objectName = "lbl_clone"
30
+
31
+ @verticalLayout.addWidget(@lbl_clone)
32
+
33
+ @lie_reference = Qt::LineEdit.new(chip_clone)
34
+ @lie_reference.objectName = "lie_reference"
35
+ @lie_reference.maxLength = 30
36
+
37
+ @verticalLayout.addWidget(@lie_reference)
38
+
39
+ @horizontalLayout = Qt::HBoxLayout.new()
40
+ @horizontalLayout.objectName = "horizontalLayout"
41
+ @btn_cancel = Qt::PushButton.new(chip_clone)
42
+ @btn_cancel.objectName = "btn_cancel"
43
+
44
+ @horizontalLayout.addWidget(@btn_cancel)
45
+
46
+ @btn_clone = Qt::PushButton.new(chip_clone)
47
+ @btn_clone.objectName = "btn_clone"
48
+ @btn_clone.default = true
49
+
50
+ @horizontalLayout.addWidget(@btn_clone)
51
+
52
+
53
+ @verticalLayout.addLayout(@horizontalLayout)
54
+
55
+
56
+ @gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
57
+
58
+
59
+ retranslateUi(chip_clone)
60
+ Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), chip_clone, SLOT('close()'))
61
+ Qt::Object.connect(@btn_clone, SIGNAL('clicked()'), chip_clone, SLOT('clone()'))
62
+
63
+ Qt::MetaObject.connectSlotsByName(chip_clone)
64
+ end # setupUi
65
+
66
+ def setup_ui(chip_clone)
67
+ setupUi(chip_clone)
68
+ end
69
+
70
+ def retranslateUi(chip_clone)
71
+ chip_clone.windowTitle = Qt::Application.translate("Chip_clone", "Chip clone", nil, Qt::Application::UnicodeUTF8)
72
+ @lbl_clone.text = Qt::Application.translate("Chip_clone", "Clone name", nil, Qt::Application::UnicodeUTF8)
73
+ @btn_cancel.text = Qt::Application.translate("Chip_clone", "Cancel", nil, Qt::Application::UnicodeUTF8)
74
+ @btn_clone.text = Qt::Application.translate("Chip_clone", "Clone", nil, Qt::Application::UnicodeUTF8)
75
+ end # retranslateUi
76
+
77
+ def retranslate_ui(chip_clone)
78
+ retranslateUi(chip_clone)
79
+ end
80
+
81
+ end
82
+
83
+ module Ui
84
+ class Chip_clone < Ui_Chip_clone
85
+ end
86
+ end # module Ui
87
+
@@ -1,349 +1,349 @@
1
- =begin
2
- ** Form generated from reading ui file 'gui_chip_editor.ui'
3
- **
4
- ** Created: mar. mai 3 15:02:04 2016
5
- ** by: Qt User Interface Compiler version 4.8.6
6
- **
7
- ** WARNING! All changes made in this file will be lost when recompiling ui file!
8
- =end
9
-
10
- class Ui_Chip_editor
11
- attr_reader :gridLayout
12
- attr_reader :tbl_pins
13
- attr_reader :lbl_advice
14
- attr_reader :hl
15
- attr_reader :hs
16
- attr_reader :btn_cancel
17
- attr_reader :btn_add
18
- attr_reader :vl
19
- attr_reader :fl
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_delete_manufacturer
33
- attr_reader :lie_manu_name
34
- attr_reader :lbl_type
35
- attr_reader :hl5
36
- attr_reader :cbx_type
37
- attr_reader :btn_delete_type
38
- attr_reader :lie_type_name
39
- attr_reader :lbl_package
40
- attr_reader :hl1
41
- attr_reader :cbx_package
42
- attr_reader :btn_delete_package
43
- attr_reader :lbl_name
44
- attr_reader :lie_pack_name
45
- attr_reader :lbl_pack_pin
46
- attr_reader :lie_pack_pin
47
- attr_reader :lbl_pack_shape
48
- attr_reader :hl3
49
- attr_reader :groupBox_2
50
- attr_reader :rbn_square
51
- attr_reader :rbn_rectangular
52
-
53
- def setupUi(chip_editor)
54
- if chip_editor.objectName.nil?
55
- chip_editor.objectName = "chip_editor"
56
- end
57
- chip_editor.windowModality = Qt::ApplicationModal
58
- chip_editor.resize(414, 594)
59
- @gridLayout = Qt::GridLayout.new(chip_editor)
60
- @gridLayout.objectName = "gridLayout"
61
- @tbl_pins = Qt::TableWidget.new(chip_editor)
62
- @tbl_pins.objectName = "tbl_pins"
63
- @tbl_pins.minimumSize = Qt::Size.new(0, 200)
64
- @tbl_pins.maximumSize = Qt::Size.new(16777215, 16777215)
65
-
66
- @gridLayout.addWidget(@tbl_pins, 1, 0, 1, 1)
67
-
68
- @lbl_advice = Qt::Label.new(chip_editor)
69
- @lbl_advice.objectName = "lbl_advice"
70
-
71
- @gridLayout.addWidget(@lbl_advice, 2, 0, 1, 1)
72
-
73
- @hl = Qt::HBoxLayout.new()
74
- @hl.objectName = "hl"
75
- @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
76
-
77
- @hl.addItem(@hs)
78
-
79
- @btn_cancel = Qt::PushButton.new(chip_editor)
80
- @btn_cancel.objectName = "btn_cancel"
81
-
82
- @hl.addWidget(@btn_cancel)
83
-
84
- @btn_add = Qt::PushButton.new(chip_editor)
85
- @btn_add.objectName = "btn_add"
86
-
87
- @hl.addWidget(@btn_add)
88
-
89
-
90
- @gridLayout.addLayout(@hl, 3, 0, 1, 1)
91
-
92
- @vl = Qt::VBoxLayout.new()
93
- @vl.objectName = "vl"
94
- @fl = Qt::FormLayout.new()
95
- @fl.objectName = "fl"
96
- @lbl_ref = Qt::Label.new(chip_editor)
97
- @lbl_ref.objectName = "lbl_ref"
98
-
99
- @fl.setWidget(0, Qt::FormLayout::LabelRole, @lbl_ref)
100
-
101
- @lie_reference = Qt::LineEdit.new(chip_editor)
102
- @lie_reference.objectName = "lie_reference"
103
- @lie_reference.maxLength = 30
104
-
105
- @fl.setWidget(0, Qt::FormLayout::FieldRole, @lie_reference)
106
-
107
- @lbl_description = Qt::Label.new(chip_editor)
108
- @lbl_description.objectName = "lbl_description"
109
-
110
- @fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_description)
111
-
112
- @lie_description = Qt::LineEdit.new(chip_editor)
113
- @lie_description.objectName = "lie_description"
114
- @lie_description.maxLength = 200
115
-
116
- @fl.setWidget(1, Qt::FormLayout::FieldRole, @lie_description)
117
-
118
- @lbl_voltage = Qt::Label.new(chip_editor)
119
- @lbl_voltage.objectName = "lbl_voltage"
120
-
121
- @fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_voltage)
122
-
123
- @hl2 = Qt::HBoxLayout.new()
124
- @hl2.objectName = "hl2"
125
- @groupBox = Qt::GroupBox.new(chip_editor)
126
- @groupBox.objectName = "groupBox"
127
- @rbn_3v = Qt::RadioButton.new(@groupBox)
128
- @rbn_3v.objectName = "rbn_3v"
129
- @rbn_3v.geometry = Qt::Rect.new(10, 0, 70, 21)
130
- @rbn_3v.checked = true
131
- @rbn_3v.autoExclusive = true
132
- @rbn_5v = Qt::RadioButton.new(@groupBox)
133
- @rbn_5v.objectName = "rbn_5v"
134
- @rbn_5v.geometry = Qt::Rect.new(90, 0, 109, 21)
135
- @rbn_5v.autoExclusive = true
136
-
137
- @hl2.addWidget(@groupBox)
138
-
139
-
140
- @fl.setLayout(2, Qt::FormLayout::FieldRole, @hl2)
141
-
142
- @lbl_manu = Qt::Label.new(chip_editor)
143
- @lbl_manu.objectName = "lbl_manu"
144
-
145
- @fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_manu)
146
-
147
- @hl4 = Qt::HBoxLayout.new()
148
- @hl4.objectName = "hl4"
149
- @cbx_manufacturer = Qt::ComboBox.new(chip_editor)
150
- @cbx_manufacturer.objectName = "cbx_manufacturer"
151
-
152
- @hl4.addWidget(@cbx_manufacturer)
153
-
154
- @btn_delete_manufacturer = Qt::PushButton.new(chip_editor)
155
- @btn_delete_manufacturer.objectName = "btn_delete_manufacturer"
156
- @btn_delete_manufacturer.maximumSize = Qt::Size.new(30, 16777215)
157
-
158
- @hl4.addWidget(@btn_delete_manufacturer)
159
-
160
-
161
- @fl.setLayout(3, Qt::FormLayout::FieldRole, @hl4)
162
-
163
- @lie_manu_name = Qt::LineEdit.new(chip_editor)
164
- @lie_manu_name.objectName = "lie_manu_name"
165
- @lie_manu_name.maxLength = 30
166
-
167
- @fl.setWidget(4, Qt::FormLayout::FieldRole, @lie_manu_name)
168
-
169
- @lbl_type = Qt::Label.new(chip_editor)
170
- @lbl_type.objectName = "lbl_type"
171
-
172
- @fl.setWidget(5, Qt::FormLayout::LabelRole, @lbl_type)
173
-
174
- @hl5 = Qt::HBoxLayout.new()
175
- @hl5.objectName = "hl5"
176
- @cbx_type = Qt::ComboBox.new(chip_editor)
177
- @cbx_type.objectName = "cbx_type"
178
-
179
- @hl5.addWidget(@cbx_type)
180
-
181
- @btn_delete_type = Qt::PushButton.new(chip_editor)
182
- @btn_delete_type.objectName = "btn_delete_type"
183
- @btn_delete_type.maximumSize = Qt::Size.new(30, 16777215)
184
-
185
- @hl5.addWidget(@btn_delete_type)
186
-
187
-
188
- @fl.setLayout(5, Qt::FormLayout::FieldRole, @hl5)
189
-
190
- @lie_type_name = Qt::LineEdit.new(chip_editor)
191
- @lie_type_name.objectName = "lie_type_name"
192
- @lie_type_name.maxLength = 30
193
-
194
- @fl.setWidget(6, Qt::FormLayout::FieldRole, @lie_type_name)
195
-
196
- @lbl_package = Qt::Label.new(chip_editor)
197
- @lbl_package.objectName = "lbl_package"
198
-
199
- @fl.setWidget(7, Qt::FormLayout::LabelRole, @lbl_package)
200
-
201
- @hl1 = Qt::HBoxLayout.new()
202
- @hl1.objectName = "hl1"
203
- @cbx_package = Qt::ComboBox.new(chip_editor)
204
- @cbx_package.objectName = "cbx_package"
205
-
206
- @hl1.addWidget(@cbx_package)
207
-
208
- @btn_delete_package = Qt::PushButton.new(chip_editor)
209
- @btn_delete_package.objectName = "btn_delete_package"
210
- @btn_delete_package.maximumSize = Qt::Size.new(30, 16777215)
211
-
212
- @hl1.addWidget(@btn_delete_package)
213
-
214
-
215
- @fl.setLayout(7, Qt::FormLayout::FieldRole, @hl1)
216
-
217
- @lbl_name = Qt::Label.new(chip_editor)
218
- @lbl_name.objectName = "lbl_name"
219
-
220
- @fl.setWidget(8, Qt::FormLayout::LabelRole, @lbl_name)
221
-
222
- @lie_pack_name = Qt::LineEdit.new(chip_editor)
223
- @lie_pack_name.objectName = "lie_pack_name"
224
- @lie_pack_name.maxLength = 30
225
-
226
- @fl.setWidget(8, Qt::FormLayout::FieldRole, @lie_pack_name)
227
-
228
- @lbl_pack_pin = Qt::Label.new(chip_editor)
229
- @lbl_pack_pin.objectName = "lbl_pack_pin"
230
-
231
- @fl.setWidget(9, Qt::FormLayout::LabelRole, @lbl_pack_pin)
232
-
233
- @lie_pack_pin = Qt::LineEdit.new(chip_editor)
234
- @lie_pack_pin.objectName = "lie_pack_pin"
235
- @lie_pack_pin.maxLength = 3
236
-
237
- @fl.setWidget(9, Qt::FormLayout::FieldRole, @lie_pack_pin)
238
-
239
- @lbl_pack_shape = Qt::Label.new(chip_editor)
240
- @lbl_pack_shape.objectName = "lbl_pack_shape"
241
-
242
- @fl.setWidget(10, Qt::FormLayout::LabelRole, @lbl_pack_shape)
243
-
244
- @hl3 = Qt::HBoxLayout.new()
245
- @hl3.objectName = "hl3"
246
- @groupBox_2 = Qt::GroupBox.new(chip_editor)
247
- @groupBox_2.objectName = "groupBox_2"
248
- @rbn_square = Qt::RadioButton.new(@groupBox_2)
249
- @rbn_square.objectName = "rbn_square"
250
- @rbn_square.geometry = Qt::Rect.new(10, 0, 81, 20)
251
- @rbn_square.checked = true
252
- @rbn_square.autoExclusive = true
253
- @rbn_rectangular = Qt::RadioButton.new(@groupBox_2)
254
- @rbn_rectangular.objectName = "rbn_rectangular"
255
- @rbn_rectangular.geometry = Qt::Rect.new(110, 0, 109, 20)
256
- @rbn_rectangular.checked = false
257
- @rbn_rectangular.autoExclusive = true
258
-
259
- @hl3.addWidget(@groupBox_2)
260
-
261
-
262
- @fl.setLayout(10, Qt::FormLayout::FieldRole, @hl3)
263
-
264
-
265
- @vl.addLayout(@fl)
266
-
267
-
268
- @gridLayout.addLayout(@vl, 0, 0, 1, 1)
269
-
270
-
271
- retranslateUi(chip_editor)
272
- Qt::Object.connect(@lie_pack_pin, SIGNAL('editingFinished()'), chip_editor, SLOT('fill_pin_table()'))
273
- Qt::Object.connect(@btn_delete_manufacturer, SIGNAL('clicked()'), chip_editor, SLOT('delete_cbx_element()'))
274
- Qt::Object.connect(@btn_delete_type, SIGNAL('clicked()'), chip_editor, SLOT('delete_cbx_element()'))
275
- Qt::Object.connect(@btn_delete_package, SIGNAL('clicked()'), chip_editor, SLOT('delete_cbx_element()'))
276
- Qt::Object.connect(@cbx_package, SIGNAL('currentIndexChanged(int)'), chip_editor, SLOT('select_package()'))
277
- Qt::Object.connect(@cbx_type, SIGNAL('currentIndexChanged(int)'), chip_editor, SLOT('select_type()'))
278
- Qt::Object.connect(@cbx_manufacturer, SIGNAL('currentIndexChanged(int)'), chip_editor, SLOT('select_manufacturer()'))
279
- Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), chip_editor, SLOT('close()'))
280
-
281
- Qt::MetaObject.connectSlotsByName(chip_editor)
282
- end # setupUi
283
-
284
- def setup_ui(chip_editor)
285
- setupUi(chip_editor)
286
- end
287
-
288
- def retranslateUi(chip_editor)
289
- chip_editor.windowTitle = Qt::Application.translate("Chip_editor", "Hardsploit - Chip editor", nil, Qt::Application::UnicodeUTF8)
290
- if @tbl_pins.columnCount < 3
291
- @tbl_pins.columnCount = 3
292
- end
293
-
294
- __colItem = Qt::TableWidgetItem.new
295
- __colItem.setText(Qt::Application.translate("Chip_editor", "Pin Number", nil, Qt::Application::UnicodeUTF8))
296
- @tbl_pins.setHorizontalHeaderItem(0, __colItem)
297
-
298
- __colItem1 = Qt::TableWidgetItem.new
299
- __colItem1.setText(Qt::Application.translate("Chip_editor", "Bus", nil, Qt::Application::UnicodeUTF8))
300
- @tbl_pins.setHorizontalHeaderItem(1, __colItem1)
301
-
302
- __colItem2 = Qt::TableWidgetItem.new
303
- __colItem2.setText(Qt::Application.translate("Chip_editor", "Signal", nil, Qt::Application::UnicodeUTF8))
304
- @tbl_pins.setHorizontalHeaderItem(2, __colItem2)
305
- @lbl_advice.text = Qt::Application.translate("Chip_editor", "To complete this form, please report to the component datasheet.", nil, Qt::Application::UnicodeUTF8)
306
- @btn_cancel.text = Qt::Application.translate("Chip_editor", "Cancel", nil, Qt::Application::UnicodeUTF8)
307
- @btn_add.text = Qt::Application.translate("Chip_editor", "Add", nil, Qt::Application::UnicodeUTF8)
308
- @lbl_ref.text = Qt::Application.translate("Chip_editor", "Name / Reference:", nil, Qt::Application::UnicodeUTF8)
309
- @lie_reference.placeholderText = Qt::Application.translate("Chip_editor", "30 chars max", nil, Qt::Application::UnicodeUTF8)
310
- @lbl_description.text = Qt::Application.translate("Chip_editor", "Description:", nil, Qt::Application::UnicodeUTF8)
311
- @lie_description.placeholderText = Qt::Application.translate("Chip_editor", "200 chars max", nil, Qt::Application::UnicodeUTF8)
312
- @lbl_voltage.text = Qt::Application.translate("Chip_editor", "Voltage:", nil, Qt::Application::UnicodeUTF8)
313
- @groupBox.title = ''
314
- @rbn_3v.text = Qt::Application.translate("Chip_editor", "3,3V", nil, Qt::Application::UnicodeUTF8)
315
- @rbn_5v.text = Qt::Application.translate("Chip_editor", "5V", nil, Qt::Application::UnicodeUTF8)
316
- @lbl_manu.text = Qt::Application.translate("Chip_editor", "Manufacturer:", nil, Qt::Application::UnicodeUTF8)
317
- @cbx_manufacturer.insertItems(0, [Qt::Application.translate("Chip_editor", "Select...", nil, Qt::Application::UnicodeUTF8)])
318
- @btn_delete_manufacturer.text = Qt::Application.translate("Chip_editor", "X", nil, Qt::Application::UnicodeUTF8)
319
- @lie_manu_name.placeholderText = Qt::Application.translate("Chip_editor", "Other...", nil, Qt::Application::UnicodeUTF8)
320
- @lbl_type.text = Qt::Application.translate("Chip_editor", "Type:", nil, Qt::Application::UnicodeUTF8)
321
- @cbx_type.insertItems(0, [Qt::Application.translate("Chip_editor", "Select...", nil, Qt::Application::UnicodeUTF8)])
322
- @btn_delete_type.text = Qt::Application.translate("Chip_editor", "X", nil, Qt::Application::UnicodeUTF8)
323
- @lie_type_name.text = ''
324
- @lie_type_name.placeholderText = Qt::Application.translate("Chip_editor", "Other...", nil, Qt::Application::UnicodeUTF8)
325
- @lbl_package.text = Qt::Application.translate("Chip_editor", "Package:", nil, Qt::Application::UnicodeUTF8)
326
- @cbx_package.insertItems(0, [Qt::Application.translate("Chip_editor", "Select...", nil, Qt::Application::UnicodeUTF8)])
327
- @btn_delete_package.text = Qt::Application.translate("Chip_editor", "X", nil, Qt::Application::UnicodeUTF8)
328
- @lbl_name.text = Qt::Application.translate("Chip_editor", "Package name:", nil, Qt::Application::UnicodeUTF8)
329
- @lie_pack_name.placeholderText = Qt::Application.translate("Chip_editor", "30 chars max", nil, Qt::Application::UnicodeUTF8)
330
- @lbl_pack_pin.text = Qt::Application.translate("Chip_editor", "Package pin number:", nil, Qt::Application::UnicodeUTF8)
331
- @lie_pack_pin.inputMask = ''
332
- @lie_pack_pin.placeholderText = Qt::Application.translate("Chip_editor", "4-144", nil, Qt::Application::UnicodeUTF8)
333
- @lbl_pack_shape.text = Qt::Application.translate("Chip_editor", "Package shape:", nil, Qt::Application::UnicodeUTF8)
334
- @groupBox_2.title = ''
335
- @rbn_square.text = Qt::Application.translate("Chip_editor", "Square", nil, Qt::Application::UnicodeUTF8)
336
- @rbn_rectangular.text = Qt::Application.translate("Chip_editor", "Rectangular", nil, Qt::Application::UnicodeUTF8)
337
- end # retranslateUi
338
-
339
- def retranslate_ui(chip_editor)
340
- retranslateUi(chip_editor)
341
- end
342
-
343
- end
344
-
345
- module Ui
346
- class Chip_editor < Ui_Chip_editor
347
- end
348
- end # module Ui
349
-
1
+ =begin
2
+ ** Form generated from reading ui file 'gui_chip_editor.ui'
3
+ **
4
+ ** Created: mer. mars 8 11:15:02 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_Chip_editor
11
+ attr_reader :gridLayout
12
+ attr_reader :tbl_pins
13
+ attr_reader :lbl_advice
14
+ attr_reader :hl
15
+ attr_reader :hs
16
+ attr_reader :btn_cancel
17
+ attr_reader :btn_add
18
+ attr_reader :vl
19
+ attr_reader :fl
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_delete_manufacturer
33
+ attr_reader :lie_manu_name
34
+ attr_reader :lbl_type
35
+ attr_reader :hl5
36
+ attr_reader :cbx_type
37
+ attr_reader :btn_delete_type
38
+ attr_reader :lie_type_name
39
+ attr_reader :lbl_package
40
+ attr_reader :hl1
41
+ attr_reader :cbx_package
42
+ attr_reader :btn_delete_package
43
+ attr_reader :lbl_name
44
+ attr_reader :lie_pack_name
45
+ attr_reader :lbl_pack_pin
46
+ attr_reader :lie_pack_pin
47
+ attr_reader :lbl_pack_shape
48
+ attr_reader :hl3
49
+ attr_reader :groupBox_2
50
+ attr_reader :rbn_square
51
+ attr_reader :rbn_rectangular
52
+
53
+ def setupUi(chip_editor)
54
+ if chip_editor.objectName.nil?
55
+ chip_editor.objectName = "chip_editor"
56
+ end
57
+ chip_editor.windowModality = Qt::ApplicationModal
58
+ chip_editor.resize(414, 594)
59
+ @gridLayout = Qt::GridLayout.new(chip_editor)
60
+ @gridLayout.objectName = "gridLayout"
61
+ @tbl_pins = Qt::TableWidget.new(chip_editor)
62
+ @tbl_pins.objectName = "tbl_pins"
63
+ @tbl_pins.minimumSize = Qt::Size.new(0, 200)
64
+ @tbl_pins.maximumSize = Qt::Size.new(16777215, 16777215)
65
+
66
+ @gridLayout.addWidget(@tbl_pins, 1, 0, 1, 1)
67
+
68
+ @lbl_advice = Qt::Label.new(chip_editor)
69
+ @lbl_advice.objectName = "lbl_advice"
70
+
71
+ @gridLayout.addWidget(@lbl_advice, 2, 0, 1, 1)
72
+
73
+ @hl = Qt::HBoxLayout.new()
74
+ @hl.objectName = "hl"
75
+ @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
76
+
77
+ @hl.addItem(@hs)
78
+
79
+ @btn_cancel = Qt::PushButton.new(chip_editor)
80
+ @btn_cancel.objectName = "btn_cancel"
81
+
82
+ @hl.addWidget(@btn_cancel)
83
+
84
+ @btn_add = Qt::PushButton.new(chip_editor)
85
+ @btn_add.objectName = "btn_add"
86
+
87
+ @hl.addWidget(@btn_add)
88
+
89
+
90
+ @gridLayout.addLayout(@hl, 3, 0, 1, 1)
91
+
92
+ @vl = Qt::VBoxLayout.new()
93
+ @vl.objectName = "vl"
94
+ @fl = Qt::FormLayout.new()
95
+ @fl.objectName = "fl"
96
+ @lbl_ref = Qt::Label.new(chip_editor)
97
+ @lbl_ref.objectName = "lbl_ref"
98
+
99
+ @fl.setWidget(0, Qt::FormLayout::LabelRole, @lbl_ref)
100
+
101
+ @lie_reference = Qt::LineEdit.new(chip_editor)
102
+ @lie_reference.objectName = "lie_reference"
103
+ @lie_reference.maxLength = 30
104
+
105
+ @fl.setWidget(0, Qt::FormLayout::FieldRole, @lie_reference)
106
+
107
+ @lbl_description = Qt::Label.new(chip_editor)
108
+ @lbl_description.objectName = "lbl_description"
109
+
110
+ @fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_description)
111
+
112
+ @lie_description = Qt::LineEdit.new(chip_editor)
113
+ @lie_description.objectName = "lie_description"
114
+ @lie_description.maxLength = 200
115
+
116
+ @fl.setWidget(1, Qt::FormLayout::FieldRole, @lie_description)
117
+
118
+ @lbl_voltage = Qt::Label.new(chip_editor)
119
+ @lbl_voltage.objectName = "lbl_voltage"
120
+
121
+ @fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_voltage)
122
+
123
+ @hl2 = Qt::HBoxLayout.new()
124
+ @hl2.objectName = "hl2"
125
+ @groupBox = Qt::GroupBox.new(chip_editor)
126
+ @groupBox.objectName = "groupBox"
127
+ @rbn_3v = Qt::RadioButton.new(@groupBox)
128
+ @rbn_3v.objectName = "rbn_3v"
129
+ @rbn_3v.geometry = Qt::Rect.new(10, 0, 70, 21)
130
+ @rbn_3v.checked = true
131
+ @rbn_3v.autoExclusive = true
132
+ @rbn_5v = Qt::RadioButton.new(@groupBox)
133
+ @rbn_5v.objectName = "rbn_5v"
134
+ @rbn_5v.geometry = Qt::Rect.new(90, 0, 109, 21)
135
+ @rbn_5v.autoExclusive = true
136
+
137
+ @hl2.addWidget(@groupBox)
138
+
139
+
140
+ @fl.setLayout(2, Qt::FormLayout::FieldRole, @hl2)
141
+
142
+ @lbl_manu = Qt::Label.new(chip_editor)
143
+ @lbl_manu.objectName = "lbl_manu"
144
+
145
+ @fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_manu)
146
+
147
+ @hl4 = Qt::HBoxLayout.new()
148
+ @hl4.objectName = "hl4"
149
+ @cbx_manufacturer = Qt::ComboBox.new(chip_editor)
150
+ @cbx_manufacturer.objectName = "cbx_manufacturer"
151
+
152
+ @hl4.addWidget(@cbx_manufacturer)
153
+
154
+ @btn_delete_manufacturer = Qt::PushButton.new(chip_editor)
155
+ @btn_delete_manufacturer.objectName = "btn_delete_manufacturer"
156
+ @btn_delete_manufacturer.maximumSize = Qt::Size.new(30, 16777215)
157
+
158
+ @hl4.addWidget(@btn_delete_manufacturer)
159
+
160
+
161
+ @fl.setLayout(3, Qt::FormLayout::FieldRole, @hl4)
162
+
163
+ @lie_manu_name = Qt::LineEdit.new(chip_editor)
164
+ @lie_manu_name.objectName = "lie_manu_name"
165
+ @lie_manu_name.maxLength = 30
166
+
167
+ @fl.setWidget(4, Qt::FormLayout::FieldRole, @lie_manu_name)
168
+
169
+ @lbl_type = Qt::Label.new(chip_editor)
170
+ @lbl_type.objectName = "lbl_type"
171
+
172
+ @fl.setWidget(5, Qt::FormLayout::LabelRole, @lbl_type)
173
+
174
+ @hl5 = Qt::HBoxLayout.new()
175
+ @hl5.objectName = "hl5"
176
+ @cbx_type = Qt::ComboBox.new(chip_editor)
177
+ @cbx_type.objectName = "cbx_type"
178
+
179
+ @hl5.addWidget(@cbx_type)
180
+
181
+ @btn_delete_type = Qt::PushButton.new(chip_editor)
182
+ @btn_delete_type.objectName = "btn_delete_type"
183
+ @btn_delete_type.maximumSize = Qt::Size.new(30, 16777215)
184
+
185
+ @hl5.addWidget(@btn_delete_type)
186
+
187
+
188
+ @fl.setLayout(5, Qt::FormLayout::FieldRole, @hl5)
189
+
190
+ @lie_type_name = Qt::LineEdit.new(chip_editor)
191
+ @lie_type_name.objectName = "lie_type_name"
192
+ @lie_type_name.maxLength = 30
193
+
194
+ @fl.setWidget(6, Qt::FormLayout::FieldRole, @lie_type_name)
195
+
196
+ @lbl_package = Qt::Label.new(chip_editor)
197
+ @lbl_package.objectName = "lbl_package"
198
+
199
+ @fl.setWidget(7, Qt::FormLayout::LabelRole, @lbl_package)
200
+
201
+ @hl1 = Qt::HBoxLayout.new()
202
+ @hl1.objectName = "hl1"
203
+ @cbx_package = Qt::ComboBox.new(chip_editor)
204
+ @cbx_package.objectName = "cbx_package"
205
+
206
+ @hl1.addWidget(@cbx_package)
207
+
208
+ @btn_delete_package = Qt::PushButton.new(chip_editor)
209
+ @btn_delete_package.objectName = "btn_delete_package"
210
+ @btn_delete_package.maximumSize = Qt::Size.new(30, 16777215)
211
+
212
+ @hl1.addWidget(@btn_delete_package)
213
+
214
+
215
+ @fl.setLayout(7, Qt::FormLayout::FieldRole, @hl1)
216
+
217
+ @lbl_name = Qt::Label.new(chip_editor)
218
+ @lbl_name.objectName = "lbl_name"
219
+
220
+ @fl.setWidget(8, Qt::FormLayout::LabelRole, @lbl_name)
221
+
222
+ @lie_pack_name = Qt::LineEdit.new(chip_editor)
223
+ @lie_pack_name.objectName = "lie_pack_name"
224
+ @lie_pack_name.maxLength = 30
225
+
226
+ @fl.setWidget(8, Qt::FormLayout::FieldRole, @lie_pack_name)
227
+
228
+ @lbl_pack_pin = Qt::Label.new(chip_editor)
229
+ @lbl_pack_pin.objectName = "lbl_pack_pin"
230
+
231
+ @fl.setWidget(9, Qt::FormLayout::LabelRole, @lbl_pack_pin)
232
+
233
+ @lie_pack_pin = Qt::LineEdit.new(chip_editor)
234
+ @lie_pack_pin.objectName = "lie_pack_pin"
235
+ @lie_pack_pin.maxLength = 3
236
+
237
+ @fl.setWidget(9, Qt::FormLayout::FieldRole, @lie_pack_pin)
238
+
239
+ @lbl_pack_shape = Qt::Label.new(chip_editor)
240
+ @lbl_pack_shape.objectName = "lbl_pack_shape"
241
+
242
+ @fl.setWidget(10, Qt::FormLayout::LabelRole, @lbl_pack_shape)
243
+
244
+ @hl3 = Qt::HBoxLayout.new()
245
+ @hl3.objectName = "hl3"
246
+ @groupBox_2 = Qt::GroupBox.new(chip_editor)
247
+ @groupBox_2.objectName = "groupBox_2"
248
+ @rbn_square = Qt::RadioButton.new(@groupBox_2)
249
+ @rbn_square.objectName = "rbn_square"
250
+ @rbn_square.geometry = Qt::Rect.new(10, 0, 81, 20)
251
+ @rbn_square.checked = true
252
+ @rbn_square.autoExclusive = true
253
+ @rbn_rectangular = Qt::RadioButton.new(@groupBox_2)
254
+ @rbn_rectangular.objectName = "rbn_rectangular"
255
+ @rbn_rectangular.geometry = Qt::Rect.new(110, 0, 109, 20)
256
+ @rbn_rectangular.checked = false
257
+ @rbn_rectangular.autoExclusive = true
258
+
259
+ @hl3.addWidget(@groupBox_2)
260
+
261
+
262
+ @fl.setLayout(10, Qt::FormLayout::FieldRole, @hl3)
263
+
264
+
265
+ @vl.addLayout(@fl)
266
+
267
+
268
+ @gridLayout.addLayout(@vl, 0, 0, 1, 1)
269
+
270
+
271
+ retranslateUi(chip_editor)
272
+ Qt::Object.connect(@lie_pack_pin, SIGNAL('editingFinished()'), chip_editor, SLOT('fill_pin_table()'))
273
+ Qt::Object.connect(@btn_delete_manufacturer, SIGNAL('clicked()'), chip_editor, SLOT('delete_cbx_element()'))
274
+ Qt::Object.connect(@btn_delete_type, SIGNAL('clicked()'), chip_editor, SLOT('delete_cbx_element()'))
275
+ Qt::Object.connect(@btn_delete_package, SIGNAL('clicked()'), chip_editor, SLOT('delete_cbx_element()'))
276
+ Qt::Object.connect(@cbx_package, SIGNAL('currentIndexChanged(int)'), chip_editor, SLOT('select_package()'))
277
+ Qt::Object.connect(@cbx_type, SIGNAL('currentIndexChanged(int)'), chip_editor, SLOT('select_type()'))
278
+ Qt::Object.connect(@cbx_manufacturer, SIGNAL('currentIndexChanged(int)'), chip_editor, SLOT('select_manufacturer()'))
279
+ Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), chip_editor, SLOT('close()'))
280
+
281
+ Qt::MetaObject.connectSlotsByName(chip_editor)
282
+ end # setupUi
283
+
284
+ def setup_ui(chip_editor)
285
+ setupUi(chip_editor)
286
+ end
287
+
288
+ def retranslateUi(chip_editor)
289
+ chip_editor.windowTitle = Qt::Application.translate("Chip_editor", "Hardsploit - Chip editor", nil, Qt::Application::UnicodeUTF8)
290
+ if @tbl_pins.columnCount < 3
291
+ @tbl_pins.columnCount = 3
292
+ end
293
+
294
+ __colItem = Qt::TableWidgetItem.new
295
+ __colItem.setText(Qt::Application.translate("Chip_editor", "Pin Number", nil, Qt::Application::UnicodeUTF8))
296
+ @tbl_pins.setHorizontalHeaderItem(0, __colItem)
297
+
298
+ __colItem1 = Qt::TableWidgetItem.new
299
+ __colItem1.setText(Qt::Application.translate("Chip_editor", "Bus", nil, Qt::Application::UnicodeUTF8))
300
+ @tbl_pins.setHorizontalHeaderItem(1, __colItem1)
301
+
302
+ __colItem2 = Qt::TableWidgetItem.new
303
+ __colItem2.setText(Qt::Application.translate("Chip_editor", "Signal", nil, Qt::Application::UnicodeUTF8))
304
+ @tbl_pins.setHorizontalHeaderItem(2, __colItem2)
305
+ @lbl_advice.text = Qt::Application.translate("Chip_editor", "To complete this form, please report to the component datasheet.", nil, Qt::Application::UnicodeUTF8)
306
+ @btn_cancel.text = Qt::Application.translate("Chip_editor", "Cancel", nil, Qt::Application::UnicodeUTF8)
307
+ @btn_add.text = Qt::Application.translate("Chip_editor", "Add", nil, Qt::Application::UnicodeUTF8)
308
+ @lbl_ref.text = Qt::Application.translate("Chip_editor", "Name / Reference:", nil, Qt::Application::UnicodeUTF8)
309
+ @lie_reference.placeholderText = Qt::Application.translate("Chip_editor", "30 chars max", nil, Qt::Application::UnicodeUTF8)
310
+ @lbl_description.text = Qt::Application.translate("Chip_editor", "Description:", nil, Qt::Application::UnicodeUTF8)
311
+ @lie_description.placeholderText = Qt::Application.translate("Chip_editor", "200 chars max", nil, Qt::Application::UnicodeUTF8)
312
+ @lbl_voltage.text = Qt::Application.translate("Chip_editor", "Voltage:", nil, Qt::Application::UnicodeUTF8)
313
+ @groupBox.title = ''
314
+ @rbn_3v.text = Qt::Application.translate("Chip_editor", "3,3V", nil, Qt::Application::UnicodeUTF8)
315
+ @rbn_5v.text = Qt::Application.translate("Chip_editor", "5V", nil, Qt::Application::UnicodeUTF8)
316
+ @lbl_manu.text = Qt::Application.translate("Chip_editor", "Manufacturer:", nil, Qt::Application::UnicodeUTF8)
317
+ @cbx_manufacturer.insertItems(0, [Qt::Application.translate("Chip_editor", "Select...", nil, Qt::Application::UnicodeUTF8)])
318
+ @btn_delete_manufacturer.text = Qt::Application.translate("Chip_editor", "X", nil, Qt::Application::UnicodeUTF8)
319
+ @lie_manu_name.placeholderText = Qt::Application.translate("Chip_editor", "Other...", nil, Qt::Application::UnicodeUTF8)
320
+ @lbl_type.text = Qt::Application.translate("Chip_editor", "Type:", nil, Qt::Application::UnicodeUTF8)
321
+ @cbx_type.insertItems(0, [Qt::Application.translate("Chip_editor", "Select...", nil, Qt::Application::UnicodeUTF8)])
322
+ @btn_delete_type.text = Qt::Application.translate("Chip_editor", "X", nil, Qt::Application::UnicodeUTF8)
323
+ @lie_type_name.text = ''
324
+ @lie_type_name.placeholderText = Qt::Application.translate("Chip_editor", "Other...", nil, Qt::Application::UnicodeUTF8)
325
+ @lbl_package.text = Qt::Application.translate("Chip_editor", "Package:", nil, Qt::Application::UnicodeUTF8)
326
+ @cbx_package.insertItems(0, [Qt::Application.translate("Chip_editor", "Select...", nil, Qt::Application::UnicodeUTF8)])
327
+ @btn_delete_package.text = Qt::Application.translate("Chip_editor", "X", nil, Qt::Application::UnicodeUTF8)
328
+ @lbl_name.text = Qt::Application.translate("Chip_editor", "Package name:", nil, Qt::Application::UnicodeUTF8)
329
+ @lie_pack_name.placeholderText = Qt::Application.translate("Chip_editor", "30 chars max", nil, Qt::Application::UnicodeUTF8)
330
+ @lbl_pack_pin.text = Qt::Application.translate("Chip_editor", "Package pin number:", nil, Qt::Application::UnicodeUTF8)
331
+ @lie_pack_pin.inputMask = ''
332
+ @lie_pack_pin.placeholderText = Qt::Application.translate("Chip_editor", "4-144", nil, Qt::Application::UnicodeUTF8)
333
+ @lbl_pack_shape.text = Qt::Application.translate("Chip_editor", "Package shape:", nil, Qt::Application::UnicodeUTF8)
334
+ @groupBox_2.title = ''
335
+ @rbn_square.text = Qt::Application.translate("Chip_editor", "Square", nil, Qt::Application::UnicodeUTF8)
336
+ @rbn_rectangular.text = Qt::Application.translate("Chip_editor", "Rectangular", nil, Qt::Application::UnicodeUTF8)
337
+ end # retranslateUi
338
+
339
+ def retranslate_ui(chip_editor)
340
+ retranslateUi(chip_editor)
341
+ end
342
+
343
+ end
344
+
345
+ module Ui
346
+ class Chip_editor < Ui_Chip_editor
347
+ end
348
+ end # module Ui
349
+