src/Builder4/ProjectSettings.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 20 Apr 2015 07:55:54 +0000 (15:55 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 20 Apr 2015 07:55:54 +0000 (15:55 +0800)
src/Builder4/ProjectSettings.vala

src/Builder4/ProjectSettings.bjs
src/Builder4/ProjectSettings.vala

index 05172da..0cdc644 100644 (file)
 {
-    "name" : "ProjectSettings",
-    "parent" : "",
-    "title" : "",
-    "path" : "/home/alan/gitlive/app.Builder.js/Builder4/ProjectSettings.bjs",
-    "permname" : "",
-    "modOrder" : "",
-    "items" : [
-        {
-            "@ void buttonPressed" : "(string btn)",
-            "id" : "ProjectSettings",
-            "| void show" : " (Project.Project project) {\n    _this.project = project;\n    _this.path.el.label = project.firstPath();\n    // get the active project.\n     var lm = Gtk.SourceLanguageManager.get_default();\n                \n    ((Gtk.SourceBuffer)(_this.view.el.get_buffer())) .set_language(\n    \n        lm.get_language(\"html\"));\n  \n    //print (project.fn);\n    //project.runhtml = project.runhtml || '';\n    _this.view.el.get_buffer().set_text(project.runhtml);\n    \n       \n    _this.rootURL.el.set_text( _this.project.rootURL );\n    _this.base_template.el.set_text(_this.project.base_template);    \n   \n    \n    //this.el.show_all();\n}\n",
-            "# Project.Project project" : "",
-            "xtype" : "VBox",
-            "| void save" : "()\n{\n   var buf =    _this.view.el.get_buffer();\n   Gtk.TextIter s;\n     Gtk.TextIter e;\n    buf.get_start_iter(out s);\n    buf.get_end_iter(out e);\n      _this.project.runhtml = buf.get_text(s,e,true);\n      \n    _this.project.rootURL = _this.rootURL.el.get_text();\n    _this.project.base_template = _this.base_template.el.get_text();    \n    \n    \n}",
-            "$ xns" : "Gtk",
-            "border_width" : 5,
-            "$ homogeneous" : false,
-            "items" : [
-                {
-                    "* pack" : "pack_start,false,false,0",
-                    "xtype" : "HBox",
-                    "gboolean expand" : false,
-                    "$ xns" : "Gtk",
-                    "$ homogeneous" : true,
-                    "gboolean vexpand" : false,
-                    "items" : [
-                        {
-                            "listeners" : {
-                                "button_press_event" : "() => {\n    _this.save();\n          \n    _this.buttonPressed(\"apply\");\n        return false;\n}"
-                            },
-                            "label" : "Apply",
-                            "* pack" : "add",
-                            "xtype" : "Button",
-                            "$ xns" : "Gtk"
-                        },
-                        {
-                            "listeners" : {
-                                "button_press_event" : "() => {\n       _this.save();\n          \n    _this.buttonPressed(\"save\");\n        return false;\n}"
-                            },
-                            "label" : "Save",
-                            "* pack" : "add",
-                            "xtype" : "Button",
-                            "$ xns" : "Gtk"
-                        }
-                    ]
-                },
-                {
-                    "label" : "filename",
-                    "id" : "path",
-                    "xalign" : 0,
-                    "* pack" : "pack_start,false,false,0",
-                    "xtype" : "Label",
-                    "$ xns" : "Gtk"
-                },
-                {
-                    "label" : "HTML To insert at end of <HEAD>",
-                    "xtype" : "Label",
-                    "* pack" : "pack_start,false,false,0",
-                    "$ xns" : "Gtk"
-                },
-                {
-                    "* pack" : "pack_start,false,false,0",
-                    "xtype" : "HBox",
-                    "gboolean expand" : false,
-                    "$ xns" : "Gtk",
-                    "$ homogeneous" : false,
-                    "items" : [
-                        {
-                            "label" : "HTML template file",
-                            "* pack" : "pack_start,false,false,0",
-                            "xtype" : "Label",
-                            "$ xns" : "Gtk"
-                        },
-                        {
-                            "id" : "base_template",
-                            "* pack" : "add",
-                            "xtype" : "Entry",
-                            "$ xns" : "Gtk"
-                        }
-                    ]
-                },
-                {
-                    "* pack" : "pack_start,false,false,0",
-                    "xtype" : "HBox",
-                    "gboolean expand" : false,
-                    "$ xns" : "Gtk",
-                    "$ homogeneous" : false,
-                    "items" : [
-                        {
-                            "label" : "root URL",
-                            "* pack" : "pack_start,false,false,0",
-                            "xtype" : "Label",
-                            "$ xns" : "Gtk"
-                        },
-                        {
-                            "id" : "rootURL",
-                            "* pack" : "add",
-                            "xtype" : "Entry",
-                            "$ xns" : "Gtk"
-                        }
-                    ]
-                },
-                {
-                    "* pack" : "pack_start,true,true,0",
-                    "xtype" : "ScrolledWindow",
-                    "$ xns" : "Gtk",
-                    "items" : [
-                        {
-                            "listeners" : {
-                                "key_release_event" : " ( event) =>{\n    if (event.keyval != 115) {\n        return false;\n         \n    }\n    if   ( (event.state & Gdk.ModifierType.CONTROL_MASK ) < 1 ) {\n        return false;\n    }\n     var buf =    this.el.get_buffer();\n    Gtk.TextIter s;\n    Gtk.TextIter e;\n    buf.get_start_iter(out s);\n    buf.get_end_iter(out e);\n    _this.project.runhtml = buf.get_text(s,e,true);\n    \n          \n    _this.buttonPressed(\"save\");\n     \n    return false;\n         \n}"
-                            },
-                            "id" : "view",
-                            "* init" : " \n    var description =   Pango.FontDescription.from_string(\"monospace\");\n    description.set_size(9000);\n    this.el.override_font(description);",
-                            "xtype" : "View",
-                            "* pack" : "add",
-                            "$ xns" : "GtkSource"
-                        }
-                    ]
-                }
-            ]
-        }
-    ]
+ "name" : "ProjectSettings",
+ "parent" : "",
+ "title" : "",
+ "path" : "/home/alan/gitlive/app.Builder.js/src/Builder4/ProjectSettings.bjs",
+ "permname" : "",
+ "modOrder" : "",
+ "items" : [
+  {
+   "@ void buttonPressed" : "(string btn)",
+   "id" : "ProjectSettings",
+   "| void show" : " (Project.Project project) {\n    _this.project = project;\n    _this.path.el.label = project.firstPath();\n    // get the active project.\n     var lm = Gtk.SourceLanguageManager.get_default();\n                \n    ((Gtk.SourceBuffer)(_this.view.el.get_buffer())) .set_language(\n    \n        lm.get_language(\"html\"));\n  \n    //print (project.fn);\n    //project.runhtml = project.runhtml || '';\n    _this.view.el.get_buffer().set_text(project.runhtml);\n    \n       \n    _this.rootURL.el.set_text( _this.project.rootURL );\n    _this.base_template.el.set_text(_this.project.base_template);    \n   \n    \n    //this.el.show_all();\n}\n",
+   "# Project.Project project" : "",
+   "xtype" : "VBox",
+   "| void save" : "()\n{\n   var buf =    _this.view.el.get_buffer();\n   Gtk.TextIter s;\n     Gtk.TextIter e;\n    buf.get_start_iter(out s);\n    buf.get_end_iter(out e);\n      _this.project.runhtml = buf.get_text(s,e,true);\n      \n    _this.project.rootURL = _this.rootURL.el.get_text();\n    _this.project.base_template = _this.base_template.el.get_text();    \n    \n    \n}",
+   "$ xns" : "Gtk",
+   "border_width" : 5,
+   "$ homogeneous" : false,
+   "items" : [
+    {
+     "* pack" : "pack_start,true,true,0",
+     "xtype" : "Notebook",
+     "$ xns" : "Gtk"
+    },
+    {
+     "* pack" : "pack_start,false,false,0",
+     "xtype" : "HBox",
+     "gboolean expand" : false,
+     "$ xns" : "Gtk",
+     "$ homogeneous" : true,
+     "gboolean vexpand" : false,
+     "items" : [
+      {
+       "listeners" : {
+        "button_press_event" : "() => {\n    _this.save();\n          \n    _this.buttonPressed(\"apply\");\n        return false;\n}"
+       },
+       "label" : "Apply",
+       "xtype" : "Button",
+       "* pack" : "add",
+       "$ xns" : "Gtk"
+      },
+      {
+       "listeners" : {
+        "button_press_event" : "() => {\n       _this.save();\n          \n    _this.buttonPressed(\"save\");\n        return false;\n}"
+       },
+       "label" : "Save",
+       "xtype" : "Button",
+       "* pack" : "add",
+       "$ xns" : "Gtk"
+      }
+     ]
+    },
+    {
+     "label" : "filename",
+     "id" : "path",
+     "xalign" : 0,
+     "* pack" : "pack_start,false,false,0",
+     "xtype" : "Label",
+     "$ xns" : "Gtk"
+    },
+    {
+     "label" : "HTML To insert at end of <HEAD>",
+     "* pack" : "pack_start,false,false,0",
+     "xtype" : "Label",
+     "$ xns" : "Gtk"
+    },
+    {
+     "* pack" : "pack_start,false,false,0",
+     "xtype" : "HBox",
+     "gboolean expand" : false,
+     "$ xns" : "Gtk",
+     "$ homogeneous" : false,
+     "items" : [
+      {
+       "label" : "HTML template file",
+       "xtype" : "Label",
+       "* pack" : "pack_start,false,false,0",
+       "$ xns" : "Gtk"
+      },
+      {
+       "id" : "base_template",
+       "xtype" : "Entry",
+       "* pack" : "add",
+       "$ xns" : "Gtk"
+      }
+     ]
+    },
+    {
+     "* pack" : "pack_start,false,false,0",
+     "xtype" : "HBox",
+     "gboolean expand" : false,
+     "$ xns" : "Gtk",
+     "$ homogeneous" : false,
+     "items" : [
+      {
+       "label" : "root URL",
+       "xtype" : "Label",
+       "* pack" : "pack_start,false,false,0",
+       "$ xns" : "Gtk"
+      },
+      {
+       "id" : "rootURL",
+       "xtype" : "Entry",
+       "* pack" : "add",
+       "$ xns" : "Gtk"
+      }
+     ]
+    },
+    {
+     "* pack" : "pack_start,true,true,0",
+     "xtype" : "ScrolledWindow",
+     "$ xns" : "Gtk",
+     "items" : [
+      {
+       "listeners" : {
+        "key_release_event" : " ( event) =>{\n    if (event.keyval != 115) {\n        return false;\n         \n    }\n    if   ( (event.state & Gdk.ModifierType.CONTROL_MASK ) < 1 ) {\n        return false;\n    }\n     var buf =    this.el.get_buffer();\n    Gtk.TextIter s;\n    Gtk.TextIter e;\n    buf.get_start_iter(out s);\n    buf.get_end_iter(out e);\n    _this.project.runhtml = buf.get_text(s,e,true);\n    \n          \n    _this.buttonPressed(\"save\");\n     \n    return false;\n         \n}"
+       },
+       "id" : "view",
+       "* init" : " \n    var description =   Pango.FontDescription.from_string(\"monospace\");\n    description.set_size(9000);\n    this.el.override_font(description);",
+       "xtype" : "View",
+       "* pack" : "add",
+       "$ xns" : "GtkSource"
+      }
+     ]
+    }
+   ]
+  }
+ ]
 }
\ No newline at end of file
index 584d5ae..3daa7a1 100644 (file)
@@ -31,24 +31,27 @@ public class Xcls_ProjectSettings : Object
 
         // set gobject values
         this.el.border_width = 5;
-        var child_0 = new Xcls_HBox2( _this );
+        var child_0 = new Xcls_Notebook2( _this );
         child_0.ref();
-        this.el.pack_start (  child_0.el , false,false,0 );
-        var child_1 = new Xcls_path( _this );
+        this.el.pack_start (  child_0.el , true,true,0 );
+        var child_1 = new Xcls_HBox3( _this );
         child_1.ref();
         this.el.pack_start (  child_1.el , false,false,0 );
-        var child_2 = new Xcls_Label6( _this );
+        var child_2 = new Xcls_path( _this );
         child_2.ref();
         this.el.pack_start (  child_2.el , false,false,0 );
-        var child_3 = new Xcls_HBox7( _this );
+        var child_3 = new Xcls_Label7( _this );
         child_3.ref();
         this.el.pack_start (  child_3.el , false,false,0 );
-        var child_4 = new Xcls_HBox10( _this );
+        var child_4 = new Xcls_HBox8( _this );
         child_4.ref();
         this.el.pack_start (  child_4.el , false,false,0 );
-        var child_5 = new Xcls_ScrolledWindow13( _this );
+        var child_5 = new Xcls_HBox11( _this );
         child_5.ref();
-        this.el.pack_start (  child_5.el , true,true,0 );
+        this.el.pack_start (  child_5.el , false,false,0 );
+        var child_6 = new Xcls_ScrolledWindow14( _this );
+        child_6.ref();
+        this.el.pack_start (  child_6.el , true,true,0 );
     }
 
     // user defined functions 
@@ -87,7 +90,28 @@ public class Xcls_ProjectSettings : Object
         
         
     }
-    public class Xcls_HBox2 : Object 
+    public class Xcls_Notebook2 : Object 
+    {
+        public Gtk.Notebook el;
+        private Xcls_ProjectSettings  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_Notebook2(Xcls_ProjectSettings _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Notebook();
+
+            // my vars (dec)
+
+            // set gobject values
+        }
+
+        // user defined functions 
+    }
+    public class Xcls_HBox3 : Object 
     {
         public Gtk.HBox el;
         private Xcls_ProjectSettings  _this;
@@ -96,7 +120,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_HBox2(Xcls_ProjectSettings _owner )
+        public Xcls_HBox3(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.HBox( true, 0 );
@@ -106,17 +130,17 @@ public class Xcls_ProjectSettings : Object
             // set gobject values
             this.el.expand = false;
             this.el.vexpand = false;
-            var child_0 = new Xcls_Button3( _this );
+            var child_0 = new Xcls_Button4( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
-            var child_1 = new Xcls_Button4( _this );
+            var child_1 = new Xcls_Button5( _this );
             child_1.ref();
             this.el.add (  child_1.el  );
         }
 
         // user defined functions 
     }
-    public class Xcls_Button3 : Object 
+    public class Xcls_Button4 : Object 
     {
         public Gtk.Button el;
         private Xcls_ProjectSettings  _this;
@@ -125,7 +149,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Button3(Xcls_ProjectSettings _owner )
+        public Xcls_Button4(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -146,7 +170,7 @@ public class Xcls_ProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_Button4 : Object 
+    public class Xcls_Button5 : Object 
     {
         public Gtk.Button el;
         private Xcls_ProjectSettings  _this;
@@ -155,7 +179,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Button4(Xcls_ProjectSettings _owner )
+        public Xcls_Button5(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -199,7 +223,7 @@ public class Xcls_ProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_Label6 : Object 
+    public class Xcls_Label7 : Object 
     {
         public Gtk.Label el;
         private Xcls_ProjectSettings  _this;
@@ -208,7 +232,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Label6(Xcls_ProjectSettings _owner )
+        public Xcls_Label7(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.Label( "HTML To insert at end of <HEAD>" );
@@ -220,7 +244,7 @@ public class Xcls_ProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_HBox7 : Object 
+    public class Xcls_HBox8 : Object 
     {
         public Gtk.HBox el;
         private Xcls_ProjectSettings  _this;
@@ -229,7 +253,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_HBox7(Xcls_ProjectSettings _owner )
+        public Xcls_HBox8(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.HBox( false, 0 );
@@ -238,7 +262,7 @@ public class Xcls_ProjectSettings : Object
 
             // set gobject values
             this.el.expand = false;
-            var child_0 = new Xcls_Label8( _this );
+            var child_0 = new Xcls_Label9( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , false,false,0 );
             var child_1 = new Xcls_base_template( _this );
@@ -248,7 +272,7 @@ public class Xcls_ProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_Label8 : Object 
+    public class Xcls_Label9 : Object 
     {
         public Gtk.Label el;
         private Xcls_ProjectSettings  _this;
@@ -257,7 +281,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Label8(Xcls_ProjectSettings _owner )
+        public Xcls_Label9(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.Label( "HTML template file" );
@@ -291,7 +315,7 @@ public class Xcls_ProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_HBox10 : Object 
+    public class Xcls_HBox11 : Object 
     {
         public Gtk.HBox el;
         private Xcls_ProjectSettings  _this;
@@ -300,7 +324,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_HBox10(Xcls_ProjectSettings _owner )
+        public Xcls_HBox11(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.HBox( false, 0 );
@@ -309,7 +333,7 @@ public class Xcls_ProjectSettings : Object
 
             // set gobject values
             this.el.expand = false;
-            var child_0 = new Xcls_Label11( _this );
+            var child_0 = new Xcls_Label12( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , false,false,0 );
             var child_1 = new Xcls_rootURL( _this );
@@ -319,7 +343,7 @@ public class Xcls_ProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_Label11 : Object 
+    public class Xcls_Label12 : Object 
     {
         public Gtk.Label el;
         private Xcls_ProjectSettings  _this;
@@ -328,7 +352,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Label11(Xcls_ProjectSettings _owner )
+        public Xcls_Label12(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.Label( "root URL" );
@@ -362,7 +386,7 @@ public class Xcls_ProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_ScrolledWindow13 : Object 
+    public class Xcls_ScrolledWindow14 : Object 
     {
         public Gtk.ScrolledWindow el;
         private Xcls_ProjectSettings  _this;
@@ -371,7 +395,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_ScrolledWindow13(Xcls_ProjectSettings _owner )
+        public Xcls_ScrolledWindow14(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.ScrolledWindow( null, null );
@@ -410,6 +434,7 @@ public class Xcls_ProjectSettings : Object
             var description =   Pango.FontDescription.from_string("monospace");
                 description.set_size(9000);
                 this.el.override_font(description);
+
             // listeners 
             this.el.key_release_event.connect( ( event) =>{
                 if (event.keyval != 115) {