9ca88f21915741a69446321058178c30b8fe956b
[roobuilder] / src / Builder4 / GladeView.vala
1 static GladeView  _GladeView;
2
3 public class GladeView : Object
4 {
5     public Gtk.Dialog el;
6     private GladeView  _this;
7
8     public static GladeView singleton()
9     {
10         if (_GladeView == null) {
11             _GladeView= new GladeView();
12         }
13         return _GladeView;
14     }
15
16         // my vars (def)
17
18     // ctor
19     public GladeView()
20     {
21         _this = this;
22         this.el = new Gtk.Dialog();
23
24         // my vars (dec)
25
26         // set gobject values
27         var child_0 = new Xcls_Button2( _this );
28         this.el.add_action_widget( child_0.el, 0);
29         var child_1 = new Xcls_Button3( _this );
30         this.el.add_action_widget( child_1.el, 1);
31         var child_2 = new Xcls_Box4( _this );
32         child_2.ref();
33         this.el.get_content_area().add( child_2.el );
34     }
35
36     // user defined functions
37     public class Xcls_Button2 : Object
38     {
39         public Gtk.Button el;
40         private GladeView  _this;
41
42
43             // my vars (def)
44
45         // ctor
46         public Xcls_Button2(GladeView _owner )
47         {
48             _this = _owner;
49             this.el = new Gtk.Button();
50
51             // my vars (dec)
52
53             // set gobject values
54             this.el.label = "Label";
55         }
56
57         // user defined functions
58     }
59
60     public class Xcls_Button3 : Object
61     {
62         public Gtk.Button el;
63         private GladeView  _this;
64
65
66             // my vars (def)
67
68         // ctor
69         public Xcls_Button3(GladeView _owner )
70         {
71             _this = _owner;
72             this.el = new Gtk.Button();
73
74             // my vars (dec)
75
76             // set gobject values
77             this.el.label = "Label";
78         }
79
80         // user defined functions
81     }
82
83     public class Xcls_Box4 : Object
84     {
85         public Gtk.Box el;
86         private GladeView  _this;
87
88
89             // my vars (def)
90
91         // ctor
92         public Xcls_Box4(GladeView _owner )
93         {
94             _this = _owner;
95             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
96
97             // my vars (dec)
98
99             // set gobject values
100         }
101
102         // user defined functions
103     }
104
105 }