OSDN Git Service

Ring 1.10 以来となる開発環境の日本語ローカライズ版 (評価版) を追加 (ノートパッド、フォームデザイナー、対話型実行環境、ファイルの検索)。
[ring-lang-081/ring.git] / applications / build / ja-jp / formdesigner / tests / twowindowspart4 / secondwindowController.ring
1 # Form/Window Controller - Source Code File
2
3 load "secondwindowView.ring"
4
5 if IsMainSourceFile() {
6         new qApp {
7                 StyleFusion()
8                 open_window(:secondwindowController)
9                 exec()
10         }
11 }
12
13 class secondwindowController from windowsControllerParent
14
15         oView = new secondwindowView
16
17         nFirstWindowID=0 
18
19         func CloseWindow 
20                 oView.win.Close()
21
22         func SetFirstWindowID nID
23                 nFirstWindowID = nID
24         
25         func FirstWindow 
26                 return GetObjectByID(nFirstWindowID)
27
28         func IsFirstWindow
29                 return nFirstWindowID
30
31         func setMessage cMessage
32                 oView.label1.setText(cMessage)
33
34         func SendMessage 
35                 if isFirstWindow() {
36                         FirstWindow().setMessage("Message from the Second Window")
37                 }