Class: AboutDialog
- Inherits:
-
Qt::Dialog
- Object
- Qt::Dialog
- AboutDialog
- Defined in:
- lib/redix/qtui.rb
Overview
About
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#textBrowser ⇒ Object
readonly
Returns the value of attribute textBrowser.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
303 304 305 |
# File 'lib/redix/qtui.rb', line 303 def data @data end |
#textBrowser ⇒ Object (readonly)
Returns the value of attribute textBrowser.
305 306 307 |
# File 'lib/redix/qtui.rb', line 305 def textBrowser @textBrowser end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
304 305 306 |
# File 'lib/redix/qtui.rb', line 304 def title @title end |
Instance Method Details
#retranslate_ui(dialog) ⇒ Object
retranslateUi
346 347 348 |
# File 'lib/redix/qtui.rb', line 346 def retranslate_ui(dialog) retranslateUi(dialog) end |
#retranslateUi(dialog) ⇒ Object
340 341 342 343 344 |
# File 'lib/redix/qtui.rb', line 340 def retranslateUi(dialog) dialog.windowTitle = Qt::Application.translate("Dialog", "About", nil, Qt::Application::UnicodeUTF8) @pushButton.text = Qt::Application.translate("Dialog", "Close", nil, Qt::Application::UnicodeUTF8) @title.text = Qt::Application.translate("Dialog", "RediX v0.0.1", nil, Qt::Application::UnicodeUTF8) end |
#setup_ui(dialog) ⇒ Object
setupUi
336 337 338 |
# File 'lib/redix/qtui.rb', line 336 def setup_ui(dialog) setupUi(dialog) end |
#setupUi(dialog = self) ⇒ Object
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 |
# File 'lib/redix/qtui.rb', line 312 def setupUi(dialog = self) dialog.resize(400, 300) @pushButton = Qt::PushButton.new(dialog) @pushButton.objectName = "pushButton" @pushButton.geometry = Qt::Rect.new(290, 260, 89, 27) @title = Qt::Label.new(dialog) @title.objectName = "title" @title.geometry = Qt::Rect.new(40, 20, 311, 31) @font = Qt::Font.new @font.family = "Verdana" @font.pointSize = 26 @title.font = @font @title.alignment = Qt::AlignCenter @textBrowser = Qt::TextBrowser.new(dialog) @textBrowser.objectName = "textBrowser" @textBrowser.geometry = Qt::Rect.new(20, 80, 361, 151) retranslateUi(dialog) Qt::Object.connect(@pushButton, SIGNAL('clicked()'), dialog, SLOT('accept()')) Qt::MetaObject.connectSlotsByName(dialog) end |
#updateData(new) ⇒ Object
308 309 310 |
# File 'lib/redix/qtui.rb', line 308 def updateData(new) @data = new end |