Class: ConnectDialog
- Inherits:
-
Qt::Dialog
- Object
- Qt::Dialog
- ConnectDialog
- Defined in:
- lib/redix/qtui.rb
Instance Attribute Summary collapse
-
#buttonBox ⇒ Object
readonly
Returns the value of attribute buttonBox.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#lineEdit ⇒ Object
readonly
Returns the value of attribute lineEdit.
Instance Method Summary collapse
-
#retranslate_ui(dialog) ⇒ Object
retranslateUi.
- #retranslateUi(dialog) ⇒ Object
-
#setup_ui(dialog) ⇒ Object
setupUi.
- #setupUi(dialog = self) ⇒ Object
- #updateData(new) ⇒ Object
Instance Attribute Details
#buttonBox ⇒ Object (readonly)
Returns the value of attribute buttonBox.
131 132 133 |
# File 'lib/redix/qtui.rb', line 131 def @buttonBox end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
130 131 132 |
# File 'lib/redix/qtui.rb', line 130 def data @data end |
#lineEdit ⇒ Object (readonly)
Returns the value of attribute lineEdit.
132 133 134 |
# File 'lib/redix/qtui.rb', line 132 def lineEdit @lineEdit end |
Instance Method Details
#retranslate_ui(dialog) ⇒ Object
retranslateUi
168 169 170 |
# File 'lib/redix/qtui.rb', line 168 def retranslate_ui(dialog) retranslateUi(dialog) end |
#retranslateUi(dialog) ⇒ Object
163 164 165 166 |
# File 'lib/redix/qtui.rb', line 163 def retranslateUi(dialog) dialog.windowTitle = Qt::Application.translate("Dialog", "Connect", nil, Qt::Application::UnicodeUTF8) @label.text = Qt::Application.translate("Dialog", "redis://", nil, Qt::Application::UnicodeUTF8) end |
#setup_ui(dialog) ⇒ Object
setupUi
159 160 161 |
# File 'lib/redix/qtui.rb', line 159 def setup_ui(dialog) setupUi(dialog) end |
#setupUi(dialog = self) ⇒ Object
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/redix/qtui.rb', line 138 def setupUi(dialog = self) @buttonBox = Qt::DialogButtonBox.new(dialog) @buttonBox.objectName = "buttonBox" @buttonBox.geometry = Qt::Rect.new(30, 60, 341, 32) @buttonBox.orientation = Qt::Horizontal @buttonBox.standardButtons = Qt::DialogButtonBox::Cancel|Qt::DialogButtonBox::Ok @lineEdit = Qt::LineEdit.new(dialog) @lineEdit.objectName = "lineEdit" @lineEdit.geometry = Qt::Rect.new(70, 20, 311, 22) @label = Qt::Label.new(dialog) @label.objectName = "label" @label.geometry = Qt::Rect.new(20, 23, 61, 21) retranslateUi(dialog) Qt::Object.connect(@buttonBox, SIGNAL('accepted()'), dialog, SLOT('accept()')) Qt::Object.connect(@buttonBox, SIGNAL('rejected()'), dialog, SLOT('reject()')) Qt::MetaObject.connectSlotsByName(dialog) end |
#updateData(new) ⇒ Object
135 136 137 |
# File 'lib/redix/qtui.rb', line 135 def updateData(new) @data = new end |