Class: Ui_Chip_editor

Inherits:
Object
  • Object
show all
Defined in:
lib/gui/gui_chip_editor.rb

Overview

** Form generated from reading ui file ‘gui_chip_editor.ui’ ** ** Created: mar. mai 3 15:02:04 2016 ** by: Qt User Interface Compiler version 4.8.6 ** ** WARNING! All changes made in this file will be lost when recompiling ui file!

Direct Known Subclasses

Ui::Chip_editor

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#btn_addObject (readonly)

Returns the value of attribute btn_add.



17
18
19
# File 'lib/gui/gui_chip_editor.rb', line 17

def btn_add
  @btn_add
end

#btn_cancelObject (readonly)

Returns the value of attribute btn_cancel.



16
17
18
# File 'lib/gui/gui_chip_editor.rb', line 16

def btn_cancel
  @btn_cancel
end

#btn_delete_manufacturerObject (readonly)

Returns the value of attribute btn_delete_manufacturer.



32
33
34
# File 'lib/gui/gui_chip_editor.rb', line 32

def btn_delete_manufacturer
  @btn_delete_manufacturer
end

#btn_delete_packageObject (readonly)

Returns the value of attribute btn_delete_package.



42
43
44
# File 'lib/gui/gui_chip_editor.rb', line 42

def btn_delete_package
  @btn_delete_package
end

#btn_delete_typeObject (readonly)

Returns the value of attribute btn_delete_type.



37
38
39
# File 'lib/gui/gui_chip_editor.rb', line 37

def btn_delete_type
  @btn_delete_type
end

#cbx_manufacturerObject (readonly)

Returns the value of attribute cbx_manufacturer.



31
32
33
# File 'lib/gui/gui_chip_editor.rb', line 31

def cbx_manufacturer
  @cbx_manufacturer
end

#cbx_packageObject (readonly)

Returns the value of attribute cbx_package.



41
42
43
# File 'lib/gui/gui_chip_editor.rb', line 41

def cbx_package
  @cbx_package
end

#cbx_typeObject (readonly)

Returns the value of attribute cbx_type.



36
37
38
# File 'lib/gui/gui_chip_editor.rb', line 36

def cbx_type
  @cbx_type
end

#flObject (readonly)

Returns the value of attribute fl.



19
20
21
# File 'lib/gui/gui_chip_editor.rb', line 19

def fl
  @fl
end

#gridLayoutObject (readonly)

Returns the value of attribute gridLayout.



11
12
13
# File 'lib/gui/gui_chip_editor.rb', line 11

def gridLayout
  @gridLayout
end

#groupBoxObject (readonly)

Returns the value of attribute groupBox.



26
27
28
# File 'lib/gui/gui_chip_editor.rb', line 26

def groupBox
  @groupBox
end

#groupBox_2Object (readonly)

Returns the value of attribute groupBox_2.



49
50
51
# File 'lib/gui/gui_chip_editor.rb', line 49

def groupBox_2
  @groupBox_2
end

#hlObject (readonly)

Returns the value of attribute hl.



14
15
16
# File 'lib/gui/gui_chip_editor.rb', line 14

def hl
  @hl
end

#hl1Object (readonly)

Returns the value of attribute hl1.



40
41
42
# File 'lib/gui/gui_chip_editor.rb', line 40

def hl1
  @hl1
end

#hl2Object (readonly)

Returns the value of attribute hl2.



25
26
27
# File 'lib/gui/gui_chip_editor.rb', line 25

def hl2
  @hl2
end

#hl3Object (readonly)

Returns the value of attribute hl3.



48
49
50
# File 'lib/gui/gui_chip_editor.rb', line 48

def hl3
  @hl3
end

#hl4Object (readonly)

Returns the value of attribute hl4.



30
31
32
# File 'lib/gui/gui_chip_editor.rb', line 30

def hl4
  @hl4
end

#hl5Object (readonly)

Returns the value of attribute hl5.



35
36
37
# File 'lib/gui/gui_chip_editor.rb', line 35

def hl5
  @hl5
end

#hsObject (readonly)

Returns the value of attribute hs.



15
16
17
# File 'lib/gui/gui_chip_editor.rb', line 15

def hs
  @hs
end

#lbl_adviceObject (readonly)

Returns the value of attribute lbl_advice.



13
14
15
# File 'lib/gui/gui_chip_editor.rb', line 13

def lbl_advice
  @lbl_advice
end

#lbl_descriptionObject (readonly)

Returns the value of attribute lbl_description.



22
23
24
# File 'lib/gui/gui_chip_editor.rb', line 22

def lbl_description
  @lbl_description
end

#lbl_manuObject (readonly)

Returns the value of attribute lbl_manu.



29
30
31
# File 'lib/gui/gui_chip_editor.rb', line 29

def lbl_manu
  @lbl_manu
end

#lbl_nameObject (readonly)

Returns the value of attribute lbl_name.



43
44
45
# File 'lib/gui/gui_chip_editor.rb', line 43

def lbl_name
  @lbl_name
end

#lbl_pack_pinObject (readonly)

Returns the value of attribute lbl_pack_pin.



45
46
47
# File 'lib/gui/gui_chip_editor.rb', line 45

def lbl_pack_pin
  @lbl_pack_pin
end

#lbl_pack_shapeObject (readonly)

Returns the value of attribute lbl_pack_shape.



47
48
49
# File 'lib/gui/gui_chip_editor.rb', line 47

def lbl_pack_shape
  @lbl_pack_shape
end

#lbl_packageObject (readonly)

Returns the value of attribute lbl_package.



39
40
41
# File 'lib/gui/gui_chip_editor.rb', line 39

def lbl_package
  @lbl_package
end

#lbl_refObject (readonly)

Returns the value of attribute lbl_ref.



20
21
22
# File 'lib/gui/gui_chip_editor.rb', line 20

def lbl_ref
  @lbl_ref
end

#lbl_typeObject (readonly)

Returns the value of attribute lbl_type.



34
35
36
# File 'lib/gui/gui_chip_editor.rb', line 34

def lbl_type
  @lbl_type
end

#lbl_voltageObject (readonly)

Returns the value of attribute lbl_voltage.



24
25
26
# File 'lib/gui/gui_chip_editor.rb', line 24

def lbl_voltage
  @lbl_voltage
end

#lie_descriptionObject (readonly)

Returns the value of attribute lie_description.



23
24
25
# File 'lib/gui/gui_chip_editor.rb', line 23

def lie_description
  @lie_description
end

#lie_manu_nameObject (readonly)

Returns the value of attribute lie_manu_name.



33
34
35
# File 'lib/gui/gui_chip_editor.rb', line 33

def lie_manu_name
  @lie_manu_name
end

#lie_pack_nameObject (readonly)

Returns the value of attribute lie_pack_name.



44
45
46
# File 'lib/gui/gui_chip_editor.rb', line 44

def lie_pack_name
  @lie_pack_name
end

#lie_pack_pinObject (readonly)

Returns the value of attribute lie_pack_pin.



46
47
48
# File 'lib/gui/gui_chip_editor.rb', line 46

def lie_pack_pin
  @lie_pack_pin
end

#lie_referenceObject (readonly)

Returns the value of attribute lie_reference.



21
22
23
# File 'lib/gui/gui_chip_editor.rb', line 21

def lie_reference
  @lie_reference
end

#lie_type_nameObject (readonly)

Returns the value of attribute lie_type_name.



38
39
40
# File 'lib/gui/gui_chip_editor.rb', line 38

def lie_type_name
  @lie_type_name
end

#rbn_3vObject (readonly)

Returns the value of attribute rbn_3v.



27
28
29
# File 'lib/gui/gui_chip_editor.rb', line 27

def rbn_3v
  @rbn_3v
end

#rbn_5vObject (readonly)

Returns the value of attribute rbn_5v.



28
29
30
# File 'lib/gui/gui_chip_editor.rb', line 28

def rbn_5v
  @rbn_5v
end

#rbn_rectangularObject (readonly)

Returns the value of attribute rbn_rectangular.



51
52
53
# File 'lib/gui/gui_chip_editor.rb', line 51

def rbn_rectangular
  @rbn_rectangular
end

#rbn_squareObject (readonly)

Returns the value of attribute rbn_square.



50
51
52
# File 'lib/gui/gui_chip_editor.rb', line 50

def rbn_square
  @rbn_square
end

#tbl_pinsObject (readonly)

Returns the value of attribute tbl_pins.



12
13
14
# File 'lib/gui/gui_chip_editor.rb', line 12

def tbl_pins
  @tbl_pins
end

#vlObject (readonly)

Returns the value of attribute vl.



18
19
20
# File 'lib/gui/gui_chip_editor.rb', line 18

def vl
  @vl
end

Instance Method Details

#retranslate_ui(chip_editor) ⇒ Object

retranslateUi



339
340
341
# File 'lib/gui/gui_chip_editor.rb', line 339

def retranslate_ui(chip_editor)
    retranslateUi(chip_editor)
end

#retranslateUi(chip_editor) ⇒ Object



288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
# File 'lib/gui/gui_chip_editor.rb', line 288

def retranslateUi(chip_editor)
chip_editor.windowTitle = Qt::Application.translate("Chip_editor", "Hardsploit - Chip editor", nil, Qt::Application::UnicodeUTF8)
if @tbl_pins.columnCount < 3
    @tbl_pins.columnCount = 3
end

__colItem = Qt::TableWidgetItem.new
__colItem.setText(Qt::Application.translate("Chip_editor", "Pin Number", nil, Qt::Application::UnicodeUTF8))
@tbl_pins.setHorizontalHeaderItem(0, __colItem)

__colItem1 = Qt::TableWidgetItem.new
__colItem1.setText(Qt::Application.translate("Chip_editor", "Bus", nil, Qt::Application::UnicodeUTF8))
@tbl_pins.setHorizontalHeaderItem(1, __colItem1)

__colItem2 = Qt::TableWidgetItem.new
__colItem2.setText(Qt::Application.translate("Chip_editor", "Signal", nil, Qt::Application::UnicodeUTF8))
@tbl_pins.setHorizontalHeaderItem(2, __colItem2)
@lbl_advice.text = Qt::Application.translate("Chip_editor", "To complete this form, please report to the component datasheet.", nil, Qt::Application::UnicodeUTF8)
@btn_cancel.text = Qt::Application.translate("Chip_editor", "Cancel", nil, Qt::Application::UnicodeUTF8)
@btn_add.text = Qt::Application.translate("Chip_editor", "Add", nil, Qt::Application::UnicodeUTF8)
@lbl_ref.text = Qt::Application.translate("Chip_editor", "Name / Reference:", nil, Qt::Application::UnicodeUTF8)
@lie_reference.placeholderText = Qt::Application.translate("Chip_editor", "30 chars max", nil, Qt::Application::UnicodeUTF8)
@lbl_description.text = Qt::Application.translate("Chip_editor", "Description:", nil, Qt::Application::UnicodeUTF8)
@lie_description.placeholderText = Qt::Application.translate("Chip_editor", "200 chars max", nil, Qt::Application::UnicodeUTF8)
@lbl_voltage.text = Qt::Application.translate("Chip_editor", "Voltage:", nil, Qt::Application::UnicodeUTF8)
@groupBox.title = ''
@rbn_3v.text = Qt::Application.translate("Chip_editor", "3,3V", nil, Qt::Application::UnicodeUTF8)
@rbn_5v.text = Qt::Application.translate("Chip_editor", "5V", nil, Qt::Application::UnicodeUTF8)
@lbl_manu.text = Qt::Application.translate("Chip_editor", "Manufacturer:", nil, Qt::Application::UnicodeUTF8)
@cbx_manufacturer.insertItems(0, [Qt::Application.translate("Chip_editor", "Select...", nil, Qt::Application::UnicodeUTF8)])
@btn_delete_manufacturer.text = Qt::Application.translate("Chip_editor", "X", nil, Qt::Application::UnicodeUTF8)
@lie_manu_name.placeholderText = Qt::Application.translate("Chip_editor", "Other...", nil, Qt::Application::UnicodeUTF8)
@lbl_type.text = Qt::Application.translate("Chip_editor", "Type:", nil, Qt::Application::UnicodeUTF8)
@cbx_type.insertItems(0, [Qt::Application.translate("Chip_editor", "Select...", nil, Qt::Application::UnicodeUTF8)])
@btn_delete_type.text = Qt::Application.translate("Chip_editor", "X", nil, Qt::Application::UnicodeUTF8)
@lie_type_name.text = ''
@lie_type_name.placeholderText = Qt::Application.translate("Chip_editor", "Other...", nil, Qt::Application::UnicodeUTF8)
@lbl_package.text = Qt::Application.translate("Chip_editor", "Package:", nil, Qt::Application::UnicodeUTF8)
@cbx_package.insertItems(0, [Qt::Application.translate("Chip_editor", "Select...", nil, Qt::Application::UnicodeUTF8)])
@btn_delete_package.text = Qt::Application.translate("Chip_editor", "X", nil, Qt::Application::UnicodeUTF8)
@lbl_name.text = Qt::Application.translate("Chip_editor", "Package name:", nil, Qt::Application::UnicodeUTF8)
@lie_pack_name.placeholderText = Qt::Application.translate("Chip_editor", "30 chars max", nil, Qt::Application::UnicodeUTF8)
@lbl_pack_pin.text = Qt::Application.translate("Chip_editor", "Package pin number:", nil, Qt::Application::UnicodeUTF8)
@lie_pack_pin.inputMask = ''
@lie_pack_pin.placeholderText = Qt::Application.translate("Chip_editor", "4-144", nil, Qt::Application::UnicodeUTF8)
@lbl_pack_shape.text = Qt::Application.translate("Chip_editor", "Package shape:", nil, Qt::Application::UnicodeUTF8)
@groupBox_2.title = ''
@rbn_square.text = Qt::Application.translate("Chip_editor", "Square", nil, Qt::Application::UnicodeUTF8)
@rbn_rectangular.text = Qt::Application.translate("Chip_editor", "Rectangular", nil, Qt::Application::UnicodeUTF8)
end

#setup_ui(chip_editor) ⇒ Object

setupUi



284
285
286
# File 'lib/gui/gui_chip_editor.rb', line 284

def setup_ui(chip_editor)
    setupUi(chip_editor)
end

#setupUi(chip_editor) ⇒ Object



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
# File 'lib/gui/gui_chip_editor.rb', line 53

def setupUi(chip_editor)
if chip_editor.objectName.nil?
    chip_editor.objectName = "chip_editor"
end
chip_editor.windowModality = Qt::ApplicationModal
chip_editor.resize(414, 594)
@gridLayout = Qt::GridLayout.new(chip_editor)
@gridLayout.objectName = "gridLayout"
@tbl_pins = Qt::TableWidget.new(chip_editor)
@tbl_pins.objectName = "tbl_pins"
@tbl_pins.minimumSize = Qt::Size.new(0, 200)
@tbl_pins.maximumSize = Qt::Size.new(16777215, 16777215)

@gridLayout.addWidget(@tbl_pins, 1, 0, 1, 1)

@lbl_advice = Qt::Label.new(chip_editor)
@lbl_advice.objectName = "lbl_advice"

@gridLayout.addWidget(@lbl_advice, 2, 0, 1, 1)

@hl = Qt::HBoxLayout.new()
@hl.objectName = "hl"
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)

@hl.addItem(@hs)

@btn_cancel = Qt::PushButton.new(chip_editor)
@btn_cancel.objectName = "btn_cancel"

@hl.addWidget(@btn_cancel)

@btn_add = Qt::PushButton.new(chip_editor)
@btn_add.objectName = "btn_add"

@hl.addWidget(@btn_add)


@gridLayout.addLayout(@hl, 3, 0, 1, 1)

@vl = Qt::VBoxLayout.new()
@vl.objectName = "vl"
@fl = Qt::FormLayout.new()
@fl.objectName = "fl"
@lbl_ref = Qt::Label.new(chip_editor)
@lbl_ref.objectName = "lbl_ref"

@fl.setWidget(0, Qt::FormLayout::LabelRole, @lbl_ref)

@lie_reference = Qt::LineEdit.new(chip_editor)
@lie_reference.objectName = "lie_reference"
@lie_reference.maxLength = 30

@fl.setWidget(0, Qt::FormLayout::FieldRole, @lie_reference)

@lbl_description = Qt::Label.new(chip_editor)
@lbl_description.objectName = "lbl_description"

@fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_description)

@lie_description = Qt::LineEdit.new(chip_editor)
@lie_description.objectName = "lie_description"
@lie_description.maxLength = 200

@fl.setWidget(1, Qt::FormLayout::FieldRole, @lie_description)

@lbl_voltage = Qt::Label.new(chip_editor)
@lbl_voltage.objectName = "lbl_voltage"

@fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_voltage)

@hl2 = Qt::HBoxLayout.new()
@hl2.objectName = "hl2"
@groupBox = Qt::GroupBox.new(chip_editor)
@groupBox.objectName = "groupBox"
@rbn_3v = Qt::RadioButton.new(@groupBox)
@rbn_3v.objectName = "rbn_3v"
@rbn_3v.geometry = Qt::Rect.new(10, 0, 70, 21)
@rbn_3v.checked = true
@rbn_3v.autoExclusive = true
@rbn_5v = Qt::RadioButton.new(@groupBox)
@rbn_5v.objectName = "rbn_5v"
@rbn_5v.geometry = Qt::Rect.new(90, 0, 109, 21)
@rbn_5v.autoExclusive = true

@hl2.addWidget(@groupBox)


@fl.setLayout(2, Qt::FormLayout::FieldRole, @hl2)

@lbl_manu = Qt::Label.new(chip_editor)
@lbl_manu.objectName = "lbl_manu"

@fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_manu)

@hl4 = Qt::HBoxLayout.new()
@hl4.objectName = "hl4"
@cbx_manufacturer = Qt::ComboBox.new(chip_editor)
@cbx_manufacturer.objectName = "cbx_manufacturer"

@hl4.addWidget(@cbx_manufacturer)

@btn_delete_manufacturer = Qt::PushButton.new(chip_editor)
@btn_delete_manufacturer.objectName = "btn_delete_manufacturer"
@btn_delete_manufacturer.maximumSize = Qt::Size.new(30, 16777215)

@hl4.addWidget(@btn_delete_manufacturer)


@fl.setLayout(3, Qt::FormLayout::FieldRole, @hl4)

@lie_manu_name = Qt::LineEdit.new(chip_editor)
@lie_manu_name.objectName = "lie_manu_name"
@lie_manu_name.maxLength = 30

@fl.setWidget(4, Qt::FormLayout::FieldRole, @lie_manu_name)

@lbl_type = Qt::Label.new(chip_editor)
@lbl_type.objectName = "lbl_type"

@fl.setWidget(5, Qt::FormLayout::LabelRole, @lbl_type)

@hl5 = Qt::HBoxLayout.new()
@hl5.objectName = "hl5"
@cbx_type = Qt::ComboBox.new(chip_editor)
@cbx_type.objectName = "cbx_type"

@hl5.addWidget(@cbx_type)

@btn_delete_type = Qt::PushButton.new(chip_editor)
@btn_delete_type.objectName = "btn_delete_type"
@btn_delete_type.maximumSize = Qt::Size.new(30, 16777215)

@hl5.addWidget(@btn_delete_type)


@fl.setLayout(5, Qt::FormLayout::FieldRole, @hl5)

@lie_type_name = Qt::LineEdit.new(chip_editor)
@lie_type_name.objectName = "lie_type_name"
@lie_type_name.maxLength = 30

@fl.setWidget(6, Qt::FormLayout::FieldRole, @lie_type_name)

@lbl_package = Qt::Label.new(chip_editor)
@lbl_package.objectName = "lbl_package"

@fl.setWidget(7, Qt::FormLayout::LabelRole, @lbl_package)

@hl1 = Qt::HBoxLayout.new()
@hl1.objectName = "hl1"
@cbx_package = Qt::ComboBox.new(chip_editor)
@cbx_package.objectName = "cbx_package"

@hl1.addWidget(@cbx_package)

@btn_delete_package = Qt::PushButton.new(chip_editor)
@btn_delete_package.objectName = "btn_delete_package"
@btn_delete_package.maximumSize = Qt::Size.new(30, 16777215)

@hl1.addWidget(@btn_delete_package)


@fl.setLayout(7, Qt::FormLayout::FieldRole, @hl1)

@lbl_name = Qt::Label.new(chip_editor)
@lbl_name.objectName = "lbl_name"

@fl.setWidget(8, Qt::FormLayout::LabelRole, @lbl_name)

@lie_pack_name = Qt::LineEdit.new(chip_editor)
@lie_pack_name.objectName = "lie_pack_name"
@lie_pack_name.maxLength = 30

@fl.setWidget(8, Qt::FormLayout::FieldRole, @lie_pack_name)

@lbl_pack_pin = Qt::Label.new(chip_editor)
@lbl_pack_pin.objectName = "lbl_pack_pin"

@fl.setWidget(9, Qt::FormLayout::LabelRole, @lbl_pack_pin)

@lie_pack_pin = Qt::LineEdit.new(chip_editor)
@lie_pack_pin.objectName = "lie_pack_pin"
@lie_pack_pin.maxLength = 3

@fl.setWidget(9, Qt::FormLayout::FieldRole, @lie_pack_pin)

@lbl_pack_shape = Qt::Label.new(chip_editor)
@lbl_pack_shape.objectName = "lbl_pack_shape"

@fl.setWidget(10, Qt::FormLayout::LabelRole, @lbl_pack_shape)

@hl3 = Qt::HBoxLayout.new()
@hl3.objectName = "hl3"
@groupBox_2 = Qt::GroupBox.new(chip_editor)
@groupBox_2.objectName = "groupBox_2"
@rbn_square = Qt::RadioButton.new(@groupBox_2)
@rbn_square.objectName = "rbn_square"
@rbn_square.geometry = Qt::Rect.new(10, 0, 81, 20)
@rbn_square.checked = true
@rbn_square.autoExclusive = true
@rbn_rectangular = Qt::RadioButton.new(@groupBox_2)
@rbn_rectangular.objectName = "rbn_rectangular"
@rbn_rectangular.geometry = Qt::Rect.new(110, 0, 109, 20)
@rbn_rectangular.checked = false
@rbn_rectangular.autoExclusive = true

@hl3.addWidget(@groupBox_2)


@fl.setLayout(10, Qt::FormLayout::FieldRole, @hl3)


@vl.addLayout(@fl)


@gridLayout.addLayout(@vl, 0, 0, 1, 1)


retranslateUi(chip_editor)
Qt::Object.connect(@lie_pack_pin, SIGNAL('editingFinished()'), chip_editor, SLOT('fill_pin_table()'))
Qt::Object.connect(@btn_delete_manufacturer, SIGNAL('clicked()'), chip_editor, SLOT('delete_cbx_element()'))
Qt::Object.connect(@btn_delete_type, SIGNAL('clicked()'), chip_editor, SLOT('delete_cbx_element()'))
Qt::Object.connect(@btn_delete_package, SIGNAL('clicked()'), chip_editor, SLOT('delete_cbx_element()'))
Qt::Object.connect(@cbx_package, SIGNAL('currentIndexChanged(int)'), chip_editor, SLOT('select_package()'))
Qt::Object.connect(@cbx_type, SIGNAL('currentIndexChanged(int)'), chip_editor, SLOT('select_type()'))
Qt::Object.connect(@cbx_manufacturer, SIGNAL('currentIndexChanged(int)'), chip_editor, SLOT('select_manufacturer()'))
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), chip_editor, SLOT('close()'))

Qt::MetaObject.connectSlotsByName(chip_editor)
end