OSDN Git Service

Ring 1.10 以来となる開発環境の日本語ローカライズ版 (評価版) を追加 (ノートパッド、フォームデザイナー、対話型実行環境、ファイルの検索)。
[ring-lang-081/ring.git] / applications / formdesigner / source / tests / twowindowspart3 / secondwindowController.ring
diff --git a/applications/formdesigner/source/tests/twowindowspart3/secondwindowController.ring b/applications/formdesigner/source/tests/twowindowspart3/secondwindowController.ring
new file mode 100644 (file)
index 0000000..c6ad466
--- /dev/null
@@ -0,0 +1,28 @@
+# Form/Window Controller - Source Code File
+
+load "secondwindowView.ring"
+
+if IsMainSourceFile() {
+       new qApp {
+               StyleFusion()
+               open_window(:secondwindowController)
+               exec()
+       }
+}
+
+class secondwindowController from windowsControllerParent
+
+       oView = new secondwindowView
+
+       func CloseWindow 
+
+               oView.win.Close()
+
+       func setMessage cMessage
+
+               oView.label1.setText(cMessage)
+
+       func SendMessage 
+               if isParent() {
+                       parent().setMessage("Message from the Second Window")
+               }