static Xcls_MainWindow _MainWindow; public class Xcls_MainWindow : Object { public Gtk.Window el; private Xcls_MainWindow _this; public static Xcls_MainWindow singleton() { if (_MainWindow == null) { _MainWindow= new Xcls_MainWindow(); } return _MainWindow; } public Xcls_vbox vbox; public Xcls_mainpane mainpane; public Xcls_leftpane leftpane; public Xcls_editpane editpane; public Xcls_tree tree; public Xcls_props props; public Xcls_clutterembed clutterembed; public Xcls_rooview rooview; public Xcls_objectview objectview; public Xcls_codeeditview codeeditview; public Xcls_addpropsview addpropsview; public Xcls_projecteditview projecteditview; public Xcls_buttonlayout buttonlayout; public Xcls_backbutton backbutton; public Xcls_projectbutton projectbutton; public Xcls_editfilebutton editfilebutton; public Xcls_projecteditbutton projecteditbutton; public Xcls_objectshowbutton objectshowbutton; public Xcls_addpropbutton addpropbutton; public Xcls_addlistenerbutton addlistenerbutton; public Xcls_addprojectbutton addprojectbutton; public Xcls_addfilebutton addfilebutton; public Xcls_delprojectbutton delprojectbutton; public Xcls_new_window new_window; // my vars (def) public Project.Project project; public string title; public int no_windows; public WindowState windowstate; // ctor public Xcls_MainWindow() { _this = this; this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL ); // my vars (dec) this.project = null; this.title = "Application Builder"; this.no_windows = 1; this.windowstate = null; // set gobject values this.el.border_width = 0; this.el.default_height = 500; this.el.default_width = 800; var child_0 = new Xcls_vbox( _this ); child_0.ref(); this.el.add ( child_0.el ); // init method //this.el.show_all(); // listeners this.el.delete_event.connect( ( event) => { return false; }); this.el.destroy.connect( () => { Xcls_MainWindow.singleton().no_windows--; if (Xcls_MainWindow.singleton().no_windows < 1) { Gtk.main_quit(); } }); this.el.show.connect( ( ) => { // hide the file editing.. //this.hideViewEditing(); }); } // user defined functions public void initChildren () { // this needs putting in a better place.. this.windowstate = new WindowState(this); //w.el.show_all(); var tl = new Clutter.Timeline(6000); tl.set_repeat_count(-1); tl.start(); tl.ref(); } public void show () { this.el.show_all(); } public void setTitle (string str) { this.el.set_title(this.title + " - " + str); } public class Xcls_vbox : Object { public Gtk.VBox el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_vbox(Xcls_MainWindow _owner ) { _this = _owner; _this.vbox = this; this.el = new Gtk.VBox( false, 0 ); // my vars (dec) // set gobject values var child_0 = new Xcls_mainpane( _this ); child_0.ref(); this.el.pack_end ( child_0.el , true,true,0 ); } // user defined functions } public class Xcls_mainpane : Object { public Gtk.HPaned el; private Xcls_MainWindow _this; // my vars (def) public int lastWidth; // ctor public Xcls_mainpane(Xcls_MainWindow _owner ) { _this = _owner; _this.mainpane = this; this.el = new Gtk.HPaned(); // my vars (dec) this.lastWidth = 0; // set gobject values this.el.position = 400; var child_0 = new Xcls_leftpane( _this ); child_0.ref(); this.el.add1 ( child_0.el ); var child_1 = new Xcls_VBox8( _this ); child_1.ref(); this.el.add2 ( child_1.el ); } // user defined functions } public class Xcls_leftpane : Object { public Gtk.VBox el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_leftpane(Xcls_MainWindow _owner ) { _this = _owner; _this.leftpane = this; this.el = new Gtk.VBox( true, 0 ); // my vars (dec) // set gobject values var child_0 = new Xcls_editpane( _this ); child_0.ref(); this.el.pack_start ( child_0.el , false,true,0 ); } // user defined functions } public class Xcls_editpane : Object { public Gtk.VPaned el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_editpane(Xcls_MainWindow _owner ) { _this = _owner; _this.editpane = this; this.el = new Gtk.VPaned(); // my vars (dec) // set gobject values var child_0 = new Xcls_tree( _this ); child_0.ref(); this.el.add1 ( child_0.el ); var child_1 = new Xcls_props( _this ); child_1.ref(); this.el.add2 ( child_1.el ); } // user defined functions } public class Xcls_tree : Object { public Gtk.VBox el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_tree(Xcls_MainWindow _owner ) { _this = _owner; _this.tree = this; this.el = new Gtk.VBox( true, 0 ); // my vars (dec) // set gobject values } // user defined functions } public class Xcls_props : Object { public Gtk.VBox el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_props(Xcls_MainWindow _owner ) { _this = _owner; _this.props = this; this.el = new Gtk.VBox( true, 0 ); // my vars (dec) // set gobject values } // user defined functions } public class Xcls_VBox8 : Object { public Gtk.VBox el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_VBox8(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.VBox( true, 0 ); // my vars (dec) // set gobject values var child_0 = new Xcls_clutterembed( _this ); child_0.ref(); this.el.pack_start ( child_0.el , true,true,0 ); } // user defined functions } public class Xcls_clutterembed : Object { public GtkClutter.Embed el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_clutterembed(Xcls_MainWindow _owner ) { _this = _owner; _this.clutterembed = this; this.el = new GtkClutter.Embed(); // my vars (dec) // set gobject values var child_0 = new Xcls_rooview( _this ); child_0.ref(); this.el.get_stage().add_child ( child_0.el ); var child_1 = new Xcls_objectview( _this ); child_1.ref(); this.el.get_stage().add_child ( child_1.el ); var child_2 = new Xcls_codeeditview( _this ); child_2.ref(); this.el.get_stage().add_child ( child_2.el ); var child_3 = new Xcls_addpropsview( _this ); child_3.ref(); this.el.get_stage().add_child ( child_3.el ); var child_4 = new Xcls_projecteditview( _this ); child_4.ref(); this.el.get_stage().add_child ( child_4.el ); var child_5 = new Xcls_buttonlayout( _this ); child_5.ref(); this.el.get_stage().add_child ( child_5.el ); // init method var stage = this.el.get_stage(); stage.set_background_color( Clutter.Color.from_string("#000")); // listeners this.el.size_allocate.connect( ( alloc) => { if (_this.windowstate == null) { return; } _this.windowstate.resizeCanvas(); }); } // user defined functions } public class Xcls_rooview : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_rooview(Xcls_MainWindow _owner ) { _this = _owner; _this.rooview = this; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values // init method { this.el.add_constraint( new Clutter.AlignConstraint( _this.clutterembed.el.get_stage(), Clutter.AlignAxis.X_AXIS, 1.0f ) ); //this.el.set_position(100,100); this.el.set_pivot_point(1.0f,1.0f); this.el.set_size(_this.clutterembed.el.get_stage().width-50, _this.clutterembed.el.get_stage().height); } } // user defined functions } public class Xcls_objectview : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_objectview(Xcls_MainWindow _owner ) { _this = _owner; _this.objectview = this; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values // init method { /* this.el.add_constraint( new Clutter.AlignConstraint( _this.clutterembed.el.get_stage(), Clutter.AlignAxis.X_AXIS, 0.0f ) ); */ this.el.fixed_x = 50.0f; this.el.fixed_y = 0.0f; //this.el.set_position(100,100); this.el.set_pivot_point(0.0f,0.0f); this.el.set_scale(0.0f,1.0f); this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2, _this.clutterembed.el.get_stage().height); } } // user defined functions } public class Xcls_codeeditview : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_codeeditview(Xcls_MainWindow _owner ) { _this = _owner; _this.codeeditview = this; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values // init method { /* this.el.add_constraint( new Clutter.AlignConstraint( _this.clutterembed.el.get_stage(), Clutter.AlignAxis.X_AXIS, 0.0f ) ); */ this.el.fixed_x = 50.0f; this.el.fixed_y = 0.0f; //this.el.set_position(100,100); this.el.set_pivot_point(0.0f,0.0f); this.el.set_scale(0.0f,1.0f); this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2, _this.clutterembed.el.get_stage().height); } } // user defined functions } public class Xcls_addpropsview : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_addpropsview(Xcls_MainWindow _owner ) { _this = _owner; _this.addpropsview = this; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values // init method { /* this.el.add_constraint( new Clutter.AlignConstraint( _this.clutterembed.el.get_stage(), Clutter.AlignAxis.X_AXIS, 0.0f ) ); */ this.el.fixed_x = 50.0f; this.el.fixed_y = 0.0f; //this.el.set_position(100,100); this.el.set_pivot_point(0.0f,0.0f); this.el.set_scale(0.0f,1.0f); this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2, _this.clutterembed.el.get_stage().height); } } // user defined functions } public class Xcls_projecteditview : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_projecteditview(Xcls_MainWindow _owner ) { _this = _owner; _this.projecteditview = this; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values // init method { this.el.add_constraint( new Clutter.AlignConstraint( _this.clutterembed.el.get_stage(), Clutter.AlignAxis.X_AXIS, 1.0f ) ); //this.el.set_position(100,100); this.el.set_pivot_point(0.0f,0.0f); this.el.set_scale(1.0f,0.0f); this.el.set_size(_this.clutterembed.el.get_stage().width-50, _this.clutterembed.el.get_stage().height /2); } } // user defined functions } public class Xcls_buttonlayout : Object { public Clutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_buttonlayout(Xcls_MainWindow _owner ) { _this = _owner; _this.buttonlayout = this; this.el = new Clutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_BoxLayout16( _this ); child_0.ref(); this.el.layout_manager = child_0.el; var child_1 = new Xcls_backbutton( _this ); child_1.ref(); this.el.add_child ( child_1.el ); var child_2 = new Xcls_projectbutton( _this ); child_2.ref(); this.el.add_child ( child_2.el ); var child_3 = new Xcls_editfilebutton( _this ); child_3.ref(); this.el.add_child ( child_3.el ); var child_4 = new Xcls_projecteditbutton( _this ); child_4.ref(); this.el.add_child ( child_4.el ); var child_5 = new Xcls_objectshowbutton( _this ); child_5.ref(); this.el.add_child ( child_5.el ); var child_6 = new Xcls_addpropbutton( _this ); child_6.ref(); this.el.add_child ( child_6.el ); var child_7 = new Xcls_addlistenerbutton( _this ); child_7.ref(); this.el.add_child ( child_7.el ); var child_8 = new Xcls_addprojectbutton( _this ); child_8.ref(); this.el.add_child ( child_8.el ); var child_9 = new Xcls_addfilebutton( _this ); child_9.ref(); this.el.add_child ( child_9.el ); var child_10 = new Xcls_delprojectbutton( _this ); child_10.ref(); this.el.add_child ( child_10.el ); var child_11 = new Xcls_new_window( _this ); child_11.ref(); this.el.add_child ( child_11.el ); // init method { this.el.add_constraint( new Clutter.AlignConstraint( _this.clutterembed.el.get_stage(), Clutter.AlignAxis.X_AXIS, 0.0f ) ); //this.el.set_position(100,100); this.el.set_pivot_point(0.5f,0.5f); this.el.set_size(50, _this.clutterembed.el.get_stage().height); } } // user defined functions } public class Xcls_BoxLayout16 : Object { public Clutter.BoxLayout el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_BoxLayout16(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Clutter.BoxLayout(); // my vars (dec) // set gobject values this.el.orientation = Clutter.Orientation.VERTICAL; } // user defined functions } public class Xcls_backbutton : Object { public Clutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_backbutton(Xcls_MainWindow _owner ) { _this = _owner; _this.backbutton = this; this.el = new Clutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Actor18( _this ); child_0.ref(); this.el.add_child ( child_0.el ); // init method this.el.set_size(50,50); } // user defined functions } public class Xcls_Actor18 : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Actor18(Xcls_MainWindow _owner ) { _this = _owner; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Button19( _this ); child_0.ref(); // init method ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); } // user defined functions } public class Xcls_Button19 : Object { public Gtk.Button el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Button19(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Button(); // my vars (dec) // set gobject values this.el.width_request = 50; this.el.height_request = 50; this.el.tooltip_text = "Back"; var child_0 = new Xcls_Image20( _this ); child_0.ref(); this.el.set_image ( child_0.el ); // listeners this.el.clicked.connect( ( ) => { _this.windowstate.switchState(WindowState.State.PREVIEW); }); } // user defined functions } public class Xcls_Image20 : Object { public Gtk.Image el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Image20(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Image(); // my vars (dec) // set gobject values this.el.icon_name = "go-previous"; } // user defined functions } public class Xcls_projectbutton : Object { public Clutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_projectbutton(Xcls_MainWindow _owner ) { _this = _owner; _this.projectbutton = this; this.el = new Clutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Actor22( _this ); child_0.ref(); this.el.add_child ( child_0.el ); // init method this.el.set_size(50,50); } // user defined functions } public class Xcls_Actor22 : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Actor22(Xcls_MainWindow _owner ) { _this = _owner; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Button23( _this ); child_0.ref(); // init method ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); } // user defined functions } public class Xcls_Button23 : Object { public Gtk.Button el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Button23(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Button(); // my vars (dec) // set gobject values this.el.width_request = 50; this.el.height_request = 50; var child_0 = new Xcls_Image24( _this ); child_0.ref(); this.el.set_image ( child_0.el ); // listeners this.el.clicked.connect( ( ) => { _this.windowstate.switchState(WindowState.State.FILES); }); } // user defined functions } public class Xcls_Image24 : Object { public Gtk.Image el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Image24(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Image(); // my vars (dec) // set gobject values this.el.icon_name = "document-open"; } // user defined functions } public class Xcls_editfilebutton : Object { public Clutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_editfilebutton(Xcls_MainWindow _owner ) { _this = _owner; _this.editfilebutton = this; this.el = new Clutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Actor26( _this ); child_0.ref(); this.el.add_child ( child_0.el ); // init method this.el.set_size(50.0f,50.0f); } // user defined functions } public class Xcls_Actor26 : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Actor26(Xcls_MainWindow _owner ) { _this = _owner; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Button27( _this ); child_0.ref(); // init method ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); } // user defined functions } public class Xcls_Button27 : Object { public Gtk.Button el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Button27(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Button(); // my vars (dec) // set gobject values this.el.width_request = 50; this.el.height_request = 50; this.el.tooltip_text = "File Details"; var child_0 = new Xcls_Image28( _this ); child_0.ref(); this.el.set_image ( child_0.el ); // listeners this.el.clicked.connect( ( ) => { // create a new file in project.. if (_this.project == null || _this.windowstate.left_tree.model.file == null) { return ; } _this.windowstate.new_file_dialog.show(_this.windowstate.left_tree.model.file); return ; }); } // user defined functions } public class Xcls_Image28 : Object { public Gtk.Image el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Image28(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Image(); // my vars (dec) // set gobject values this.el.icon_name = "document-properties"; } // user defined functions } public class Xcls_projecteditbutton : Object { public Clutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_projecteditbutton(Xcls_MainWindow _owner ) { _this = _owner; _this.projecteditbutton = this; this.el = new Clutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Actor30( _this ); child_0.ref(); this.el.add_child ( child_0.el ); // init method this.el.set_size(50,50); } // user defined functions } public class Xcls_Actor30 : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Actor30(Xcls_MainWindow _owner ) { _this = _owner; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Button31( _this ); child_0.ref(); // init method ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); } // user defined functions } public class Xcls_Button31 : Object { public Gtk.Button el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Button31(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Button(); // my vars (dec) // set gobject values this.el.width_request = 50; this.el.height_request = 50; this.el.tooltip_text = "Project Details"; var child_0 = new Xcls_Image32( _this ); child_0.ref(); this.el.set_image ( child_0.el ); // listeners this.el.clicked.connect( ( ) => { _this.windowstate.switchState(WindowState.State.PROJECT); }); } // user defined functions } public class Xcls_Image32 : Object { public Gtk.Image el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Image32(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Image(); // my vars (dec) // set gobject values this.el.icon_name = "emblem-system"; } // user defined functions } public class Xcls_objectshowbutton : Object { public Clutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_objectshowbutton(Xcls_MainWindow _owner ) { _this = _owner; _this.objectshowbutton = this; this.el = new Clutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Actor34( _this ); child_0.ref(); this.el.add_child ( child_0.el ); // init method this.el.set_size(50,50); // listeners this.el.enter_event.connect( ( event) => { this.el.background_color = new Clutter.Color.from_string("#333"); return false; }); this.el.leave_event.connect( ( event) => { this.el.background_color = new Clutter.Color.from_string("#000"); return false; }); } // user defined functions } public class Xcls_Actor34 : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Actor34(Xcls_MainWindow _owner ) { _this = _owner; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Button35( _this ); child_0.ref(); // init method ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); } // user defined functions } public class Xcls_Button35 : Object { public Gtk.Button el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Button35(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Button(); // my vars (dec) // set gobject values this.el.width_request = 50; this.el.height_request = 50; this.el.tooltip_text = "Add Child Element"; var child_0 = new Xcls_Image36( _this ); child_0.ref(); this.el.set_image ( child_0.el ); // listeners this.el.clicked.connect( ( ) => { _this.windowstate.switchState(WindowState.State.OBJECT); }); } // user defined functions } public class Xcls_Image36 : Object { public Gtk.Image el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Image36(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Image(); // my vars (dec) // set gobject values this.el.icon_name = "list-add"; } // user defined functions } public class Xcls_addpropbutton : Object { public Clutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_addpropbutton(Xcls_MainWindow _owner ) { _this = _owner; _this.addpropbutton = this; this.el = new Clutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Actor38( _this ); child_0.ref(); this.el.add_child ( child_0.el ); // init method this.el.set_size(50,50); } // user defined functions } public class Xcls_Actor38 : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Actor38(Xcls_MainWindow _owner ) { _this = _owner; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Button39( _this ); child_0.ref(); // init method ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); } // user defined functions } public class Xcls_Button39 : Object { public Gtk.Button el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Button39(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Button(); // my vars (dec) // set gobject values this.el.width_request = 50; this.el.height_request = 50; this.el.tooltip_text = "Add Property"; var child_0 = new Xcls_Image40( _this ); child_0.ref(); this.el.set_image ( child_0.el ); // listeners this.el.clicked.connect( ( ) => { _this.windowstate.switchState(WindowState.State.PROP); }); } // user defined functions } public class Xcls_Image40 : Object { public Gtk.Image el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Image40(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Image(); // my vars (dec) // set gobject values this.el.icon_name = "format-justify-left"; } // user defined functions } public class Xcls_addlistenerbutton : Object { public Clutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_addlistenerbutton(Xcls_MainWindow _owner ) { _this = _owner; _this.addlistenerbutton = this; this.el = new Clutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Actor42( _this ); child_0.ref(); this.el.add_child ( child_0.el ); // init method this.el.set_size(50,50); } // user defined functions } public class Xcls_Actor42 : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Actor42(Xcls_MainWindow _owner ) { _this = _owner; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Button43( _this ); child_0.ref(); // init method ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); } // user defined functions } public class Xcls_Button43 : Object { public Gtk.Button el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Button43(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Button(); // my vars (dec) // set gobject values this.el.width_request = 50; this.el.height_request = 50; this.el.tooltip_text = "Add Event Code"; var child_0 = new Xcls_Image44( _this ); child_0.ref(); this.el.set_image ( child_0.el ); // listeners this.el.clicked.connect( ( ) => { _this.windowstate.switchState(WindowState.State.LISTENER); }); } // user defined functions } public class Xcls_Image44 : Object { public Gtk.Image el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Image44(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Image(); // my vars (dec) // set gobject values this.el.icon_name = "appointment-new"; } // user defined functions } public class Xcls_addprojectbutton : Object { public Clutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_addprojectbutton(Xcls_MainWindow _owner ) { _this = _owner; _this.addprojectbutton = this; this.el = new Clutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Actor46( _this ); child_0.ref(); this.el.add_child ( child_0.el ); // init method this.el.set_size(50.0f,50.0f); } // user defined functions } public class Xcls_Actor46 : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Actor46(Xcls_MainWindow _owner ) { _this = _owner; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Button47( _this ); child_0.ref(); // init method ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); } // user defined functions } public class Xcls_Button47 : Object { public Gtk.Button el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Button47(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Button(); // my vars (dec) // set gobject values this.el.width_request = 50; this.el.height_request = 50; this.el.tooltip_text = "New\nProj."; var child_0 = new Xcls_Image48( _this ); child_0.ref(); this.el.set_image ( child_0.el ); // listeners this.el.clicked.connect( ( ) => { // create a new file in project.. //Xcls_DialogNewComponent.singleton().show( var pe = Xcls_EditProject.singleton(); pe.el.set_transient_for(_this.el); pe.el.set_modal(true); var p = pe.show(); if (p == null) { return; } _this.windowstate.left_projects.is_loaded = false; _this.windowstate.left_projects.load(); _this.windowstate.left_projects.selectProject(p); return ; }); } // user defined functions } public class Xcls_Image48 : Object { public Gtk.Image el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Image48(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Image(); // my vars (dec) // set gobject values this.el.icon_name = "folder-new"; } // user defined functions } public class Xcls_addfilebutton : Object { public Clutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_addfilebutton(Xcls_MainWindow _owner ) { _this = _owner; _this.addfilebutton = this; this.el = new Clutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Actor50( _this ); child_0.ref(); this.el.add_child ( child_0.el ); // init method this.el.set_size(50.0f,50.0f); } // user defined functions } public class Xcls_Actor50 : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Actor50(Xcls_MainWindow _owner ) { _this = _owner; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Button51( _this ); child_0.ref(); // init method ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); } // user defined functions } public class Xcls_Button51 : Object { public Gtk.Button el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Button51(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Button(); // my vars (dec) // set gobject values this.el.width_request = 50; this.el.height_request = 50; this.el.tooltip_text = "Add File"; var child_0 = new Xcls_Image52( _this ); child_0.ref(); this.el.set_image ( child_0.el ); // listeners this.el.clicked.connect( () => { // create a new file in project.. // what's the currently selected project... var proj = _this.windowstate.left_projects.getSelectedProject(); if (proj == null) { return ; } var f = JsRender.JsRender.factory(proj.xtype, proj, ""); _this.project = proj; _this.windowstate.new_file_dialog.show(f); return ; }); } // user defined functions } public class Xcls_Image52 : Object { public Gtk.Image el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Image52(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Image(); // my vars (dec) // set gobject values this.el.icon_name = "document-new"; } // user defined functions } public class Xcls_delprojectbutton : Object { public Clutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_delprojectbutton(Xcls_MainWindow _owner ) { _this = _owner; _this.delprojectbutton = this; this.el = new Clutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Actor54( _this ); child_0.ref(); this.el.add_child ( child_0.el ); // init method this.el.set_size(50,50); } // user defined functions } public class Xcls_Actor54 : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Actor54(Xcls_MainWindow _owner ) { _this = _owner; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Button55( _this ); child_0.ref(); // init method ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); } // user defined functions } public class Xcls_Button55 : Object { public Gtk.Button el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Button55(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Button(); // my vars (dec) // set gobject values this.el.width_request = 50; this.el.height_request = 50; this.el.tooltip_text = "Delelte Project"; var child_0 = new Xcls_Image56( _this ); child_0.ref(); this.el.set_image ( child_0.el ); // listeners this.el.clicked.connect( ( ) => { var cd = DialogConfirm.singleton(); cd.el.set_transient_for(_this.el); cd.el.set_modal(true); var project = _this.windowstate.left_projects.getSelectedProject(); if (project == null) { print("SKIP - no project\n"); return; } if (Gtk.ResponseType.YES != cd.show("Confirm", "Are you sure you want to delete project %s".printf(project.name))) { return; } // confirm? Project.Project.remove(project); _this.project = null; _this.windowstate.left_projects.is_loaded = false; _this.windowstate.left_projects.load(); _this.windowstate.clutterfiles.clearFiles(); }); } // user defined functions } public class Xcls_Image56 : Object { public Gtk.Image el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Image56(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Image(); // my vars (dec) // set gobject values this.el.icon_name = "user-trash"; } // user defined functions } public class Xcls_new_window : Object { public Clutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_new_window(Xcls_MainWindow _owner ) { _this = _owner; _this.new_window = this; this.el = new Clutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Actor58( _this ); child_0.ref(); this.el.add_child ( child_0.el ); // init method this.el.set_size(50,50); } // user defined functions } public class Xcls_Actor58 : Object { public GtkClutter.Actor el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Actor58(Xcls_MainWindow _owner ) { _this = _owner; this.el = new GtkClutter.Actor(); // my vars (dec) // set gobject values var child_0 = new Xcls_Button59( _this ); child_0.ref(); // init method ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); } // user defined functions } public class Xcls_Button59 : Object { public Gtk.Button el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Button59(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Button(); // my vars (dec) // set gobject values this.el.width_request = 50; this.el.height_request = 50; this.el.tooltip_text = "Open New Window"; var child_0 = new Xcls_Image60( _this ); child_0.ref(); this.el.set_image ( child_0.el ); // listeners this.el.clicked.connect( ( ) => { Xcls_MainWindow.singleton().no_windows++; var w = new Xcls_MainWindow(); w.ref(); w.el.show_all(); w.initChildren(); w.windowstate.switchState(WindowState.State.FILES); }); } // user defined functions } public class Xcls_Image60 : Object { public Gtk.Image el; private Xcls_MainWindow _this; // my vars (def) // ctor public Xcls_Image60(Xcls_MainWindow _owner ) { _this = _owner; this.el = new Gtk.Image(); // my vars (dec) // set gobject values this.el.icon_name = "window-new"; } // user defined functions } }