src/Builder4/EditProject.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 21 May 2015 05:53:31 +0000 (13:53 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 May 2015 05:53:31 +0000 (13:53 +0800)
src/Builder4/EditProject.vala
src/Builder4/DialogSaveModule.bjs
src/Builder4/DialogSaveModule.vala

src/Builder4/DialogSaveModule.bjs
src/Builder4/DialogSaveModule.vala
src/Builder4/EditProject.bjs

index ec71f65..ec32110 100644 (file)
      "items" : [
       {
        "label" : "Name",
-       "xtype" : "Label",
        "* pack" : "add",
+       "xtype" : "Label",
        "$ xns" : "Gtk"
       },
       {
        "id" : "name",
-       "xtype" : "Entry",
        "* pack" : "add",
+       "xtype" : "Entry",
        "$ xns" : "Gtk"
       }
      ]
     },
     {
      "label" : "Cancel",
-     "xtype" : "Button",
      "* pack" : "add_action_widget,0",
+     "xtype" : "Button",
      "$ xns" : "Gtk"
     },
     {
      "label" : "OK",
-     "xtype" : "Button",
      "* pack" : "add_action_widget,1",
+     "xtype" : "Button",
      "$ xns" : "Gtk"
     }
    ]
index 0c84456..84c2f08 100644 (file)
@@ -1,6 +1,6 @@
 static DialogSaveModule  _DialogSaveModule;
 
-public class DialogSaveModule : Object 
+public class DialogSaveModule : Object
 {
     public Gtk.Dialog el;
     private DialogSaveModule  _this;
@@ -18,7 +18,7 @@ public class DialogSaveModule : Object
     public Project.Project project;
     public JsRender.Node data;
 
-    // ctor 
+    // ctor
     public DialogSaveModule()
     {
         _this = this;
@@ -40,14 +40,14 @@ public class DialogSaveModule : Object
         child_2.ref();
         this.el.add_action_widget (  child_2.el , 1 );
 
-        // listeners 
+        //listeners
         this.el.delete_event.connect( (self, event) => {
             this.el.response(Gtk.ResponseType.CANCEL);
             return true;
         });
     }
 
-    // user defined functions 
+    // user defined functions
     public   string show (Gtk.Window parent, Project.Project project, JsRender.Node data) {
      
          
@@ -96,7 +96,7 @@ public class DialogSaveModule : Object
         
         
     }
-    public class Xcls_Box2 : Object 
+    public class Xcls_Box2 : Object
     {
         public Gtk.Box el;
         private DialogSaveModule  _this;
@@ -104,7 +104,7 @@ public class DialogSaveModule : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Box2(DialogSaveModule _owner )
         {
             _this = _owner;
@@ -121,9 +121,9 @@ public class DialogSaveModule : Object
             this.el.add (  child_1.el  );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Label3 : Object 
+    public class Xcls_Label3 : Object
     {
         public Gtk.Label el;
         private DialogSaveModule  _this;
@@ -131,7 +131,7 @@ public class DialogSaveModule : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Label3(DialogSaveModule _owner )
         {
             _this = _owner;
@@ -142,9 +142,10 @@ public class DialogSaveModule : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_name : Object 
+
+    public class Xcls_name : Object
     {
         public Gtk.Entry el;
         private DialogSaveModule  _this;
@@ -152,7 +153,7 @@ public class DialogSaveModule : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_name(DialogSaveModule _owner )
         {
             _this = _owner;
@@ -164,9 +165,11 @@ public class DialogSaveModule : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button5 : Object 
+
+
+    public class Xcls_Button5 : Object
     {
         public Gtk.Button el;
         private DialogSaveModule  _this;
@@ -174,7 +177,7 @@ public class DialogSaveModule : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button5(DialogSaveModule _owner )
         {
             _this = _owner;
@@ -186,9 +189,10 @@ public class DialogSaveModule : Object
             this.el.label = "Cancel";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button6 : Object 
+
+    public class Xcls_Button6 : Object
     {
         public Gtk.Button el;
         private DialogSaveModule  _this;
@@ -196,7 +200,7 @@ public class DialogSaveModule : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button6(DialogSaveModule _owner )
         {
             _this = _owner;
@@ -208,6 +212,7 @@ public class DialogSaveModule : Object
             this.el.label = "OK";
         }
 
-        // user defined functions 
+        // user defined functions
     }
+
 }
index fc655fa..00f8be5 100644 (file)
@@ -38,8 +38,8 @@
        "items" : [
         {
          "label" : "Project type :",
-         "* pack" : "pack_start,false,true,3",
          "xtype" : "Label",
+         "* pack" : "pack_start,false,true,3",
          "$ xns" : "Gtk"
         },
         {
          "items" : [
           {
            "id" : "cellrender",
-           "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",
     },
     {
      "label" : "OK",
-     "xtype" : "Button",
      "* pack" : "add_action_widget,1",
+     "xtype" : "Button",
      "$ xns" : "Gtk"
     },
     {
      "label" : "Cancel",
-     "* pack" : "add_action_widget,0",
      "xtype" : "Button",
+     "* pack" : "add_action_widget,0",
      "$ xns" : "Gtk"
     }
    ]