summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/examples/uimodules/uixml.rb
blob: 67be21ac75de0b99671ed2bcbb91ee69da8021a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
=begin
This is a ruby version of Jim Bublitz's pykde program, translated by Richard Dale
=end

require 'Korundum'

module UIXML

class PageLaunch
    def initialize(parent)
        page = parent.addPage()

        x = 10
        y = 10

        launchLbl   = Qt::Label.new("Launching application ... please wait\n\nClose launched application to continue", page)
        launchLbl.setGeometry(x, y, 300, 80)
        launchLbl.show()

        page.show()

        $kapp.processEvents()
	end
end

def UIXML.xmlKActionCollection(parent)
    parent.currentPageObj = PageLaunch.new(parent)
    system("ruby xmlmenudemo.rb")
end

def UIXML.xmlKEditToolbar(parent)
    parent.currentPageObj = PageLaunch.new(parent)
    system("ruby xmlmenudemo.rb")
end

def UIXML.xmlKEditToolbarWidget(parent)
    parent.currentPageObj = PageLaunch.new(parent)
    system("ruby xmlmenudemo.rb")
end

def UIXML.xmlKXMLGUIBuilder(parent)
    parent.currentPageObj = PageLaunch.new(parent)
    system("ruby xmlmenudemo.rb")
end

def UIXML.xmlKXMLGUIClient(parent)
    parent.currentPageObj = PageLaunch.new(parent)
    system("ruby xmlmenudemo.rb")
end

def UIXML.xmlKXMLGUIFactory(parent)
    parent.currentPageObj = PageLaunch.new(parent)
    system("ruby xmlmenudemo.rb")
end

end