#!/usr/bin/env ruby require 'korundum4' module Insane class Widget < Qt::Widget slots :hullos def initialize(parent=nil) super parent layout = Qt::VBoxLayout.new(self) label = Qt::Label.new(self) label.text = $aPony.i18n("Please enter the Hello World message:") layout.addWidget label @lineEdit = Qt::LineEdit.new self layout.addWidget(@lineEdit) hello = Qt::PushButton.new(self) hello.setText $aPony.i18n("Hola World !") layout.addWidget hello connect(hello, SIGNAL(:clicked), self, SLOT(:hullos)) end def hullos unless @lineEdit.text.empty? KDE::MessageBox::information(self,@lineEdit.text) else KDE::MessageBox::error(self,$aPony.i18n("Pretty please enter some hello message :-(")) end end end end about = KDE::AboutData.new("h2", "", KDE.ki18n("Hola World"), "0.1", KDE.ki18n("Hello World Application"), KDE::AboutData::License_GPL, KDE.ki18n("(C) 2009 Harald Sitter