}
return _MergeBranch;
}
+ public Xcls_table table;
public Xcls_actionsel actionsel;
public Xcls_actioncellrenderer actioncellrenderer;
public Xcls_actionmodel actionmodel;
public Xcls_name name;
public Xcls_scrolled_window scrolled_window;
public Xcls_view view;
+ public Xcls_spinner spinner;
// 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_Button16( _this );
+ var child_1 = new Xcls_Button20( _this );
child_1.ref();
this.el.add_action_widget ( child_1.el , 0 );
- var child_2 = new Xcls_Button17( _this );
+ var child_2 = new Xcls_Button21( _this );
child_2.ref();
this.el.add_action_widget ( child_2.el , 1 );
});
- this.el.show.connect( (self) => {
-
-
- //test
- });
}
// user defined functions
}
GitMonitor.gitmonitor.stop();
- this.ticket = ticket;
- this.repo = repo;
-
+ _this.el.show_all();
+
+ _this.table.el.hide();
+ _this.scrolled_window.el.hide();
+ _this.spinner.el.show();
+ _this.spinner.el.start();
+ this.el.set_keep_above(true);
this.el.move((Gdk.Screen.width() / 2)- 250 ,0);
GLib.debug("Loading tickets");
- this.el.show_all();
- _this.dbmodel.loadTickets();
- _this.actionmodel.loadActions();
- _this.view.loadTicket(ticket.id);
+
+
+ this.ticket = ticket;
+ this.repo = repo;
+
+
+ Timeout.add_seconds(1, () => {
+
+ // if we are not working on a ticket, then we should be able to pick one?
+ _this.dbmodel.loadTickets();
+ _this.actionmodel.loadActions();
+ _this.view.loadTicket(ticket.id);
+ _this.spinner.el.stop();
+ _this.spinner.el.hide();
+ this.table.el.show();
+ return false;
+ });
+
+ this.el.run();
+
}
public class Xcls_Box2 : Object
{
// my vars (dec)
// set gobject values
- var child_0 = new Xcls_Table3( _this );
+ var child_0 = new Xcls_table( _this );
child_0.ref();
this.el.pack_start ( child_0.el , false,false,0 );
- var child_1 = new Xcls_scrolled_window( _this );
+ var child_1 = new Xcls_Notebook14( _this );
child_1.ref();
this.el.add ( child_1.el );
+ var child_2 = new Xcls_scrolled_window( _this );
+ child_2.ref();
+ this.el.add ( child_2.el );
+ var child_3 = new Xcls_spinner( _this );
+ child_3.ref();
+ this.el.add ( child_3.el );
}
// user defined functions
}
- public class Xcls_Table3 : Object
+ public class Xcls_table : Object
{
public Gtk.Table el;
private MergeBranch _this;
// my vars (def)
// ctor
- public Xcls_Table3(MergeBranch _owner )
+ public Xcls_table(MergeBranch _owner )
{
_this = _owner;
+ _this.table = this;
this.el = new Gtk.Table( 2, 2, false );
// my vars (dec)
public class Xcls_dbmodel : Object
{
- public Gtk.ListStore el;
+ public Gtk. el;
private MergeBranch _this;
{
_this = _owner;
_this.dbmodel = this;
- this.el = new Gtk.ListStore( 2, typeof(string),typeof(string) );
+ this.el = new Gtk.();
// my vars (dec)
-
- // set gobject values
}
// user defined functions
}
+ public class Xcls_Notebook14 : Object
+ {
+ public Gtk.Notebook el;
+ private MergeBranch _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Notebook14(MergeBranch _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Notebook();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.vexpand = true;
+ var child_0 = new Xcls_Label15( _this );
+ child_0.ref();
+ var child_1 = new Xcls_Label16( _this );
+ child_1.ref();
+ }
+
+ // user defined functions
+ }
+ public class Xcls_Label15 : Object
+ {
+ public Gtk.Label el;
+ private MergeBranch _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Label15(MergeBranch _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Label( "Projected Commit Diff" );
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+
+ public class Xcls_Label16 : Object
+ {
+ public Gtk.Label el;
+ private MergeBranch _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Label16(MergeBranch _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Label( "Ticket Details" );
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+
+
public class Xcls_scrolled_window : Object
{
public Gtk.ScrolledWindow el;
}
+ public class Xcls_spinner : Object
+ {
+ public Gtk.Spinner el;
+ private MergeBranch _this;
+
- public class Xcls_Button16 : Object
+ // my vars (def)
+
+ // ctor
+ public Xcls_spinner(MergeBranch _owner )
+ {
+ _this = _owner;
+ _this.spinner = this;
+ this.el = new Gtk.Spinner();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.hexpand = true;
+ this.el.vexpand = true;
+ }
+
+ // user defined functions
+ }
+
+
+ public class Xcls_Button20 : Object
{
public Gtk.Button el;
private MergeBranch _this;
// my vars (def)
// ctor
- public Xcls_Button16(MergeBranch _owner )
+ public Xcls_Button20(MergeBranch _owner )
{
_this = _owner;
this.el = new Gtk.Button();
// user defined functions
}
- public class Xcls_Button17 : Object
+ public class Xcls_Button21 : Object
{
public Gtk.Button el;
private MergeBranch _this;
// my vars (def)
// ctor
- public Xcls_Button17(MergeBranch _owner )
+ public Xcls_Button21(MergeBranch _owner )
{
_this = _owner;
this.el = new Gtk.Button();
// set gobject values
this.el.label = "Do Merge";
+
+ // init method
+
+ {
+ this.el.get_style_context().add_class("suggested-action");
+ }
}
// user defined functions