src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 31 Jan 2024 10:48:42 +0000 (18:48 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 31 Jan 2024 10:48:42 +0000 (18:48 +0800)
src/Builder4/MainWindow.vala

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

index 33882eb..127eb40 100644 (file)
            "bool hexpand" : true,
            "id" : "windowbtn",
            "int margin_end" : 4,
-           "items" : [
-            {
-             "$ xns" : "Gtk",
-             "* pack" : false,
-             "id" : "windowspopup",
-             "xtype" : "Popover"
-            }
-           ],
            "listeners" : {
             "clicked" : [
              "( ) => {",
index efa18ee..cc28c74 100644 (file)
@@ -34,8 +34,6 @@ public class Xcls_MainWindow : Object
        public Xcls_filesearch filesearch;
        public Xcls_open_projects_btn open_projects_btn;
        public Xcls_windowbtn windowbtn;
-       public Xcls_windowspopup windowspopup;
-       public Xcls_popover_menu popover_menu;
        public Xcls_winsel winsel;
        public Xcls_winfilter winfilter;
        public Xcls_windowsearch windowsearch;
@@ -1314,7 +1312,7 @@ public class Xcls_MainWindow : Object
                        var child_2 = new Xcls_Box36( _this );
                        child_2.ref();
                        this.el.append( child_2.el );
-                       var child_3 = new Xcls_Paned45( _this );
+                       var child_3 = new Xcls_Paned39( _this );
                        child_3.ref();
                        this.el.append( child_3.el );
                }
@@ -1458,9 +1456,6 @@ public class Xcls_MainWindow : Object
                        this.el.margin_end = 4;
                        this.el.halign = Gtk.Align.START;
                        this.el.hexpand = true;
-                       new Xcls_windowspopup( _this );
-                       var child_2 = new Xcls_Box42( _this );
-                       this.el.child = child_2.el;
 
                        //listeners
                        this.el.clicked.connect( ( ) => {
@@ -1470,156 +1465,9 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_windowspopup : Object
-       {
-               public Gtk.Popover el;
-               private Xcls_MainWindow  _this;
-
-
-                       // my vars (def)
-
-               // ctor
-               public Xcls_windowspopup(Xcls_MainWindow _owner )
-               {
-                       _this = _owner;
-                       _this.windowspopup = this;
-                       this.el = new Gtk.Popover();
-
-                       // my vars (dec)
-
-                       // set gobject values
-                       new Xcls_popover_menu( _this );
-                       this.el.set_child ( _this.popover_menu.el  );
-               }
-
-               // user defined functions
-       }
-       public class Xcls_popover_menu : Object
-       {
-               public Gtk.Box el;
-               private Xcls_MainWindow  _this;
-
-
-                       // my vars (def)
-
-               // ctor
-               public Xcls_popover_menu(Xcls_MainWindow _owner )
-               {
-                       _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_Separator41( _this );
-                       child_1.ref();
-                       this.el.append ( child_1.el  );
-               }
-
-               // user defined functions
-       }
-       public class Xcls_Separator41 : Object
-       {
-               public Gtk.Separator el;
-               private Xcls_MainWindow  _this;
-
-
-                       // my vars (def)
-
-               // ctor
-               public Xcls_Separator41(Xcls_MainWindow _owner )
-               {
-                       _this = _owner;
-                       this.el = new Gtk.Separator( Gtk.Orientation.HORIZONTAL );
-
-                       // my vars (dec)
-
-                       // set gobject values
-               }
-
-               // user defined functions
-       }
-
-
-
-       public class Xcls_Box42 : Object
-       {
-               public Gtk.Box el;
-               private Xcls_MainWindow  _this;
-
-
-                       // my vars (def)
-
-               // ctor
-               public Xcls_Box42(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_Image43( _this );
-                       child_1.ref();
-                       this.el.append( child_1.el );
-                       var child_2 = new Xcls_Label44( _this );
-                       child_2.ref();
-                       this.el.append( child_2.el );
-               }
-
-               // user defined functions
-       }
-       public class Xcls_Image43 : Object
-       {
-               public Gtk.Image el;
-               private Xcls_MainWindow  _this;
-
-
-                       // my vars (def)
-
-               // ctor
-               public Xcls_Image43(Xcls_MainWindow _owner )
-               {
-                       _this = _owner;
-                       this.el = new Gtk.Image();
-
-                       // my vars (dec)
-
-                       // set gobject values
-                       this.el.icon_name = "window-new";
-                       this.el.margin_start = 4;
-               }
-
-               // user defined functions
-       }
-
-       public class Xcls_Label44 : Object
-       {
-               public Gtk.Label el;
-               private Xcls_MainWindow  _this;
-
-
-                       // my vars (def)
-
-               // ctor
-               public Xcls_Label44(Xcls_MainWindow _owner )
-               {
-                       _this = _owner;
-                       this.el = new Gtk.Label( "Windows (Add/List)" );
-
-                       // my vars (dec)
-
-                       // set gobject values
-               }
-
-               // user defined functions
-       }
-
-
 
 
-       public class Xcls_Paned45 : Object
+       public class Xcls_Paned39 : Object
        {
                public Gtk.Paned el;
                private Xcls_MainWindow  _this;
@@ -1628,7 +1476,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_Paned45(Xcls_MainWindow _owner )
+               public Xcls_Paned39(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
@@ -1637,15 +1485,15 @@ public class Xcls_MainWindow : Object
 
                        // set gobject values
                        this.el.vexpand = true;
-                       var child_1 = new Xcls_ScrolledWindow46( _this );
+                       var child_1 = new Xcls_ScrolledWindow40( _this );
                        this.el.start_child = child_1.el;
-                       var child_2 = new Xcls_ScrolledWindow60( _this );
+                       var child_2 = new Xcls_ScrolledWindow54( _this );
                        this.el.end_child = child_2.el;
                }
 
                // user defined functions
        }
-       public class Xcls_ScrolledWindow46 : Object
+       public class Xcls_ScrolledWindow40 : Object
        {
                public Gtk.ScrolledWindow el;
                private Xcls_MainWindow  _this;
@@ -1654,7 +1502,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_ScrolledWindow46(Xcls_MainWindow _owner )
+               public Xcls_ScrolledWindow40(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.ScrolledWindow();
@@ -1662,13 +1510,13 @@ public class Xcls_MainWindow : Object
                        // my vars (dec)
 
                        // set gobject values
-                       var child_1 = new Xcls_ColumnView47( _this );
+                       var child_1 = new Xcls_ColumnView41( _this );
                        this.el.child = child_1.el;
                }
 
                // user defined functions
        }
-       public class Xcls_ColumnView47 : Object
+       public class Xcls_ColumnView41 : Object
        {
                public Gtk.ColumnView el;
                private Xcls_MainWindow  _this;
@@ -1677,7 +1525,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_ColumnView47(Xcls_MainWindow _owner )
+               public Xcls_ColumnView41(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        new Xcls_winsel( _this );
@@ -1708,7 +1556,7 @@ public class Xcls_MainWindow : Object
                {
                        _this = _owner;
                        _this.winsel = this;
-                       var child_1 = new Xcls_SortListModel49( _this );
+                       var child_1 = new Xcls_SortListModel43( _this );
                        child_1.ref();
                        this.el = new Gtk.SingleSelection( child_1.el );
 
@@ -1753,7 +1601,7 @@ public class Xcls_MainWindow : Object
                
                }
        }
-       public class Xcls_SortListModel49 : Object
+       public class Xcls_SortListModel43 : Object
        {
                public Gtk.SortListModel el;
                private Xcls_MainWindow  _this;
@@ -1762,11 +1610,11 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_SortListModel49(Xcls_MainWindow _owner )
+               public Xcls_SortListModel43(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        new Xcls_winfilter( _this );
-                       var child_2 = new Xcls_StringSorter54( _this );
+                       var child_2 = new Xcls_StringSorter48( _this );
                        child_2.ref();
                        this.el = new Gtk.SortListModel( _this.winfilter.el, child_2.el );
 
@@ -1814,7 +1662,7 @@ public class Xcls_MainWindow : Object
                {
                        _this = _owner;
                        _this.windowsearch = this;
-                       var child_1 = new Xcls_PropertyExpression52( _this );
+                       var child_1 = new Xcls_PropertyExpression46( _this );
                        child_1.ref();
                        this.el = new Gtk.StringFilter( child_1.el );
 
@@ -1825,7 +1673,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_PropertyExpression52 : Object
+       public class Xcls_PropertyExpression46 : Object
        {
                public Gtk.PropertyExpression el;
                private Xcls_MainWindow  _this;
@@ -1834,7 +1682,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_PropertyExpression52(Xcls_MainWindow _owner )
+               public Xcls_PropertyExpression46(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.PropertyExpression( typeof(WindowState), null, "file_name" );
@@ -1872,7 +1720,7 @@ public class Xcls_MainWindow : Object
        }
 
 
-       public class Xcls_StringSorter54 : Object
+       public class Xcls_StringSorter48 : Object
        {
                public Gtk.StringSorter el;
                private Xcls_MainWindow  _this;
@@ -1881,10 +1729,10 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_StringSorter54(Xcls_MainWindow _owner )
+               public Xcls_StringSorter48(Xcls_MainWindow _owner )
                {
                        _this = _owner;
-                       var child_1 = new Xcls_PropertyExpression55( _this );
+                       var child_1 = new Xcls_PropertyExpression49( _this );
                        child_1.ref();
                        this.el = new Gtk.StringSorter( child_1.el );
 
@@ -1896,7 +1744,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_PropertyExpression55 : Object
+       public class Xcls_PropertyExpression49 : Object
        {
                public Gtk.PropertyExpression el;
                private Xcls_MainWindow  _this;
@@ -1905,7 +1753,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_PropertyExpression55(Xcls_MainWindow _owner )
+               public Xcls_PropertyExpression49(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.PropertyExpression( typeof(WindowState), null, "file_name" );
@@ -1934,7 +1782,7 @@ public class Xcls_MainWindow : Object
                {
                        _this = _owner;
                        _this.projcol = this;
-                       var child_1 = new Xcls_SignalListItemFactory57( _this );
+                       var child_1 = new Xcls_SignalListItemFactory51( _this );
                        child_1.ref();
                        this.el = new Gtk.ColumnViewColumn( "Project", child_1.el );
 
@@ -1948,7 +1796,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_SignalListItemFactory57 : Object
+       public class Xcls_SignalListItemFactory51 : Object
        {
                public Gtk.SignalListItemFactory el;
                private Xcls_MainWindow  _this;
@@ -1957,7 +1805,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_SignalListItemFactory57(Xcls_MainWindow _owner )
+               public Xcls_SignalListItemFactory51(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.SignalListItemFactory();
@@ -2006,7 +1854,7 @@ public class Xcls_MainWindow : Object
                {
                        _this = _owner;
                        _this.filecol = this;
-                       var child_1 = new Xcls_SignalListItemFactory59( _this );
+                       var child_1 = new Xcls_SignalListItemFactory53( _this );
                        child_1.ref();
                        this.el = new Gtk.ColumnViewColumn( "File", child_1.el );
 
@@ -2020,7 +1868,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_SignalListItemFactory59 : Object
+       public class Xcls_SignalListItemFactory53 : Object
        {
                public Gtk.SignalListItemFactory el;
                private Xcls_MainWindow  _this;
@@ -2029,7 +1877,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_SignalListItemFactory59(Xcls_MainWindow _owner )
+               public Xcls_SignalListItemFactory53(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.SignalListItemFactory();
@@ -2067,7 +1915,7 @@ public class Xcls_MainWindow : Object
 
 
 
-       public class Xcls_ScrolledWindow60 : Object
+       public class Xcls_ScrolledWindow54 : Object
        {
                public Gtk.ScrolledWindow el;
                private Xcls_MainWindow  _this;
@@ -2076,7 +1924,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_ScrolledWindow60(Xcls_MainWindow _owner )
+               public Xcls_ScrolledWindow54(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.ScrolledWindow();
@@ -2086,13 +1934,13 @@ public class Xcls_MainWindow : Object
                        // set gobject values
                        this.el.hexpand = true;
                        this.el.vexpand = true;
-                       var child_1 = new Xcls_ColumnView61( _this );
+                       var child_1 = new Xcls_ColumnView55( _this );
                        this.el.child = child_1.el;
                }
 
                // user defined functions
        }
-       public class Xcls_ColumnView61 : Object
+       public class Xcls_ColumnView55 : Object
        {
                public Gtk.ColumnView el;
                private Xcls_MainWindow  _this;
@@ -2101,10 +1949,10 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_ColumnView61(Xcls_MainWindow _owner )
+               public Xcls_ColumnView55(Xcls_MainWindow _owner )
                {
                        _this = _owner;
-                       var child_1 = new Xcls_SingleSelection62( _this );
+                       var child_1 = new Xcls_SingleSelection56( _this );
                        child_1.ref();
                        this.el = new Gtk.ColumnView( child_1.el );
 
@@ -2113,17 +1961,17 @@ public class Xcls_MainWindow : Object
                        // set gobject values
                        this.el.hexpand = true;
                        this.el.vexpand = true;
-                       var child_2 = new Xcls_ColumnViewColumn70( _this );
+                       var child_2 = new Xcls_ColumnViewColumn64( _this );
                        child_2.ref();
                        this.el.append_column( child_2.el );
-                       var child_3 = new Xcls_ColumnViewColumn72( _this );
+                       var child_3 = new Xcls_ColumnViewColumn66( _this );
                        child_3.ref();
                        this.el.append_column ( child_3.el  );
                }
 
                // user defined functions
        }
-       public class Xcls_SingleSelection62 : Object
+       public class Xcls_SingleSelection56 : Object
        {
                public Gtk.SingleSelection el;
                private Xcls_MainWindow  _this;
@@ -2132,10 +1980,10 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_SingleSelection62(Xcls_MainWindow _owner )
+               public Xcls_SingleSelection56(Xcls_MainWindow _owner )
                {
                        _this = _owner;
-                       var child_1 = new Xcls_SortListModel63( _this );
+                       var child_1 = new Xcls_SortListModel57( _this );
                        child_1.ref();
                        this.el = new Gtk.SingleSelection( child_1.el );
 
@@ -2148,7 +1996,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_SortListModel63 : Object
+       public class Xcls_SortListModel57 : Object
        {
                public Gtk.SortListModel el;
                private Xcls_MainWindow  _this;
@@ -2157,12 +2005,12 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_SortListModel63(Xcls_MainWindow _owner )
+               public Xcls_SortListModel57(Xcls_MainWindow _owner )
                {
                        _this = _owner;
-                       var child_1 = new Xcls_FilterListModel64( _this );
+                       var child_1 = new Xcls_FilterListModel58( _this );
                        child_1.ref();
-                       var child_2 = new Xcls_StringSorter68( _this );
+                       var child_2 = new Xcls_StringSorter62( _this );
                        child_2.ref();
                        this.el = new Gtk.SortListModel( child_1.el, child_2.el );
 
@@ -2173,7 +2021,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_FilterListModel64 : Object
+       public class Xcls_FilterListModel58 : Object
        {
                public Gtk.FilterListModel el;
                private Xcls_MainWindow  _this;
@@ -2182,7 +2030,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_FilterListModel64(Xcls_MainWindow _owner )
+               public Xcls_FilterListModel58(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        new Xcls_histmodel( _this );
@@ -2232,7 +2080,7 @@ public class Xcls_MainWindow : Object
                {
                        _this = _owner;
                        _this.histsearch = this;
-                       var child_1 = new Xcls_PropertyExpression67( _this );
+                       var child_1 = new Xcls_PropertyExpression61( _this );
                        child_1.ref();
                        this.el = new Gtk.StringFilter( child_1.el );
 
@@ -2243,7 +2091,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_PropertyExpression67 : Object
+       public class Xcls_PropertyExpression61 : Object
        {
                public Gtk.PropertyExpression el;
                private Xcls_MainWindow  _this;
@@ -2252,7 +2100,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_PropertyExpression67(Xcls_MainWindow _owner )
+               public Xcls_PropertyExpression61(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.PropertyExpression( typeof(WindowState), null, "file_name" );
@@ -2267,7 +2115,7 @@ public class Xcls_MainWindow : Object
 
 
 
-       public class Xcls_StringSorter68 : Object
+       public class Xcls_StringSorter62 : Object
        {
                public Gtk.StringSorter el;
                private Xcls_MainWindow  _this;
@@ -2276,10 +2124,10 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_StringSorter68(Xcls_MainWindow _owner )
+               public Xcls_StringSorter62(Xcls_MainWindow _owner )
                {
                        _this = _owner;
-                       var child_1 = new Xcls_PropertyExpression69( _this );
+                       var child_1 = new Xcls_PropertyExpression63( _this );
                        child_1.ref();
                        this.el = new Gtk.StringSorter( child_1.el );
 
@@ -2291,7 +2139,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_PropertyExpression69 : Object
+       public class Xcls_PropertyExpression63 : Object
        {
                public Gtk.PropertyExpression el;
                private Xcls_MainWindow  _this;
@@ -2300,7 +2148,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_PropertyExpression69(Xcls_MainWindow _owner )
+               public Xcls_PropertyExpression63(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.PropertyExpression( typeof(WindowState), null, "file_name" );
@@ -2316,7 +2164,7 @@ public class Xcls_MainWindow : Object
 
 
 
-       public class Xcls_ColumnViewColumn70 : Object
+       public class Xcls_ColumnViewColumn64 : Object
        {
                public Gtk.ColumnViewColumn el;
                private Xcls_MainWindow  _this;
@@ -2325,10 +2173,10 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_ColumnViewColumn70(Xcls_MainWindow _owner )
+               public Xcls_ColumnViewColumn64(Xcls_MainWindow _owner )
                {
                        _this = _owner;
-                       var child_1 = new Xcls_SignalListItemFactory71( _this );
+                       var child_1 = new Xcls_SignalListItemFactory65( _this );
                        child_1.ref();
                        this.el = new Gtk.ColumnViewColumn( "Project", child_1.el );
 
@@ -2341,7 +2189,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_SignalListItemFactory71 : Object
+       public class Xcls_SignalListItemFactory65 : Object
        {
                public Gtk.SignalListItemFactory el;
                private Xcls_MainWindow  _this;
@@ -2350,7 +2198,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_SignalListItemFactory71(Xcls_MainWindow _owner )
+               public Xcls_SignalListItemFactory65(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.SignalListItemFactory();
@@ -2386,7 +2234,7 @@ public class Xcls_MainWindow : Object
        }
 
 
-       public class Xcls_ColumnViewColumn72 : Object
+       public class Xcls_ColumnViewColumn66 : Object
        {
                public Gtk.ColumnViewColumn el;
                private Xcls_MainWindow  _this;
@@ -2395,10 +2243,10 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_ColumnViewColumn72(Xcls_MainWindow _owner )
+               public Xcls_ColumnViewColumn66(Xcls_MainWindow _owner )
                {
                        _this = _owner;
-                       var child_1 = new Xcls_SignalListItemFactory73( _this );
+                       var child_1 = new Xcls_SignalListItemFactory67( _this );
                        child_1.ref();
                        this.el = new Gtk.ColumnViewColumn( "File", child_1.el );
 
@@ -2411,7 +2259,7 @@ public class Xcls_MainWindow : Object
 
                // user defined functions
        }
-       public class Xcls_SignalListItemFactory73 : Object
+       public class Xcls_SignalListItemFactory67 : Object
        {
                public Gtk.SignalListItemFactory el;
                private Xcls_MainWindow  _this;
@@ -2420,7 +2268,7 @@ public class Xcls_MainWindow : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_SignalListItemFactory73(Xcls_MainWindow _owner )
+               public Xcls_SignalListItemFactory67(Xcls_MainWindow _owner )
                {
                        _this = _owner;
                        this.el = new Gtk.SignalListItemFactory();