Class: TitlePage
- Inherits:
-
LicenseWizardPage
- Object
- Qt::Base
- Qt::Widget
- WizardPage
- LicenseWizardPage
- TitlePage
- Defined in:
- ext/ruby/qtruby/examples/dialogs/complexwizard/licensewizard.rb
Instance Method Summary collapse
-
#initialize(wizard) ⇒ TitlePage
constructor
A new instance of TitlePage.
- #nextPage ⇒ Object
- #resetPage ⇒ Object
Methods inherited from WizardPage
Methods inherited from Qt::Widget
Methods inherited from Qt::Base
#%, #&, #*, #**, #+, #-, #-@, #/, #<, #<<, #<=, #==, #>, #>=, #>>, #QCOMPARE, #QEXPECT_FAIL, #QFAIL, #QSKIP, #QTEST, #QVERIFY, #QVERIFY2, #QWARN, #^, ancestors, #is_a?, #methods, private_slots, #protected_methods, #public_methods, q_classinfo, q_signal, q_slot, signals, #singleton_methods, slots, #|, #~
Constructor Details
#initialize(wizard) ⇒ TitlePage
Returns a new instance of TitlePage.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'ext/ruby/qtruby/examples/dialogs/complexwizard/licensewizard.rb', line 58 def initialize(wizard) super(wizard) @topLabel = Qt::Label.new(tr("<center><font color=\"blue\" size=\"5\"><b><i>" + "Super Product One</i></b></font></center>")) @registerRadioButton = Qt::RadioButton.new(tr("&Register your copy")) @evaluateRadioButton = Qt::RadioButton.new(tr("&Evaluate our product")) setFocusProxy(@registerRadioButton) layout = Qt::VBoxLayout.new layout.addWidget(@topLabel) layout.addSpacing(10) layout.addWidget(@registerRadioButton) layout.addWidget(@evaluateRadioButton) layout.addStretch(1) setLayout(layout) end |
Instance Method Details
#nextPage ⇒ Object
80 81 82 83 84 85 86 |
# File 'ext/ruby/qtruby/examples/dialogs/complexwizard/licensewizard.rb', line 80 def nextPage() if @evaluateRadioButton.checked? return @wizard.evaluatePage else return @wizard.registerPage end end |
#resetPage ⇒ Object
76 77 78 |
# File 'ext/ruby/qtruby/examples/dialogs/complexwizard/licensewizard.rb', line 76 def resetPage() @registerRadioButton.checked = true end |