}
return _NewBranch;
}
- public Xcls_scrolled_window scrolled_window;
- public Xcls_view view;
public Xcls_label_select_ticket label_select_ticket;
public Xcls_label_create_ticket label_create_ticket;
public Xcls_label_quick_commit label_quick_commit;
public Xcls_createbtn createbtn;
public Xcls_btn_not_me btn_not_me;
public Xcls_btn_closed btn_closed;
+ public Xcls_scrolled_window scrolled_window;
+ public Xcls_view view;
// my vars (def)
public GitRepo? repo;
var child_0 = new Xcls_Box2( _this );
child_0.ref();
this.el.get_content_area().add ( child_0.el );
- var child_1 = new Xcls_Notebook5( _this );
+ var child_1 = new Xcls_Notebook3( _this );
child_1.ref();
this.el.add ( child_1.el );
// my vars (dec)
// set gobject values
- var child_0 = new Xcls_scrolled_window( _this );
- child_0.ref();
- this.el.add ( child_0.el );
}
// user defined functions
}
- public class Xcls_scrolled_window : Object
- {
- public Gtk.ScrolledWindow el;
- private NewBranch _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_scrolled_window(NewBranch _owner )
- {
- _this = _owner;
- _this.scrolled_window = this;
- this.el = new Gtk.ScrolledWindow( null, null );
-
- // my vars (dec)
-
- // set gobject values
- this.el.height_request = 500;
- this.el.vexpand = true;
- var child_0 = new Xcls_view( _this );
- child_0.ref();
- this.el.add ( child_0.el );
-
- // init method
-
- {
- this.el.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
- }
- }
-
- // user defined functions
- }
- public class Xcls_view : Object
- {
- public WebKit.WebView el;
- private NewBranch _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_view(NewBranch _owner )
- {
- _this = _owner;
- _this.view = this;
- this.el = new WebKit.WebView();
-
- // my vars (dec)
-
- // set gobject values
- }
-
- // user defined functions
- public void loadTicket (string tid) {
- int h,w;
- _this.el.get_size(out w, out h);
-
- if (tid == "") {
- _this.scrolled_window.el.hide();
- _this.el.resize(w, 150);
- } else {
- _this.scrolled_window.el.show();
- _this.el.resize(w, 800);
- }
-
- var rs = RooTicket.singleton();
- var uri = new WebKit.URIRequest("https://roojs.com/admin.php/MTrack/View/" + tid);
- var hd = uri.get_http_headers();
- var authCode = Base64.encode ("%s:%s".printf(rs.username, rs.password).data);
- hd.append("Authorization", "Basic %s".printf(authCode));
-
- this.el.load_request(uri);
- }
- }
-
-
- public class Xcls_Notebook5 : Object
+ public class Xcls_Notebook3 : Object
{
public Gtk.Notebook el;
private NewBranch _this;
// my vars (def)
// ctor
- public Xcls_Notebook5(NewBranch _owner )
+ public Xcls_Notebook3(NewBranch _owner )
{
_this = _owner;
this.el = new Gtk.Notebook();
child_1.ref();
var child_2 = new Xcls_label_quick_commit( _this );
child_2.ref();
- var child_3 = new Xcls_Box9( _this );
+ var child_3 = new Xcls_Box7( _this );
child_3.ref();
this.el.append_page ( child_3.el , _this.label_select_ticket.el );
var child_4 = new Xcls_Box27( _this );
// user defined functions
}
- public class Xcls_Box9 : Object
+ public class Xcls_Box7 : Object
{
public Gtk.Box el;
private NewBranch _this;
// my vars (def)
// ctor
- public Xcls_Box9(NewBranch _owner )
+ public Xcls_Box7(NewBranch _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
// set gobject values
this.el.homogeneous = false;
- var child_0 = new Xcls_Table10( _this );
+ var child_0 = new Xcls_Table8( _this );
child_0.ref();
this.el.pack_start ( child_0.el , false,false,0 );
+ var child_1 = new Xcls_scrolled_window( _this );
+ child_1.ref();
+ this.el.add ( child_1.el );
}
// user defined functions
}
- public class Xcls_Table10 : Object
+ public class Xcls_Table8 : Object
{
public Gtk.Table el;
private NewBranch _this;
// my vars (def)
// ctor
- public Xcls_Table10(NewBranch _owner )
+ public Xcls_Table8(NewBranch _owner )
{
_this = _owner;
this.el = new Gtk.Table( 5, 5, true );
this.el.margin = 2;
this.el.column_spacing = 4;
this.el.vexpand = false;
- var child_0 = new Xcls_Label11( _this );
+ var child_0 = new Xcls_Label9( _this );
child_0.ref();
this.el.attach_defaults ( child_0.el , 0,1,0,1 );
- var child_1 = new Xcls_Label12( _this );
+ var child_1 = new Xcls_Label10( _this );
child_1.ref();
this.el.attach_defaults ( child_1.el , 1,2,0,1 );
var child_2 = new Xcls_projectsel( _this );
var child_3 = new Xcls_ticketsel( _this );
child_3.ref();
this.el.attach_defaults ( child_3.el , 1,4,1,2 );
- var child_4 = new Xcls_Button19( _this );
+ var child_4 = new Xcls_Button17( _this );
child_4.ref();
this.el.attach_defaults ( child_4.el , 4,5,1,2 );
- var child_5 = new Xcls_Label20( _this );
+ var child_5 = new Xcls_Label18( _this );
child_5.ref();
this.el.attach_defaults ( child_5.el , 0,1,3,4 );
var child_6 = new Xcls_name( _this );
var child_7 = new Xcls_createbtn( _this );
child_7.ref();
this.el.attach_defaults ( child_7.el , 4,5,4,5 );
- var child_8 = new Xcls_Box23( _this );
+ var child_8 = new Xcls_Box21( _this );
child_8.ref();
this.el.attach_defaults ( child_8.el , 0,5,2,3 );
}
// user defined functions
}
- public class Xcls_Label11 : Object
+ public class Xcls_Label9 : Object
{
public Gtk.Label el;
private NewBranch _this;
// my vars (def)
// ctor
- public Xcls_Label11(NewBranch _owner )
+ public Xcls_Label9(NewBranch _owner )
{
_this = _owner;
this.el = new Gtk.Label( "Project" );
// user defined functions
}
- public class Xcls_Label12 : Object
+ public class Xcls_Label10 : Object
{
public Gtk.Label el;
private NewBranch _this;
// my vars (def)
// ctor
- public Xcls_Label12(NewBranch _owner )
+ public Xcls_Label10(NewBranch _owner )
{
_this = _owner;
this.el = new Gtk.Label( "Ticket" );
}
- public class Xcls_Button19 : Object
+ public class Xcls_Button17 : Object
{
public Gtk.Button el;
private NewBranch _this;
// my vars (def)
// ctor
- public Xcls_Button19(NewBranch _owner )
+ public Xcls_Button17(NewBranch _owner )
{
_this = _owner;
this.el = new Gtk.Button();
// user defined functions
}
- public class Xcls_Label20 : Object
+ public class Xcls_Label18 : Object
{
public Gtk.Label el;
private NewBranch _this;
// my vars (def)
// ctor
- public Xcls_Label20(NewBranch _owner )
+ public Xcls_Label18(NewBranch _owner )
{
_this = _owner;
this.el = new Gtk.Label( "Use this as branch name" );
}
}
- public class Xcls_Box23 : Object
+ public class Xcls_Box21 : Object
{
public Gtk.Box el;
private NewBranch _this;
// my vars (def)
// ctor
- public Xcls_Box23(NewBranch _owner )
+ public Xcls_Box21(NewBranch _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
var child_1 = new Xcls_btn_closed( _this );
child_1.ref();
this.el.add ( child_1.el );
- var child_2 = new Xcls_Label26( _this );
+ var child_2 = new Xcls_Label24( _this );
child_2.ref();
this.el.add ( child_2.el );
}
// user defined functions
}
- public class Xcls_Label26 : Object
+ public class Xcls_Label24 : Object
{
public Gtk.Label el;
private NewBranch _this;
// my vars (def)
// ctor
- public Xcls_Label26(NewBranch _owner )
+ public Xcls_Label24(NewBranch _owner )
{
_this = _owner;
this.el = new Gtk.Label( "<a href=\"refresh\">Refresh Ticket list</a>" );
+ public class Xcls_scrolled_window : Object
+ {
+ public Gtk.ScrolledWindow el;
+ private NewBranch _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_scrolled_window(NewBranch _owner )
+ {
+ _this = _owner;
+ _this.scrolled_window = this;
+ this.el = new Gtk.ScrolledWindow( null, null );
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.height_request = 500;
+ this.el.vexpand = true;
+ var child_0 = new Xcls_view( _this );
+ child_0.ref();
+ this.el.add ( child_0.el );
+
+ // init method
+
+ {
+ this.el.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
+ }
+ }
+
+ // user defined functions
+ }
+ public class Xcls_view : Object
+ {
+ public WebKit.WebView el;
+ private NewBranch _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_view(NewBranch _owner )
+ {
+ _this = _owner;
+ _this.view = this;
+ this.el = new WebKit.WebView();
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ public void loadTicket (string tid) {
+ int h,w;
+ _this.el.get_size(out w, out h);
+
+ if (tid == "") {
+ _this.scrolled_window.el.hide();
+ _this.el.resize(w, 150);
+ } else {
+ _this.scrolled_window.el.show();
+ _this.el.resize(w, 800);
+ }
+
+ var rs = RooTicket.singleton();
+ var uri = new WebKit.URIRequest("https://roojs.com/admin.php/MTrack/View/" + tid);
+ var hd = uri.get_http_headers();
+ var authCode = Base64.encode ("%s:%s".printf(rs.username, rs.password).data);
+ hd.append("Authorization", "Basic %s".printf(authCode));
+
+ this.el.load_request(uri);
+ }
+ }
+
+
public class Xcls_Box27 : Object
{