OSDN Git Service

Ring 1.10 以来となる開発環境の日本語ローカライズ版 (評価版) を追加 (ノートパッド、フォームデザイナー、対話型実行環境、ファイルの検索)。
[ring-lang-081/ring.git] / applications / build / ja-jp / formdesigner / tests / videowidget / videowidgetView.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:33:06
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 videowidgetView { win.show() } 
15                 exec()
16         }
17 }
18
19 class videowidgetView from WindowsViewParent
20         win = new MainWindow() { 
21                 move(63,87)
22                 resize(400,400)
23                 setWindowTitle("Video Widget")
24                 setstylesheet("background-color:;") 
25                 VideoWidget1 = new videowidget(win) {
26                         move(12,38)
27                         resize(371,305)
28                         setstylesheet("color:black;background-color:;")
29                         oFont = new qfont("",0,0,0)
30                         oFont.fromstring("Arial")
31                         setfont(oFont)
32                         oFont.delete()
33                         playerVideoWidget1 = new qmediaplayer() { 
34                         setmedia(new qurl("test.avi"))
35                          setvideooutput(VideoWidget1)
36                         }
37                         
38                 }
39                 Button1 = new pushbutton(win) {
40                         move(14,5)
41                         resize(100,29)
42                         setstylesheet("color:black;background-color:;")
43                         oFont = new qfont("",0,0,0)
44                         oFont.fromstring("Arial")
45                         setfont(oFont)
46                         oFont.delete()
47                         setText("Play")
48                         setClickEvent(Method(:PlayVideo))
49                         setBtnImage(Button1,"")
50                         
51                 }
52         }
53
54 # End of the Generated Source Code File...