OSDN Git Service

Ring 1.10 以来となる開発環境の日本語ローカライズ版 (評価版) を追加 (ノートパッド、フォームデザイナー、対話型実行環境、ファイルの検索)。
[ring-lang-081/ring.git] / applications / build / ja-jp / formdesigner / tests / layout / layoutView.ring
1 # Form/Window View - Generated Source Code File 
2 # Generated by the Ring 1.11 Form Designer
3 # Date : 17/09/2019
4 # Time : 20:29:43
5
6 Load "stdlibcore.ring"
7 Load "guilib.ring"
8
9 import System.GUI
10
11 if IsMainSourceFile() { 
12         new App {
13                 StyleFusion()
14                 new layoutView { win.show() } 
15                 exec()
16         }
17 }
18
19 class layoutView from WindowsViewParent
20         win = new MainWindow() { 
21                 move(100,100)
22                 resize(400,400)
23                 setWindowTitle("Layout")
24                 setstylesheet("background-color:;") 
25                 Button1 = new pushbutton(win) {
26                         move(43,26)
27                         resize(66,50)
28                         setstylesheet("color:black;background-color:;")
29                         oFont = new qfont("",0,0,0)
30                         oFont.fromstring("Arial")
31                         setfont(oFont)
32                         oFont.delete()
33                         setText("Button1")
34                         setClickEvent("")
35                         setBtnImage(Button1,"")
36                         
37                 }
38                 Button2 = new pushbutton(win) {
39                         move(122,16)
40                         resize(56,44)
41                         setstylesheet("color:black;background-color:;")
42                         oFont = new qfont("",0,0,0)
43                         oFont.fromstring("Arial")
44                         setfont(oFont)
45                         oFont.delete()
46                         setText("Button2")
47                         setClickEvent("")
48                         setBtnImage(Button2,"")
49                         
50                 }
51                 Button3 = new pushbutton(win) {
52                         move(113,90)
53                         resize(83,55)
54                         setstylesheet("color:black;background-color:;")
55                         oFont = new qfont("",0,0,0)
56                         oFont.fromstring("Arial")
57                         setfont(oFont)
58                         oFont.delete()
59                         setText("Button3")
60                         setClickEvent("")
61                         setBtnImage(Button3,"")
62                         
63                 }
64                 Button4 = new pushbutton(win) {
65                         move(51,97)
66                         resize(45,36)
67                         setstylesheet("color:black;background-color:;")
68                         oFont = new qfont("",0,0,0)
69                         oFont.fromstring("Arial")
70                         setfont(oFont)
71                         oFont.delete()
72                         setText("Button4")
73                         setClickEvent("")
74                         setBtnImage(Button4,"")
75                         
76                 }
77                 Layout1 = new QVBoxLayout() {
78                         AddWidget(Button1)
79                         AddWidget(Button2)
80                         AddWidget(Button3)
81                         AddWidget(Button4)
82                         
83                 }
84
85                 oMWLayoutWidget = new qWidget() { setLayout(Layout1) }
86                 setCentralWidget(oMWLayoutWidget) 
87         }
88
89 # End of the Generated Source Code File...