OSDN Git Service

Ring 1.10 以来となる開発環境の日本語ローカライズ版 (評価版) を追加 (ノートパッド、フォームデザイナー、対話型実行環境、ファイルの検索)。
[ring-lang-081/ring.git] / applications / rnote / source / rnoteformdesigner.ring
diff --git a/applications/rnote/source/rnoteformdesigner.ring b/applications/rnote/source/rnoteformdesigner.ring
new file mode 100644 (file)
index 0000000..64dc976
--- /dev/null
@@ -0,0 +1,23 @@
+# The Ring Notepad Application (RNote)
+# Author : Mahmoud Fayed <msfclipper@yahoo.com>
+
+class RNoteFormDesigner
+
+       func FormDesignerDock
+               cDir = CurrentDir()
+               chdir(exefolder() + "/../applications/formdesigner")
+               # Import Classes 
+                       import formdesigner 
+               open_windowAndLink(:FormDesignerController,self)
+               # We still use setParentObject() and avoid using
+               # IsRNOTE() and RNote() in the Form Designer 
+               # So we can reuse the Form Designer in other Projects
+               # I.e. Ring Notepad need to know about the Form Designer 
+               # But It's necessary for the Form Designer to Know that
+               # It's used in another project!
+               FormDesigner().setParentObject(self)
+               oDockFormDesigner.setWidget(FormDesigner().oView.win)
+               chdir(cDir)
+
+       func ClearActiveFormFile
+               cFormFile = ""