fix #7968 - language server support for syntax check and completion
[roobuilder] / src / Builder4 / MainWindow.vala
index 39d89df..65636a6 100644 (file)
-static Xcls_MainWindow  _MainWindow;
+    static Xcls_MainWindow  _MainWindow;
 
-public class Xcls_MainWindow : Object
-{
-    public Gtk.Window el;
-    private Xcls_MainWindow  _this;
-
-    public static Xcls_MainWindow singleton()
+    public class Xcls_MainWindow : Object
     {
-        if (_MainWindow == null) {
-            _MainWindow= new Xcls_MainWindow();
+        public Gtk.ApplicationWindow el;
+        private Xcls_MainWindow  _this;
+
+        public static Xcls_MainWindow singleton()
+        {
+            if (_MainWindow == null) {
+                _MainWindow= new Xcls_MainWindow();
+            }
+            return _MainWindow;
         }
-        return _MainWindow;
-    }
-    public Xcls_headerbar headerbar;
-    public Xcls_topbarmenu topbarmenu;
-    public Xcls_openbtn openbtn;
-    public Xcls_openbackbtn openbackbtn;
-    public Xcls_vbox vbox;
-    public Xcls_mainpane mainpane;
-    public Xcls_leftpane leftpane;
-    public Xcls_editpane editpane;
-    public Xcls_tree tree;
-    public Xcls_props props;
-    public Xcls_clutterembed clutterembed;
-    public Xcls_rooview rooview;
-    public Xcls_objectview objectview;
-    public Xcls_codeeditview codeeditview;
-    public Xcls_addpropsview addpropsview;
-    public Xcls_buttonlayout buttonlayout;
-    public Xcls_backbutton backbutton;
-    public Xcls_editfilebutton editfilebutton;
-    public Xcls_projecteditbutton projecteditbutton;
-    public Xcls_objectshowbutton objectshowbutton;
-    public Xcls_addpropbutton addpropbutton;
-    public Xcls_addlistenerbutton addlistenerbutton;
-    public Xcls_addprojectbutton addprojectbutton;
-    public Xcls_addfilebutton addfilebutton;
-    public Xcls_delprojectbutton delprojectbutton;
-    public Xcls_statusbar_compile_spinner statusbar_compile_spinner;
-    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;
-    public string title;
-    public int no_windows;
-    public WindowState windowstate;
-
-    // ctor
-    public Xcls_MainWindow()
-    {
-        _this = this;
-        this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
-
-        // my vars (dec)
-        this.project = null;
-        this.title = "Roo Application Builder";
-        this.no_windows = 1;
-        this.windowstate = null;
-
-        // set gobject values
-        this.el.border_width = 0;
-        this.el.default_height = 500;
-        this.el.default_width = 800;
-        var child_0 = new Xcls_headerbar( _this );
-        child_0.ref();
-        this.el.set_titlebar (  child_0.el  );
-        var child_1 = new Xcls_vbox( _this );
-        child_1.ref();
-        this.el.add (  child_1.el  );
-
-        // init method
-
-        //this.el.show_all();
-            //try {
-                 this.el.set_icon_name("roobuilder");
-               //} catch (Exception e) {
-               //      print("no icon found");
-        //     }
-
-        //listeners
-        this.el.delete_event.connect( (   event) => {
-            return false;
-        });
-        this.el.destroy.connect( () =>  {
-         Xcls_MainWindow.singleton().no_windows--;
-         
-         Resources.singleton().disconnect(_this.statusbar.handler_id);
-         
-         
-         if (Xcls_MainWindow.singleton().no_windows < 1) {
+        public Xcls_headerbar headerbar;
+        public Xcls_windowbtn windowbtn;
+        public Xcls_windowspopup windowspopup;
+        public Xcls_popover_menu popover_menu;
+        public Xcls_open_projects_btn open_projects_btn;
+        public Xcls_vbox vbox;
+        public Xcls_mainpane mainpane;
+        public Xcls_leftpane leftpane;
+        public Xcls_editpane editpane;
+        public Xcls_tree tree;
+        public Xcls_props props;
+        public Xcls_rooviewbox rooviewbox;
+        public Xcls_codeeditviewbox codeeditviewbox;
+        public Xcls_topbarmenu topbarmenu;
+        public Xcls_statusbar statusbar;
+        public Xcls_statusbar_compilestatus_label statusbar_compilestatus_label;
+        public Xcls_statusbar_errors statusbar_errors;
+        public Xcls_statusbar_warnings statusbar_warnings;
+        public Xcls_statusbar_depricated statusbar_depricated;
+        public Xcls_statusbar_run statusbar_run;
+        public Xcls_statusbar_compile_spinner statusbar_compile_spinner;
+
+            // my vars (def)
+        public WindowState windowstate;
+        public Project.Project project;
+
+        // ctor
+        public Xcls_MainWindow()
+        {
+            _this = this;
+            this.el = new Gtk.ApplicationWindow(BuilderApplication.singleton({}));
+
+            // my vars (dec)
+            this.project = null;
+
+            // set gobject values
+            this.el.title = "Roo Application Builder";
+            this.el.default_height = 850;
+            this.el.default_width = 1200;
+            new Xcls_headerbar( _this );
+            this.el.set_titlebar ( _this.headerbar.el  );
+            new Xcls_vbox( _this );
+            this.el.set_child ( _this.vbox.el  );
+
+            // init method
+
+            this.el.set_icon_name("roobuilder");
+
+            //listeners
+            this.el.close_request.connect( ( ) => {
+                Resources.singleton().disconnect(_this.statusbar.handler_id);
+                
+                
+                this.windowstate.file.getLanguageServer().document_close(
+                       this.windowstate.file
+               );
+                
+                BuilderApplication.removeWindow(this);
+                
+                if (BuilderApplication.windows.size  < 1) {
+                       this.windowstate.file.getLanguageServer().exit();
+                       BuilderApplication.singleton(  null ).quit();
+                }
+               return true;
+            });
+            this.el.show.connect( ( ) => {
+                // hide the file editing..
+               
+                //this.hideViewEditing();
+                // this is updated by windowstate - we try and fill it in..
+                 _this.statusbar.el.hide();
+                 //_this.statusbar_errors.el.hide();
+                //_this.statusbar_warnings.el.hide();
+                //_this.statusbar_depricated.el.hide();
+                _this.statusbar_compile_spinner.el.hide();
+              
+                Resources.singleton().checkResources();
+                
+              
+            
+            });
+            this.el.hide.connect( () =>  {
+             
+             
+            
+            });
+        }
+
+        // user defined functions
+        public void updateErrors () {
         
-             Gtk.main_quit();
-         }
-        });
-        this.el.show.connect( ( ) => {
-            // hide the file editing..
-           
-            //this.hideViewEditing();
-            _this.statusbar.el.hide();
-             _this.statusbar_errors.el.hide();
-            _this.statusbar_warnings.el.hide();
-            _this.statusbar_depricated.el.hide();
-            _this.statusbar_compile_spinner.el.hide();
-          
-            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;
-                       }
-                       
-               }    
+               GLib.debug("updateErrors");
                
-               if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
-                       print("SAVE: ctrl-n  pressed");
-                       this.openNewWindow();
-                       return false;
-               }
+               var pr = this.windowstate.project.getErrors("ERR");
+               
+               this.statusbar_errors.setNotices(
+                       pr,
+                       this.windowstate.file.getErrors("ERR")
+               );
+               
+               this.statusbar_warnings.setNotices(
+                       this.windowstate.project.getErrors("WARN"),
+                       this.windowstate.file.getErrors("WARN")
+               );
+               this.statusbar_depricated.setNotices(
+                       this.windowstate.project.getErrors("DEPR"),
+                       this.windowstate.file.getErrors("DEPR")
+               );
+         
+               _this.statusbar_run.el.hide();
+        
+               if (pr.get_n_items() < 1) {
+                       _this.statusbar_run.el.show();
+               } 
                
-           // print(event.key.keyval)
+        }
+        public void initChildren () {
+            // this needs putting in a better place..
+            this.windowstate = new WindowState(this);
+             
+        
+         
+        
             
-            return false;
         
-        });
-    }
-
-    // user defined functions
-    public void openNewWindow () {
-       Xcls_MainWindow.singleton().no_windows++;
+        
+        
+        }
+        public void show () {
+           
+            this.el.show();
+            if (this.windowstate.file  == null) {
+               this.windowstate.showPopoverFiles(this.open_projects_btn.el, null, false);
+            }
+        }
+        public void setTitle () {
+            if (_this.windowstate.project == null || 
+                   _this.windowstate.file == null
+            ) {
+               this.el.set_title("Select File");
+               return;
+               }
+            _this.el.set_title(
+               _this.windowstate.project.name + 
+               " - " +
+                       _this.windowstate.file.relpath);
+        }
+        public void openNewWindow () {
+         
             var w = new Xcls_MainWindow();
             w.ref();
-    
-            w.el.show_all();
+               BuilderApplication.addWindow(w);
+            w.el.show();
             w.initChildren();
-            w.windowstate.switchState(WindowState.State.FILES);
-    }
-    public        void initChildren () {
-        // this needs putting in a better place..
-        this.windowstate = new WindowState(this);
-         
-    
-        //w.el.show_all();
-        var tl = new Clutter.Timeline(6000);
-        tl.set_repeat_count(-1);
-        tl.start();
-        tl.ref();
-    
-        
-    
-    
-    
-    }
-    public             void show () {
-       
-        this.el.show_all();
-    
-    }
-    public             void setTitle (string str) {
-        this.headerbar.el.set_title(this.title + " - " + str);
-    }
-    public class Xcls_headerbar : Object
-    {
-        public Gtk.HeaderBar el;
-        private Xcls_MainWindow  _this;
+            w.windowstate.showPopoverFiles(w.open_projects_btn.el, _this.project, false);
+             
+        }
+        public class Xcls_headerbar : Object
+        {
+            public Gtk.HeaderBar el;
+            private Xcls_MainWindow  _this;
 
 
-            // my vars (def)
+                // my vars (def)
+            public bool show_close_button;
+            public string title;
 
-        // ctor
-        public Xcls_headerbar(Xcls_MainWindow _owner )
+            // ctor
+            public Xcls_headerbar(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.headerbar = this;
+                this.el = new Gtk.HeaderBar();
+
+                // my vars (dec)
+                this.show_close_button = true;
+                this.title = "Application Builder";
+
+                // set gobject values
+                var child_1 = new Xcls_Box3( _this );
+                child_1.ref();
+                this.el.pack_start ( child_1.el  );
+            }
+
+            // user defined functions
+        }
+        public class Xcls_Box3 : Object
         {
-            _this = _owner;
-            _this.headerbar = this;
-            this.el = new Gtk.HeaderBar();
+            public Gtk.Box el;
+            private Xcls_MainWindow  _this;
 
-            // my vars (dec)
 
-            // set gobject values
-            this.el.title = "Application Builder";
-            this.el.show_close_button = true;
-            var child_0 = new Xcls_Box3( _this );
-            child_0.ref();
-            this.el.pack_start (  child_0.el  );
-        }
+                // my vars (def)
 
-        // user defined functions
-    }
-    public class Xcls_Box3 : Object
-    {
-        public Gtk.Box el;
-        private Xcls_MainWindow  _this;
+            // ctor
+            public Xcls_Box3(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
 
+                // my vars (dec)
 
-            // my vars (def)
+                // set gobject values
+                new Xcls_windowbtn( _this );
+                this.el.append( _this.windowbtn.el );
+                new Xcls_open_projects_btn( _this );
+                this.el.append ( _this.open_projects_btn.el  );
+            }
 
-        // ctor
-        public Xcls_Box3(Xcls_MainWindow _owner )
+            // user defined functions
+        }
+        public class Xcls_windowbtn : Object
         {
-            _this = _owner;
-            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
+            public Gtk.Button el;
+            private Xcls_MainWindow  _this;
 
-            // my vars (dec)
 
-            // set gobject values
-            var child_0 = new Xcls_MenuButton4( _this );
-            child_0.ref();
-            this.el.add (  child_0.el  );
-            var child_1 = new Xcls_openbtn( _this );
-            child_1.ref();
-            this.el.add (  child_1.el  );
-            var child_2 = new Xcls_openbackbtn( _this );
-            child_2.ref();
-            this.el.add (  child_2.el  );
-        }
+                // my vars (def)
+            public Gee.ArrayList<Gtk.Widget> mitems;
 
-        // user defined functions
-    }
-    public class Xcls_MenuButton4 : Object
-    {
-        public Gtk.MenuButton el;
-        private Xcls_MainWindow  _this;
+            // ctor
+            public Xcls_windowbtn(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.windowbtn = this;
+                this.el = new Gtk.Button();
 
+                // my vars (dec)
 
-            // my vars (def)
+                // set gobject values
+                this.el.margin_end = 4;
+                this.el.halign = Gtk.Align.START;
+                new Xcls_windowspopup( _this );
+                var child_2 = new Xcls_Box10( _this );
+                this.el.child = child_2.el;
 
-        // ctor
-        public Xcls_MenuButton4(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.MenuButton();
+                // init method
 
-            // my vars (dec)
+                {
+                       this.mitems = new Gee.ArrayList<Gtk.Button>();
+                }
 
-            // set gobject values
-            this.el.use_popover = false;
-            var child_0 = new Xcls_topbarmenu( _this );
-            child_0.ref();
-            this.el.set_popup (  child_0.el  );
-            var child_1 = new Xcls_Image10( _this );
-            child_1.ref();
-            this.el.set_image (  child_1.el  );
+                //listeners
+                this.el.clicked.connect( ( ) => {
+                       this.updateMenu();
+                
+                        _this.windowspopup.el.set_parent(this.el);
+                
+                        _this.windowspopup.el.set_position(Gtk.PositionType.BOTTOM); 
+                        _this.windowspopup.el.popup(); 
+                });
+            }
+
+            // user defined functions
+            public void updateMenu () {
+                foreach(var m in  this.mitems) {
+                        _this.popover_menu.el.remove(m);
+                }
+                this.mitems.clear();
+               
+                BuilderApplication.windows.sort((a,b) => {
+                       if (a.windowstate == null ||
+                                a.windowstate.file == null || 
+                                b.windowstate == null ||
+                                b.windowstate.file == null
+                                ) { 
+                               return 0;
+                       }
+            
+                       var ap = a.windowstate.file.project.name;
+                       var bp = b.windowstate.file.project.name;
+                       
+            
+                       
+                       if (ap != bp) {
+                               return ap.collate(bp);
+                       }
+                       var af =  a.windowstate.file == null ? "" : a.windowstate.file.getTitle();
+                       var bf = b.windowstate.file == null ? "" : b.windowstate.file.getTitle();               
+                       return af.collate(bf);
+                
+                });
+                
+                var p = "";
+                foreach(var w in BuilderApplication.windows) {
+                       var wid = BuilderApplication.windows.index_of(w);
+                       // fixme find a better way to display this.
+                       if (w.windowstate == null ||
+                                w.windowstate.file == null || 
+                                _this.windowstate == null ||
+                                _this.windowstate.file == null
+                                ) { 
+                               continue;
+                       }
+                       // should not happen...
+                       if (w.windowstate.file.path == _this.windowstate.file.path) {
+                               continue;
+                       }
+                       if (w.windowstate.file.project.name != p || p != "") {
+                               var ms = new Gtk.Separator(Gtk.Orientation.HORIZONTAL);
+                               _this.popover_menu.el.append(ms);
+                               ms.show();
+                               this.mitems.add(ms);
+                       }
+                       
+                       p = w.windowstate.file.project.name;
+                       
+            
+                       GLib.debug("add menuitem %s", w.windowstate.file.path);
+                       
+                       
+                       
+                       var m = new Gtk.Button.with_label(
+                               w.windowstate.file.project.name + " : " + w.windowstate.file.relpath
+                       );
+                       m.halign = Gtk.Align.START;
+                       
+                       
+                       //w.windowstate.file.path);
+                       m.clicked.connect(() => {
+                               _this.windowspopup.el.hide();
+                                BuilderApplication.windows.get(wid).el.present();
+                       });
+                       _this.popover_menu.el.append(m);
+                       //m.show();
+                       this.mitems.add(m);
+                }
+            }
         }
+        public class Xcls_windowspopup : Object
+        {
+            public Gtk.Popover el;
+            private Xcls_MainWindow  _this;
 
-        // user defined functions
-    }
-    public class Xcls_topbarmenu : Object
-    {
-        public Gtk.Menu el;
-        private Xcls_MainWindow  _this;
 
+                // my vars (def)
 
-            // my vars (def)
+            // ctor
+            public Xcls_windowspopup(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.windowspopup = this;
+                this.el = new Gtk.Popover();
 
-        // ctor
-        public Xcls_topbarmenu(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.topbarmenu = this;
-            this.el = new Gtk.Menu();
+                // my vars (dec)
 
-            // my vars (dec)
+                // set gobject values
+                new Xcls_popover_menu( _this );
+                this.el.set_child ( _this.popover_menu.el  );
+            }
 
-            // set gobject values
-            var child_0 = new Xcls_MenuItem6( _this );
-            child_0.ref();
-            this.el.append (  child_0.el  );
-            var child_1 = new Xcls_SeparatorMenuItem7( _this );
-            child_1.ref();
-            this.el.append (  child_1.el  );
-            var child_2 = new Xcls_MenuItem8( _this );
-            child_2.ref();
-            this.el.append (  child_2.el  );
-            var child_3 = new Xcls_MenuItem9( _this );
-            child_3.ref();
-            this.el.append (  child_3.el  );
+            // user defined functions
+        }
+        public class Xcls_popover_menu : Object
+        {
+            public Gtk.Box el;
+            private Xcls_MainWindow  _this;
 
-            // init method
 
+                // my vars (def)
+
+            // ctor
+            public Xcls_popover_menu(Xcls_MainWindow _owner )
             {
-                this.el.show_all();
+                _this = _owner;
+                _this.popover_menu = this;
+                this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
+
+                // my vars (dec)
+
+                // set gobject values
+                var child_1 = new Xcls_Button7( _this );
+                child_1.ref();
+                this.el.append ( child_1.el  );
+                var child_2 = new Xcls_Separator9( _this );
+                child_2.ref();
+                this.el.append ( child_2.el  );
             }
+
+            // user defined functions
         }
+        public class Xcls_Button7 : Object
+        {
+            public Gtk.Button el;
+            private Xcls_MainWindow  _this;
 
-        // user defined functions
-    }
-    public class Xcls_MenuItem6 : Object
-    {
-        public Gtk.MenuItem el;
-        private Xcls_MainWindow  _this;
 
+                // my vars (def)
 
-            // my vars (def)
+            // ctor
+            public Xcls_Button7(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                this.el = new Gtk.Button();
 
-        // ctor
-        public Xcls_MenuItem6(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.MenuItem();
+                // my vars (dec)
 
-            // my vars (dec)
+                // set gobject values
+                this.el.label = "New Window";
+                var child_1 = new Xcls_ShortcutController8( _this );
+                child_1.ref();
+                this.el.add_controller(  child_1.el );
 
-            // set gobject values
-            this.el.label = "Open a new Window";
+                //listeners
+                this.el.clicked.connect( ( ) => {
+                       _this.windowspopup.el.hide();
+                       _this.windowstate.showPopoverFiles(_this.windowbtn.el, _this.project, true);
+                });
+            }
 
-            //listeners
-            this.el.activate.connect( ( ) => {
-                   _this.openNewWindow();
-            });
+            // user defined functions
         }
+        public class Xcls_ShortcutController8 : Object
+        {
+            public Gtk.ShortcutController el;
+            private Xcls_MainWindow  _this;
 
-        // user defined functions
-    }
 
-    public class Xcls_SeparatorMenuItem7 : Object
-    {
-        public Gtk.SeparatorMenuItem el;
-        private Xcls_MainWindow  _this;
+                // my vars (def)
 
+            // ctor
+            public Xcls_ShortcutController8(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                this.el = new Gtk.ShortcutController();
 
-            // my vars (def)
+                // my vars (dec)
 
-        // ctor
-        public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.SeparatorMenuItem();
+                // set gobject values
+                this.el.scope = Gtk.ShortcutScope.GLOBAL;
 
-            // my vars (dec)
+                // init method
 
-            // set gobject values
+                {
+                       this.el.add_shortcut(
+                               new Gtk.Shortcut(
+                                       new Gtk.KeyvalTrigger(Gdk.Key.N,Gdk.ModifierType.CONTROL_MASK),
+                                       new Gtk.SignalAction("clicked")
+                               )
+                       );
+                }
+            }
+
+            // user defined functions
         }
 
-        // user defined functions
-    }
 
-    public class Xcls_MenuItem8 : Object
-    {
-        public Gtk.MenuItem el;
-        private Xcls_MainWindow  _this;
+        public class Xcls_Separator9 : Object
+        {
+            public Gtk.Separator el;
+            private Xcls_MainWindow  _this;
 
 
-            // my vars (def)
+                // my vars (def)
 
-        // ctor
-        public Xcls_MenuItem8(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.MenuItem();
+            // ctor
+            public Xcls_Separator9(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                this.el = new Gtk.Separator( Gtk.Orientation.HORIZONTAL );
 
-            // my vars (dec)
+                // my vars (dec)
 
-            // set gobject values
-            this.el.label = "Download updated Resources";
+                // set gobject values
+            }
 
-            //listeners
-            this.el.activate.connect( ( ) => {
-                     Resources.singleton().fetchStart();
-            });
+            // user defined functions
         }
 
-        // user defined functions
-    }
-
-    public class Xcls_MenuItem9 : Object
-    {
-        public Gtk.MenuItem el;
-        private Xcls_MainWindow  _this;
-
 
-            // my vars (def)
 
-        // ctor
-        public Xcls_MenuItem9(Xcls_MainWindow _owner )
+        public class Xcls_Box10 : Object
         {
-            _this = _owner;
-            this.el = new Gtk.MenuItem();
+            public Gtk.Box el;
+            private Xcls_MainWindow  _this;
 
-            // my vars (dec)
 
-            // set gobject values
-            this.el.label = "About the Builder";
+                // my vars (def)
 
-            //listeners
-            this.el.activate.connect( () => {
-                About.singleton().el.show();
-                });
+            // ctor
+            public Xcls_Box10(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
+
+                // my vars (dec)
+
+                // set gobject values
+                var child_1 = new Xcls_Image11( _this );
+                child_1.ref();
+                this.el.append( child_1.el );
+                var child_2 = new Xcls_Label12( _this );
+                child_2.ref();
+                this.el.append( child_2.el );
+            }
+
+            // user defined functions
         }
+        public class Xcls_Image11 : Object
+        {
+            public Gtk.Image el;
+            private Xcls_MainWindow  _this;
 
-        // user defined functions
-    }
 
+                // my vars (def)
 
-    public class Xcls_Image10 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
+            // ctor
+            public Xcls_Image11(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                this.el = new Gtk.Image();
 
+                // my vars (dec)
 
-            // my vars (def)
+                // set gobject values
+                this.el.icon_name = "window-new";
+                this.el.margin_start = 4;
+            }
 
-        // ctor
-        public Xcls_Image10(Xcls_MainWindow _owner )
+            // user defined functions
+        }
+
+        public class Xcls_Label12 : Object
         {
-            _this = _owner;
-            this.el = new Gtk.Image();
+            public Gtk.Label el;
+            private Xcls_MainWindow  _this;
 
-            // my vars (dec)
 
-            // set gobject values
-            this.el.icon_name = "help-about";
-        }
+                // my vars (def)
 
-        // user defined functions
-    }
+            // ctor
+            public Xcls_Label12(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                this.el = new Gtk.Label( "Windows (Add/List)" );
 
+                // my vars (dec)
 
-    public class Xcls_openbtn : Object
-    {
-        public Gtk.Button el;
-        private Xcls_MainWindow  _this;
+                // set gobject values
+            }
+
+            // user defined functions
+        }
 
 
-            // my vars (def)
 
-        // ctor
-        public Xcls_openbtn(Xcls_MainWindow _owner )
+        public class Xcls_open_projects_btn : Object
         {
-            _this = _owner;
-            _this.openbtn = this;
-            this.el = new Gtk.Button();
+            public Gtk.Button el;
+            private Xcls_MainWindow  _this;
 
-            // my vars (dec)
 
-            // set gobject values
-            var child_0 = new Xcls_Image12( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
+                // my vars (def)
+            public bool always_show_image;
 
-            //listeners
-            this.el.clicked.connect( ( ) => {
-               _this.windowstate.switchState(WindowState.State.FILES);
-                  
-            
-            });
-        }
+            // ctor
+            public Xcls_open_projects_btn(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.open_projects_btn = this;
+                this.el = new Gtk.Button();
 
-        // user defined functions
-    }
-    public class Xcls_Image12 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
+                // my vars (dec)
+                this.always_show_image = true;
 
+                // set gobject values
+                this.el.icon_name = "system-file-manager";
+                this.el.label = "Files / Projects";
 
-            // my vars (def)
+                //listeners
+                this.el.clicked.connect( ( ) => {
+                       _this.windowstate.showPopoverFiles(this.el, _this.project, false);
+                });
+            }
 
-        // ctor
-        public Xcls_Image12(Xcls_MainWindow _owner )
+            // user defined functions
+        }
+
+
+
+        public class Xcls_vbox : Object
         {
-            _this = _owner;
-            this.el = new Gtk.Image();
+            public Gtk.Box el;
+            private Xcls_MainWindow  _this;
 
-            // my vars (dec)
 
-            // set gobject values
-            this.el.icon_name = "document-open";
-        }
+                // my vars (def)
 
-        // user defined functions
-    }
+            // ctor
+            public Xcls_vbox(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.vbox = this;
+                this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
+
+                // my vars (dec)
+
+                // set gobject values
+                this.el.homogeneous = false;
+                this.el.vexpand = true;
+                new Xcls_mainpane( _this );
+                this.el.append( _this.mainpane.el );
+                var child_2 = new Xcls_Box23( _this );
+                child_2.ref();
+                this.el.append( child_2.el );
+            }
 
+            // user defined functions
+        }
+        public class Xcls_mainpane : Object
+        {
+            public Gtk.Paned el;
+            private Xcls_MainWindow  _this;
 
-    public class Xcls_openbackbtn : Object
-    {
-        public Gtk.Button el;
-        private Xcls_MainWindow  _this;
 
+                // my vars (def)
+            public int lastWidth;
 
-            // my vars (def)
+            // ctor
+            public Xcls_mainpane(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.mainpane = this;
+                this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
+
+                // my vars (dec)
+                this.lastWidth = 0;
+
+                // set gobject values
+                this.el.hexpand = true;
+                this.el.vexpand = true;
+                this.el.position = 400;
+                new Xcls_leftpane( _this );
+                this.el.start_child = _this.leftpane.el;
+                var child_2 = new Xcls_Box20( _this );
+                this.el.end_child = child_2.el;
+
+                //listeners
+                this.el.accept_position.connect( ( ) => {
+                       _this.windowstate.left_tree.onresize();
+                       return true;
+                });
+            }
 
-        // ctor
-        public Xcls_openbackbtn(Xcls_MainWindow _owner )
+            // user defined functions
+        }
+        public class Xcls_leftpane : Object
         {
-            _this = _owner;
-            _this.openbackbtn = this;
-            this.el = new Gtk.Button();
+            public Gtk.Box el;
+            private Xcls_MainWindow  _this;
 
-            // my vars (dec)
 
-            // set gobject values
-            this.el.tooltip_text = "Back";
-            this.el.visible = false;
-            var child_0 = new Xcls_Image14( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
+                // my vars (def)
 
-            //listeners
-            this.el.clicked.connect( ( ) => {
-              
-                _this.windowstate.switchState(WindowState.State.PREVIEW);
-                
-            
-            });
+            // ctor
+            public Xcls_leftpane(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.leftpane = this;
+                this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
+
+                // my vars (dec)
+
+                // set gobject values
+                this.el.hexpand = true;
+                this.el.vexpand = true;
+                new Xcls_editpane( _this );
+                this.el.append( _this.editpane.el );
+            }
+
+            // user defined functions
         }
+        public class Xcls_editpane : Object
+        {
+            public Gtk.Paned el;
+            private Xcls_MainWindow  _this;
 
-        // user defined functions
-    }
-    public class Xcls_Image14 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
 
+                // my vars (def)
 
-            // my vars (def)
+            // ctor
+            public Xcls_editpane(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.editpane = this;
+                this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
+
+                // my vars (dec)
+
+                // set gobject values
+                new Xcls_tree( _this );
+                this.el.start_child = _this.tree.el;
+                new Xcls_props( _this );
+                this.el.end_child = _this.props.el;
+
+                //listeners
+                this.el.accept_position.connect( ( ) => {
+                       _this.windowstate.left_tree.onresize();
+                       return true;
+                });
+                this.el.move_handle.connect( (scroll) => {
+                       GLib.debug("Move handle");
+                       return true;
+                });
+            }
 
-        // ctor
-        public Xcls_Image14(Xcls_MainWindow _owner )
+            // user defined functions
+        }
+        public class Xcls_tree : Object
         {
-            _this = _owner;
-            this.el = new Gtk.Image();
+            public Gtk.Box el;
+            private Xcls_MainWindow  _this;
 
-            // my vars (dec)
 
-            // set gobject values
-            this.el.icon_name = "go-previous";
-        }
+                // my vars (def)
 
-        // user defined functions
-    }
+            // ctor
+            public Xcls_tree(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.tree = this;
+                this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
+                // my vars (dec)
 
+                // set gobject values
+                this.el.hexpand = true;
+                this.el.vexpand = true;
+            }
 
+            // user defined functions
+        }
 
-    public class Xcls_vbox : Object
-    {
-        public Gtk.Box el;
-        private Xcls_MainWindow  _this;
+        public class Xcls_props : Object
+        {
+            public Gtk.Box el;
+            private Xcls_MainWindow  _this;
 
 
-            // my vars (def)
+                // my vars (def)
 
-        // ctor
-        public Xcls_vbox(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.vbox = this;
-            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
+            // ctor
+            public Xcls_props(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.props = this;
+                this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
-            // my vars (dec)
+                // 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_statusbar_compile_spinner( _this );
-            child_1.ref();
-            this.el.pack_end (  child_1.el , false,true,0 );
-        }
+                // set gobject values
+                this.el.hexpand = true;
+                this.el.vexpand = true;
+            }
 
-        // user defined functions
-    }
-    public class Xcls_mainpane : Object
-    {
-        public Gtk.Paned el;
-        private Xcls_MainWindow  _this;
+            // user defined functions
+        }
 
 
-            // my vars (def)
-        public int lastWidth;
 
-        // ctor
-        public Xcls_mainpane(Xcls_MainWindow _owner )
+        public class Xcls_Box20 : Object
         {
-            _this = _owner;
-            _this.mainpane = this;
-            this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
+            public Gtk.Box el;
+            private Xcls_MainWindow  _this;
 
-            // my vars (dec)
-            this.lastWidth = 0;
 
-            // set gobject values
-            this.el.position = 400;
-            var child_0 = new Xcls_leftpane( _this );
-            child_0.ref();
-            this.el.add1 (  child_0.el  );
-            var child_1 = new Xcls_Box21( _this );
-            child_1.ref();
-            this.el.add2 (  child_1.el  );
+                // my vars (def)
+
+            // ctor
+            public Xcls_Box20(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
+
+                // my vars (dec)
+
+                // set gobject values
+                this.el.hexpand = true;
+                this.el.vexpand = true;
+                new Xcls_rooviewbox( _this );
+                this.el.append( _this.rooviewbox.el );
+                new Xcls_codeeditviewbox( _this );
+                this.el.append( _this.codeeditviewbox.el );
+            }
+
+            // user defined functions
         }
+        public class Xcls_rooviewbox : Object
+        {
+            public Gtk.Box el;
+            private Xcls_MainWindow  _this;
 
-        // user defined functions
-    }
-    public class Xcls_leftpane : Object
-    {
-        public Gtk.Box el;
-        private Xcls_MainWindow  _this;
 
+                // my vars (def)
 
-            // my vars (def)
+            // ctor
+            public Xcls_rooviewbox(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.rooviewbox = this;
+                this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
-        // ctor
-        public Xcls_leftpane(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.leftpane = this;
-            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
+                // my vars (dec)
 
-            // my vars (dec)
+                // set gobject values
+                this.el.hexpand = true;
+                this.el.vexpand = true;
+            }
 
-            // set gobject values
-            var child_0 = new Xcls_editpane( _this );
-            child_0.ref();
-            this.el.pack_start (  child_0.el , true,true,0 );
+            // user defined functions
         }
 
-        // user defined functions
-    }
-    public class Xcls_editpane : Object
-    {
-        public Gtk.Paned el;
-        private Xcls_MainWindow  _this;
+        public class Xcls_codeeditviewbox : Object
+        {
+            public Gtk.Box el;
+            private Xcls_MainWindow  _this;
 
 
-            // my vars (def)
+                // my vars (def)
 
-        // ctor
-        public Xcls_editpane(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.editpane = this;
-            this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
+            // ctor
+            public Xcls_codeeditviewbox(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.codeeditviewbox = this;
+                this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
-            // my vars (dec)
+                // my vars (dec)
 
-            // set gobject values
-            var child_0 = new Xcls_tree( _this );
-            child_0.ref();
-            this.el.add1 (  child_0.el  );
-            var child_1 = new Xcls_props( _this );
-            child_1.ref();
-            this.el.add2 (  child_1.el  );
-        }
+                // set gobject values
+                this.el.hexpand = true;
+                this.el.vexpand = true;
+            }
 
-        // user defined functions
-    }
-    public class Xcls_tree : Object
-    {
-        public Gtk.Box el;
-        private Xcls_MainWindow  _this;
+            // user defined functions
+        }
 
 
-            // my vars (def)
 
-        // ctor
-        public Xcls_tree(Xcls_MainWindow _owner )
+        public class Xcls_Box23 : Object
         {
-            _this = _owner;
-            _this.tree = this;
-            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
+            public Gtk.Box el;
+            private Xcls_MainWindow  _this;
 
-            // my vars (dec)
 
-            // set gobject values
+                // my vars (def)
+
+            // ctor
+            public Xcls_Box23(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
+
+                // my vars (dec)
+
+                // set gobject values
+                this.el.homogeneous = false;
+                this.el.vexpand = false;
+                var child_1 = new Xcls_Button24( _this );
+                child_1.ref();
+                this.el.append( child_1.el );
+                var child_2 = new Xcls_Button25( _this );
+                child_2.ref();
+                this.el.append( child_2.el );
+                var child_3 = new Xcls_MenuButton26( _this );
+                child_3.ref();
+                this.el.append( child_3.el );
+                var child_4 = new Xcls_Label31( _this );
+                child_4.ref();
+                this.el.append( child_4.el );
+                new Xcls_statusbar( _this );
+                this.el.append( _this.statusbar.el );
+                var child_6 = new Xcls_Box33( _this );
+                child_6.ref();
+                this.el.append( child_6.el );
+                new Xcls_statusbar_compile_spinner( _this );
+                this.el.append( _this.statusbar_compile_spinner.el );
+            }
+
+            // user defined functions
         }
+        public class Xcls_Button24 : Object
+        {
+            public Gtk.Button el;
+            private Xcls_MainWindow  _this;
 
-        // user defined functions
-    }
 
-    public class Xcls_props : Object
-    {
-        public Gtk.Box el;
-        private Xcls_MainWindow  _this;
+                // my vars (def)
+            public bool always_show_image;
 
+            // ctor
+            public Xcls_Button24(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                this.el = new Gtk.Button();
 
-            // my vars (def)
+                // my vars (dec)
+                this.always_show_image = true;
 
-        // ctor
-        public Xcls_props(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.props = this;
-            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
+                // set gobject values
+                this.el.icon_name = "emblem-system";
+                this.el.tooltip_text = "Project Details";
+                this.el.label = "Edit Project Settings";
 
-            // my vars (dec)
+                //listeners
+                this.el.clicked.connect( ( ) => {
+                     
+                     _this.windowstate.projectPopoverShow(_this.el, null, null);
+                   
+                  
+                });
+            }
 
-            // set gobject values
+            // user defined functions
         }
 
-        // user defined functions
-    }
+        public class Xcls_Button25 : Object
+        {
+            public Gtk.Button el;
+            private Xcls_MainWindow  _this;
 
 
+                // my vars (def)
+            public bool always_show_image;
 
-    public class Xcls_Box21 : Object
-    {
-        public Gtk.Box el;
-        private Xcls_MainWindow  _this;
+            // ctor
+            public Xcls_Button25(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                this.el = new Gtk.Button();
 
+                // my vars (dec)
+                this.always_show_image = true;
 
-            // my vars (def)
+                // set gobject values
+                this.el.icon_name = "document-properties";
+                this.el.tooltip_text = "File Details";
+                this.el.label = "Edit File Properties";
 
-        // ctor
-        public Xcls_Box21(Xcls_MainWindow _owner )
+                //listeners
+                this.el.clicked.connect( ( ) => {
+                  
+                    // create a new file in project..
+                    if (_this.project == null || _this.windowstate.file == null) {
+                        return  ;
+                    }
+                     _this.windowstate.file_details.show(
+                        _this.windowstate.file, _this.el, false
+                    );
+                     
+                    return  ;    
+                
+                
+                });
+            }
+
+            // user defined functions
+        }
+
+        public class Xcls_MenuButton26 : Object
         {
-            _this = _owner;
-            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
+            public Gtk.MenuButton el;
+            private Xcls_MainWindow  _this;
 
-            // my vars (dec)
 
-            // set gobject values
-            var child_0 = new Xcls_clutterembed( _this );
-            child_0.ref();
-            this.el.pack_start (  child_0.el , true,true,0 );
-        }
+                // my vars (def)
+            public bool always_show_image;
 
-        // user defined functions
-    }
-    public class Xcls_clutterembed : Object
-    {
-        public GtkClutter.Embed el;
-        private Xcls_MainWindow  _this;
+            // ctor
+            public Xcls_MenuButton26(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                this.el = new Gtk.MenuButton();
 
+                // my vars (dec)
+                this.always_show_image = true;
 
-            // my vars (def)
+                // set gobject values
+                this.el.icon_name = "dialog-information";
+                this.el.label = "About";
+                new Xcls_topbarmenu( _this );
+                this.el.popover = _this.topbarmenu.el;
+            }
 
-        // ctor
-        public Xcls_clutterembed(Xcls_MainWindow _owner )
+            // user defined functions
+        }
+        public class Xcls_topbarmenu : Object
         {
-            _this = _owner;
-            _this.clutterembed = this;
-            this.el = new GtkClutter.Embed();
+            public Gtk.PopoverMenu el;
+            private Xcls_MainWindow  _this;
 
-            // my vars (dec)
 
-            // set gobject values
-            var child_0 = new Xcls_rooview( _this );
-            child_0.ref();
-            this.el.get_stage().add_child (  child_0.el  );
-            var child_1 = new Xcls_objectview( _this );
-            child_1.ref();
-            this.el.get_stage().add_child (  child_1.el  );
-            var child_2 = new Xcls_codeeditview( _this );
-            child_2.ref();
-            this.el.get_stage().add_child (  child_2.el  );
-            var child_3 = new Xcls_addpropsview( _this );
-            child_3.ref();
-            this.el.get_stage().add_child (  child_3.el  );
-            var child_4 = new Xcls_buttonlayout( _this );
-            child_4.ref();
-            this.el.get_stage().add_child (  child_4.el  );
+                // my vars (def)
 
-            // init method
+            // ctor
+            public Xcls_topbarmenu(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.topbarmenu = this;
+                this.el = new Gtk.PopoverMenu.from_model(null);
 
-            var stage = this.el.get_stage();
-                stage.set_background_color(  Clutter.Color.from_string("#000"));
+                // my vars (dec)
 
-            //listeners
-            this.el.size_allocate.connect( (  alloc) => {
-                if (_this.windowstate == null) {
-                    return;
+                // set gobject values
+                var child_1 = new Xcls_Box28( _this );
+                child_1.ref();
+                this.el.set_child ( child_1.el  );
+
+                // init method
+
+                {
+                   // this.el.show();
                 }
-                _this.windowstate.resizeCanvas(); 
-                    
-            });
+            }
+
+            // user defined functions
         }
+        public class Xcls_Box28 : Object
+        {
+            public Gtk.Box el;
+            private Xcls_MainWindow  _this;
 
-        // user defined functions
-    }
-    public class Xcls_rooview : Object
-    {
-        public GtkClutter.Actor el;
-        private Xcls_MainWindow  _this;
 
+                // my vars (def)
 
-            // my vars (def)
+            // ctor
+            public Xcls_Box28(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
+
+                // my vars (dec)
+
+                // set gobject values
+                var child_1 = new Xcls_Button29( _this );
+                child_1.ref();
+                this.el.append( child_1.el );
+                var child_2 = new Xcls_Button30( _this );
+                child_2.ref();
+                this.el.append( child_2.el );
+            }
 
-        // ctor
-        public Xcls_rooview(Xcls_MainWindow _owner )
+            // user defined functions
+        }
+        public class Xcls_Button29 : Object
         {
-            _this = _owner;
-            _this.rooview = this;
-            this.el = new GtkClutter.Actor();
-
-            // my vars (dec)
+            public Gtk.Button el;
+            private Xcls_MainWindow  _this;
 
-            // set gobject values
 
-            // init method
+                // my vars (def)
 
+            // ctor
+            public Xcls_Button29(Xcls_MainWindow _owner )
             {
-               
-               
-                this.el.add_constraint(
-                    new Clutter.AlignConstraint(
-                        _this.clutterembed.el.get_stage(), 
-                        Clutter.AlignAxis.X_AXIS,
-                        1.0f
-                    )
-                );
-                    
-                //this.el.set_position(100,100);
-                this.el.set_pivot_point(1.0f,1.0f);
-                
-                this.el.set_size(_this.clutterembed.el.get_stage().width-50,
-                        _this.clutterembed.el.get_stage().height);
-                        
-            }
-        }
+                _this = _owner;
+                this.el = new Gtk.Button();
 
-        // user defined functions
-    }
+                // my vars (dec)
 
-    public class Xcls_objectview : Object
-    {
-        public GtkClutter.Actor el;
-        private Xcls_MainWindow  _this;
+                // set gobject values
+                this.el.label = "Download updated Resources";
 
+                //listeners
+                this.el.activate.connect( ( ) => {
+                         Resources.singleton().fetchStart();
+                });
+            }
 
-            // my vars (def)
+            // user defined functions
+        }
 
-        // ctor
-        public Xcls_objectview(Xcls_MainWindow _owner )
+        public class Xcls_Button30 : Object
         {
-            _this = _owner;
-            _this.objectview = this;
-            this.el = new GtkClutter.Actor();
-
-            // my vars (dec)
+            public Gtk.Button el;
+            private Xcls_MainWindow  _this;
 
-            // set gobject values
 
-            // init method
+                // my vars (def)
 
+            // ctor
+            public Xcls_Button30(Xcls_MainWindow _owner )
             {
-               
-               /*
-                this.el.add_constraint(
-                    new Clutter.AlignConstraint(
-                        _this.clutterembed.el.get_stage(), 
-                        Clutter.AlignAxis.X_AXIS,
-                        0.0f
-                    )
-                );
-                */
-                this.el.fixed_x = 50.0f;
-                this.el.fixed_y = 0.0f;
-                //this.el.set_position(100,100);
-                this.el.set_pivot_point(0.0f,0.0f);
-                this.el.set_scale(0.0f,1.0f);
-                this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
-                        _this.clutterembed.el.get_stage().height);
-                        
+                _this = _owner;
+                this.el = new Gtk.Button();
+
+                // my vars (dec)
+
+                // set gobject values
+                this.el.label = "About the Builder";
+
+                //listeners
+                this.el.clicked.connect( () => {
+                    About.singleton().el.show();
+                    });
             }
-        }
 
-        // user defined functions
-    }
+            // user defined functions
+        }
 
-    public class Xcls_codeeditview : Object
-    {
-        public GtkClutter.Actor el;
-        private Xcls_MainWindow  _this;
 
 
-            // my vars (def)
 
-        // ctor
-        public Xcls_codeeditview(Xcls_MainWindow _owner )
+        public class Xcls_Label31 : Object
         {
-            _this = _owner;
-            _this.codeeditview = this;
-            this.el = new GtkClutter.Actor();
-
-            // my vars (dec)
+            public Gtk.Label el;
+            private Xcls_MainWindow  _this;
 
-            // set gobject values
 
-            // init method
+                // my vars (def)
 
+            // ctor
+            public Xcls_Label31(Xcls_MainWindow _owner )
             {
-               
-               /*
-                this.el.add_constraint(
-                    new Clutter.AlignConstraint(
-                        _this.clutterembed.el.get_stage(), 
-                        Clutter.AlignAxis.X_AXIS,
-                        0.0f
-                    )
-                );
-                */
-                this.el.fixed_x = 50.0f;
-                this.el.fixed_y = 0.0f;
-                //this.el.set_position(100,100);
-                this.el.set_pivot_point(0.0f,0.0f);
-                this.el.set_scale(0.0f,1.0f);
-                this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
-                        _this.clutterembed.el.get_stage().height);
-                        
-            }
-        }
+                _this = _owner;
+                this.el = new Gtk.Label( "   " );
 
-        // user defined functions
-    }
-
-    public class Xcls_addpropsview : Object
-    {
-        public GtkClutter.Actor el;
-        private Xcls_MainWindow  _this;
+                // my vars (dec)
 
+                // set gobject values
+                this.el.hexpand = true;
+            }
 
-            // my vars (def)
+            // user defined functions
+        }
 
-        // ctor
-        public Xcls_addpropsview(Xcls_MainWindow _owner )
+        public class Xcls_statusbar : Object
         {
-            _this = _owner;
-            _this.addpropsview = this;
-            this.el = new GtkClutter.Actor();
-
-            // my vars (dec)
+            public Gtk.ProgressBar el;
+            private Xcls_MainWindow  _this;
 
-            // set gobject values
 
-            // init method
+                // my vars (def)
+            public ulong handler_id;
 
+            // ctor
+            public Xcls_statusbar(Xcls_MainWindow _owner )
             {
-               
-               /*
-                this.el.add_constraint(
-                    new Clutter.AlignConstraint(
-                        _this.clutterembed.el.get_stage(), 
-                        Clutter.AlignAxis.X_AXIS,
-                        0.0f
-                    )
-                );
-                */
-                this.el.fixed_x = 50.0f;
-                this.el.fixed_y = 0.0f;
-                //this.el.set_position(100,100);
-                this.el.set_pivot_point(0.0f,0.0f);
-                this.el.set_scale(0.0f,1.0f);
-                this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
-                        _this.clutterembed.el.get_stage().height);
-                        
+                _this = _owner;
+                _this.statusbar = this;
+                this.el = new Gtk.ProgressBar();
+
+                // my vars (dec)
+                this.handler_id = -1;
+
+                // set gobject values
+                this.el.show_text = true;
+
+                // init method
+
+                {
+                     this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
+                        if (pos < 1) {
+                            this.el.hide();
+                            _this.mainpane.el.set_sensitive(true);
+                            
+                            return;
+                        }
+                         _this.mainpane.el.set_sensitive(false);
+                         this.el.show();
+                         this.el.set_fraction ((1.0f * pos) / (1.0f * total));
+                         this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
+                       
+                     });
+                }
             }
-        }
-
-        // user defined functions
-    }
-
-    public class Xcls_buttonlayout : Object
-    {
-        public Clutter.Actor el;
-        private Xcls_MainWindow  _this;
 
+            // user defined functions
+        }
 
-            // my vars (def)
-
-        // ctor
-        public Xcls_buttonlayout(Xcls_MainWindow _owner )
+        public class Xcls_Box33 : Object
         {
-            _this = _owner;
-            _this.buttonlayout = this;
-            this.el = new Clutter.Actor();
-
-            // my vars (dec)
+            public Gtk.Box el;
+            private Xcls_MainWindow  _this;
 
-            // set gobject values
-            var child_0 = new Xcls_BoxLayout28( _this );
-            child_0.ref();
-            this.el.layout_manager = child_0.el;
-            var child_1 = new Xcls_backbutton( _this );
-            child_1.ref();
-            this.el.add_child (  child_1.el  );
-            var child_2 = new Xcls_editfilebutton( _this );
-            child_2.ref();
-            this.el.add_child (  child_2.el  );
-            var child_3 = new Xcls_projecteditbutton( _this );
-            child_3.ref();
-            this.el.add_child (  child_3.el  );
-            var child_4 = new Xcls_objectshowbutton( _this );
-            child_4.ref();
-            this.el.add_child (  child_4.el  );
-            var child_5 = new Xcls_addpropbutton( _this );
-            child_5.ref();
-            this.el.add_child (  child_5.el  );
-            var child_6 = new Xcls_addlistenerbutton( _this );
-            child_6.ref();
-            this.el.add_child (  child_6.el  );
-            var child_7 = new Xcls_addprojectbutton( _this );
-            child_7.ref();
-            this.el.add_child (  child_7.el  );
-            var child_8 = new Xcls_addfilebutton( _this );
-            child_8.ref();
-            this.el.add_child (  child_8.el  );
-            var child_9 = new Xcls_delprojectbutton( _this );
-            child_9.ref();
-            this.el.add_child (  child_9.el  );
 
-            // init method
+                // my vars (def)
 
+            // ctor
+            public Xcls_Box33(Xcls_MainWindow _owner )
             {
-                
-                this.el.add_constraint(
-                    new Clutter.AlignConstraint(
-                        _this.clutterembed.el.get_stage(), 
-                        Clutter.AlignAxis.X_AXIS,
-                        0.0f
-                    )
-                );
-                 
-                
-                //this.el.set_position(100,100);
-                this.el.set_pivot_point(0.5f,0.5f);
-                 this.el.set_size(50,
-                       _this.clutterembed.el.get_stage().height);
-                 
+                _this = _owner;
+                this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
+
+                // my vars (dec)
+
+                // set gobject values
+                new Xcls_statusbar_compilestatus_label( _this );
+                this.el.append( _this.statusbar_compilestatus_label.el );
+                new Xcls_statusbar_errors( _this );
+                this.el.append( _this.statusbar_errors.el );
+                new Xcls_statusbar_warnings( _this );
+                this.el.append( _this.statusbar_warnings.el );
+                new Xcls_statusbar_depricated( _this );
+                this.el.append( _this.statusbar_depricated.el );
+                new Xcls_statusbar_run( _this );
+                this.el.append( _this.statusbar_run.el );
             }
+
+            // user defined functions
         }
+        public class Xcls_statusbar_compilestatus_label : Object
+        {
+            public Gtk.Label el;
+            private Xcls_MainWindow  _this;
 
-        // user defined functions
-    }
-    public class Xcls_BoxLayout28 : Object
-    {
-        public Clutter.BoxLayout el;
-        private Xcls_MainWindow  _this;
 
+                // my vars (def)
 
-            // my vars (def)
+            // ctor
+            public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.statusbar_compilestatus_label = this;
+                this.el = new Gtk.Label( "Compile Status:" );
 
-        // ctor
-        public Xcls_BoxLayout28(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Clutter.BoxLayout();
+                // my vars (dec)
 
-            // my vars (dec)
+                // set gobject values
+                this.el.margin_end = 4;
+                this.el.margin_start = 4;
+            }
 
-            // set gobject values
-            this.el.orientation = Clutter.Orientation.VERTICAL;
+            // user defined functions
         }
 
-        // user defined functions
-    }
-
-    public class Xcls_backbutton : Object
-    {
-        public Clutter.Actor el;
-        private Xcls_MainWindow  _this;
+        public class Xcls_statusbar_errors : Object
+        {
+            public Gtk.Button el;
+            private Xcls_MainWindow  _this;
 
 
-            // my vars (def)
+                // my vars (def)
+            public Xcls_ValaCompileErrors popup;
 
-        // ctor
-        public Xcls_backbutton(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.backbutton = this;
-            this.el = new Clutter.Actor();
+            // ctor
+            public Xcls_statusbar_errors(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.statusbar_errors = this;
+                this.el = new Gtk.Button();
 
-            // my vars (dec)
+                // my vars (dec)
 
-            // set gobject values
-            var child_0 = new Xcls_Actor30( _this );
-            child_0.ref();
-            this.el.add_child (  child_0.el  );
+                // set gobject values
+                this.el.icon_name = "dialog-error";
+                this.el.label = "0 Errors";
 
-            // init method
-
-            this.el.set_size(50,50);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Actor30 : Object
-    {
-        public GtkClutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Actor30(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new GtkClutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Button31( _this );
-            child_0.ref();
-
-            // init method
-
-            ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Button31 : Object
-    {
-        public Gtk.Button el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Button31(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Button();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.width_request = 50;
-            this.el.height_request = 50;
-            this.el.tooltip_text = "Back";
-            var child_0 = new Xcls_Image32( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
-
-            //listeners
-            this.el.clicked.connect( ( ) => {
-             //  if (_this.windowstate.state == WindowState.State.FILEPROJECT) {
-                
-            //      _this.windowstate.switchState(WindowState.State.FILES);
-              //   } else { 
-                   _this.windowstate.switchState(WindowState.State.PREVIEW);
-              //  }
-                
-            
-            });
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Image32 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Image32(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Image();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.icon_name = "go-previous";
-        }
-
-        // user defined functions
-    }
-
-
-
-
-    public class Xcls_editfilebutton : Object
-    {
-        public Clutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_editfilebutton(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.editfilebutton = this;
-            this.el = new Clutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Actor34( _this );
-            child_0.ref();
-            this.el.add_child (  child_0.el  );
-
-            // init method
-
-            this.el.set_size(50.0f,50.0f);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Actor34 : Object
-    {
-        public GtkClutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Actor34(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new GtkClutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Button35( _this );
-            child_0.ref();
-
-            // init method
-
-            ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Button35 : Object
-    {
-        public Gtk.Button el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Button35(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Button();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.width_request = 50;
-            this.el.height_request = 50;
-            this.el.tooltip_text = "File Details";
-            var child_0 = new Xcls_Image36( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
-
-            //listeners
-            this.el.clicked.connect( ( ) => {
-              
-                // create a new file in project..
-                if (_this.project == null || _this.windowstate.file == null) {
-                    return  ;
-                }
-                 _this.windowstate.file_details.show(
-                    _this.windowstate.file, this.el
-                );
-                 
-                return  ;    
-            
-            
-            });
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Image36 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Image36(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Image();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.icon_name = "document-properties";
-        }
-
-        // user defined functions
-    }
-
-
-
-
-    public class Xcls_projecteditbutton : Object
-    {
-        public Clutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_projecteditbutton(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.projecteditbutton = this;
-            this.el = new Clutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Actor38( _this );
-            child_0.ref();
-            this.el.add_child (  child_0.el  );
-
-            // init method
-
-            this.el.set_size(50,50);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Actor38 : Object
-    {
-        public GtkClutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Actor38(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new GtkClutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Button39( _this );
-            child_0.ref();
-
-            // init method
-
-            ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Button39 : Object
-    {
-        public Gtk.Button el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Button39(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Button();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.width_request = 50;
-            this.el.height_request = 50;
-            this.el.tooltip_text = "Project Details";
-            var child_0 = new Xcls_Image40( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
-
-            //listeners
-            this.el.clicked.connect( ( ) => {
-                 
-                 _this.windowstate.projectPopoverShow(this.el);
-               
-             
-            });
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Image40 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Image40(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Image();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.icon_name = "emblem-system";
-        }
-
-        // user defined functions
-    }
-
-
-
-
-    public class Xcls_objectshowbutton : Object
-    {
-        public Clutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_objectshowbutton(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.objectshowbutton = this;
-            this.el = new Clutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Actor42( _this );
-            child_0.ref();
-            this.el.add_child (  child_0.el  );
-
-            // init method
-
-            this.el.set_size(50,50);
-
-            //listeners
-            this.el.enter_event.connect( (  event)  => {
-                this.el.background_color =   Clutter.Color.from_string("#333");
-                    return false;
-            });
-            this.el.leave_event.connect( (  event)  => {
-                this.el.background_color =   Clutter.Color.from_string("#000");
-                return false;
-            });
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Actor42 : Object
-    {
-        public GtkClutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Actor42(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new GtkClutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Button43( _this );
-            child_0.ref();
-
-            // init method
-
-            ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Button43 : Object
-    {
-        public Gtk.Button el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Button43(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Button();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.width_request = 50;
-            this.el.height_request = 50;
-            this.el.tooltip_text = "Add Child Element";
-            var child_0 = new Xcls_Image44( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
-
-            //listeners
-            this.el.clicked.connect( ( ) => {
-                
-                 _this.windowstate.switchState(WindowState.State.OBJECT);
-              
-             
-            });
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Image44 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Image44(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Image();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.icon_name = "list-add";
-        }
-
-        // user defined functions
-    }
-
-
-
-
-    public class Xcls_addpropbutton : Object
-    {
-        public Clutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_addpropbutton(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.addpropbutton = this;
-            this.el = new Clutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Actor46( _this );
-            child_0.ref();
-            this.el.add_child (  child_0.el  );
-
-            // init method
-
-            this.el.set_size(50,50);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Actor46 : Object
-    {
-        public GtkClutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Actor46(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new GtkClutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Button47( _this );
-            child_0.ref();
-
-            // init method
-
-            ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Button47 : Object
-    {
-        public Gtk.Button el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Button47(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Button();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.width_request = 50;
-            this.el.height_request = 50;
-            this.el.tooltip_text = "Add Property";
-            var child_0 = new Xcls_Image48( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
-
-            //listeners
-            this.el.clicked.connect( ( ) => {
-                
-                 _this.windowstate.switchState(WindowState.State.PROP);
-             
-            
-            });
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Image48 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Image48(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Image();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.icon_name = "format-justify-left";
-        }
-
-        // user defined functions
-    }
-
-
-
-
-    public class Xcls_addlistenerbutton : Object
-    {
-        public Clutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.addlistenerbutton = this;
-            this.el = new Clutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Actor50( _this );
-            child_0.ref();
-            this.el.add_child (  child_0.el  );
-
-            // init method
-
-            this.el.set_size(50,50);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Actor50 : Object
-    {
-        public GtkClutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Actor50(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new GtkClutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Button51( _this );
-            child_0.ref();
-
-            // init method
-
-            ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Button51 : Object
-    {
-        public Gtk.Button el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Button51(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Button();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.width_request = 50;
-            this.el.height_request = 50;
-            this.el.tooltip_text = "Add Event Code";
-            var child_0 = new Xcls_Image52( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
-
-            //listeners
-            this.el.clicked.connect( ( ) => {
-                
-                _this.windowstate.switchState(WindowState.State.LISTENER);
-              
-            
-            
-            });
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Image52 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Image52(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Image();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.icon_name = "appointment-new";
-        }
-
-        // user defined functions
-    }
-
-
-
-
-    public class Xcls_addprojectbutton : Object
-    {
-        public Clutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_addprojectbutton(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.addprojectbutton = this;
-            this.el = new Clutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Actor54( _this );
-            child_0.ref();
-            this.el.add_child (  child_0.el  );
-
-            // init method
-
-            this.el.set_size(50.0f,50.0f);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Actor54 : Object
-    {
-        public GtkClutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Actor54(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new GtkClutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Button55( _this );
-            child_0.ref();
-
-            // init method
-
-            ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Button55 : Object
-    {
-        public Gtk.Button el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Button55(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Button();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.width_request = 50;
-            this.el.height_request = 50;
-            this.el.tooltip_text = "New\nProj.";
-            var child_0 = new Xcls_Image56( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
-
-            //listeners
-            this.el.clicked.connect( ( ) => {
-              
-                // create a new file in project..
-                //Xcls_DialogNewComponent.singleton().show(
-               var  pe =      EditProject.singleton();
-                pe.el.set_transient_for(_this.el);
-                pe.el.set_modal(true);   
-               
-                var p  = pe.show();
-            
-                if (p == null) {
-                    return;
-                }
-                
-                
-                _this.windowstate.left_projects.is_loaded = false;    
-                _this.windowstate.left_projects.load();
-                _this.windowstate.left_projects.selectProject(p);
-                return  ;    
-            
-            
-            });
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Image56 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Image56(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Image();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.icon_name = "folder-new";
-        }
-
-        // user defined functions
-    }
-
-
-
-
-    public class Xcls_addfilebutton : Object
-    {
-        public Clutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_addfilebutton(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.addfilebutton = this;
-            this.el = new Clutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Actor58( _this );
-            child_0.ref();
-            this.el.add_child (  child_0.el  );
-
-            // init method
-
-            this.el.set_size(50.0f,50.0f);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Actor58 : Object
-    {
-        public GtkClutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Actor58(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new GtkClutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Button59( _this );
-            child_0.ref();
-
-            // init method
-
-            ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Button59 : Object
-    {
-        public Gtk.Button el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Button59(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Button();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.width_request = 50;
-            this.el.height_request = 50;
-            this.el.tooltip_text = "Add File";
-            var child_0 = new Xcls_Image60( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
-
-            //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
-                );
-                
-                
-                return  ;    
-            });
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Image60 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Image60(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Image();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.icon_name = "document-new";
-        }
-
-        // user defined functions
-    }
-
-
-
-
-    public class Xcls_delprojectbutton : Object
-    {
-        public Clutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_delprojectbutton(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.delprojectbutton = this;
-            this.el = new Clutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Actor62( _this );
-            child_0.ref();
-            this.el.add_child (  child_0.el  );
-
-            // init method
-
-            this.el.set_size(50,50);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Actor62 : Object
-    {
-        public GtkClutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Actor62(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new GtkClutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_Button63( _this );
-            child_0.ref();
-
-            // init method
-
-            ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Button63 : Object
-    {
-        public Gtk.Button el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Button63(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Button();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.width_request = 50;
-            this.el.height_request = 50;
-            this.el.tooltip_text = "Delete Project";
-            var child_0 = new Xcls_Image64( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
-
-            //listeners
-            this.el.clicked.connect( ( ) => {
-                 
-                 var cd = DialogConfirm.singleton();
-                 cd.el.set_transient_for(_this.el);
-                cd.el.set_modal(true);
-            
-                 var project =   _this.windowstate.left_projects.getSelectedProject();
-                if (project == null) {
-                    print("SKIP - no project\n");
-                    return;
-                }
-                
-                    
-                 if (Gtk.ResponseType.YES != cd.show("Confirm", 
-                    "Are you sure you want to delete project %s".printf(project.name))) {
-                    return;
-                }
-                 
-            
-                // confirm?
-                Project.Project.remove(project);
-                _this.project = null;
-                
-                _this.windowstate.left_projects.is_loaded =  false;
-                _this.windowstate.left_projects.load();
-                _this.windowstate.clutterfiles.clearFiles();
-            
-            });
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Image64 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Image64(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Image();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.icon_name = "user-trash";
-        }
-
-        // user defined functions
-    }
-
-
-
-
-
-
-
-
-    public class Xcls_statusbar_compile_spinner : Object
-    {
-        public Gtk.Box el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_statusbar_compile_spinner(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.statusbar_compile_spinner = this;
-            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.homogeneous = false;
-            var child_0 = new Xcls_Label66( _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_search_entry( _this );
-            child_2.ref();
-            this.el.pack_start (  child_2.el , false,true,0 );
-            var child_3 = new Xcls_MenuBar69( _this );
-            child_3.ref();
-            this.el.pack_end (  child_3.el , false,true,0 );
-            var child_4 = new Xcls_Spinner80( _this );
-            child_4.ref();
-            this.el.pack_start (  child_4.el , ?bool?,?bool?,?uint? );
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Label66 : Object
-    {
-        public Gtk.Label el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Label66(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Label( "   " );
-
-            // my vars (dec)
-
-            // set gobject values
-        }
-
-        // user defined functions
-    }
-
-    public class Xcls_statusbar : Object
-    {
-        public Gtk.ProgressBar el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-        public ulong handler_id;
-
-        // ctor
-        public Xcls_statusbar(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.statusbar = this;
-            this.el = new Gtk.ProgressBar();
-
-            // my vars (dec)
-            this.handler_id = -1;
-
-            // set gobject values
-            this.el.show_text = true;
-
-            // init method
-
-            {
-                 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
-                    if (pos < 1) {
-                        this.el.hide();
-                        _this.mainpane.el.set_sensitive(true);
-                        
-                        return;
-                    }
-                     _this.mainpane.el.set_sensitive(false);
-                     this.el.show();
-                     this.el.set_fraction ((1.0f * pos) / (1.0f * total));
-                     this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
-                   
-                 });
-            }
-        }
-
-        // user defined functions
-    }
-
-    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.clicked.connect( () => {
+                 
+                       if (this.popup == null) {
+                               return;
+                       }
+                   
+                    this.popup.show();
+                  
+                });
+            }
 
-            //listeners
-            this.el.key_press_event.connect( (event) => {
+            // user defined functions
+            public void setNotices (GLib.ListStore nots, GLib.ListStore fe ) {
                 
-               if (event.keyval == Gdk.Key.Return) {
-                       this.forwardSearch(false);
-                   return true;
-            
-               }    
-               // print(event.key.keyval)
+                 if (nots.get_n_items() < 1 ) {
+                       this.el.hide();
+                       if (this.popup != null) {
+                               this.popup.el.hide();
+                       }
+                       return;
+                }
                 
-                return false;
+                this.el.show();
+                this.el.label = "%d/%d Errors".printf((int)fe.get_n_items(),(int)nots.get_n_items());
             
-            });
-            this.el.changed.connect( () => {
-               if (this.el.text == "") {
-                       _this.search_results.el.hide();
-                       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;
-               }
-               _this.search_results.el.show();
-               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_MenuBar69 : Object
-    {
-        public Gtk.MenuBar el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_MenuBar69(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.MenuBar();
-
-            // my vars (dec)
-
-            // set gobject values
-            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 );
-            child_1.ref();
-            this.el.add (  child_1.el  );
-            var child_2 = new Xcls_statusbar_warnings( _this );
-            child_2.ref();
-            this.el.add (  child_2.el  );
-            var child_3 = new Xcls_statusbar_depricated( _this );
-            child_3.ref();
-            this.el.add (  child_3.el  );
-            var child_4 = new Xcls_statusbar_run( _this );
-            child_4.ref();
-            this.el.add (  child_4.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_Image71( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
-
-            //listeners
-            this.el.button_press_event.connect( () => {
-            /*
-                if (this.popup == null) {
+                
+             
+               if (this.popup == null) {
                     this.popup = new Xcls_ValaCompileErrors();
                     this.popup.window = _this;
+                  //    this.popup.el.set_transient_for( _this.el );
+                    this.popup.el.set_parent(this.el);
                 }
-               
-                
-                this.popup.show(this.notices, this.el);
-                */
-                return true;
-            });
+               this.popup.updateNotices(nots);
+                
+            }
         }
 
-        // user defined functions
-    }
-    public class Xcls_Image71 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Image71(Xcls_MainWindow _owner )
+        public class Xcls_statusbar_warnings : Object
         {
-            _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 Gtk.Button el;
+            private Xcls_MainWindow  _this;
 
 
-    public class Xcls_statusbar_errors : Object
-    {
-        public Gtk.ImageMenuItem el;
-        private Xcls_MainWindow  _this;
-
+                // my vars (def)
+            public Xcls_ValaCompileErrors popup;
 
-            // my vars (def)
-        public Xcls_ValaCompileErrors popup;
-        public Json.Object notices;
+            // ctor
+            public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.statusbar_warnings = this;
+                this.el = new Gtk.Button();
 
-        // ctor
-        public Xcls_statusbar_errors(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.statusbar_errors = this;
-            this.el = new Gtk.ImageMenuItem();
+                // my vars (dec)
 
-            // my vars (dec)
-            this.notices = new Json.Object() ;
+                // set gobject values
+                this.el.icon_name = "dialog-warning";
+                this.el.label = "0 Warnings";
 
-            // set gobject values
-            this.el.always_show_image = true;
-            this.el.label = "Errors";
-            var child_0 = new Xcls_Image73( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
+                //listeners
+                this.el.clicked.connect( () => {
+                 
+                       if (this.popup == null) {
+                               return;
+                       }
+                   
+                    this.popup.show();
+                    return;
+                });
+            }
 
-            //listeners
-            this.el.button_press_event.connect( () => {
-                if (this.popup == null) {
-                    this.popup = new Xcls_ValaCompileErrors();
-                    this.popup.window = _this;
+            // user defined functions
+            public void setNotices (GLib.ListStore nots, GLib.ListStore fe ) {
+                
+                 if (nots.get_n_items() < 1 ) {
+                       this.el.hide();
+                       if (this.popup != null) {
+                               this.popup.el.hide();
+                       }
+                       return;
                 }
-               
                 
-                this.popup.show(this.notices, this.el);
-                return true;
-            });
-        }
-
-        // user defined functions
-        public void setNotices (Json.Object nots, int qty) {
-            this.el.show();
-            this.el.label = qty.to_string() + " Errors";
-            this.notices = nots;
-        
-        }
-    }
-    public class Xcls_Image73 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Image73(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Image();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.icon_name = "dialog-error";
-        }
-
-        // user defined functions
-    }
-
-
-    public class Xcls_statusbar_warnings : Object
-    {
-        public Gtk.ImageMenuItem el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-        public Xcls_ValaCompileErrors popup;
-        public Json.Object notices;
-
-        // ctor
-        public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.statusbar_warnings = this;
-            this.el = new Gtk.ImageMenuItem();
-
-            // my vars (dec)
-            this.notices = new Json.Object();
-
-            // set gobject values
-            this.el.always_show_image = true;
-            this.el.label = "Warnings";
-            var child_0 = new Xcls_Image75( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
-
-            //listeners
-            this.el.button_press_event.connect( () => {
-                if (this.popup == null) {
+                this.el.show();
+                this.el.label = "%d/%d Warnings".printf((int)fe.get_n_items(),(int)nots.get_n_items());
+            
+                
+             
+               if (this.popup == null) {
                     this.popup = new Xcls_ValaCompileErrors();
                     this.popup.window = _this;
+                  //    this.popup.el.set_transient_for( _this.el );
+                    this.popup.el.set_parent(this.el);
                 }
-                
-                this.popup.show(this.notices, this.el);
-                return true;
-            });
-        }
-
-        // user defined functions
-        public void setNotices (Json.Object nots, int qty) {
-            this.el.show();
-            this.el.label = qty.to_string() + " Warnings";
-            this.notices = nots;
-        
+               this.popup.updateNotices(nots);
+                
+            }
         }
-    }
-    public class Xcls_Image75 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
-
 
-            // my vars (def)
-
-        // ctor
-        public Xcls_Image75(Xcls_MainWindow _owner )
+        public class Xcls_statusbar_depricated : Object
         {
-            _this = _owner;
-            this.el = new Gtk.Image();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.icon_name = "dialog-warning";
-        }
-
-        // user defined functions
-    }
-
+            public Gtk.Button el;
+            private Xcls_MainWindow  _this;
 
-    public class Xcls_statusbar_depricated : Object
-    {
-        public Gtk.ImageMenuItem el;
-        private Xcls_MainWindow  _this;
 
+                // my vars (def)
+            public Xcls_ValaCompileErrors popup;
+            public GLib.ListStore notices;
 
-            // my vars (def)
-        public Xcls_ValaCompileErrors popup;
-        public Json.Object notices;
+            // ctor
+            public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.statusbar_depricated = this;
+                this.el = new Gtk.Button();
 
-        // ctor
-        public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.statusbar_depricated = this;
-            this.el = new Gtk.ImageMenuItem();
+                // my vars (dec)
+                this.notices = null;
 
-            // my vars (dec)
-            this.notices = new Json.Object();
+                // set gobject values
+                this.el.icon_name = "dialog-information";
+                this.el.label = "0 Depricated";
 
-            // set gobject values
-            this.el.always_show_image = true;
-            this.el.label = "Depricated";
-            var child_0 = new Xcls_Image77( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
+                //listeners
+                this.el.clicked.connect( () => {
+                 
+                       if (this.popup == null) {
+                               return;
+                       }
+                   
+                    this.popup.show();
+                  
+                });
+            }
 
-            //listeners
-            this.el.button_press_event.connect( () => {
-                if (this.popup == null) {
-                    this.popup = new Xcls_ValaCompileErrors();
-                    this.popup.window = _this;
+            // user defined functions
+            public void setNotices (GLib.ListStore nots, GLib.ListStore fe ) {
+                
+                 if (nots.get_n_items() < 1 ) {
+                       this.el.hide();
+                       if (this.popup != null) {
+                               this.popup.el.hide();
+                       }
+                       return;
                 }
                 
+                this.el.show();
+                this.el.label = "%d/%d Depricated".printf((int)fe.get_n_items(),(int)nots.get_n_items());
+            
                 
-                this.popup.show(this.notices, this.el);
-                return true;
-            });
-        }
-
-        // user defined functions
-        public void setNotices (Json.Object nots, int qty) {
-            this.el.show();
-            this.el.label = qty.to_string() + " Depricated";
-            this.notices = nots;
-        
+             
+               if (this.popup == null) {
+                    this.popup = new Xcls_ValaCompileErrors();
+                    this.popup.window = _this;
+                  //    this.popup.el.set_transient_for( _this.el );
+                    this.popup.el.set_parent(this.el);
+                }
+               this.popup.updateNotices(nots);
+                
+            }
         }
-    }
-    public class Xcls_Image77 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
 
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Image77(Xcls_MainWindow _owner )
+        public class Xcls_statusbar_run : Object
         {
-            _this = _owner;
-            this.el = new Gtk.Image();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.icon_name = "dialog-information";
-        }
-
-        // user defined functions
-    }
+            public Gtk.Button el;
+            private Xcls_MainWindow  _this;
 
 
-    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.Button();
 
-            // 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)
 
-            // my vars (dec)
+                // set gobject values
+                this.el.icon_name = "media-playback-start";
+                this.el.label = "Run";
 
-            // set gobject values
-            this.el.always_show_image = true;
-            this.el.label = "Run";
-            var child_0 = new Xcls_Image79( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
+                //listeners
+                this.el.clicked.connect( () => {
+                   
+                   if (_this.windowstate.file == null) {
+                               return;
+                       }
+                   if (_this.statusbar_compile_spinner.el.spinning) {
+                       _this.windowstate.compile_results.el.set_parent(this.el);
+                           _this.windowstate.compile_results.el.show(); // show currently running.
+                       return;
+                       }
+                       
+                       var req = new Palete.ValaCompileRequest(
+                               Palete.ValaCompileRequestType.RUN,
+                               _this.windowstate.file,
+                               null,
+                               null,
+                               ""
+                       );
+                       req.run();
+                        
+                       _this.windowstate.compile_results.el.set_parent(this.el);
+                       _this.windowstate.compile_results.show(this.el,true);
+                                
+                });
+            }
 
-            //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
         }
 
-        // user defined functions
-    }
-    public class Xcls_Image79 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
 
-        // ctor
-        public Xcls_Image79(Xcls_MainWindow _owner )
+        public class Xcls_statusbar_compile_spinner : Object
         {
-            _this = _owner;
-            this.el = new Gtk.Image();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.icon_name = "media-playback-start";
-        }
-
-        // user defined functions
-    }
-
+            public Gtk.Spinner el;
+            private Xcls_MainWindow  _this;
 
 
-    public class Xcls_Spinner80 : Object
-    {
-        public Gtk.Spinner el;
-        private Xcls_MainWindow  _this;
-
+                // my vars (def)
 
-            // my vars (def)
+            // ctor
+            public Xcls_statusbar_compile_spinner(Xcls_MainWindow _owner )
+            {
+                _this = _owner;
+                _this.statusbar_compile_spinner = this;
+                this.el = new Gtk.Spinner();
 
-        // ctor
-        public Xcls_Spinner80(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Spinner();
+                // my vars (dec)
 
-            // my vars (dec)
+                // set gobject values
+                this.el.margin_end = 4;
+                this.el.margin_start = 4;
+                this.el.tooltip_text = "Compiling";
+            }
 
-            // set gobject values
+            // user defined functions
+            public void start () {
+              this.el.show();
+              this.el.start();  
+              
+                
+            }
+            public void stop () {
+             this.el.stop();
+              this.el.hide();
+               
+            }
         }
 
-        // user defined functions
-    }
 
 
-
-}
+    }