Home | Ruby | Ruby Graphical User Interface |     Share This Page

Listing: aboutdialog_ui.rb


Click here to download original file.

# Form implementation generated from reading ui file 'aboutdialog.ui'
#
# Created: Sun Aug 20 09:12:25 2006
#      by: The QtRuby User Interface Compiler (rbuic)
#
# WARNING! All changes made in this file will be lost!
require 'Qt'
class AboutDialogUI < Qt::Dialog
    slots 'languageChange()',
    'closeButton_clicked()'
    attr_reader :groupBox3
    attr_reader :textLabel2
    attr_reader :closeButton
    def initialize(parent = nil, name = nil, modal = false, fl = 0)
        super
        if name.nil?
        	setName("AboutDialogUI")
        end
        setModal(true)
        @AboutDialogUILayout = Qt::GridLayout.new(self, 1, 1, 11, 6, 'AboutDialogUILayout')
        @groupBox3 = Qt::GroupBox.new(self, "groupBox3")
        @groupBox3.setColumnLayout( 0, Qt::Vertical )
        @groupBox3.layout().setSpacing(6)
        @groupBox3.layout().setMargin(11)
        @groupBox3Layout = Qt::GridLayout.new(@groupBox3.layout() )
        @groupBox3Layout.setAlignment( AlignTop )
        @textLabel2 = Qt::Label.new(@groupBox3, "textLabel2")
        @textLabel2.setAlignment( Qt::Label::WordBreak | Qt::Label::AlignVCenter )
        @groupBox3Layout.addWidget(@textLabel2, 0, 0)
        @AboutDialogUILayout.addMultiCellWidget(@groupBox3, 0, 0, 0, 1)
        @closeButton = Qt::PushButton.new(self, "closeButton")
        @AboutDialogUILayout.addWidget(@closeButton, 1, 1)
        @spacer1 = Qt::SpacerItem.new(221, 31, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
        @AboutDialogUILayout.addItem(@spacer1, 1, 0)
        languageChange()
        resize( Qt::Size.new(374, 239).expandedTo(minimumSizeHint()) )
        clearWState( WState_Polished )
        Qt::Object.connect(@closeButton, SIGNAL("clicked()"), self, SLOT("closeButton_clicked()") )
    end
    #
    #  Sets the strings of the subwidgets using the current
    #  language.
    #
    def languageChange()
        setCaption(trUtf8("AboutDialog"))
        @groupBox3.setTitle( nil )
        @textLabel2.setText( nil )
        @closeButton.setText( trUtf8("Close") )
    end
    protected :languageChange
    def closeButton_clicked(*k)
        print("AboutDialogUI.closeButton_clicked(): Not implemented yet.\n")
    end
end
    

Home | Ruby | Ruby Graphical User Interface |     Share This Page