blob: de4876420a6c67e4510480dd4d80cd4e3ec922d5 (
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 pytde program, translated by Richard Dale
=end
require 'Korundum'
module UIXML
class PageLaunch
def initialize(parent)
page = parent.addPage()
x = 10
y = 10
launchLbl = TQt::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.xmlTDEActionCollection(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
|