src/Builder4/WindowLeftProps.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 09:32:09 +0000 (17:32 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 09:32:09 +0000 (17:32 +0800)
src/Builder4/WindowLeftProps.vala

src/Builder4/WindowLeftProps.bjs
src/Builder4/WindowLeftProps.vala

index c7146b8..a91905a 100644 (file)
@@ -9,8 +9,8 @@
  "items" : [
   {
    "# bool allow_edit" : false,
-   "|              void before_edit" : "()\n{\n\n    print(\"before edit - stop editing\\n\");\n    \n  // these do not appear to trigger save...\n    _this.keyrender.el.stop_editing(false);\n    _this.keyrender.el.editable  =false;\n\n    _this.valrender.el.stop_editing(false);\n    _this.valrender.el.editable  =false;    \n    \n    \n// technicall stop the popup editor..\n\n}\n",
    "id" : "LeftProps",
+   "|              void before_edit" : "()\n{\n\n    print(\"before edit - stop editing\\n\");\n    \n  // these do not appear to trigger save...\n    _this.keyrender.el.stop_editing(false);\n    _this.keyrender.el.editable  =false;\n\n    _this.valrender.el.stop_editing(false);\n    _this.valrender.el.editable  =false;    \n    \n    \n// technicall stop the popup editor..\n\n}\n",
    "|              string keySortFormat" : "(string key) {\n    // listeners first - with 0\n    // specials\n    if (key[0] == '*') {\n        return \"1 \" + key;\n    }\n    // functions\n    \n    var bits = key.split(\" \");\n    \n    if (key[0] == '|') {\n        return \"2 \" + bits[bits.length -1];\n    }\n    // signals\n    if (key[0] == '@') {\n        return \"3 \" + bits[bits.length -1];\n    }\n        \n    // props\n    if (key[0] == '#') {\n        return \"4 \" + bits[bits.length -1];\n    }\n    // the rest..\n    return \"5 \" + bits[bits.length -1];    \n\n\n\n}",
    "|              void finish_editing" : "() {\n     // \n    this.before_edit();\n}",
    "|              bool startEditingValue" : "( Gtk.TreePath path) {\n\n    // ONLY return true if editing is allowed - eg. combo..\n    \n            print(\"start editing?\\n\");\n            if (!this.stop_editor()) {\n                print(\"stop editor failed\\n\");\n                return false;\n            }\n            \n            Gtk.TreeIter iter;\n\n            var mod = this.model.el;\n            mod.get_iter (out iter, path);\n             \n            /*\n                m.set(iter, \n                        0, \"listener\",\n                        1, miter.get_key(),\n                        2, \"<b>\" + miter.get_key() + \"</b>\",\n                        3, miter.get_value()\n                    ); \n             \n            */\n            GLib.Value gval;\n            mod.get_value(iter, 3 , out gval);\n            var val = (string)gval;\n        \n            mod.get_value(iter, 1 , out gval);\n            var key = (string)gval;\n            var type_ar = key.split(\" \");\n            \n            string kname, kflag, ktype;\n            this.node.normalize_key(key, out kname, out kflag, out ktype);\n             \n            \n            mod.get_value(iter, 0 , out gval);\n            var type = (string)gval; // listerner or prop..\n            \n           \n            \n            var use_textarea = false;\n\n            //------------ things that require the text editor...\n            \n            if (type == \"listener\") {\n                use_textarea = true;\n            }\n            if (key.length > 0 && key[0] == '|') { // user defined method\n                use_textarea = true;\n            }\n            if (key.length > 0 && key[0] == '$') { // raw string\n                use_textarea = true;\n            }\n            if (key.length > 0 && key == \"* init\") {\n                use_textarea = true;\n            }\n            if (val.length > 40) { // long value...\n                use_textarea = true;\n            }\n            \n            \n            \n            if (use_textarea) {\n                print(\"Call show editor\\n\");\n                GLib.Timeout.add_full(GLib.Priority.DEFAULT,10 , () => {\n                    this.view.el.get_selection().select_path(path);\n                    \n                    this.show_editor(file, node, type, key);\n                    \n                    return false;\n                });\n               \n                \n                return false;\n            }\n            \n             var pal = Palete.factory(this.file.project.xtype);\n            \n            string[] opts;\n            var has_opts = pal.typeOptions(this.node.fqn(), kname, ktype, out opts);\n            \n            \n            \n            // others... - fill in options for true/false?\n            print(\"turn on editing %s \\n\" , mod.get_path(iter).to_string());\n           \n               print (ktype.up());\n            if (has_opts) {\n                    print(\"start editing try/false)???\");\n                    this.valrender.el.has_entry = false;\n                  \n                    this.valrender.setOptions(opts);\n                    \n                    this.valrender.el.has_entry = false;\n                    this.valrender.el.editable = true;\n                     this.allow_edit  = true;\n                     GLib.Timeout.add_full(GLib.Priority.DEFAULT,100 , () => {\n                         this.view.el.set_cursor_on_cell(\n                            path,\n                            this.valcol.el,\n                            this.valrender.el,\n                            true\n                        );\n                        return false;\n                    });\n                    return true;\n            }\n                                      \n               // see if type is a Enum.\n               \n               \n           \n                \n           \n             opts =  {  };\n            this.valrender.setOptions(opts);\n           \n           GLib.Timeout.add_full(GLib.Priority.DEFAULT,10 , () => {\n                \n                // at this point - work out the type...\n                // if its' a combo... then show the options..\n                this.valrender.el.has_entry = true;\n                \n                this.valrender.el.editable = true;            \n            \n                \n                this.allow_edit  = true;\n                \n                \n                \n                \n\n                this.view.el.set_cursor_on_cell(\n                    path,\n                    this.valcol.el,\n                    this.valrender.el,\n                    true\n                );\n                return false;\n            });\n            return false;\n        }\n",
          "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
          "items" : [
           {
+           "$ stock" : "Gtk.STOCK_ADD",
            "* pack" : "add",
            "xtype" : "Image",
-           "$ stock" : "Gtk.STOCK_ADD",
            "$ xns" : "Gtk",
            "$ icon_size" : "Gtk.IconSize.MENU"
           },
           {
            "label" : "Other",
-           "* pack" : "add",
            "xtype" : "Label",
+           "* pack" : "add",
            "$ xns" : "Gtk"
           }
          ]
         },
         {
          "id" : "AddPropertyPopup",
-         "* pack" : false,
          "xtype" : "Menu",
+         "* pack" : false,
          "$ xns" : "Gtk",
          "items" : [
           {
@@ -78,8 +78,8 @@
             "activate" : " ()  => {\n    _this.addProp( \"prop\", \"id\", \"\", \"\");\n}"
            },
            "label" : "id: _this.{ID} (Vala)",
-           "* pack" : "append",
            "xtype" : "MenuItem",
+           "* pack" : "append",
            "tooltip_markup" : "Using _this.{ID} will map to this element",
            "$ xns" : "Gtk"
           },
@@ -88,8 +88,8 @@
             "activate" : "  ( ) => {\n\n    _this.addProp( \"prop\", \"pack\",\"add\", \"*\");\n}"
            },
            "label" : "pack: Pack method (Vala)",
-           "xtype" : "MenuItem",
            "* pack" : "append",
+           "xtype" : "MenuItem",
            "tooltip_markup" : "how to pack this element onto parent, (method, 2nd arg, 3rd arg) .. the 1st argument is filled by the element",
            "$ xns" : "Gtk"
           },
@@ -98,8 +98,8 @@
             "activate" : "  ( ) => {\n\n    _this.addProp( \"prop\", \"ctor\",\"\", \"*\");\n}"
            },
            "label" : "ctor: Alterative to default contructor",
-           "* pack" : "append",
            "xtype" : "MenuItem",
+           "* pack" : "append",
            "tooltip_markup" : "eg. \n\nnew Clutter.Image.from_file(.....)",
            "$ xns" : "Gtk"
           },
             "activate" : "  ( ) => {\n\n    _this.addProp( \"prop\",  \"init\", \"{\\n\\n}\\n\", \"*\" );\n}"
            },
            "label" : "init: initialziation code (vala)",
-           "* pack" : "append",
            "xtype" : "MenuItem",
+           "* pack" : "append",
            "tooltip_markup" : "This code is called after the ctor",
            "$ xns" : "Gtk"
           },
             "activate" : "  (self) => {\n\n    _this.addProp( \"prop\", \"XXXX\", \"\",\"string\");\n\n}"
            },
            "label" : "String",
-           "* pack" : "append",
            "xtype" : "MenuItem",
+           "* pack" : "append",
            "tooltip_markup" : "Add a user defined string property",
            "$ xns" : "Gtk"
           },
             "activate" : "  ( ) =>{\n\n    _this.addProp(\"prop\",  \"XXX\", \"0\", \"int\");\n}"
            },
            "label" : "Number",
-           "* pack" : "append",
            "xtype" : "MenuItem",
+           "* pack" : "append",
            "tooltip_markup" : "Add a user defined number property",
            "$ xns" : "Gtk"
           },
             "activate" : "  ( ) =>{\n\n    _this.addProp( \"prop\", \"XXX\", \"true\", \"bool\");\n}"
            },
            "label" : "Boolean",
-           "* pack" : "append",
            "xtype" : "MenuItem",
+           "* pack" : "append",
            "tooltip_markup" : "Add a user defined boolean property",
            "$ xns" : "Gtk"
           },
             "activate" : "  ( ) =>{\n\n    _this.addProp(\"prop\",  \"XXXX\", \"function() { }\", \"| function\");\n}"
            },
            "label" : "Javascript Function",
-           "* pack" : "append",
            "xtype" : "MenuItem",
+           "* pack" : "append",
            "tooltip_markup" : "Add a user function boolean property",
            "$ xns" : "Gtk"
           },
             "activate" : "  ( ) =>{\n\n    _this.addProp( \"prop\", \"XXXX\", \"() {\\n\\n}\\n\", \"| return_type\");\n}"
            },
            "label" : "Vala Method",
-           "xtype" : "MenuItem",
            "* pack" : "append",
+           "xtype" : "MenuItem",
            "tooltip_markup" : "Add a user function boolean property",
            "$ xns" : "Gtk"
           },
             "activate" : "  ( ) =>{\n\n    _this.addProp( \"prop\", \"XXXX\", \"()\", \"@ void\");\n}"
            },
            "label" : "Vala Signal",
-           "* pack" : "append",
            "xtype" : "MenuItem",
+           "* pack" : "append",
            "tooltip_markup" : "Add a vala signal",
            "$ xns" : "Gtk"
           },
             "activate" : "  ( ) =>{\n\n    _this.addProp(\"prop\",  \"flexy:if\", \"value_or_condition\", \"string\");\n}"
            },
            "label" : "Flexy - If",
-           "* pack" : "append",
            "xtype" : "MenuItem",
+           "* pack" : "append",
            "tooltip_markup" : "Add a flexy if (for HTML templates)",
            "$ xns" : "Gtk"
           },
             "activate" : "  ( ) =>{\n\n    _this.addProp(\"prop\",  \"flexy:include\", \"name_of_file.html\", \"string\");\n}"
            },
            "label" : "Flexy - Include",
-           "xtype" : "MenuItem",
            "* pack" : "append",
+           "xtype" : "MenuItem",
            "tooltip_markup" : "Add a flexy include (for HTML templates)",
            "$ xns" : "Gtk"
           },
             "activate" : "  ( ) =>{\n\n    _this.addProp(\"prop\",  \"flexy:foreach\", \"array,key,value\", \"string\");\n}"
            },
            "label" : "Flexy - Foreach",
-           "xtype" : "MenuItem",
            "* pack" : "append",
+           "xtype" : "MenuItem",
            "tooltip_markup" : "Add a flexy foreach (for HTML templates)",
            "$ xns" : "Gtk"
           }
             "edited" : "  (path, newtext) => {\n        print(\"Keyrender  - signal:edited\\n\");\n    \n    this.el.editable = false;\n  \n \n\n        Gtk.TreeIter  iter;\n        _this.model.el.get_iter(out iter, new Gtk.TreePath.from_string(path));\n        GLib.Value gval;\n        \n         _this.model.el.get_value(iter,1, out gval);\n        var oldval = (string)gval;\n        \n         _this.model.el.get_value(iter,0, out gval);\n        var ktype = (string)gval;\n       \n        _this.model.el.set_value(iter, 1, newtext);\n        \n        if (oldval == newtext) {\n            return;\n        }\n        \n        \n        print(\"ktype: %s\\n\",ktype);\n        switch(ktype) {\n            case \"listener\":\n                var ov = _this.node.listeners.get(oldval);\n                _this.node.listeners.set(newtext, ov);\n                _this.node.listeners.unset(oldval);\n                \n                _this.updateIter(iter,  ktype, newtext, ov);\n                \n                break;\n            case \"props\":\n                var ov = _this.node.props.get(oldval);\n                _this.node.props.set(newtext, ov);\n                _this.node.props.unset(oldval);\n                _this.updateIter(iter,  ktype, newtext, ov);\n                break;\n         }\n         _this.changed();\n          \n}"
            },
            "id" : "keyrender",
-           "xtype" : "CellRendererText",
            "* pack" : "pack_start,false",
+           "xtype" : "CellRendererText",
            "$ xns" : "Gtk"
           }
          ]
             "edited" : "  (path, newtext) => {\n    print(\"Valrender  - signal:edited\\n\");\n  \n        this.el.editable = false;\n/*  \n m.set(iter, \n                0, \"listener\",\n                1, miter.get_key(),\n                2, \"<b>\" + miter.get_key() + \"</b>\",\n                3, miter.get_value(),\n                4, display_value(short);\n            ); \n\n  */      \n\n        Gtk.TreeIter  iter;\n        _this.model.el.get_iter(out iter, new Gtk.TreePath.from_string(path));\n        GLib.Value gval;\n        \n         _this.model.el.get_value(iter,0, out gval);\n        var ktype = (string)gval;\n        \n        \n         _this.model.el.get_value(iter,3, out gval);\n        var oldval = (string)gval;\n        \n         _this.model.el.get_value(iter,1, out gval);\n        var key = (string)gval;\n        \n         \n        \n        switch(ktype) {\n            case \"listener\":\n                _this.node.listeners.set(key, newtext);\n                _this.updateIter(iter,ktype,key,newtext);\n                break;\n            case \"props\":\n                _this.node.props.set(key,newtext);\n                _this.updateIter(iter,ktype, key,newtext);                \n                break;\n         }\n//         _this.load(_this.file,_this.node);\n         _this.changed();\n          \n}"
            },
            "id" : "valrender",
-           "* pack" : "pack_start,true",
            "xtype" : "CellRendererCombo",
+           "* pack" : "pack_start,true",
            "$ editable" : false,
            "$ has_entry" : true,
            "$ xns" : "Gtk",
            "items" : [
             {
              "id" : "valrendermodel",
-             "* pack" : false,
              "xtype" : "ListStore",
+             "* pack" : false,
              "$ columns" : "typeof(string)",
              "n_columns" : 1,
              "$ xns" : "Gtk",
         },
         {
          "id" : "ContextMenu",
-         "xtype" : "Menu",
          "* pack" : false,
+         "xtype" : "Menu",
          "$ xns" : "Gtk",
          "items" : [
           {
             "activate" : "  ( )  =>{\n  \n    var s = _this.view.el.get_selection();\n    Gtk.TreeIter iter;\n    Gtk.TreeModel model;\n    s.get_selected (out  model, out  iter);\n    _this.startEditingKey(model.get_path(iter));\n}"
            },
            "label" : "Edit",
-           "xtype" : "MenuItem",
            "* pack" : "append",
+           "xtype" : "MenuItem",
            "$ xns" : "Gtk"
           },
           {
             "activate" : "  ( )  =>{\n\t_this.deleteSelected();\n}"
            },
            "label" : "Delete",
-           "xtype" : "MenuItem",
            "* pack" : "append",
+           "xtype" : "MenuItem",
            "$ xns" : "Gtk"
           }
          ]
index 439316c..9b7f113 100644 (file)
@@ -1,6 +1,6 @@
 static Xcls_LeftProps  _LeftProps;
 
-public class Xcls_LeftProps : Object 
+public class Xcls_LeftProps : Object
 {
     public Gtk.Box el;
     private Xcls_LeftProps  _this;
@@ -33,7 +33,7 @@ public class Xcls_LeftProps : Object
     public Xcls_MainWindow main_window;
     public JsRender.Node node;
 
-    // ctor 
+    // ctor
     public Xcls_LeftProps()
     {
         _this = this;
@@ -53,7 +53,7 @@ public class Xcls_LeftProps : Object
         this.el.pack_end (  child_1.el , true,true,0 );
     }
 
-    // user defined functions 
+    // user defined functions
     public              void before_edit ()
     {
     
@@ -542,7 +542,7 @@ public class Xcls_LeftProps : Object
                  6,  this.keySortFormat(key)
             ); 
     }
-    public class Xcls_Box2 : Object 
+    public class Xcls_Box2 : Object
     {
         public Gtk.Box el;
         private Xcls_LeftProps  _this;
@@ -550,7 +550,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Box2(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -564,9 +564,9 @@ public class Xcls_LeftProps : Object
             this.el.add (  child_0.el  );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button3 : Object 
+    public class Xcls_Button3 : Object
     {
         public Gtk.Button el;
         private Xcls_LeftProps  _this;
@@ -574,7 +574,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button3(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -589,7 +589,7 @@ public class Xcls_LeftProps : Object
             var child_1 = new Xcls_AddPropertyPopup( _this );
             child_1.ref();
 
-            // listeners 
+            //listeners
             this.el.button_press_event.connect( (self, ev) => {
                 _this.before_edit();
                 
@@ -602,9 +602,9 @@ public class Xcls_LeftProps : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Box4 : Object 
+    public class Xcls_Box4 : Object
     {
         public Gtk.Box el;
         private Xcls_LeftProps  _this;
@@ -612,7 +612,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Box4(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -629,9 +629,9 @@ public class Xcls_LeftProps : Object
             this.el.add (  child_1.el  );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Image5 : Object 
+    public class Xcls_Image5 : Object
     {
         public Gtk.Image el;
         private Xcls_LeftProps  _this;
@@ -639,7 +639,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Image5(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -652,9 +652,10 @@ public class Xcls_LeftProps : Object
             this.el.icon_size = Gtk.IconSize.MENU;
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Label6 : Object 
+
+    public class Xcls_Label6 : Object
     {
         public Gtk.Label el;
         private Xcls_LeftProps  _this;
@@ -662,7 +663,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Label6(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -673,9 +674,11 @@ public class Xcls_LeftProps : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_AddPropertyPopup : Object 
+
+
+    public class Xcls_AddPropertyPopup : Object
     {
         public Gtk.Menu el;
         private Xcls_LeftProps  _this;
@@ -683,7 +686,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_AddPropertyPopup(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -743,9 +746,9 @@ public class Xcls_LeftProps : Object
             this.el.append (  child_15.el  );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem8 : Object 
+    public class Xcls_MenuItem8 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -753,7 +756,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem8(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -765,15 +768,16 @@ public class Xcls_LeftProps : Object
             this.el.tooltip_markup = "Using _this.{ID} will map to this element";
             this.el.label = "id: _this.{ID} (Vala)";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ()  => {
                 _this.addProp( "prop", "id", "", "");
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem9 : Object 
+
+    public class Xcls_MenuItem9 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -781,7 +785,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem9(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -793,16 +797,17 @@ public class Xcls_LeftProps : Object
             this.el.tooltip_markup = "how to pack this element onto parent, (method, 2nd arg, 3rd arg) .. the 1st argument is filled by the element";
             this.el.label = "pack: Pack method (Vala)";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( ) => {
             
                 _this.addProp( "prop", "pack","add", "*");
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem10 : Object 
+
+    public class Xcls_MenuItem10 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -810,7 +815,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem10(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -822,16 +827,17 @@ public class Xcls_LeftProps : Object
             this.el.tooltip_markup = "eg. \n\nnew Clutter.Image.from_file(.....)";
             this.el.label = "ctor: Alterative to default contructor";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( ) => {
             
                 _this.addProp( "prop", "ctor","", "*");
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem11 : Object 
+
+    public class Xcls_MenuItem11 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -839,7 +845,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem11(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -851,16 +857,17 @@ public class Xcls_LeftProps : Object
             this.el.tooltip_markup = "This code is called after the ctor";
             this.el.label = "init: initialziation code (vala)";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( ) => {
             
                 _this.addProp( "prop",  "init", "{\n\n}\n", "*" );
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_SeparatorMenuItem12 : Object 
+
+    public class Xcls_SeparatorMenuItem12 : Object
     {
         public Gtk.SeparatorMenuItem el;
         private Xcls_LeftProps  _this;
@@ -868,7 +875,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_SeparatorMenuItem12(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -879,9 +886,10 @@ public class Xcls_LeftProps : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem13 : Object 
+
+    public class Xcls_MenuItem13 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -889,7 +897,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem13(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -901,7 +909,7 @@ public class Xcls_LeftProps : Object
             this.el.tooltip_markup = "Add a user defined string property";
             this.el.label = "String";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( (self) => {
             
                 _this.addProp( "prop", "XXXX", "","string");
@@ -909,9 +917,10 @@ public class Xcls_LeftProps : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem14 : Object 
+
+    public class Xcls_MenuItem14 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -919,7 +928,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem14(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -931,16 +940,17 @@ public class Xcls_LeftProps : Object
             this.el.tooltip_markup = "Add a user defined number property";
             this.el.label = "Number";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( ) =>{
             
                 _this.addProp("prop",  "XXX", "0", "int");
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem15 : Object 
+
+    public class Xcls_MenuItem15 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -948,7 +958,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem15(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -960,16 +970,17 @@ public class Xcls_LeftProps : Object
             this.el.tooltip_markup = "Add a user defined boolean property";
             this.el.label = "Boolean";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( ) =>{
             
                 _this.addProp( "prop", "XXX", "true", "bool");
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_SeparatorMenuItem16 : Object 
+
+    public class Xcls_SeparatorMenuItem16 : Object
     {
         public Gtk.SeparatorMenuItem el;
         private Xcls_LeftProps  _this;
@@ -977,7 +988,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_SeparatorMenuItem16(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -988,9 +999,10 @@ public class Xcls_LeftProps : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem17 : Object 
+
+    public class Xcls_MenuItem17 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -998,7 +1010,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem17(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1010,16 +1022,17 @@ public class Xcls_LeftProps : Object
             this.el.tooltip_markup = "Add a user function boolean property";
             this.el.label = "Javascript Function";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( ) =>{
             
                 _this.addProp("prop",  "XXXX", "function() { }", "| function");
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem18 : Object 
+
+    public class Xcls_MenuItem18 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -1027,7 +1040,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem18(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1039,16 +1052,17 @@ public class Xcls_LeftProps : Object
             this.el.tooltip_markup = "Add a user function boolean property";
             this.el.label = "Vala Method";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( ) =>{
             
                 _this.addProp( "prop", "XXXX", "() {\n\n}\n", "| return_type");
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem19 : Object 
+
+    public class Xcls_MenuItem19 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -1056,7 +1070,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem19(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1068,16 +1082,17 @@ public class Xcls_LeftProps : Object
             this.el.tooltip_markup = "Add a vala signal";
             this.el.label = "Vala Signal";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( ) =>{
             
                 _this.addProp( "prop", "XXXX", "()", "@ void");
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_SeparatorMenuItem20 : Object 
+
+    public class Xcls_SeparatorMenuItem20 : Object
     {
         public Gtk.SeparatorMenuItem el;
         private Xcls_LeftProps  _this;
@@ -1085,7 +1100,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_SeparatorMenuItem20(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1096,9 +1111,10 @@ public class Xcls_LeftProps : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem21 : Object 
+
+    public class Xcls_MenuItem21 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -1106,7 +1122,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem21(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1118,16 +1134,17 @@ public class Xcls_LeftProps : Object
             this.el.tooltip_markup = "Add a flexy if (for HTML templates)";
             this.el.label = "Flexy - If";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( ) =>{
             
                 _this.addProp("prop",  "flexy:if", "value_or_condition", "string");
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem22 : Object 
+
+    public class Xcls_MenuItem22 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -1135,7 +1152,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem22(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1147,16 +1164,17 @@ public class Xcls_LeftProps : Object
             this.el.tooltip_markup = "Add a flexy include (for HTML templates)";
             this.el.label = "Flexy - Include";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( ) =>{
             
                 _this.addProp("prop",  "flexy:include", "name_of_file.html", "string");
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem23 : Object 
+
+    public class Xcls_MenuItem23 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -1164,7 +1182,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem23(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1176,16 +1194,20 @@ public class Xcls_LeftProps : Object
             this.el.tooltip_markup = "Add a flexy foreach (for HTML templates)";
             this.el.label = "Flexy - Foreach";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( ) =>{
             
                 _this.addProp("prop",  "flexy:foreach", "array,key,value", "string");
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_EditProps : Object 
+
+
+
+
+    public class Xcls_EditProps : Object
     {
         public Gtk.ScrolledWindow el;
         private Xcls_LeftProps  _this;
@@ -1194,7 +1216,7 @@ public class Xcls_LeftProps : Object
             // my vars (def)
         public bool editing;
 
-        // ctor 
+        // ctor
         public Xcls_EditProps(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1210,7 +1232,7 @@ public class Xcls_LeftProps : Object
             child_0.ref();
             this.el.add (  child_0.el  );
 
-            // init method 
+            // init method
 
             {
               
@@ -1218,9 +1240,9 @@ public class Xcls_LeftProps : Object
             }
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_view : Object 
+    public class Xcls_view : Object
     {
         public Gtk.TreeView el;
         private Xcls_LeftProps  _this;
@@ -1228,7 +1250,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_view(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1253,7 +1275,7 @@ public class Xcls_LeftProps : Object
             var child_3 = new Xcls_ContextMenu( _this );
             child_3.ref();
 
-            // init method 
+            // init method
 
             {
                 var selection = this.el.get_selection();
@@ -1265,7 +1287,7 @@ public class Xcls_LeftProps : Object
                 this.el.override_font(description);
             }
 
-            // listeners 
+            //listeners
             this.el.button_press_event.connect( ( ev)  => {
              
                 Gtk.TreeViewColumn col;
@@ -1366,9 +1388,9 @@ public class Xcls_LeftProps : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_model : Object 
+    public class Xcls_model : Object
     {
         public Gtk.TreeStore el;
         private Xcls_LeftProps  _this;
@@ -1376,7 +1398,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_model(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1395,9 +1417,10 @@ public class Xcls_LeftProps : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_keycol : Object 
+
+    public class Xcls_keycol : Object
     {
         public Gtk.TreeViewColumn el;
         private Xcls_LeftProps  _this;
@@ -1405,7 +1428,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_keycol(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1421,15 +1444,15 @@ public class Xcls_LeftProps : Object
             child_0.ref();
             this.el.pack_start (  child_0.el , false );
 
-            // init method 
+            // init method
 
             this.el.add_attribute(_this.keyrender.el , "markup", 2 );
              this.el.add_attribute(_this.keyrender.el , "text", 1 );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_keyrender : Object 
+    public class Xcls_keyrender : Object
     {
         public Gtk.CellRendererText el;
         private Xcls_LeftProps  _this;
@@ -1437,7 +1460,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_keyrender(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1448,7 +1471,7 @@ public class Xcls_LeftProps : Object
 
             // set gobject values
 
-            // listeners 
+            //listeners
             this.el.editing_started.connect( (  editable, path) => {
             
                  Gtk.TreeIter  iter;
@@ -1509,9 +1532,11 @@ public class Xcls_LeftProps : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_valcol : Object 
+
+
+    public class Xcls_valcol : Object
     {
         public Gtk.TreeViewColumn el;
         private Xcls_LeftProps  _this;
@@ -1519,7 +1544,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_valcol(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1535,7 +1560,7 @@ public class Xcls_LeftProps : Object
             child_0.ref();
             this.el.pack_start (  child_0.el , true );
 
-            // init method 
+            // init method
 
             {
                
@@ -1555,9 +1580,9 @@ public class Xcls_LeftProps : Object
             }
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_valrender : Object 
+    public class Xcls_valrender : Object
     {
         public Gtk.CellRendererCombo el;
         private Xcls_LeftProps  _this;
@@ -1565,7 +1590,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_valrender(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1582,7 +1607,7 @@ public class Xcls_LeftProps : Object
             child_0.ref();
             this.el.model = child_0.el;
 
-            // listeners 
+            //listeners
             this.el.editing_started.connect( ( editable, path) => {
                 //_this.editing = true;
                 print("editing started called\n");
@@ -1664,7 +1689,7 @@ public class Xcls_LeftProps : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
         public              void setOptions (string[] ar) {
               var m = _this.valrendermodel.el;
                 m.clear();
@@ -1676,7 +1701,7 @@ public class Xcls_LeftProps : Object
         
         }
     }
-    public class Xcls_valrendermodel : Object 
+    public class Xcls_valrendermodel : Object
     {
         public Gtk.ListStore el;
         private Xcls_LeftProps  _this;
@@ -1684,7 +1709,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_valrendermodel(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1696,9 +1721,12 @@ public class Xcls_LeftProps : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_ContextMenu : Object 
+
+
+
+    public class Xcls_ContextMenu : Object
     {
         public Gtk.Menu el;
         private Xcls_LeftProps  _this;
@@ -1706,7 +1734,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_ContextMenu(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1727,9 +1755,9 @@ public class Xcls_LeftProps : Object
             this.el.append (  child_2.el  );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem33 : Object 
+    public class Xcls_MenuItem33 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -1737,7 +1765,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem33(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1748,7 +1776,7 @@ public class Xcls_LeftProps : Object
             // set gobject values
             this.el.label = "Edit";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( )  =>{
               
                 var s = _this.view.el.get_selection();
@@ -1759,9 +1787,10 @@ public class Xcls_LeftProps : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_SeparatorMenuItem34 : Object 
+
+    public class Xcls_SeparatorMenuItem34 : Object
     {
         public Gtk.SeparatorMenuItem el;
         private Xcls_LeftProps  _this;
@@ -1769,7 +1798,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_SeparatorMenuItem34(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1780,9 +1809,10 @@ public class Xcls_LeftProps : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem35 : Object 
+
+    public class Xcls_MenuItem35 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_LeftProps  _this;
@@ -1790,7 +1820,7 @@ public class Xcls_LeftProps : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem35(Xcls_LeftProps _owner )
         {
             _this = _owner;
@@ -1801,12 +1831,16 @@ public class Xcls_LeftProps : Object
             // set gobject values
             this.el.label = "Delete";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( )  =>{
                _this.deleteSelected();
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
+
+
+
+
 }