src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 1 Feb 2024 06:47:44 +0000 (14:47 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 1 Feb 2024 06:47:44 +0000 (14:47 +0800)
src/Builder4/MainWindow.vala

src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index 511b26b..551a0b6 100644 (file)
          " \t\tthis.is_shift = 1;",
          "\t}",
          "\treturn true;",
+         "\t",
          "}",
          ""
         ],
index f18ff8c..3a57131 100644 (file)
@@ -12,7 +12,6 @@ public class Xcls_MainWindow : Object
                }
                return _MainWindow;
        }
-       public Xcls_keystate keystate;
        public Xcls_headerbar headerbar;
        public Xcls_splitview splitview;
        public Xcls_vbox vbox;
@@ -48,6 +47,7 @@ public class Xcls_MainWindow : Object
        public Xcls_treemodel treemodel;
        public Xcls_treefilter treefilter;
        public Xcls_name name;
+       public Xcls_keystate keystate;
 
                // my vars (def)
        public WindowState windowstate;
@@ -68,8 +68,6 @@ public class Xcls_MainWindow : Object
                this.el.title = "Roo Application Builder";
                this.el.default_height = 850;
                this.el.default_width = 1200;
-               new Xcls_keystate( _this );
-               this.el.add_controller(  _this.keystate.el );
                new Xcls_headerbar( _this );
                this.el.set_titlebar ( _this.headerbar.el  );
                new Xcls_splitview( _this );
@@ -193,50 +191,6 @@ public class Xcls_MainWindow : Object
            w.windowstate.showPopoverFiles(w.open_projects_btn.el, _this.project, false);
             
        }
-       public class Xcls_keystate : Object
-       {
-               public Gtk.EventControllerKey el;
-               private Xcls_MainWindow  _this;
-
-
-                       // my vars (def)
-               public int is_shift;
-
-               // ctor
-               public Xcls_keystate(Xcls_MainWindow _owner )
-               {
-                       _this = _owner;
-                       _this.keystate = this;
-                       this.el = new Gtk.EventControllerKey();
-
-                       // my vars (dec)
-                       this.is_shift = 0;
-
-                       // set gobject values
-
-                       //listeners
-                       this.el.key_released.connect( (keyval, keycode, state) => {
-                               GLib.debug("key release %d, %d, %d" , (int) keyval, (int)  keycode, state);
-                               if (keyval == Gdk.Key.Shift_L || keyval == Gdk.Key.Shift_R) {
-                                       this.is_shift = 0;
-                               }
-                               //GLib.debug("set state %d , shift = %d", (int)this.el.get_current_event_state(), Gdk.ModifierType.SHIFT_MASK);
-                       
-                       
-                        
-                       });
-                       this.el.key_pressed.connect( (keyval, keycode, state) => {
-                       
-                               if (keyval == Gdk.Key.Shift_L || keyval == Gdk.Key.Shift_R) {
-                                       this.is_shift = 1;
-                               }
-                               return true;
-                       });
-               }
-
-               // user defined functions
-       }
-
        public class Xcls_headerbar : Object
        {
                public Gtk.HeaderBar el;
@@ -257,14 +211,14 @@ public class Xcls_MainWindow : Object
                        this.show_close_button = true;
 
                        // set gobject values
-                       var child_1 = new Xcls_Box4( _this );
+                       var child_1 = new Xcls_Box3( _this );
                        child_1.ref();
                        this.el.pack_start ( child_1.el  );
                }
 
                // user defined functions
        }
-       public class Xcls_Box4 : Object
+       public class Xcls_Box3 : Object
        {
                public Gtk.Box el;
                private Xcls_MainWindow  _this;
@@ -273,7 +227,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Box4(Xcls_MainWindow _owner )
+               public Xcls_Box3(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
@@ -281,14 +235,14 @@ public class Xcls_MainWindow : Object
                        // my vars (dec)
 
                        // set gobject values
-                       var child_1 = new Xcls_Button5( _this );
+                       var child_1 = new Xcls_Button4( _this );
                        child_1.ref();
                        this.el.append ( child_1.el  );
                }
 
                // user defined functions
        }
-       public class Xcls_Button5 : Object
+       public class Xcls_Button4 : Object
        {
                public Gtk.Button el;
                private Xcls_MainWindow  _this;
@@ -297,7 +251,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Button5(Xcls_MainWindow _owner )
+               public Xcls_Button4(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Button();
@@ -306,7 +260,7 @@ public class Xcls_MainWindow : Object
 
                        // set gobject values
                        this.el.has_frame = false;
-                       var child_1 = new Xcls_ButtonContent6( _this );
+                       var child_1 = new Xcls_ButtonContent5( _this );
                        this.el.child = child_1.el;
 
                        //listeners
@@ -338,7 +292,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_ButtonContent6 : Object
+       public class Xcls_ButtonContent5 : Object
        {
                public Adw.ButtonContent el;
                private Xcls_MainWindow  _this;
@@ -347,7 +301,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_ButtonContent6(Xcls_MainWindow _owner )
+               public Xcls_ButtonContent5(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Adw.ButtonContent();
@@ -388,8 +342,10 @@ public class Xcls_MainWindow : Object
                        this.el.show_sidebar = false;
                        new Xcls_vbox( _this );
                        this.el.content = _this.vbox.el;
-                       var child_2 = new Xcls_Box35( _this );
+                       var child_2 = new Xcls_Box34( _this );
                        this.el.sidebar = child_2.el;
+                       new Xcls_keystate( _this );
+                       this.el.add_controller(  _this.keystate.el );
                }
 
                // user defined functions
@@ -417,7 +373,7 @@ public class Xcls_MainWindow : Object
                        this.el.vexpand = false;
                        new Xcls_mainpane( _this );
                        this.el.append( _this.mainpane.el );
-                       var child_2 = new Xcls_Box17( _this );
+                       var child_2 = new Xcls_Box16( _this );
                        child_2.ref();
                        this.el.append( child_2.el );
                }
@@ -449,7 +405,7 @@ public class Xcls_MainWindow : Object
                        this.el.position = 400;
                        new Xcls_leftpane( _this );
                        this.el.start_child = _this.leftpane.el;
-                       var child_2 = new Xcls_Box14( _this );
+                       var child_2 = new Xcls_Box13( _this );
                        this.el.end_child = child_2.el;
 
                        //listeners
@@ -575,7 +531,7 @@ public class Xcls_MainWindow : Object
 
 
 
-       public class Xcls_Box14 : Object
+       public class Xcls_Box13 : Object
        {
                public Gtk.Box el;
                private Xcls_MainWindow  _this;
@@ -584,7 +540,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Box14(Xcls_MainWindow _owner )
+               public Xcls_Box13(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
@@ -654,7 +610,7 @@ public class Xcls_MainWindow : Object
 
 
 
-       public class Xcls_Box17 : Object
+       public class Xcls_Box16 : Object
        {
                public Gtk.Box el;
                private Xcls_MainWindow  _this;
@@ -663,7 +619,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Box17(Xcls_MainWindow _owner )
+               public Xcls_Box16(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
@@ -673,21 +629,21 @@ public class Xcls_MainWindow : Object
                        // set gobject values
                        this.el.homogeneous = false;
                        this.el.vexpand = false;
-                       var child_1 = new Xcls_Button18( _this );
+                       var child_1 = new Xcls_Button17( _this );
                        child_1.ref();
                        this.el.append( child_1.el );
-                       var child_2 = new Xcls_Button19( _this );
+                       var child_2 = new Xcls_Button18( _this );
                        child_2.ref();
                        this.el.append( child_2.el );
-                       var child_3 = new Xcls_MenuButton20( _this );
+                       var child_3 = new Xcls_MenuButton19( _this );
                        child_3.ref();
                        this.el.append( child_3.el );
-                       var child_4 = new Xcls_Label25( _this );
+                       var child_4 = new Xcls_Label24( _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_Box27( _this );
+                       var child_6 = new Xcls_Box26( _this );
                        child_6.ref();
                        this.el.append( child_6.el );
                        new Xcls_statusbar_compile_spinner( _this );
@@ -698,7 +654,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_Button18 : Object
+       public class Xcls_Button17 : Object
        {
                public Gtk.Button el;
                private Xcls_MainWindow  _this;
@@ -708,7 +664,7 @@ public class Xcls_MainWindow : Object
                public bool always_show_image;
 
                // ctor
-               public Xcls_Button18(Xcls_MainWindow _owner )
+               public Xcls_Button17(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Button();
@@ -733,7 +689,7 @@ public class Xcls_MainWindow : Object
                // user defined functions
        }
 
-       public class Xcls_Button19 : Object
+       public class Xcls_Button18 : Object
        {
                public Gtk.Button el;
                private Xcls_MainWindow  _this;
@@ -743,7 +699,7 @@ public class Xcls_MainWindow : Object
                public bool always_show_image;
 
                // ctor
-               public Xcls_Button19(Xcls_MainWindow _owner )
+               public Xcls_Button18(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Button();
@@ -776,7 +732,7 @@ public class Xcls_MainWindow : Object
                // user defined functions
        }
 
-       public class Xcls_MenuButton20 : Object
+       public class Xcls_MenuButton19 : Object
        {
                public Gtk.MenuButton el;
                private Xcls_MainWindow  _this;
@@ -786,7 +742,7 @@ public class Xcls_MainWindow : Object
                public bool always_show_image;
 
                // ctor
-               public Xcls_MenuButton20(Xcls_MainWindow _owner )
+               public Xcls_MenuButton19(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.MenuButton();
@@ -821,7 +777,7 @@ public class Xcls_MainWindow : Object
                        // my vars (dec)
 
                        // set gobject values
-                       var child_1 = new Xcls_Box22( _this );
+                       var child_1 = new Xcls_Box21( _this );
                        child_1.ref();
                        this.el.set_child ( child_1.el  );
 
@@ -834,7 +790,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_Box22 : Object
+       public class Xcls_Box21 : Object
        {
                public Gtk.Box el;
                private Xcls_MainWindow  _this;
@@ -843,7 +799,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Box22(Xcls_MainWindow _owner )
+               public Xcls_Box21(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
@@ -851,17 +807,17 @@ public class Xcls_MainWindow : Object
                        // my vars (dec)
 
                        // set gobject values
-                       var child_1 = new Xcls_Button23( _this );
+                       var child_1 = new Xcls_Button22( _this );
                        child_1.ref();
                        this.el.append( child_1.el );
-                       var child_2 = new Xcls_Button24( _this );
+                       var child_2 = new Xcls_Button23( _this );
                        child_2.ref();
                        this.el.append( child_2.el );
                }
 
                // user defined functions
        }
-       public class Xcls_Button23 : Object
+       public class Xcls_Button22 : Object
        {
                public Gtk.Button el;
                private Xcls_MainWindow  _this;
@@ -870,7 +826,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Button23(Xcls_MainWindow _owner )
+               public Xcls_Button22(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Button();
@@ -889,7 +845,7 @@ public class Xcls_MainWindow : Object
                // user defined functions
        }
 
-       public class Xcls_Button24 : Object
+       public class Xcls_Button23 : Object
        {
                public Gtk.Button el;
                private Xcls_MainWindow  _this;
@@ -898,7 +854,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Button24(Xcls_MainWindow _owner )
+               public Xcls_Button23(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Button();
@@ -920,7 +876,7 @@ public class Xcls_MainWindow : Object
 
 
 
-       public class Xcls_Label25 : Object
+       public class Xcls_Label24 : Object
        {
                public Gtk.Label el;
                private Xcls_MainWindow  _this;
@@ -929,7 +885,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Label25(Xcls_MainWindow _owner )
+               public Xcls_Label24(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Label( "   " );
@@ -987,7 +943,7 @@ public class Xcls_MainWindow : Object
                // user defined functions
        }
 
-       public class Xcls_Box27 : Object
+       public class Xcls_Box26 : Object
        {
                public Gtk.Box el;
                private Xcls_MainWindow  _this;
@@ -996,7 +952,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Box27(Xcls_MainWindow _owner )
+               public Xcls_Box26(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
@@ -1376,7 +1332,7 @@ public class Xcls_MainWindow : Object
 
 
 
-       public class Xcls_Box35 : Object
+       public class Xcls_Box34 : Object
        {
                public Gtk.Box el;
                private Xcls_MainWindow  _this;
@@ -1385,7 +1341,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Box35(Xcls_MainWindow _owner )
+               public Xcls_Box34(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
@@ -1393,20 +1349,20 @@ public class Xcls_MainWindow : Object
                        // my vars (dec)
 
                        // set gobject values
-                       var child_1 = new Xcls_SearchBar36( _this );
+                       var child_1 = new Xcls_SearchBar35( _this );
                        child_1.ref();
                        this.el.append( child_1.el );
-                       var child_2 = new Xcls_Box38( _this );
+                       var child_2 = new Xcls_Box37( _this );
                        child_2.ref();
                        this.el.append( child_2.el );
-                       var child_3 = new Xcls_Paned47( _this );
+                       var child_3 = new Xcls_Paned46( _this );
                        child_3.ref();
                        this.el.append( child_3.el );
                }
 
                // user defined functions
        }
-       public class Xcls_SearchBar36 : Object
+       public class Xcls_SearchBar35 : Object
        {
                public Gtk.SearchBar el;
                private Xcls_MainWindow  _this;
@@ -1415,7 +1371,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_SearchBar36(Xcls_MainWindow _owner )
+               public Xcls_SearchBar35(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.SearchBar();
@@ -1469,7 +1425,7 @@ public class Xcls_MainWindow : Object
        }
 
 
-       public class Xcls_Box38 : Object
+       public class Xcls_Box37 : Object
        {
                public Gtk.Box el;
                private Xcls_MainWindow  _this;
@@ -1478,7 +1434,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Box38(Xcls_MainWindow _owner )
+               public Xcls_Box37(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
@@ -1489,7 +1445,7 @@ public class Xcls_MainWindow : Object
                        this.el.hexpand = true;
                        new Xcls_open_projects_btn( _this );
                        this.el.append( _this.open_projects_btn.el );
-                       var child_2 = new Xcls_Button43( _this );
+                       var child_2 = new Xcls_Button42( _this );
                        child_2.ref();
                        this.el.append( child_2.el );
                }
@@ -1515,7 +1471,7 @@ public class Xcls_MainWindow : Object
 
                        // set gobject values
                        this.el.hexpand = true;
-                       var child_1 = new Xcls_Box40( _this );
+                       var child_1 = new Xcls_Box39( _this );
                        this.el.child = child_1.el;
 
                        //listeners
@@ -1526,7 +1482,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_Box40 : Object
+       public class Xcls_Box39 : Object
        {
                public Gtk.Box el;
                private Xcls_MainWindow  _this;
@@ -1535,7 +1491,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Box40(Xcls_MainWindow _owner )
+               public Xcls_Box39(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
@@ -1543,17 +1499,17 @@ public class Xcls_MainWindow : Object
                        // my vars (dec)
 
                        // set gobject values
-                       var child_1 = new Xcls_Image41( _this );
+                       var child_1 = new Xcls_Image40( _this );
                        child_1.ref();
                        this.el.append( child_1.el );
-                       var child_2 = new Xcls_Label42( _this );
+                       var child_2 = new Xcls_Label41( _this );
                        child_2.ref();
                        this.el.append( child_2.el );
                }
 
                // user defined functions
        }
-       public class Xcls_Image41 : Object
+       public class Xcls_Image40 : Object
        {
                public Gtk.Image el;
                private Xcls_MainWindow  _this;
@@ -1562,7 +1518,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Image41(Xcls_MainWindow _owner )
+               public Xcls_Image40(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Image();
@@ -1577,7 +1533,7 @@ public class Xcls_MainWindow : Object
                // user defined functions
        }
 
-       public class Xcls_Label42 : Object
+       public class Xcls_Label41 : Object
        {
                public Gtk.Label el;
                private Xcls_MainWindow  _this;
@@ -1586,7 +1542,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Label42(Xcls_MainWindow _owner )
+               public Xcls_Label41(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Label( "Open File" );
@@ -1601,7 +1557,7 @@ public class Xcls_MainWindow : Object
 
 
 
-       public class Xcls_Button43 : Object
+       public class Xcls_Button42 : Object
        {
                public Gtk.Button el;
                private Xcls_MainWindow  _this;
@@ -1610,7 +1566,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Button43(Xcls_MainWindow _owner )
+               public Xcls_Button42(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Button();
@@ -1619,7 +1575,7 @@ public class Xcls_MainWindow : Object
 
                        // set gobject values
                        this.el.hexpand = true;
-                       var child_1 = new Xcls_Box44( _this );
+                       var child_1 = new Xcls_Box43( _this );
                        this.el.child = child_1.el;
 
                        //listeners
@@ -1631,7 +1587,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_Box44 : Object
+       public class Xcls_Box43 : Object
        {
                public Gtk.Box el;
                private Xcls_MainWindow  _this;
@@ -1640,7 +1596,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Box44(Xcls_MainWindow _owner )
+               public Xcls_Box43(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
@@ -1648,17 +1604,17 @@ public class Xcls_MainWindow : Object
                        // my vars (dec)
 
                        // set gobject values
-                       var child_1 = new Xcls_Image45( _this );
+                       var child_1 = new Xcls_Image44( _this );
                        child_1.ref();
                        this.el.append( child_1.el );
-                       var child_2 = new Xcls_Label46( _this );
+                       var child_2 = new Xcls_Label45( _this );
                        child_2.ref();
                        this.el.append( child_2.el );
                }
 
                // user defined functions
        }
-       public class Xcls_Image45 : Object
+       public class Xcls_Image44 : Object
        {
                public Gtk.Image el;
                private Xcls_MainWindow  _this;
@@ -1667,7 +1623,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Image45(Xcls_MainWindow _owner )
+               public Xcls_Image44(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Image();
@@ -1682,7 +1638,7 @@ public class Xcls_MainWindow : Object
                // user defined functions
        }
 
-       public class Xcls_Label46 : Object
+       public class Xcls_Label45 : Object
        {
                public Gtk.Label el;
                private Xcls_MainWindow  _this;
@@ -1691,7 +1647,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Label46(Xcls_MainWindow _owner )
+               public Xcls_Label45(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Label( "New Window" );
@@ -1707,7 +1663,7 @@ public class Xcls_MainWindow : Object
 
 
 
-       public class Xcls_Paned47 : Object
+       public class Xcls_Paned46 : Object
        {
                public Gtk.Paned el;
                private Xcls_MainWindow  _this;
@@ -1716,7 +1672,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Paned47(Xcls_MainWindow _owner )
+               public Xcls_Paned46(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
@@ -1725,7 +1681,7 @@ public class Xcls_MainWindow : Object
 
                        // set gobject values
                        this.el.vexpand = true;
-                       var child_1 = new Xcls_ScrolledWindow48( _this );
+                       var child_1 = new Xcls_ScrolledWindow47( _this );
                        this.el.start_child = child_1.el;
                        new Xcls_treescroll( _this );
                        this.el.end_child = _this.treescroll.el;
@@ -1733,7 +1689,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_ScrolledWindow48 : Object
+       public class Xcls_ScrolledWindow47 : Object
        {
                public Gtk.ScrolledWindow el;
                private Xcls_MainWindow  _this;
@@ -1742,7 +1698,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_ScrolledWindow48(Xcls_MainWindow _owner )
+               public Xcls_ScrolledWindow47(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.ScrolledWindow();
@@ -1751,13 +1707,13 @@ public class Xcls_MainWindow : Object
 
                        // set gobject values
                        this.el.has_frame = true;
-                       var child_1 = new Xcls_ColumnView49( _this );
+                       var child_1 = new Xcls_ColumnView48( _this );
                        this.el.child = child_1.el;
                }
 
                // user defined functions
        }
-       public class Xcls_ColumnView49 : Object
+       public class Xcls_ColumnView48 : Object
        {
                public Gtk.ColumnView el;
                private Xcls_MainWindow  _this;
@@ -1766,7 +1722,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_ColumnView49(Xcls_MainWindow _owner )
+               public Xcls_ColumnView48(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        new Xcls_winsel( _this );
@@ -1797,7 +1753,7 @@ public class Xcls_MainWindow : Object
                {
                        _this = _owner;
                        _this.winsel = this;
-                       var child_1 = new Xcls_SortListModel51( _this );
+                       var child_1 = new Xcls_SortListModel50( _this );
                        child_1.ref();
                        this.el = new Gtk.SingleSelection( child_1.el );
 
@@ -1842,7 +1798,7 @@ public class Xcls_MainWindow : Object
                
                }
        }
-       public class Xcls_SortListModel51 : Object
+       public class Xcls_SortListModel50 : Object
        {
                public Gtk.SortListModel el;
                private Xcls_MainWindow  _this;
@@ -1851,11 +1807,11 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_SortListModel51(Xcls_MainWindow _owner )
+               public Xcls_SortListModel50(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        new Xcls_winfilter( _this );
-                       var child_2 = new Xcls_StringSorter56( _this );
+                       var child_2 = new Xcls_StringSorter55( _this );
                        child_2.ref();
                        this.el = new Gtk.SortListModel( _this.winfilter.el, child_2.el );
 
@@ -1903,7 +1859,7 @@ public class Xcls_MainWindow : Object
                {
                        _this = _owner;
                        _this.windowsearch = this;
-                       var child_1 = new Xcls_PropertyExpression54( _this );
+                       var child_1 = new Xcls_PropertyExpression53( _this );
                        child_1.ref();
                        this.el = new Gtk.StringFilter( child_1.el );
 
@@ -1914,7 +1870,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_PropertyExpression54 : Object
+       public class Xcls_PropertyExpression53 : Object
        {
                public Gtk.PropertyExpression el;
                private Xcls_MainWindow  _this;
@@ -1923,7 +1879,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_PropertyExpression54(Xcls_MainWindow _owner )
+               public Xcls_PropertyExpression53(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.PropertyExpression( typeof(WindowState), null, "file_name" );
@@ -1961,7 +1917,7 @@ public class Xcls_MainWindow : Object
        }
 
 
-       public class Xcls_StringSorter56 : Object
+       public class Xcls_StringSorter55 : Object
        {
                public Gtk.StringSorter el;
                private Xcls_MainWindow  _this;
@@ -1970,10 +1926,10 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_StringSorter56(Xcls_MainWindow _owner )
+               public Xcls_StringSorter55(Xcls_MainWindow _owner )
                {
                        _this = _owner;
-                       var child_1 = new Xcls_PropertyExpression57( _this );
+                       var child_1 = new Xcls_PropertyExpression56( _this );
                        child_1.ref();
                        this.el = new Gtk.StringSorter( child_1.el );
 
@@ -1985,7 +1941,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_PropertyExpression57 : Object
+       public class Xcls_PropertyExpression56 : Object
        {
                public Gtk.PropertyExpression el;
                private Xcls_MainWindow  _this;
@@ -1994,7 +1950,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_PropertyExpression57(Xcls_MainWindow _owner )
+               public Xcls_PropertyExpression56(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.PropertyExpression( typeof(WindowState), null, "file_name" );
@@ -2023,7 +1979,7 @@ public class Xcls_MainWindow : Object
                {
                        _this = _owner;
                        _this.projcol = this;
-                       var child_1 = new Xcls_SignalListItemFactory59( _this );
+                       var child_1 = new Xcls_SignalListItemFactory58( _this );
                        child_1.ref();
                        this.el = new Gtk.ColumnViewColumn( "Project", child_1.el );
 
@@ -2037,7 +1993,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_SignalListItemFactory59 : Object
+       public class Xcls_SignalListItemFactory58 : Object
        {
                public Gtk.SignalListItemFactory el;
                private Xcls_MainWindow  _this;
@@ -2046,7 +2002,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_SignalListItemFactory59(Xcls_MainWindow _owner )
+               public Xcls_SignalListItemFactory58(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.SignalListItemFactory();
@@ -2095,7 +2051,7 @@ public class Xcls_MainWindow : Object
                {
                        _this = _owner;
                        _this.filecol = this;
-                       var child_1 = new Xcls_SignalListItemFactory61( _this );
+                       var child_1 = new Xcls_SignalListItemFactory60( _this );
                        child_1.ref();
                        this.el = new Gtk.ColumnViewColumn( "File", child_1.el );
 
@@ -2109,7 +2065,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_SignalListItemFactory61 : Object
+       public class Xcls_SignalListItemFactory60 : Object
        {
                public Gtk.SignalListItemFactory el;
                private Xcls_MainWindow  _this;
@@ -2118,7 +2074,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_SignalListItemFactory61(Xcls_MainWindow _owner )
+               public Xcls_SignalListItemFactory60(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.SignalListItemFactory();
@@ -2206,7 +2162,7 @@ public class Xcls_MainWindow : Object
                        // set gobject values
                        this.el.hexpand = true;
                        this.el.vexpand = true;
-                       var child_2 = new Xcls_GestureClick64( _this );
+                       var child_2 = new Xcls_GestureClick63( _this );
                        child_2.ref();
                        this.el.add_controller(  child_2.el );
                        new Xcls_name( _this );
@@ -2215,7 +2171,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_GestureClick64 : Object
+       public class Xcls_GestureClick63 : Object
        {
                public Gtk.GestureClick el;
                private Xcls_MainWindow  _this;
@@ -2224,7 +2180,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_GestureClick64(Xcls_MainWindow _owner )
+               public Xcls_GestureClick63(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.GestureClick();
@@ -2277,7 +2233,7 @@ public class Xcls_MainWindow : Object
                {
                        _this = _owner;
                        _this.treeselmodel = this;
-                       var child_1 = new Xcls_FilterListModel66( _this );
+                       var child_1 = new Xcls_FilterListModel65( _this );
                        child_1.ref();
                        this.el = new Gtk.SingleSelection( child_1.el );
 
@@ -2289,7 +2245,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_FilterListModel66 : Object
+       public class Xcls_FilterListModel65 : Object
        {
                public Gtk.FilterListModel el;
                private Xcls_MainWindow  _this;
@@ -2298,7 +2254,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_FilterListModel66(Xcls_MainWindow _owner )
+               public Xcls_FilterListModel65(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        new Xcls_treelistsort( _this );
@@ -2326,7 +2282,7 @@ public class Xcls_MainWindow : Object
                        _this = _owner;
                        _this.treelistsort = this;
                        new Xcls_treelistmodel( _this );
-                       var child_2 = new Xcls_TreeListRowSorter70( _this );
+                       var child_2 = new Xcls_TreeListRowSorter69( _this );
                        child_2.ref();
                        this.el = new Gtk.SortListModel( _this.treelistmodel.el, child_2.el );
 
@@ -2388,7 +2344,7 @@ public class Xcls_MainWindow : Object
        }
 
 
-       public class Xcls_TreeListRowSorter70 : Object
+       public class Xcls_TreeListRowSorter69 : Object
        {
                public Gtk.TreeListRowSorter el;
                private Xcls_MainWindow  _this;
@@ -2397,10 +2353,10 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_TreeListRowSorter70(Xcls_MainWindow _owner )
+               public Xcls_TreeListRowSorter69(Xcls_MainWindow _owner )
                {
                        _this = _owner;
-                       var child_1 = new Xcls_StringSorter71( _this );
+                       var child_1 = new Xcls_StringSorter70( _this );
                        child_1.ref();
                        this.el = new Gtk.TreeListRowSorter( child_1.el );
 
@@ -2411,7 +2367,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_StringSorter71 : Object
+       public class Xcls_StringSorter70 : Object
        {
                public Gtk.StringSorter el;
                private Xcls_MainWindow  _this;
@@ -2420,10 +2376,10 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_StringSorter71(Xcls_MainWindow _owner )
+               public Xcls_StringSorter70(Xcls_MainWindow _owner )
                {
                        _this = _owner;
-                       var child_1 = new Xcls_PropertyExpression72( _this );
+                       var child_1 = new Xcls_PropertyExpression71( _this );
                        child_1.ref();
                        this.el = new Gtk.StringSorter( child_1.el );
 
@@ -2435,7 +2391,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_PropertyExpression72 : Object
+       public class Xcls_PropertyExpression71 : Object
        {
                public Gtk.PropertyExpression el;
                private Xcls_MainWindow  _this;
@@ -2444,7 +2400,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_PropertyExpression72(Xcls_MainWindow _owner )
+               public Xcls_PropertyExpression71(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.PropertyExpression( typeof(JsRender.JsRender) , null, "name" );
@@ -2543,7 +2499,7 @@ public class Xcls_MainWindow : Object
                {
                        _this = _owner;
                        _this.name = this;
-                       var child_1 = new Xcls_SignalListItemFactory75( _this );
+                       var child_1 = new Xcls_SignalListItemFactory74( _this );
                        child_1.ref();
                        this.el = new Gtk.ColumnViewColumn( "General Files", child_1.el );
 
@@ -2566,7 +2522,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_SignalListItemFactory75 : Object
+       public class Xcls_SignalListItemFactory74 : Object
        {
                public Gtk.SignalListItemFactory el;
                private Xcls_MainWindow  _this;
@@ -2575,7 +2531,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_SignalListItemFactory75(Xcls_MainWindow _owner )
+               public Xcls_SignalListItemFactory74(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.SignalListItemFactory();
@@ -2663,5 +2619,50 @@ public class Xcls_MainWindow : Object
 
 
 
+       public class Xcls_keystate : Object
+       {
+               public Gtk.EventControllerKey el;
+               private Xcls_MainWindow  _this;
+
+
+                       // my vars (def)
+               public int is_shift;
+
+               // ctor
+               public Xcls_keystate(Xcls_MainWindow _owner )
+               {
+                       _this = _owner;
+                       _this.keystate = this;
+                       this.el = new Gtk.EventControllerKey();
+
+                       // my vars (dec)
+                       this.is_shift = 0;
+
+                       // set gobject values
+
+                       //listeners
+                       this.el.key_released.connect( (keyval, keycode, state) => {
+                               GLib.debug("key release %d, %d, %d" , (int) keyval, (int)  keycode, state);
+                               if (keyval == Gdk.Key.Shift_L || keyval == Gdk.Key.Shift_R) {
+                                       this.is_shift = 0;
+                               }
+                               //GLib.debug("set state %d , shift = %d", (int)this.el.get_current_event_state(), Gdk.ModifierType.SHIFT_MASK);
+                       
+                       
+                        
+                       });
+                       this.el.key_pressed.connect( (keyval, keycode, state) => {
+                       
+                               if (keyval == Gdk.Key.Shift_L || keyval == Gdk.Key.Shift_R) {
+                                       this.is_shift = 1;
+                               }
+                               return true;
+                               
+                       });
+               }
+
+               // user defined functions
+       }
+
 
 }