class ThirdPage
Attributes
headerLineEdit[RW]
implementationLineEdit[RW]
outputDirLineEdit[RW]
Public Class Methods
new(wizard)
click to toggle source
Calls superclass method
# File examples/dialogs/simplewizard/classwizard.rb, line 340 def initialize(wizard) super(wizard) @topLabel = Qt::Label.new(tr("<center><b>Output files</b></center>")) @outputDirLabel = Qt::Label.new(tr("&Output directory:")) @outputDirLineEdit = Qt::LineEdit.new @outputDirLabel.buddy = @outputDirLineEdit self.focusProxy = @outputDirLineEdit @headerLabel = Qt::Label.new(tr("&Header file name:")) @headerLineEdit = Qt::LineEdit.new @headerLabel.buddy = @headerLineEdit @implementationLabel = Qt::Label.new(tr("&Implementation file name:")) @implementationLineEdit = Qt::LineEdit.new @implementationLabel.buddy = @implementationLineEdit className = wizard.firstPage.classNameLineEdit.text() @headerLineEdit.text = className.downcase + ".h" @implementationLineEdit.text = className.downcase + ".cpp" @outputDirLineEdit.text = Qt::Dir.convertSeparators(Qt::Dir.homePath()) self.layout = Qt::GridLayout.new do |l| l.addWidget(@topLabel, 0, 0, 1, 2) l.setRowMinimumHeight(1, 10) l.addWidget(@outputDirLabel, 2, 0) l.addWidget(@outputDirLineEdit, 2, 1) l.addWidget(@headerLabel, 3, 0) l.addWidget(@headerLineEdit, 3, 1) l.addWidget(@implementationLabel, 4, 0) l.addWidget(@implementationLineEdit, 4, 1) l.setRowStretch(5, 1) end end