class FinishPage
Public Class Methods
new(wizard)
click to toggle source
Calls superclass method
LicenseWizardPage.new
# File examples/dialogs/complexwizard/licensewizard.rb, line 247 def initialize(wizard) super(wizard) @topLabel = Qt::Label.new(tr("<center><b>Complete your registration" + "</b></center>")) @bottomLabel = Qt::Label.new @bottomLabel.wordWrap = true @agreeCheckBox = Qt::CheckBox.new(tr("I agree to the terms and conditions of " + "the license")) setFocusProxy(@agreeCheckBox) connect(@agreeCheckBox, SIGNAL('toggled(bool)'), self, SIGNAL('completeStateChanged()')) layout = Qt::VBoxLayout.new layout.addWidget(@topLabel) layout.addSpacing(10) layout.addWidget(@bottomLabel) layout.addWidget(@agreeCheckBox) layout.addStretch(1) setLayout(layout) end
Public Instance Methods
isComplete()
click to toggle source
# File examples/dialogs/complexwizard/licensewizard.rb, line 291 def isComplete() return @agreeCheckBox.checked? end
isLastPage()
click to toggle source
# File examples/dialogs/complexwizard/licensewizard.rb, line 289 def isLastPage() return true end
resetPage()
click to toggle source
# File examples/dialogs/complexwizard/licensewizard.rb, line 271 def resetPage() if @wizard.historyPages.include? @wizard.evaluatePage licenseText = tr("Evaluation License Agreement: " + "You can use self software for 30 days and make one " + "back up, but you are not allowed to distribute it.") elsif @wizard.historyPages.include? @wizard.detailsPage licenseText = tr("First-Time License Agreement: " + "You can use self software subject to the license " + "you will receive by email.") else licenseText = tr("Upgrade License Agreement: " + "This software is licensed under the terms of your " + "current license.") end @bottomLabel.text = licenseText @agreeCheckBox.checked = false end