require 'Korundum' class MainWindow < KDE::MainWindow slots 'fileOpen()', 'fileSave()' def initialize( name ) super(nil, name) setCaption("KDE Tutorial - p3") filemenu = TQt::PopupMenu.new filemenu.insertItem( i18n( "&Open" ), self, TQ_SLOT('fileOpen()') ) filemenu.insertItem( i18n( "&Save" ), self, TQ_SLOT('fileSave()') ) filemenu.insertItem( i18n( "&Quit" ), $kapp, TQ_SLOT('quit()') ) about = i18n("p3 1.0\n\n" + "(C) 1999-2002 Antonio Larrosa Jimenez\n" + "larrosa@kde.org\t\tantlarr@supercable.es\n" + "Malaga (Spain)\n\n" + "Simple KDE Tutorial\n" + "This tutorial comes with ABSOLUTELY NO WARRANTY\n" + "This is free software, and you are welcome to redistribute it\n" + "under certain conditions\n") helpmenu = helpMenu( about ) menu = menuBar() menu.insertItem( i18n( "&File" ), filemenu ) menu.insertSeparator() menu.insertItem( i18n( "&Help" ), helpmenu ) hello = TQt::TextEdit.new( i18n("