src/Builder4/DialogTemplateSelect.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 20 May 2015 08:48:50 +0000 (16:48 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 May 2015 08:48:50 +0000 (16:48 +0800)
src/Builder4/DialogTemplateSelect.vala

src/Builder4/DialogTemplateSelect.bjs
src/Builder4/DialogTemplateSelect.vala

index 6b18ba2..6ea5960 100644 (file)
@@ -12,8 +12,8 @@
     "delete_event" : "  (self, event)  =>{\n    this.el.hide();\n    return true;\n} "
    },
    "default_width" : 400,
-   "title" : "Add an Object",
    "xtype" : "Dialog",
+   "title" : "Add an Object",
    "default_height" : 200,
    "$ modal" : true,
    "$ xns" : "Gtk",
      "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
      "items" : [
       {
+       "xtype" : "Box",
        "gint margin" : 3,
        "* pack" : "pack_start,false,false,0",
-       "xtype" : "Box",
        "$ xns" : "Gtk",
        "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
        "items" : [
         {
          "label" : "Select Template : ",
-         "xtype" : "Label",
          "* pack" : "pack_start,false,false",
+         "xtype" : "Label",
          "$ xns" : "Gtk"
         },
         {
          "items" : [
           {
            "id" : "cellrenderer",
-           "xtype" : "CellRendererText",
            "* pack" : "pack_start,true",
+           "xtype" : "CellRendererText",
            "$ xns" : "Gtk"
           },
           {
            "id" : "model",
-           "* pack" : "set_model",
            "xtype" : "ListStore",
+           "* pack" : "set_model",
            "$ columns" : "typeof(string),typeof(string)",
            "n_columns" : 2,
            "$ xns" : "Gtk",
        ]
       },
       {
+       "xtype" : "Box",
        "gint margin" : 3,
        "* pack" : "pack_start,false,false,0",
-       "xtype" : "Box",
        "$ xns" : "Gtk",
        "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
        "items" : [
         {
          "label" : "Select Database Table : ",
-         "xtype" : "Label",
          "* pack" : "pack_start,false,false",
+         "xtype" : "Label",
          "$ xns" : "Gtk"
         },
         {
          "items" : [
           {
            "id" : "dbcellrenderer",
-           "xtype" : "CellRendererText",
            "* pack" : "pack_start,true",
+           "xtype" : "CellRendererText",
            "$ xns" : "Gtk"
           },
           {
            "id" : "dbmodel",
-           "* pack" : "set_model",
            "xtype" : "ListStore",
+           "* pack" : "set_model",
            "$ columns" : "typeof(string),typeof(string)",
            "n_columns" : 2,
            "$ xns" : "Gtk",
     },
     {
      "label" : "Cancel",
-     "xtype" : "Button",
      "* pack" : "add_action_widget,0",
+     "xtype" : "Button",
      "$ xns" : "Gtk"
     },
     {
      "label" : "Just add it",
-     "* pack" : "add_action_widget,1",
      "xtype" : "Button",
+     "* pack" : "add_action_widget,1",
      "$ xns" : "Gtk"
     },
     {
      "label" : "OK",
-     "xtype" : "Button",
      "* pack" : "add_action_widget,2",
+     "xtype" : "Button",
      "$ xns" : "Gtk"
     }
    ]
index a314e50..14a5ed9 100644 (file)
@@ -1,6 +1,6 @@
 static DialogTemplateSelect  _DialogTemplateSelect;
 
-public class DialogTemplateSelect : Object 
+public class DialogTemplateSelect : Object
 {
     public Gtk.Dialog el;
     private DialogTemplateSelect  _this;
@@ -21,7 +21,7 @@ public class DialogTemplateSelect : Object
 
         // my vars (def)
 
-    // ctor 
+    // ctor
     public DialogTemplateSelect()
     {
         _this = this;
@@ -47,14 +47,14 @@ public class DialogTemplateSelect : Object
         child_3.ref();
         this.el.add_action_widget (  child_3.el , 2 );
 
-        // listeners 
+        //listeners
         this.el.delete_event.connect( (self, event)  =>{
             this.el.hide();
             return true;
         });
     }
 
-    // user defined functions 
+    // user defined functions
     public JsRender.Node? show (Xcls_MainWindow mwindow, Palete.Palete pal, JsRender.Node node, Project.Project project) {
         
         this.el.show_all();
@@ -131,7 +131,7 @@ public class DialogTemplateSelect : Object
         return pal.loadTemplate((string)vfname);
     
     }
-    public class Xcls_Box2 : Object 
+    public class Xcls_Box2 : Object
     {
         public Gtk.Box el;
         private DialogTemplateSelect  _this;
@@ -139,7 +139,7 @@ public class DialogTemplateSelect : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Box2(DialogTemplateSelect _owner )
         {
             _this = _owner;
@@ -156,9 +156,9 @@ public class DialogTemplateSelect : Object
             this.el.pack_start (  child_1.el , false,false,0 );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Box3 : Object 
+    public class Xcls_Box3 : Object
     {
         public Gtk.Box el;
         private DialogTemplateSelect  _this;
@@ -166,7 +166,7 @@ public class DialogTemplateSelect : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Box3(DialogTemplateSelect _owner )
         {
             _this = _owner;
@@ -184,9 +184,9 @@ public class DialogTemplateSelect : Object
             this.el.add (  child_1.el  );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Label4 : Object 
+    public class Xcls_Label4 : Object
     {
         public Gtk.Label el;
         private DialogTemplateSelect  _this;
@@ -194,7 +194,7 @@ public class DialogTemplateSelect : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Label4(DialogTemplateSelect _owner )
         {
             _this = _owner;
@@ -205,9 +205,10 @@ public class DialogTemplateSelect : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_combo : Object 
+
+    public class Xcls_combo : Object
     {
         public Gtk.ComboBox el;
         private DialogTemplateSelect  _this;
@@ -215,7 +216,7 @@ public class DialogTemplateSelect : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_combo(DialogTemplateSelect _owner )
         {
             _this = _owner;
@@ -232,14 +233,14 @@ public class DialogTemplateSelect : Object
             child_1.ref();
             this.el.set_model (  child_1.el  );
 
-            // init method 
+            // init method
 
             this.el.add_attribute(_this.cellrenderer.el , "markup", 1 );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_cellrenderer : Object 
+    public class Xcls_cellrenderer : Object
     {
         public Gtk.CellRendererText el;
         private DialogTemplateSelect  _this;
@@ -247,7 +248,7 @@ public class DialogTemplateSelect : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_cellrenderer(DialogTemplateSelect _owner )
         {
             _this = _owner;
@@ -259,9 +260,10 @@ public class DialogTemplateSelect : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_model : Object 
+
+    public class Xcls_model : Object
     {
         public Gtk.ListStore el;
         private DialogTemplateSelect  _this;
@@ -269,7 +271,7 @@ public class DialogTemplateSelect : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_model(DialogTemplateSelect _owner )
         {
             _this = _owner;
@@ -281,7 +283,7 @@ public class DialogTemplateSelect : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
         public void loadData (GLib.List<string> data) {
             this.el.clear();                                    
             Gtk.TreeIter iter;
@@ -309,7 +311,10 @@ public class DialogTemplateSelect : Object
                                              
         }
     }
-    public class Xcls_Box8 : Object 
+
+
+
+    public class Xcls_Box8 : Object
     {
         public Gtk.Box el;
         private DialogTemplateSelect  _this;
@@ -317,7 +322,7 @@ public class DialogTemplateSelect : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Box8(DialogTemplateSelect _owner )
         {
             _this = _owner;
@@ -335,9 +340,9 @@ public class DialogTemplateSelect : Object
             this.el.add (  child_1.el  );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Label9 : Object 
+    public class Xcls_Label9 : Object
     {
         public Gtk.Label el;
         private DialogTemplateSelect  _this;
@@ -345,7 +350,7 @@ public class DialogTemplateSelect : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Label9(DialogTemplateSelect _owner )
         {
             _this = _owner;
@@ -356,9 +361,10 @@ public class DialogTemplateSelect : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_dbcombo : Object 
+
+    public class Xcls_dbcombo : Object
     {
         public Gtk.ComboBox el;
         private DialogTemplateSelect  _this;
@@ -366,7 +372,7 @@ public class DialogTemplateSelect : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_dbcombo(DialogTemplateSelect _owner )
         {
             _this = _owner;
@@ -383,14 +389,14 @@ public class DialogTemplateSelect : Object
             child_1.ref();
             this.el.set_model (  child_1.el  );
 
-            // init method 
+            // init method
 
             this.el.add_attribute(_this.dbcellrenderer.el , "markup", 1 );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_dbcellrenderer : Object 
+    public class Xcls_dbcellrenderer : Object
     {
         public Gtk.CellRendererText el;
         private DialogTemplateSelect  _this;
@@ -398,7 +404,7 @@ public class DialogTemplateSelect : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_dbcellrenderer(DialogTemplateSelect _owner )
         {
             _this = _owner;
@@ -410,9 +416,10 @@ public class DialogTemplateSelect : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_dbmodel : Object 
+
+    public class Xcls_dbmodel : Object
     {
         public Gtk.ListStore el;
         private DialogTemplateSelect  _this;
@@ -420,7 +427,7 @@ public class DialogTemplateSelect : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_dbmodel(DialogTemplateSelect _owner )
         {
             _this = _owner;
@@ -432,7 +439,7 @@ public class DialogTemplateSelect : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
         public void loadData (Gee.ArrayList<string> data) {
             this.el.clear();                                    
             Gtk.TreeIter iter;
@@ -464,7 +471,11 @@ public class DialogTemplateSelect : Object
                                              
         }
     }
-    public class Xcls_Button13 : Object 
+
+
+
+
+    public class Xcls_Button13 : Object
     {
         public Gtk.Button el;
         private DialogTemplateSelect  _this;
@@ -472,7 +483,7 @@ public class DialogTemplateSelect : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button13(DialogTemplateSelect _owner )
         {
             _this = _owner;
@@ -484,9 +495,10 @@ public class DialogTemplateSelect : Object
             this.el.label = "Cancel";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button14 : Object 
+
+    public class Xcls_Button14 : Object
     {
         public Gtk.Button el;
         private DialogTemplateSelect  _this;
@@ -494,7 +506,7 @@ public class DialogTemplateSelect : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button14(DialogTemplateSelect _owner )
         {
             _this = _owner;
@@ -506,9 +518,10 @@ public class DialogTemplateSelect : Object
             this.el.label = "Just add it";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button15 : Object 
+
+    public class Xcls_Button15 : Object
     {
         public Gtk.Button el;
         private DialogTemplateSelect  _this;
@@ -516,7 +529,7 @@ public class DialogTemplateSelect : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button15(DialogTemplateSelect _owner )
         {
             _this = _owner;
@@ -528,6 +541,7 @@ public class DialogTemplateSelect : Object
             this.el.label = "OK";
         }
 
-        // user defined functions 
+        // user defined functions
     }
+
 }