src/Builder4/MainWindow.vala
[app.Builder.js] / src / Builder4 / MainWindow.vala
index b8b8903..83382ef 100644 (file)
@@ -1,6 +1,6 @@
 static Xcls_MainWindow  _MainWindow;
 
-public class Xcls_MainWindow : Object 
+public class Xcls_MainWindow : Object
 {
     public Gtk.Window el;
     private Xcls_MainWindow  _this;
@@ -38,9 +38,12 @@ public class Xcls_MainWindow : Object
     public Xcls_addfilebutton addfilebutton;
     public Xcls_delprojectbutton delprojectbutton;
     public Xcls_statusbar statusbar;
+    public Xcls_search_entry search_entry;
+    public Xcls_search_results search_results;
     public Xcls_statusbar_errors statusbar_errors;
     public Xcls_statusbar_warnings statusbar_warnings;
     public Xcls_statusbar_depricated statusbar_depricated;
+    public Xcls_statusbar_run statusbar_run;
 
         // my vars (def)
     public Project.Project project;
@@ -48,7 +51,7 @@ public class Xcls_MainWindow : Object
     public int no_windows;
     public WindowState windowstate;
 
-    // ctor 
+    // ctor
     public Xcls_MainWindow()
     {
         _this = this;
@@ -71,11 +74,11 @@ public class Xcls_MainWindow : Object
         child_1.ref();
         this.el.add (  child_1.el  );
 
-        // init method 
+        // init method
 
         //this.el.show_all();
 
-        // listeners 
+        //listeners
         this.el.delete_event.connect( (   event) => {
             return false;
         });
@@ -103,9 +106,29 @@ public class Xcls_MainWindow : Object
             Resources.singleton().checkResources();
         
         });
+        this.el.key_release_event.connect( (event) => {
+            
+            if (this.search_entry.el.is_visible()) {
+                       if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
+                           print("SAVE: ctrl-f  pressed");
+                               this.search_entry.el.grab_focus();
+                           return false;
+                       }
+                       
+                         if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
+                           print("SAVE: ctrl-g  pressed");
+                               this.search_entry.forwardSearch(true);
+                           return false;
+                       }
+               }    
+           // print(event.key.keyval)
+            
+            return false;
+        
+        });
     }
 
-    // user defined functions 
+    // user defined functions
     public        void initChildren () {
         // this needs putting in a better place..
         this.windowstate = new WindowState(this);
@@ -130,7 +153,7 @@ public class Xcls_MainWindow : Object
     public             void setTitle (string str) {
         this.headerbar.el.set_title(this.title + " - " + str);
     }
-    public class Xcls_headerbar : Object 
+    public class Xcls_headerbar : Object
     {
         public Gtk.HeaderBar el;
         private Xcls_MainWindow  _this;
@@ -138,7 +161,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_headerbar(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -150,26 +173,26 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.title = "Application Builder";
             this.el.show_close_button = true;
-            var child_0 = new Xcls_HBox3( _this );
+            var child_0 = new Xcls_Box3( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el  );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_HBox3 : Object 
+    public class Xcls_Box3 : Object
     {
-        public Gtk.HBox el;
+        public Gtk.Box el;
         private Xcls_MainWindow  _this;
 
 
             // my vars (def)
 
-        // ctor 
-        public Xcls_HBox3(Xcls_MainWindow _owner )
+        // ctor
+        public Xcls_Box3(Xcls_MainWindow _owner )
         {
             _this = _owner;
-            this.el = new Gtk.HBox( true, 0 );
+            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
 
             // my vars (dec)
 
@@ -179,9 +202,9 @@ public class Xcls_MainWindow : Object
             this.el.add (  child_0.el  );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuButton4 : Object 
+    public class Xcls_MenuButton4 : Object
     {
         public Gtk.MenuButton el;
         private Xcls_MainWindow  _this;
@@ -189,7 +212,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuButton4(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -207,9 +230,9 @@ public class Xcls_MainWindow : Object
             this.el.set_image (  child_1.el  );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_topbarmenu : Object 
+    public class Xcls_topbarmenu : Object
     {
         public Gtk.Menu el;
         private Xcls_MainWindow  _this;
@@ -217,7 +240,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_topbarmenu(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -240,16 +263,16 @@ public class Xcls_MainWindow : Object
             child_3.ref();
             this.el.append (  child_3.el  );
 
-            // init method 
+            // init method
 
             {
                 this.el.show_all();
             }
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem6 : Object 
+    public class Xcls_MenuItem6 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_MainWindow  _this;
@@ -257,7 +280,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem6(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -268,7 +291,7 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.label = "Open a new Window";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( ) => {
                     Xcls_MainWindow.singleton().no_windows++;
                     var w = new Xcls_MainWindow();
@@ -280,9 +303,10 @@ public class Xcls_MainWindow : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_SeparatorMenuItem7 : Object 
+
+    public class Xcls_SeparatorMenuItem7 : Object
     {
         public Gtk.SeparatorMenuItem el;
         private Xcls_MainWindow  _this;
@@ -290,7 +314,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -301,9 +325,10 @@ public class Xcls_MainWindow : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem8 : Object 
+
+    public class Xcls_MenuItem8 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_MainWindow  _this;
@@ -311,7 +336,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem8(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -322,15 +347,16 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.label = "Download updated Resources";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( ( ) => {
                      Resources.singleton().fetchStart();
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem9 : Object 
+
+    public class Xcls_MenuItem9 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_MainWindow  _this;
@@ -338,7 +364,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_MenuItem9(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -349,15 +375,17 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.label = "About the Builder";
 
-            // listeners 
+            //listeners
             this.el.activate.connect( () => {
                 About.singleton().el.show();
                 });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Image10 : Object 
+
+
+    public class Xcls_Image10 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -365,7 +393,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Image10(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -377,51 +405,56 @@ public class Xcls_MainWindow : Object
             this.el.icon_name = "help-about";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_vbox : Object 
+
+
+
+
+    public class Xcls_vbox : Object
     {
-        public Gtk.VBox el;
+        public Gtk.Box el;
         private Xcls_MainWindow  _this;
 
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_vbox(Xcls_MainWindow _owner )
         {
             _this = _owner;
             _this.vbox = this;
-            this.el = new Gtk.VBox( false, 0 );
+            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
             // my vars (dec)
 
             // set gobject values
+            this.el.homogeneous = false;
             var child_0 = new Xcls_mainpane( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , true,true,0 );
-            var child_1 = new Xcls_HBox66( _this );
+            var child_1 = new Xcls_Box66( _this );
             child_1.ref();
             this.el.pack_end (  child_1.el , false,true,0 );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_mainpane : Object 
+    public class Xcls_mainpane : Object
     {
-        public Gtk.HPaned el;
+        public Gtk.Paned el;
         private Xcls_MainWindow  _this;
 
 
             // my vars (def)
         public int lastWidth;
 
-        // ctor 
+        // ctor
         public Xcls_mainpane(Xcls_MainWindow _owner )
         {
             _this = _owner;
             _this.mainpane = this;
-            this.el = new Gtk.HPaned();
+            this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
 
             // my vars (dec)
             this.lastWidth = 0;
@@ -431,52 +464,52 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_leftpane( _this );
             child_0.ref();
             this.el.add1 (  child_0.el  );
-            var child_1 = new Xcls_VBox17( _this );
+            var child_1 = new Xcls_Box17( _this );
             child_1.ref();
             this.el.add2 (  child_1.el  );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_leftpane : Object 
+    public class Xcls_leftpane : Object
     {
-        public Gtk.VBox el;
+        public Gtk.Box el;
         private Xcls_MainWindow  _this;
 
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_leftpane(Xcls_MainWindow _owner )
         {
             _this = _owner;
             _this.leftpane = this;
-            this.el = new Gtk.VBox( true, 0 );
+            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
             // my vars (dec)
 
             // set gobject values
             var child_0 = new Xcls_editpane( _this );
             child_0.ref();
-            this.el.pack_start (  child_0.el , false,true,0 );
+            this.el.pack_start (  child_0.el , true,true,0 );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_editpane : Object 
+    public class Xcls_editpane : Object
     {
-        public Gtk.VPaned el;
+        public Gtk.Paned el;
         private Xcls_MainWindow  _this;
 
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_editpane(Xcls_MainWindow _owner )
         {
             _this = _owner;
             _this.editpane = this;
-            this.el = new Gtk.VPaned();
+            this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
 
             // my vars (dec)
 
@@ -489,65 +522,69 @@ public class Xcls_MainWindow : Object
             this.el.add2 (  child_1.el  );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_tree : Object 
+    public class Xcls_tree : Object
     {
-        public Gtk.VBox el;
+        public Gtk.Box el;
         private Xcls_MainWindow  _this;
 
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_tree(Xcls_MainWindow _owner )
         {
             _this = _owner;
             _this.tree = this;
-            this.el = new Gtk.VBox( true, 0 );
+            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
             // my vars (dec)
 
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_props : Object 
+
+    public class Xcls_props : Object
     {
-        public Gtk.VBox el;
+        public Gtk.Box el;
         private Xcls_MainWindow  _this;
 
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_props(Xcls_MainWindow _owner )
         {
             _this = _owner;
             _this.props = this;
-            this.el = new Gtk.VBox( true, 0 );
+            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
             // my vars (dec)
 
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_VBox17 : Object 
+
+
+
+    public class Xcls_Box17 : Object
     {
-        public Gtk.VBox el;
+        public Gtk.Box el;
         private Xcls_MainWindow  _this;
 
 
             // my vars (def)
 
-        // ctor 
-        public Xcls_VBox17(Xcls_MainWindow _owner )
+        // ctor
+        public Xcls_Box17(Xcls_MainWindow _owner )
         {
             _this = _owner;
-            this.el = new Gtk.VBox( true, 0 );
+            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
             // my vars (dec)
 
@@ -557,9 +594,9 @@ public class Xcls_MainWindow : Object
             this.el.pack_start (  child_0.el , true,true,0 );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_clutterembed : Object 
+    public class Xcls_clutterembed : Object
     {
         public GtkClutter.Embed el;
         private Xcls_MainWindow  _this;
@@ -567,7 +604,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_clutterembed(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -596,12 +633,12 @@ public class Xcls_MainWindow : Object
             child_5.ref();
             this.el.get_stage().add_child (  child_5.el  );
 
-            // init method 
+            // init method
 
             var stage = this.el.get_stage();
                 stage.set_background_color(  Clutter.Color.from_string("#000"));
 
-            // listeners 
+            //listeners
             this.el.size_allocate.connect( (  alloc) => {
                 if (_this.windowstate == null) {
                     return;
@@ -611,9 +648,9 @@ public class Xcls_MainWindow : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_rooview : Object 
+    public class Xcls_rooview : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -621,7 +658,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_rooview(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -632,7 +669,7 @@ public class Xcls_MainWindow : Object
 
             // set gobject values
 
-            // init method 
+            // init method
 
             {
                
@@ -654,9 +691,10 @@ public class Xcls_MainWindow : Object
             }
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_objectview : Object 
+
+    public class Xcls_objectview : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -664,7 +702,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_objectview(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -675,7 +713,7 @@ public class Xcls_MainWindow : Object
 
             // set gobject values
 
-            // init method 
+            // init method
 
             {
                
@@ -699,9 +737,10 @@ public class Xcls_MainWindow : Object
             }
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_codeeditview : Object 
+
+    public class Xcls_codeeditview : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -709,7 +748,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_codeeditview(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -720,7 +759,7 @@ public class Xcls_MainWindow : Object
 
             // set gobject values
 
-            // init method 
+            // init method
 
             {
                
@@ -744,9 +783,10 @@ public class Xcls_MainWindow : Object
             }
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_addpropsview : Object 
+
+    public class Xcls_addpropsview : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -754,7 +794,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_addpropsview(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -765,7 +805,7 @@ public class Xcls_MainWindow : Object
 
             // set gobject values
 
-            // init method 
+            // init method
 
             {
                
@@ -789,9 +829,10 @@ public class Xcls_MainWindow : Object
             }
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_projecteditview : Object 
+
+    public class Xcls_projecteditview : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -799,7 +840,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_projecteditview(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -810,7 +851,7 @@ public class Xcls_MainWindow : Object
 
             // set gobject values
 
-            // init method 
+            // init method
 
             {
                
@@ -832,9 +873,10 @@ public class Xcls_MainWindow : Object
             }
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_buttonlayout : Object 
+
+    public class Xcls_buttonlayout : Object
     {
         public Clutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -842,7 +884,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_buttonlayout(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -886,7 +928,7 @@ public class Xcls_MainWindow : Object
             child_10.ref();
             this.el.add_child (  child_10.el  );
 
-            // init method 
+            // init method
 
             {
                 
@@ -907,9 +949,9 @@ public class Xcls_MainWindow : Object
             }
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_BoxLayout25 : Object 
+    public class Xcls_BoxLayout25 : Object
     {
         public Clutter.BoxLayout el;
         private Xcls_MainWindow  _this;
@@ -917,7 +959,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_BoxLayout25(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -929,9 +971,10 @@ public class Xcls_MainWindow : Object
             this.el.orientation = Clutter.Orientation.VERTICAL;
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_backbutton : Object 
+
+    public class Xcls_backbutton : Object
     {
         public Clutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -939,7 +982,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_backbutton(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -953,14 +996,14 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.add_child (  child_0.el  );
 
-            // init method 
+            // init method
 
             this.el.set_size(50,50);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Actor27 : Object 
+    public class Xcls_Actor27 : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -968,7 +1011,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Actor27(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -980,14 +1023,14 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_Button28( _this );
             child_0.ref();
 
-            // init method 
+            // init method
 
             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button28 : Object 
+    public class Xcls_Button28 : Object
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -995,7 +1038,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button28(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1011,7 +1054,7 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
-            // listeners 
+            //listeners
             this.el.clicked.connect( ( ) => {
               
                 _this.windowstate.switchState(WindowState.State.PREVIEW);
@@ -1020,9 +1063,9 @@ public class Xcls_MainWindow : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Image29 : Object 
+    public class Xcls_Image29 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1030,7 +1073,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Image29(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1042,9 +1085,13 @@ public class Xcls_MainWindow : Object
             this.el.icon_name = "go-previous";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_projectbutton : Object 
+
+
+
+
+    public class Xcls_projectbutton : Object
     {
         public Clutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1052,7 +1099,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_projectbutton(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1066,14 +1113,14 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.add_child (  child_0.el  );
 
-            // init method 
+            // init method
 
             this.el.set_size(50,50);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Actor31 : Object 
+    public class Xcls_Actor31 : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1081,7 +1128,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Actor31(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1093,14 +1140,14 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_Button32( _this );
             child_0.ref();
 
-            // init method 
+            // init method
 
             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button32 : Object 
+    public class Xcls_Button32 : Object
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -1108,7 +1155,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button32(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1123,7 +1170,7 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
-            // listeners 
+            //listeners
             this.el.clicked.connect( ( ) => {
                _this.windowstate.switchState(WindowState.State.FILES);
                   
@@ -1131,9 +1178,9 @@ public class Xcls_MainWindow : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Image33 : Object 
+    public class Xcls_Image33 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1141,7 +1188,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Image33(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1153,9 +1200,13 @@ public class Xcls_MainWindow : Object
             this.el.icon_name = "document-open";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_editfilebutton : Object 
+
+
+
+
+    public class Xcls_editfilebutton : Object
     {
         public Clutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1163,7 +1214,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_editfilebutton(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1177,14 +1228,14 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.add_child (  child_0.el  );
 
-            // init method 
+            // init method
 
             this.el.set_size(50.0f,50.0f);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Actor35 : Object 
+    public class Xcls_Actor35 : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1192,7 +1243,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Actor35(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1204,14 +1255,14 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_Button36( _this );
             child_0.ref();
 
-            // init method 
+            // init method
 
             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button36 : Object 
+    public class Xcls_Button36 : Object
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -1219,7 +1270,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button36(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1235,15 +1286,15 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
-            // listeners 
+            //listeners
             this.el.clicked.connect( ( ) => {
               
                 // create a new file in project..
-                if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
+                if (_this.project == null || _this.windowstate.file == null) {
                     return  ;
                 }
                  _this.windowstate.file_details.show(
-                    _this.windowstate.left_tree.model.file, this.el
+                    _this.windowstate.file, this.el
                 );
                  
                 return  ;    
@@ -1252,9 +1303,9 @@ public class Xcls_MainWindow : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Image37 : Object 
+    public class Xcls_Image37 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1262,7 +1313,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Image37(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1274,9 +1325,13 @@ public class Xcls_MainWindow : Object
             this.el.icon_name = "document-properties";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_projecteditbutton : Object 
+
+
+
+
+    public class Xcls_projecteditbutton : Object
     {
         public Clutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1284,7 +1339,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_projecteditbutton(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1298,14 +1353,14 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.add_child (  child_0.el  );
 
-            // init method 
+            // init method
 
             this.el.set_size(50,50);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Actor39 : Object 
+    public class Xcls_Actor39 : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1313,7 +1368,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Actor39(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1325,14 +1380,14 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_Button40( _this );
             child_0.ref();
 
-            // init method 
+            // init method
 
             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button40 : Object 
+    public class Xcls_Button40 : Object
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -1340,7 +1395,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button40(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1356,7 +1411,7 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
-            // listeners 
+            //listeners
             this.el.clicked.connect( ( ) => {
                  _this.windowstate.switchState(WindowState.State.PROJECT);
                
@@ -1365,9 +1420,9 @@ public class Xcls_MainWindow : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Image41 : Object 
+    public class Xcls_Image41 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1375,7 +1430,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Image41(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1387,9 +1442,13 @@ public class Xcls_MainWindow : Object
             this.el.icon_name = "emblem-system";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_objectshowbutton : Object 
+
+
+
+
+    public class Xcls_objectshowbutton : Object
     {
         public Clutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1397,7 +1456,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_objectshowbutton(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1411,24 +1470,24 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.add_child (  child_0.el  );
 
-            // init method 
+            // init method
 
             this.el.set_size(50,50);
 
-            // listeners 
+            //listeners
             this.el.enter_event.connect( (  event)  => {
-                this.el.background_color = new Clutter.Color.from_string("#333");
+                this.el.background_color =   Clutter.Color.from_string("#333");
                     return false;
             });
             this.el.leave_event.connect( (  event)  => {
-                this.el.background_color = new Clutter.Color.from_string("#000");
+                this.el.background_color =   Clutter.Color.from_string("#000");
                 return false;
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Actor43 : Object 
+    public class Xcls_Actor43 : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1436,7 +1495,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Actor43(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1448,14 +1507,14 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_Button44( _this );
             child_0.ref();
 
-            // init method 
+            // init method
 
             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button44 : Object 
+    public class Xcls_Button44 : Object
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -1463,7 +1522,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button44(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1479,7 +1538,7 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
-            // listeners 
+            //listeners
             this.el.clicked.connect( ( ) => {
                 
                  _this.windowstate.switchState(WindowState.State.OBJECT);
@@ -1488,9 +1547,9 @@ public class Xcls_MainWindow : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Image45 : Object 
+    public class Xcls_Image45 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1498,7 +1557,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Image45(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1510,9 +1569,13 @@ public class Xcls_MainWindow : Object
             this.el.icon_name = "list-add";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_addpropbutton : Object 
+
+
+
+
+    public class Xcls_addpropbutton : Object
     {
         public Clutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1520,7 +1583,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_addpropbutton(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1534,14 +1597,14 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.add_child (  child_0.el  );
 
-            // init method 
+            // init method
 
             this.el.set_size(50,50);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Actor47 : Object 
+    public class Xcls_Actor47 : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1549,7 +1612,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Actor47(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1561,14 +1624,14 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_Button48( _this );
             child_0.ref();
 
-            // init method 
+            // init method
 
             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button48 : Object 
+    public class Xcls_Button48 : Object
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -1576,7 +1639,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button48(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1592,7 +1655,7 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
-            // listeners 
+            //listeners
             this.el.clicked.connect( ( ) => {
                 
                  _this.windowstate.switchState(WindowState.State.PROP);
@@ -1601,9 +1664,9 @@ public class Xcls_MainWindow : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Image49 : Object 
+    public class Xcls_Image49 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1611,7 +1674,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Image49(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1623,9 +1686,13 @@ public class Xcls_MainWindow : Object
             this.el.icon_name = "format-justify-left";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_addlistenerbutton : Object 
+
+
+
+
+    public class Xcls_addlistenerbutton : Object
     {
         public Clutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1633,7 +1700,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1647,14 +1714,14 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.add_child (  child_0.el  );
 
-            // init method 
+            // init method
 
             this.el.set_size(50,50);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Actor51 : Object 
+    public class Xcls_Actor51 : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1662,7 +1729,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Actor51(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1674,14 +1741,14 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_Button52( _this );
             child_0.ref();
 
-            // init method 
+            // init method
 
             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button52 : Object 
+    public class Xcls_Button52 : Object
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -1689,7 +1756,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button52(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1705,7 +1772,7 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
-            // listeners 
+            //listeners
             this.el.clicked.connect( ( ) => {
                 
                 _this.windowstate.switchState(WindowState.State.LISTENER);
@@ -1715,9 +1782,9 @@ public class Xcls_MainWindow : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Image53 : Object 
+    public class Xcls_Image53 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1725,7 +1792,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Image53(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1737,9 +1804,13 @@ public class Xcls_MainWindow : Object
             this.el.icon_name = "appointment-new";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_addprojectbutton : Object 
+
+
+
+
+    public class Xcls_addprojectbutton : Object
     {
         public Clutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1747,7 +1818,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_addprojectbutton(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1761,14 +1832,14 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.add_child (  child_0.el  );
 
-            // init method 
+            // init method
 
             this.el.set_size(50.0f,50.0f);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Actor55 : Object 
+    public class Xcls_Actor55 : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1776,7 +1847,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Actor55(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1788,14 +1859,14 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_Button56( _this );
             child_0.ref();
 
-            // init method 
+            // init method
 
             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button56 : Object 
+    public class Xcls_Button56 : Object
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -1803,7 +1874,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button56(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1819,12 +1890,12 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
-            // listeners 
+            //listeners
             this.el.clicked.connect( ( ) => {
               
                 // create a new file in project..
                 //Xcls_DialogNewComponent.singleton().show(
-               var  pe =     Xcls_EditProject.singleton();
+               var  pe =      EditProject.singleton();
                 pe.el.set_transient_for(_this.el);
                 pe.el.set_modal(true);   
                
@@ -1844,9 +1915,9 @@ public class Xcls_MainWindow : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Image57 : Object 
+    public class Xcls_Image57 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1854,7 +1925,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Image57(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1866,9 +1937,13 @@ public class Xcls_MainWindow : Object
             this.el.icon_name = "folder-new";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_addfilebutton : Object 
+
+
+
+
+    public class Xcls_addfilebutton : Object
     {
         public Clutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1876,7 +1951,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_addfilebutton(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1890,14 +1965,14 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.add_child (  child_0.el  );
 
-            // init method 
+            // init method
 
             this.el.set_size(50.0f,50.0f);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Actor59 : Object 
+    public class Xcls_Actor59 : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -1905,7 +1980,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Actor59(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1917,14 +1992,14 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_Button60( _this );
             child_0.ref();
 
-            // init method 
+            // init method
 
             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button60 : Object 
+    public class Xcls_Button60 : Object
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -1932,7 +2007,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button60(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1948,22 +2023,23 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
-            // listeners 
+            //listeners
             this.el.clicked.connect( () => {
                 // create a new file in project..
-                
+                print("add file selected\n");
                 // what's the currently selected project...
                 var proj = _this.windowstate.left_projects.getSelectedProject();
                 
                 if (proj == null) {
+                       print("no project selected?\n");
                     return  ;
                 }
                 
-                
+                print("creating file?");
                 
                 var f = JsRender.JsRender.factory(proj.xtype,  proj, "");
                 _this.project = proj;
-                
+                    print("showing popup?");
                  _this.windowstate.file_details.show(
                    f, this.el
                 );
@@ -1973,9 +2049,9 @@ public class Xcls_MainWindow : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Image61 : Object 
+    public class Xcls_Image61 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1983,7 +2059,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Image61(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -1995,9 +2071,13 @@ public class Xcls_MainWindow : Object
             this.el.icon_name = "document-new";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_delprojectbutton : Object 
+
+
+
+
+    public class Xcls_delprojectbutton : Object
     {
         public Clutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -2005,7 +2085,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_delprojectbutton(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -2019,14 +2099,14 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.add_child (  child_0.el  );
 
-            // init method 
+            // init method
 
             this.el.set_size(50,50);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Actor63 : Object 
+    public class Xcls_Actor63 : Object
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -2034,7 +2114,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Actor63(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -2046,14 +2126,14 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_Button64( _this );
             child_0.ref();
 
-            // init method 
+            // init method
 
             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Button64 : Object 
+    public class Xcls_Button64 : Object
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -2061,7 +2141,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Button64(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -2077,7 +2157,7 @@ public class Xcls_MainWindow : Object
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
-            // listeners 
+            //listeners
             this.el.clicked.connect( ( ) => {
                  
                  var cd = DialogConfirm.singleton();
@@ -2108,9 +2188,9 @@ public class Xcls_MainWindow : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Image65 : Object 
+    public class Xcls_Image65 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -2118,7 +2198,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Image65(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -2130,39 +2210,51 @@ public class Xcls_MainWindow : Object
             this.el.icon_name = "user-trash";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_HBox66 : Object 
+
+
+
+
+
+
+
+
+    public class Xcls_Box66 : Object
     {
-        public Gtk.HBox el;
+        public Gtk.Box el;
         private Xcls_MainWindow  _this;
 
 
             // my vars (def)
 
-        // ctor 
-        public Xcls_HBox66(Xcls_MainWindow _owner )
+        // ctor
+        public Xcls_Box66(Xcls_MainWindow _owner )
         {
             _this = _owner;
-            this.el = new Gtk.HBox( false, 0 );
+            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
 
             // my vars (dec)
 
             // set gobject values
+            this.el.homogeneous = false;
             var child_0 = new Xcls_Label67( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , true,true,0 );
             var child_1 = new Xcls_statusbar( _this );
             child_1.ref();
             this.el.pack_start (  child_1.el , true,true,0 );
-            var child_2 = new Xcls_MenuBar69( _this );
+            var child_2 = new Xcls_search_entry( _this );
             child_2.ref();
-            this.el.pack_end (  child_2.el , false,true,0 );
+            this.el.pack_start (  child_2.el , false,true,0 );
+            var child_3 = new Xcls_MenuBar70( _this );
+            child_3.ref();
+            this.el.pack_end (  child_3.el , false,true,0 );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_Label67 : Object 
+    public class Xcls_Label67 : Object
     {
         public Gtk.Label el;
         private Xcls_MainWindow  _this;
@@ -2170,7 +2262,7 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_Label67(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -2181,9 +2273,10 @@ public class Xcls_MainWindow : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_statusbar : Object 
+
+    public class Xcls_statusbar : Object
     {
         public Gtk.ProgressBar el;
         private Xcls_MainWindow  _this;
@@ -2192,7 +2285,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
         public ulong handler_id;
 
-        // ctor 
+        // ctor
         public Xcls_statusbar(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -2205,7 +2298,7 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.show_text = true;
 
-            // init method 
+            // init method
 
             {
                  this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
@@ -2224,9 +2317,103 @@ public class Xcls_MainWindow : Object
             }
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuBar69 : Object 
+
+    public class Xcls_search_entry : Object
+    {
+        public Gtk.SearchEntry el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_search_entry(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            _this.search_entry = this;
+            this.el = new Gtk.SearchEntry();
+
+            // my vars (dec)
+
+            // set gobject values
+
+            // init method
+
+            var description =   Pango.FontDescription.from_string("monospace");
+               description.set_size(8000);
+                this.el.override_font(description);
+
+            //listeners
+            this.el.key_press_event.connect( (event) => {
+                
+               if (event.keyval == Gdk.Key.Return) {
+                       this.forwardSearch(false);
+                   return true;
+            
+               }    
+               // print(event.key.keyval)
+                
+                return false;
+            
+            });
+            this.el.changed.connect( () => {
+               if (this.el.text == "") {
+                       return;
+               }
+               var res = 0;
+               switch(_this.windowstate.state) {
+                       case WindowState.State.CODEONLY:
+                       case WindowState.State.CODE:
+                               // search the code being edited..
+                               res = _this.windowstate.code_editor.search(this.el.text);
+                               
+                               break;
+                       case WindowState.State.PREVIEW:
+                               if (_this.windowstate.file.xtype == "Gtk") {
+                                        res = _this.windowstate.window_gladeview.search(this.el.text);
+                               } else { 
+                                        res = _this.windowstate.window_rooview.search(this.el.text);                   
+                               }
+                       
+                       
+                               break;
+               }
+               if (res > 0) {
+                       _this.search_results.el.label = "%d Matches".printf(res);
+               } else {
+                       _this.search_results.el.label = "No Matches";
+               }
+                       
+               
+               
+            });
+        }
+
+        // user defined functions
+        public void forwardSearch (bool change_focus) {
+               switch(_this.windowstate.state) {
+                       case WindowState.State.CODEONLY:
+                       case WindowState.State.CODE:
+                               // search the code being edited..
+                               _this.windowstate.code_editor.forwardSearch(change_focus);
+                               
+                               break;
+                       case WindowState.State.PREVIEW:
+                               if (_this.windowstate.file.xtype == "Gtk") {
+                                       _this.windowstate.window_gladeview.forwardSearch(change_focus);
+                               } else { 
+                                        _this.windowstate.window_rooview.forwardSearch(change_focus);
+                               }
+                       
+                               break;
+               }
+               
+        }
+    }
+
+    public class Xcls_MenuBar70 : Object
     {
         public Gtk.MenuBar el;
         private Xcls_MainWindow  _this;
@@ -2234,8 +2421,8 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
-        public Xcls_MenuBar69(Xcls_MainWindow _owner )
+        // ctor
+        public Xcls_MenuBar70(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.MenuBar();
@@ -2243,23 +2430,96 @@ public class Xcls_MainWindow : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_MenuItem70( _this );
+            var child_0 = new Xcls_search_results( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
-            var child_1 = new Xcls_statusbar_errors( _this );
+            var child_1 = new Xcls_MenuItem73( _this );
             child_1.ref();
             this.el.add (  child_1.el  );
-            var child_2 = new Xcls_statusbar_warnings( _this );
+            var child_2 = new Xcls_statusbar_errors( _this );
             child_2.ref();
             this.el.add (  child_2.el  );
-            var child_3 = new Xcls_statusbar_depricated( _this );
+            var child_3 = new Xcls_statusbar_warnings( _this );
             child_3.ref();
             this.el.add (  child_3.el  );
+            var child_4 = new Xcls_statusbar_depricated( _this );
+            child_4.ref();
+            this.el.add (  child_4.el  );
+            var child_5 = new Xcls_statusbar_run( _this );
+            child_5.ref();
+            this.el.add (  child_5.el  );
+        }
+
+        // user defined functions
+    }
+    public class Xcls_search_results : Object
+    {
+        public Gtk.ImageMenuItem el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+        public Xcls_ValaCompileErrors popup;
+
+        // ctor
+        public Xcls_search_results(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            _this.search_results = this;
+            this.el = new Gtk.ImageMenuItem();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.always_show_image = true;
+            this.el.label = "Matches";
+            var child_0 = new Xcls_Image72( _this );
+            child_0.ref();
+            this.el.set_image (  child_0.el  );
+
+            //listeners
+            this.el.button_press_event.connect( () => {
+            /*
+                if (this.popup == null) {
+                    this.popup = new Xcls_ValaCompileErrors();
+                    this.popup.window = _this;
+                }
+               
+                
+                this.popup.show(this.notices, this.el);
+                */
+                return true;
+            });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_MenuItem70 : Object 
+    public class Xcls_Image72 : Object
+    {
+        public Gtk.Image el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_Image72(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Image();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.icon_name = "system-search";
+            this.el.sensitive = false;
+        }
+
+        // user defined functions
+    }
+
+
+    public class Xcls_MenuItem73 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_MainWindow  _this;
@@ -2267,8 +2527,8 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
-        public Xcls_MenuItem70(Xcls_MainWindow _owner )
+        // ctor
+        public Xcls_MenuItem73(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.MenuItem();
@@ -2279,9 +2539,10 @@ public class Xcls_MainWindow : Object
             this.el.label = "Compile Status:";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_statusbar_errors : Object 
+
+    public class Xcls_statusbar_errors : Object
     {
         public Gtk.ImageMenuItem el;
         private Xcls_MainWindow  _this;
@@ -2291,7 +2552,7 @@ public class Xcls_MainWindow : Object
         public Xcls_ValaCompileErrors popup;
         public Json.Object notices;
 
-        // ctor 
+        // ctor
         public Xcls_statusbar_errors(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -2304,37 +2565,24 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Errors";
-            var child_0 = new Xcls_Image72( _this );
+            var child_0 = new Xcls_Image75( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
-            // listeners 
+            //listeners
             this.el.button_press_event.connect( () => {
                 if (this.popup == null) {
                     this.popup = new Xcls_ValaCompileErrors();
                     this.popup.window = _this;
                 }
-                if (_this.statusbar_warnings.popup != null && _this.statusbar_warnings.popup.active) {
-                    _this.statusbar_warnings.popup.active = false;
-                    _this.statusbar_warnings.popup.el.hide();
-                }
-                if (_this.statusbar_depricated.popup != null && _this.statusbar_depricated.popup.active) {
-                    _this.statusbar_depricated.popup.active = false;
-                    _this.statusbar_depricated.popup.el.hide();
-                }
-                
-                if (this.popup.active) {
-                    this.popup.active = false;
-                    this.popup.el.hide();
-                    return true;
-                }
+               
                 
                 this.popup.show(this.notices, this.el);
                 return true;
             });
         }
 
-        // user defined functions 
+        // user defined functions
         public void setNotices (Json.Object nots, int qty) {
             this.el.show();
             this.el.label = qty.to_string() + " Errors";
@@ -2342,7 +2590,7 @@ public class Xcls_MainWindow : Object
         
         }
     }
-    public class Xcls_Image72 : Object 
+    public class Xcls_Image75 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -2350,8 +2598,8 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
-        public Xcls_Image72(Xcls_MainWindow _owner )
+        // ctor
+        public Xcls_Image75(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -2362,9 +2610,11 @@ public class Xcls_MainWindow : Object
             this.el.icon_name = "dialog-error";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_statusbar_warnings : Object 
+
+
+    public class Xcls_statusbar_warnings : Object
     {
         public Gtk.ImageMenuItem el;
         private Xcls_MainWindow  _this;
@@ -2374,7 +2624,7 @@ public class Xcls_MainWindow : Object
         public Xcls_ValaCompileErrors popup;
         public Json.Object notices;
 
-        // ctor 
+        // ctor
         public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -2387,37 +2637,23 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Warnings";
-            var child_0 = new Xcls_Image74( _this );
+            var child_0 = new Xcls_Image77( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
-            // listeners 
+            //listeners
             this.el.button_press_event.connect( () => {
                 if (this.popup == null) {
                     this.popup = new Xcls_ValaCompileErrors();
                     this.popup.window = _this;
                 }
                 
-                if (_this.statusbar_errors.popup != null && _this.statusbar_errors.popup.active) {
-                    _this.statusbar_errors.popup.active = false;
-                    _this.statusbar_errors.popup.el.hide();
-                }
-                if (_this.statusbar_depricated.popup != null && _this.statusbar_depricated.popup.active) {
-                    _this.statusbar_depricated.popup.active = false;
-                    _this.statusbar_depricated.popup.el.hide();
-                }
-                
-                if (this.popup.active) {
-                    this.popup.active = false;
-                    this.popup.el.hide();
-                    return true;
-                }
                 this.popup.show(this.notices, this.el);
                 return true;
             });
         }
 
-        // user defined functions 
+        // user defined functions
         public void setNotices (Json.Object nots, int qty) {
             this.el.show();
             this.el.label = qty.to_string() + " Warnings";
@@ -2425,7 +2661,7 @@ public class Xcls_MainWindow : Object
         
         }
     }
-    public class Xcls_Image74 : Object 
+    public class Xcls_Image77 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -2433,8 +2669,8 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
-        public Xcls_Image74(Xcls_MainWindow _owner )
+        // ctor
+        public Xcls_Image77(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -2445,9 +2681,11 @@ public class Xcls_MainWindow : Object
             this.el.icon_name = "dialog-warning";
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_statusbar_depricated : Object 
+
+
+    public class Xcls_statusbar_depricated : Object
     {
         public Gtk.ImageMenuItem el;
         private Xcls_MainWindow  _this;
@@ -2457,7 +2695,7 @@ public class Xcls_MainWindow : Object
         public Xcls_ValaCompileErrors popup;
         public Json.Object notices;
 
-        // ctor 
+        // ctor
         public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
         {
             _this = _owner;
@@ -2470,42 +2708,32 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Depricated";
-            var child_0 = new Xcls_Image76( _this );
+            var child_0 = new Xcls_Image79( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
-            // listeners 
+            //listeners
             this.el.button_press_event.connect( () => {
                 if (this.popup == null) {
                     this.popup = new Xcls_ValaCompileErrors();
                     this.popup.window = _this;
                 }
                 
-                if (_this.statusbar_errors.popup != null && _this.statusbar_errors.popup.active) {
-                    _this.statusbar_errors.popup.active = false;
-                    _this.statusbar_errors.popup.el.hide();
-                }
-                if (_this.statusbar_warnings.popup != null && _this.statusbar_warnings.popup.active) {
-                    _this.statusbar_warnings.popup.active = false;
-                    _this.statusbar_warnings.popup.el.hide();
-                }
                 
-                if (this.popup.active) {
-                    this.popup.active = false;
-                    this.popup.el.hide();
-                    return true;
-                }
                 this.popup.show(this.notices, this.el);
                 return true;
             });
         }
 
-        // user defined functions 
-        public void setNotices () {
+        // user defined functions
+        public void setNotices (Json.Object nots, int qty) {
+            this.el.show();
+            this.el.label = qty.to_string() + " Depricated";
+            this.notices = nots;
         
         }
     }
-    public class Xcls_Image76 : Object 
+    public class Xcls_Image79 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -2513,8 +2741,8 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
 
-        // ctor 
-        public Xcls_Image76(Xcls_MainWindow _owner )
+        // ctor
+        public Xcls_Image79(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -2525,6 +2753,75 @@ public class Xcls_MainWindow : Object
             this.el.icon_name = "dialog-information";
         }
 
-        // user defined functions 
+        // user defined functions
     }
+
+
+    public class Xcls_statusbar_run : Object
+    {
+        public Gtk.ImageMenuItem el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+        public Xcls_ValaCompileErrors popup;
+
+        // ctor
+        public Xcls_statusbar_run(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            _this.statusbar_run = this;
+            this.el = new Gtk.ImageMenuItem();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.always_show_image = true;
+            this.el.label = "Run";
+            var child_0 = new Xcls_Image81( _this );
+            child_0.ref();
+            this.el.set_image (  child_0.el  );
+
+            //listeners
+            this.el.button_press_event.connect( () => {
+               if (_this.windowstate.file == null) {
+                       return true;
+               }
+               _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
+               
+               _this.windowstate.compile_results.show(this.el,true);
+               
+               return true;
+            });
+        }
+
+        // user defined functions
+    }
+    public class Xcls_Image81 : Object
+    {
+        public Gtk.Image el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_Image81(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Image();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.icon_name = "media-playback-start";
+        }
+
+        // user defined functions
+    }
+
+
+
+
+
 }