src/Builder4/About.vala.c
authorAlan Knowles <alan@roojs.com>
Fri, 19 Jun 2015 06:23:56 +0000 (14:23 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 19 Jun 2015 06:23:56 +0000 (14:23 +0800)
src/Builder4/ClutterFiles.vala.c
src/Builder4/DialogConfirm.vala.c
src/Builder4/DialogPluginWebkit.vala.c
src/Builder4/DialogSaveModule.vala.c
src/Builder4/DialogSaveTemplate.vala.c
src/Builder4/DialogTemplateSelect.vala.c
src/Builder4/Editor.vala.c
src/Builder4/EditProject.vala.c
src/Builder4/FakeServer.vala.c
src/Builder4/GtkView.vala.c
src/Builder4/MainWindow.vala.c
src/Builder4/ProjectSettings.vala.c
src/Builder4/RooProjectProperties.vala.c
src/Builder4/StandardErrorDialog.vala.c
src/Builder4/ValaProjectSettings.vala.c
src/Builder4/WindowAddProp.vala.c
src/Builder4/WindowLeftProjects.vala.c
src/Builder4/WindowLeftProps.vala.c
src/Builder4/WindowLeftTree.vala.c
src/Builder4/WindowRightPalete.vala.c
src/Builder4/WindowRooView.vala.c
src/Builder4/WindowState.vala.c
src/Builder4/PopoverFileDetails.vala.c
src/Builder4/ValaCompileErrors.vala.c
src/Builder4/ValaCompileResults.vala.c
src/Builder4/PopoverProperty.vala.c
src/JsRender/Gtk.vala.c
src/JsRender/JsRender.vala.c
src/JsRender/Lang.vala.c
src/JsRender/NodeToGlade.vala.c
src/JsRender/NodeToGtk.vala.c
src/JsRender/NodeToJs.vala.c
src/JsRender/NodeToVala.vala.c
src/JsRender/Node.vala.c
src/JsRender/Roo.vala.c
src/JsRender/PlainFile.vala.c
src/Palete/Gir.vala.c
src/Palete/Gtk.vala.c
src/Palete/Javascript.vala.c
src/Palete/Palete.vala.c
src/Palete/RooDatabase.vala.c
src/Palete/Roo.vala.c
src/Palete/ValaSource.vala.c
src/Palete/GirObject.vala.c
src/Palete/VapiParser.vala.c
src/Palete/ValaSourceCompiler.vala.c
src/Palete/CompletionProvider.vala.c
src/Project/Gtk.vala.c
src/Project/Project.vala.c
src/Project/Roo.vala.c
src/Application.vala.c
src/Main.vala.c
src/Resources.vala.c
src/Spawn.vala.c

src/JsRender/Gtk.vala

index 13aaea9..0aec518 100644 (file)
@@ -11,55 +11,55 @@ namespace JsRender {
 
 
  
-    int gid = 1;
+       int gid = 1;
 
   
-    public  class Gtk : JsRender
-    {
-       
+       public  class Gtk : JsRender
+       {
+          
 
-        public Gtk(Project.Project project, string path) {
-        
-            base( project, path);
-            this.xtype = "Gtk";
-            this.language = "vala";
-            
-            
-            //this.items = false;
-            //if (cfg.json) {
-            //    var jstr =  JSON.parse(cfg.json);
-            //    this.items = [ jstr ];
-            //    //console.log(cfg.items.length);
-            //    delete cfg.json; // not needed!
-            // }
-             
-            
-            
-            // super?!?!
-            this.id = "file-gtk-%d".printf(gid++);
-            //console.dump(this);
-            // various loader methods..
+           public Gtk(Project.Project project, string path) {
+           
+               base( project, path);
+               this.xtype = "Gtk";
+               this.language = "vala";
+               
+               
+               //this.items = false;
+               //if (cfg.json) {
+               //    var jstr =  JSON.parse(cfg.json);
+               //    this.items = [ jstr ];
+               //    //console.log(cfg.items.length);
+               //    delete cfg.json; // not needed!
+               // }
+                
+               
+               
+               // super?!?!
+               this.id = "file-gtk-%d".printf(gid++);
+               //console.dump(this);
+               // various loader methods..
 
-            // Class = list of arguments ... and which property to use as a value.
-       
+               // Class = list of arguments ... and which property to use as a value.
+          
 
-            
-            
-        }
-          
+               
+               
+           }
+             
 
-        /*
-        setNSID : function(id)
-        {
-            
-            this.items[0]['*class'] = id;
-            
-            
-        },
-        getType: function() {
-            return 'Gtk';
-        },
-        */
+           /*
+           setNSID : function(id)
+           {
+               
+               this.items[0]['*class'] = id;
+               
+               
+           },
+           getType: function() {
+               return 'Gtk';
+           },
+           */
 
                public   override void   removeFiles() {
                        var js = GLib.Path.get_dirname(this.path) +"/" +  name + ".js";
@@ -71,14 +71,14 @@ namespace JsRender {
                                GLib.FileUtils.remove(vala);
                        }
                }
-        
+           
                public   override void  loadItems() throws GLib.Error // : function(cb, sync) == original was async.
                {
                  
                        print("load Items!\n");
                        if (this.tree != null) {
                                this.loaded = true;
-                               
+                       
                                return;
                        }
                        /*
@@ -94,16 +94,16 @@ namespace JsRender {
                        var pa = new Json.Parser();
                        pa.load_from_file(this.path);
                        var node = pa.get_root();
-                       
+               
                        if (node.get_node_type () != Json.NodeType.OBJECT) {
-                           throw new Error.INVALID_FORMAT ("Unexpected element type %s", node.type_name ());
+                               throw new Error.INVALID_FORMAT ("Unexpected element type %s", node.type_name ());
                        }
                        var obj = node.get_object ();
-                       
+               
                        this.name = obj.get_string_member("name");
                        this.parent = obj.get_string_member("parent");
                        this.title = obj.get_string_member("title");
-                       
+               
                        if (obj.has_member("build_module")) { // should check type really..
                                this.build_module = obj.get_string_member("build_module");
                        }
@@ -126,128 +126,128 @@ namespace JsRender {
                        }
                        NodeToVala.mungeFile(this); // force line numbering..
                        this.loaded = true;
-                       
-               }
-         
-        
                
-        public override string toSourcePreview()
-        {
+               }
+            
+           
+       
+           public override string toSourcePreview()
+           {
                        return "";
                }
-        public override void setSource(string str) {}
-        
-        public override string toSource() // no seed support currently.
-        {
-        
-            /*
-            if (this.tree == null) {
-                return "";
-            }
-            
-            // var data = JSON.parse(JSON.stringify(this.items[0]));
-            // we should base this on the objects in the tree really..
-            string[]  inc = { "Gtk", "Gdk", "Pango", "GLib", "Gio", "GObject", 
-                "GtkSource", "WebKit", "Vte" }; //, "GtkClutter" , "Gdl"];
-            var src = "";
+           public override void setSource(string str) {}
+           
+           public override string toSource() // no seed support currently.
+           {
+           
+               /*
+               if (this.tree == null) {
+                   return "";
+               }
+               
+               // var data = JSON.parse(JSON.stringify(this.items[0]));
+               // we should base this on the objects in the tree really..
+               string[]  inc = { "Gtk", "Gdk", "Pango", "GLib", "Gio", "GObject", 
+                   "GtkSource", "WebKit", "Vte" }; //, "GtkClutter" , "Gdl"];
+               var src = "";
                         
-            for (var i=0; i< inc.length; i++) {
+               for (var i=0; i< inc.length; i++) {
                                var e = inc[i];
-                src += e+" = imports.gi." + e +";\n";
-            }
-            
-            src += "console = imports.console;\n"; // path?!!?
-            src += "XObject = imports.XObject.XObject;\n"; // path?!!?
-            
-            
-            src += this.name + "=new XObject("+ this.mungeToString("    ") + ");\n";
-            src += this.name + ".init();\n";
-            // register it in the cache
-            src += "XObject.cache['/" + this.name + "'] = " + this.name + ";\n";
-            return src;
-            */
-            return "";
-            
-            
-        }
-               
-        public override void save() {
-            this.saveBJS();
-            // this.saveJS(); - disabled at present.. project settings will probably enable this later..
+                   src += e+" = imports.gi." + e +";\n";
+               }
+               
+               src += "console = imports.console;\n"; // path?!!?
+               src += "XObject = imports.XObject.XObject;\n"; // path?!!?
+               
+               
+               src += this.name + "=new XObject("+ this.mungeToString("    ") + ");\n";
+               src += this.name + ".init();\n";
+               // register it in the cache
+               src += "XObject.cache['/" + this.name + "'] = " + this.name + ";\n";
+               return src;
+               */
+               return "";
+               
+               
+           }
+       
+           public override void save() {
+               this.saveBJS();
+               // this.saveJS(); - disabled at present.. project settings will probably enable this later..
+       
+               this.saveVala();
+           }
+               // ignore these calls.
+           public override void saveHTML ( string html ) {}
                
-            this.saveVala();
-        }
-           // ignore these calls.
-        public override void saveHTML ( string html ) {}
-           
-                   
-        /** 
-         *  saveJS
-         * 
-         * save as a javascript file.
-         * why is this not save...???
-         * 
-         */ 
-          
-        void saveJS()
-        {
-             
-            var fn = GLib.Path.get_dirname(this.path) + "/" + this.name + ".js";
-            print("WRITE :%s\n " , fn);
-            this.writeFile(fn, this.toSource());
-            
-        }
-        
-       void  saveVala()
-        {
-               if (this.tree == null) {
-                       return;
-               }
-               var fn = GLib.Path.get_dirname(this.path) + "/" + this.name + ".vala";
-               print("WRITE :%s\n " , fn);
+                       
+           /** 
+            *  saveJS
+            * 
+            * save as a javascript file. - not used currently
+            * why is this not save...???
+            * 
+            
+             
+           void saveJS()
+           {
+                
+               var fn = GLib.Path.get_dirname(this.path) + "/" + this.name + ".js";
+               print("WRITE :%s\n " , fn);
+               this.writeFile(fn, this.toSource());
+               
+           }
+           */
+          void  saveVala()
+           {
+                       if (this.tree == null) {
+                               return;
+                       }
+                       var fn = GLib.Path.get_dirname(this.path) + "/" + this.name + ".vala";
+                       print("WRITE :%s\n " , fn);
                        this.writeFile(fn,  NodeToVala.mungeFile(this));
-            
-            
-        }
+               
+               
+           }
                /*
-        valaCompileCmd : function()
-        {
-            
-            var fn = '/tmp/' + this.name + '.vala';
-            print("WRITE : " + fn);
-            File.write(fn, this.toVala(true));
-            
-            
-            
-            return ["valac",
-                   "--pkg",  "gio-2.0",
-                   "--pkg" , "posix" ,
-                   "--pkg" , "gtk+-3.0",
-                   "--pkg",  "libnotify",
-                   "--pkg",  "gtksourceview-3.0",
-                   "--pkg", "libwnck-3.0",
-                   fn ,   "-o", "/tmp/" + this.name];
-            
-           
-             
-            
-        },
-        */
-        
+           valaCompileCmd : function()
+           {
+               
+               var fn = '/tmp/' + this.name + '.vala';
+               print("WRITE : " + fn);
+               File.write(fn, this.toVala(true));
+               
+               
+               
+               return ["valac",
+                      "--pkg",  "gio-2.0",
+                      "--pkg" , "posix" ,
+                      "--pkg" , "gtk+-3.0",
+                      "--pkg",  "libnotify",
+                      "--pkg",  "gtksourceview-3.0",
+                      "--pkg", "libwnck-3.0",
+                      fn ,   "-o", "/tmp/" + this.name];
+               
+              
+                
+               
+           },
+           */
+           
    
-        string getHelpUrl(string cls)
-        {
-            return "http://devel.akbkhome.com/seed/" + cls + ".html";
-        }
-        public override void  findTransStrings(Node? node )
+           string getHelpUrl(string cls)
+           {
+               return "http://devel.akbkhome.com/seed/" + cls + ".html";
+           }
+           public override void  findTransStrings(Node? node )
                {
                        // not yet..
                }
-       
-        
+
+           
          
 
-               
+       
 
        }
 }