Builder/Provider/File/Gtk.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 23 Aug 2011 05:09:41 +0000 (13:09 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 23 Aug 2011 05:09:41 +0000 (13:09 +0800)
Builder/Provider/File/Gtk.js
Builder/Provider/Project/Base.js
Builder/Provider/RooUsage.txt
Builder3/About.js
Builder3/Editor.js
Builder3/RooProjectProperties.js
Builder3/Window.js
INSTALL.txt [new file with mode: 0644]
gtkrun.js
install1.2.sh

index db767db..522fb4e 100755 (executable)
@@ -173,7 +173,7 @@ Gtk = XObject.define(
             var data = JSON.parse(JSON.stringify(this.items[0]));
             // we should base this on the objects in the tree really..
             var i = [ 'Gtk', 'Gdk', 'Pango', 'GLib', 'Gio', 'GObject', 
-                'GtkSource', 'WebKit', 'Vte' , 'GtkClutter' , 'Gdl'];
+                'GtkSource', 'WebKit', 'Vte' ]; //, 'GtkClutter' , 'Gdl'];
             var src = "";
             i.forEach(function(e) {
                 src += e+" = imports.gi." + e +";\n";
@@ -207,4 +207,4 @@ Gtk = XObject.define(
             return 'http://devel.akbkhome.com/seed/' + cls + '.html';
         }
         
-    });
\ No newline at end of file
+    });
index 21f938c..4f96ea2 100644 (file)
@@ -113,6 +113,7 @@ Base = XObject.define(
             for (var i in this.paths) {
                 return GLib.basename(i);
             }
+            return '';
         },
         
         toTree : function()
@@ -127,7 +128,7 @@ Base = XObject.define(
             //if (this.tree) {
              //   return this.tree;
             //}
-            
+            //console.dump(this.files);
             this.tree = [];
             /*
             for (var f in this.files) {
index 904fa99..ce247c8 100644 (file)
@@ -27,6 +27,14 @@ left:
 right:
  Roo.LayoutRegion
 
+// toolbar at the right of the tabs.
+
+left:
+ Roo.LayoutRegion:toolbar
+right:
+ Roo.Toolbar
+
+
 // add with region? region= 
  
 left:
index 3eead26..7becbf4 100644 (file)
@@ -7,8 +7,11 @@ GObject = imports.gi.GObject;
 GtkSource = imports.gi.GtkSource;
 WebKit = imports.gi.WebKit;
 Vte = imports.gi.Vte;
+<<<<<<< HEAD
 //GtkClutter = imports.gi.GtkClutter;
 //Gdl = imports.gi.Gdl;
+=======
+>>>>>>> 3b915ee311c6c2f49cc4f64e158b8f1c6fc7de4b
 console = imports.console;
 XObject = imports.XObject.XObject;
 About=new XObject({
index 18bfb09..9c4f0e1 100644 (file)
@@ -7,7 +7,10 @@ GObject = imports.gi.GObject;
 GtkSource = imports.gi.GtkSource;
 WebKit = imports.gi.WebKit;
 Vte = imports.gi.Vte;
+<<<<<<< HEAD
 //GtkClutter = imports.gi.GtkClutter;
+=======
+>>>>>>> 3b915ee311c6c2f49cc4f64e158b8f1c6fc7de4b
  console = imports.console;
 XObject = imports.XObject.XObject;
 Editor=new XObject({
index 9b24d85..e3ad358 100644 (file)
@@ -7,7 +7,10 @@ GObject = imports.gi.GObject;
 GtkSource = imports.gi.GtkSource;
 WebKit = imports.gi.WebKit;
 Vte = imports.gi.Vte;
+<<<<<<< HEAD
 //GtkClutter = imports.gi.GtkClutter;
+=======
+>>>>>>> 3b915ee311c6c2f49cc4f64e158b8f1c6fc7de4b
 //Gdl = imports.gi.Gdl;
 console = imports.console;
 XObject = imports.XObject.XObject;
index 34f6615..9d15967 100644 (file)
@@ -3119,7 +3119,7 @@ Window=new XObject({
                                                                                         this.el.load_html_string( "Render not ready" , 
                                                                                                 //fixme - should be a config option!
                                                                                                 // or should we catch stuff and fix it up..
-                                                                                                'http://localhost/app.Builder/'
+                                                                                                'http://localhost/app.Builder.js/'
                                                                                         );
                                                                                             
                                                                                             
@@ -3223,7 +3223,7 @@ Window=new XObject({
                                                                                             print("LOAD HTML " + html);
                                                                                             this.el.load_html_string( html , 
                                                                                                 //fixme - should be a config option!
-                                                                                                'http://localhost/app.Builder/'
+                                                                                                'http://localhost/app.Builder.js/'
                                                                                             );
                                                                                             this.redraws = 0;
                                                                                             // should trigger load_finished! - which in truns shoudl set refresh Required;
diff --git a/INSTALL.txt b/INSTALL.txt
new file mode 100644 (file)
index 0000000..99a2e0e
--- /dev/null
@@ -0,0 +1,11 @@
+
+GTK3
+
+git clone git://github.com/roojs/app.Builder.js.git
+cd app.Builder.js
+git clone git://github.com/roojs/gir-1.2-gtk-3.0.git gir-1.2
+sh install1.2.sh
+
+seed gtkrun.js Builder3.js
+
+
index c16f5cf..fc8a962 100644 (file)
--- a/gtkrun.js
+++ b/gtkrun.js
@@ -48,9 +48,15 @@ Vte         = imports.gi.Vte;
 
 //GtkClutter  = imports.gi.GtkClutter;
 
+<<<<<<< HEAD
 //if (GtkClutter) {    
 //    GtkClutter.init(Seed.argv);
 //}
+=======
+if (typeof(GtkClutter) != 'undefined') {    
+    GtkClutter.init(Seed.argv);
+}
+>>>>>>> 3b915ee311c6c2f49cc4f64e158b8f1c6fc7de4b
 
 File    = imports.File.File;
 
index 9b253cd..e70a069 100644 (file)
@@ -1,10 +1,18 @@
 #!/bin/sh
+<<<<<<< HEAD
  
 #git clone git://github.com/roojs/gir-1.2-gtk-2.0.git gir-1.2
+=======
+#git clone git://github.com/roojs/gir-1.2-gtk-3.0.git gir-1.2
+>>>>>>> 3b915ee311c6c2f49cc4f64e158b8f1c6fc7de4b
 
 #// compile GIR's
 mkdir -p ~/.Builder/girepository-1.2 || false
  
+<<<<<<< HEAD
+=======
+>>>>>>> 3b915ee311c6c2f49cc4f64e158b8f1c6fc7de4b
 ls gir-1.2 | sed s/.gir// | awk \
     '{ print "g-ir-compiler  gir-1.2/" $1 ".gir --includedir=gir-1.2 -o  ~/.Builder/girepository-1.2/" $1 ".typelib" }' \
     | sh -x