27: def setupUi(dialog)
28: @qgridLayout = Qt::GridLayout.new(dialog)
29: @qgridLayout.setObjectName("qgridLayout")
30: @qhboxLayout = Qt::HBoxLayout.new()
31: @qhboxLayout.setObjectName("qhboxLayout")
32: @label = Qt::Label.new(dialog)
33: @label.setObjectName("label")
34:
35: @qhboxLayout.addWidget(@label)
36:
37: @lineEdit = Qt::LineEdit.new(dialog)
38: @lineEdit.setObjectName("lineEdit")
39:
40: @qhboxLayout.addWidget(@lineEdit)
41:
42: @label_2 = Qt::Label.new(dialog)
43: @label_2.setObjectName("label_2")
44:
45: @qhboxLayout.addWidget(@label_2)
46:
47: @comboBox = Qt::ComboBox.new(dialog)
48: @comboBox.setObjectName("comboBox")
49:
50: @qhboxLayout.addWidget(@comboBox)
51:
52:
53: @qgridLayout.addLayout(@qhboxLayout, 0, 0, 1, 1)
54:
55: @textEdit = Qt::TextEdit.new(dialog)
56: @textEdit.setObjectName("textEdit")
57:
58: @qgridLayout.addWidget(@textEdit, 1, 0, 1, 1)
59:
60: @buttonBox = Qt::DialogButtonBox.new(dialog)
61: @buttonBox.setObjectName("buttonBox")
62: @buttonBox.setOrientation(Qt::Horizontal)
63:
64: buttons = Qt::DialogButtonBox::Cancel|Qt::DialogButtonBox::NoButton|Qt::DialogButtonBox::Ok
65: @buttonBox.setStandardButtons(buttons.to_i)
66:
67: @qgridLayout.addWidget(@buttonBox, 2, 0, 1, 1)
68:
69:
70: retranslateUi(dialog);
71:
72: size = Qt::Size.new(400, 300)
73: size = size.expandedTo(dialog.minimumSizeHint())
74: dialog.resize(size)
75:
76: Qt::Object.connect(@buttonBox, SIGNAL('accepted()'), dialog, SLOT('accept()'))
77: Qt::Object.connect(@buttonBox, SIGNAL('rejected()'), dialog, SLOT('reject()'))
78:
79: Qt::MetaObject.connectSlotsByName(dialog)
80: end