X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2FBuilder4%2FDialogTemplateSelect.vala;h=ecbe2ec069ac0c63b3c7a73c5820f0474726a634;hb=730831697d1737ec535b94e492ffda41b5a35e59;hp=40a14c28ef67b39b3063d35988e9c9b6863a6e6c;hpb=ea60f90132460dd011b209407964fc06cd4d4202;p=roobuilder diff --git a/src/Builder4/DialogTemplateSelect.vala b/src/Builder4/DialogTemplateSelect.vala index 40a14c28e..ecbe2ec06 100644 --- a/src/Builder4/DialogTemplateSelect.vala +++ b/src/Builder4/DialogTemplateSelect.vala @@ -1,590 +1,590 @@ - static DialogTemplateSelect _DialogTemplateSelect; - - public class DialogTemplateSelect : Object - { - public Gtk.Dialog el; - private DialogTemplateSelect _this; - - public static DialogTemplateSelect singleton() - { - if (_DialogTemplateSelect == null) { - _DialogTemplateSelect= new DialogTemplateSelect(); - } - return _DialogTemplateSelect; - } - public Xcls_combo combo; - public Xcls_cellrenderer cellrenderer; - public Xcls_model model; - public Xcls_dbcombo dbcombo; - public Xcls_dbcellrenderer dbcellrenderer; - public Xcls_dbmodel dbmodel; - - // my vars (def) - public Xcls_MainWindow window; - public signal void complete (JsRender.Node? node); - public Palete.Palete palete; - public JsRender.Node node; - public Project.Project project; - - // ctor - public DialogTemplateSelect() - { - _this = this; - this.el = new Gtk.Dialog(); - - // my vars (dec) - - // set gobject values - this.el.title = "Add an Object"; - this.el.default_height = 200; - this.el.default_width = 400; - this.el.modal = true; - var child_1 = new Xcls_Box2( _this ); - child_1.ref(); - this.el.get_content_area().append ( child_1.el ); - var child_2 = new Xcls_Button13( _this ); - child_2.ref(); - this.el.add_action_widget ( child_2.el , 0 ); - var child_3 = new Xcls_Button14( _this ); - child_3.ref(); - this.el.add_action_widget ( child_3.el , 1 ); - var child_4 = new Xcls_Button15( _this ); - child_4.ref(); - this.el.add_action_widget ( child_4.el , 2 ); - - //listeners - this.el.close_request.connect( ( ) => { - - this.el.hide(); - return true;; - }); - this.el.response.connect( (res) => { - - //var node = _this.node; - //var project = _this.project; - return; - /* - - if (this.plugin == null) { - this.plugin = new Xcls_DialogPluginWebkit(); - this.plugin.complete.connect((json_str) => { - print("json_str = %s\n", json_str); - if (json_str.length < 1) { - this.complete(_this.node); - return; - } - var pa = new Json.Parser(); - try { - - pa.load_from_data(json_str); - } catch(Error e) { - this.complete(node); - return; // 1 = just add it.. - } - var new_node = pa.get_root(); - - if (new_node.get_node_type () != Json.NodeType.OBJECT) { - this.complete(node); - return; - } - var obj = new_node.get_object (); - - var ret = new JsRender.Node(); - - ret.loadFromJson(obj, 1); - this.complete(ret); - }); - - } - - - - - this.el.hide(); - //var ix = _this.combo.el.get_active(); - if (res < 1 ) { - this.complete(null); - return; // 0 = cancel. - } - if (res < 2 ) { - this.complete(node); - return; // 1 = just add it.. - } - - - // have they selected a table?? - - Gtk.TreeIter iter; - Value vfname; - if (_this.dbcombo.el.get_active_iter (out iter)) { - this.dbmodel.el.get_value (iter, 0, out vfname); - if (((string)vfname).length > 0 && this.plugin.has_plugin(node.fqn())) { - this.plugin.showIt(this.window.el, project, node.fqn(), (string)vfname); - return; - } - this.complete(node); - return; // 1 = just add it.. - - - } - - if (!_this.combo.el.get_active_iter (out iter)) { - - this.complete(node); - return; // 1 = just add it../ nothing selected... - } - - this.model.el.get_value (iter, 0, out vfname); - - this.complete(this.palete.loadTemplate((string)vfname)); - return; // 1 = just add it.. - - */ - }); - } - - // user defined functions - public void showIt ( - Xcls_MainWindow mwindow, - Palete.Palete pal, - JsRender.Node node, - Project.Project project - ) { - - this.el.show(); - - var opts = pal.listTemplates(node); - if (opts.length() < 1) { - this.el.hide(); - this.complete(node); - return; - } - this.el.set_transient_for( mwindow.el); - - //opts.unshift({ path: '' , name :'Just add Element' }); - _this.model.loadData(opts); - _this.combo.el.set_active(-1); - - - var db = new Palete.RooDatabase.from_project((Project.Roo) project); - _this.dbmodel.loadData(db.readTablesGee()); - - - _this.dbcombo.el.set_active(-1); - - this.window = mwindow; - this.palete = pal; - this.node = node; - this.project = project; - - } - public class Xcls_Box2 : Object - { - public Gtk.Box el; - private DialogTemplateSelect _this; - - - // my vars (def) - - // ctor - public Xcls_Box2(DialogTemplateSelect _owner ) - { - _this = _owner; - this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 ); - - // my vars (dec) - - // set gobject values - var child_1 = new Xcls_Box3( _this ); - child_1.ref(); - this.el.append ( child_1.el ); - var child_2 = new Xcls_Box8( _this ); - child_2.ref(); - this.el.append ( child_2.el ); - } - - // user defined functions - } - public class Xcls_Box3 : Object - { - public Gtk.Box el; - private DialogTemplateSelect _this; - - - // my vars (def) - - // ctor - public Xcls_Box3(DialogTemplateSelect _owner ) - { - _this = _owner; - this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 ); - - // my vars (dec) - - // set gobject values - this.el.margin_end = 3; - this.el.margin_start = 3; - var child_1 = new Xcls_Label4( _this ); - child_1.ref(); - this.el.append ( child_1.el ); - new Xcls_combo( _this ); - this.el.append ( _this.combo.el ); - } - - // user defined functions - } - public class Xcls_Label4 : Object - { - public Gtk.Label el; - private DialogTemplateSelect _this; - - - // my vars (def) - - // ctor - public Xcls_Label4(DialogTemplateSelect _owner ) - { - _this = _owner; - this.el = new Gtk.Label( "Select Template : " ); - - // my vars (dec) - - // set gobject values - } - - // user defined functions - } - - public class Xcls_combo : Object - { - public Gtk.ComboBox el; - private DialogTemplateSelect _this; - - - // my vars (def) - - // ctor - public Xcls_combo(DialogTemplateSelect _owner ) - { - _this = _owner; - _this.combo = this; - this.el = new Gtk.ComboBox(); - - // my vars (dec) - - // set gobject values - new Xcls_cellrenderer( _this ); - this.el.pack_start ( _this.cellrenderer.el , true ); - new Xcls_model( _this ); - this.el.set_model ( _this.model.el ); - - // init method - - this.el.add_attribute(_this.cellrenderer.el , "markup", 1 ); - } - - // user defined functions - } - public class Xcls_cellrenderer : Object - { - public Gtk.CellRendererText el; - private DialogTemplateSelect _this; - - - // my vars (def) - - // ctor - public Xcls_cellrenderer(DialogTemplateSelect _owner ) - { - _this = _owner; - _this.cellrenderer = this; - this.el = new Gtk.CellRendererText(); - - // my vars (dec) - - // set gobject values - } - - // user defined functions - } - - public class Xcls_model : Object - { - public Gtk.ListStore el; - private DialogTemplateSelect _this; - - - // my vars (def) - - // ctor - public Xcls_model(DialogTemplateSelect _owner ) - { - _this = _owner; - _this.model = this; - this.el = new Gtk.ListStore.newv( { typeof(string),typeof(string) } ); - - // my vars (dec) - - // set gobject values - } +static DialogTemplateSelect _DialogTemplateSelect; + +public class DialogTemplateSelect : Object +{ + public Gtk.Dialog el; + private DialogTemplateSelect _this; + + public static DialogTemplateSelect singleton() + { + if (_DialogTemplateSelect == null) { + _DialogTemplateSelect= new DialogTemplateSelect(); + } + return _DialogTemplateSelect; + } + public Xcls_combo combo; + public Xcls_cellrenderer cellrenderer; + public Xcls_model model; + public Xcls_dbcombo dbcombo; + public Xcls_dbcellrenderer dbcellrenderer; + public Xcls_dbmodel dbmodel; + + // my vars (def) + public Xcls_MainWindow window; + public signal void complete (JsRender.Node? node); + public Palete.Palete palete; + public JsRender.Node node; + public Project.Project project; + + // ctor + public DialogTemplateSelect() + { + _this = this; + this.el = new Gtk.Dialog(); + + // my vars (dec) + + // set gobject values + this.el.title = "Add an Object"; + this.el.default_height = 200; + this.el.default_width = 400; + this.el.modal = true; + var child_1 = new Xcls_Box1( _this ); + child_1.ref(); + this.el.get_content_area().append ( child_1.el ); + var child_2 = new Xcls_Button12( _this ); + child_2.ref(); + this.el.add_action_widget ( child_2.el , 0 ); + var child_3 = new Xcls_Button13( _this ); + child_3.ref(); + this.el.add_action_widget ( child_3.el , 1 ); + var child_4 = new Xcls_Button14( _this ); + child_4.ref(); + this.el.add_action_widget ( child_4.el , 2 ); + + //listeners + this.el.close_request.connect( ( ) => { + + this.el.hide(); + return true;; + }); + this.el.response.connect( (res) => { + + //var node = _this.node; + //var project = _this.project; + return; + /* + + if (this.plugin == null) { + this.plugin = new Xcls_DialogPluginWebkit(); + this.plugin.complete.connect((json_str) => { + print("json_str = %s\n", json_str); + if (json_str.length < 1) { + this.complete(_this.node); + return; + } + var pa = new Json.Parser(); + try { + + pa.load_from_data(json_str); + } catch(Error e) { + this.complete(node); + return; // 1 = just add it.. + } + var new_node = pa.get_root(); + + if (new_node.get_node_type () != Json.NodeType.OBJECT) { + this.complete(node); + return; + } + var obj = new_node.get_object (); + + var ret = new JsRender.Node(); + + ret.loadFromJson(obj, 1); + this.complete(ret); + }); + + } + + + + + this.el.hide(); + //var ix = _this.combo.el.get_active(); + if (res < 1 ) { + this.complete(null); + return; // 0 = cancel. + } + if (res < 2 ) { + this.complete(node); + return; // 1 = just add it.. + } + + + // have they selected a table?? + + Gtk.TreeIter iter; + Value vfname; + if (_this.dbcombo.el.get_active_iter (out iter)) { + this.dbmodel.el.get_value (iter, 0, out vfname); + if (((string)vfname).length > 0 && this.plugin.has_plugin(node.fqn())) { + this.plugin.showIt(this.window.el, project, node.fqn(), (string)vfname); + return; + } + this.complete(node); + return; // 1 = just add it.. + + + } + + if (!_this.combo.el.get_active_iter (out iter)) { + + this.complete(node); + return; // 1 = just add it../ nothing selected... + } + + this.model.el.get_value (iter, 0, out vfname); + + this.complete(this.palete.loadTemplate((string)vfname)); + return; // 1 = just add it.. + + */ + }); + } + + // user defined functions + public void showIt ( + Xcls_MainWindow mwindow, + Palete.Palete pal, + JsRender.Node node, + Project.Project project + ) { + + this.el.show(); + + var opts = pal.listTemplates(node); + if (opts.length() < 1) { + this.el.hide(); + this.complete(node); + return; + } + this.el.set_transient_for( mwindow.el); + + //opts.unshift({ path: '' , name :'Just add Element' }); + _this.model.loadData(opts); + _this.combo.el.set_active(-1); + + /* + var db = new Palete.RooDatabase.from_project((Project.Roo) project); + _this.dbmodel.loadData(db.readTablesGee()); + + */ + _this.dbcombo.el.set_active(-1); + + this.window = mwindow; + this.palete = pal; + this.node = node; + this.project = project; + + } + public class Xcls_Box1 : Object + { + public Gtk.Box el; + private DialogTemplateSelect _this; + + + // my vars (def) + + // ctor + public Xcls_Box1(DialogTemplateSelect _owner ) + { + _this = _owner; + this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 ); + + // my vars (dec) + + // set gobject values + var child_1 = new Xcls_Box2( _this ); + child_1.ref(); + this.el.append ( child_1.el ); + var child_2 = new Xcls_Box7( _this ); + child_2.ref(); + this.el.append ( child_2.el ); + } + + // user defined functions + } + public class Xcls_Box2 : Object + { + public Gtk.Box el; + private DialogTemplateSelect _this; + + + // my vars (def) + + // ctor + public Xcls_Box2(DialogTemplateSelect _owner ) + { + _this = _owner; + this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 ); + + // my vars (dec) + + // set gobject values + this.el.margin_end = 3; + this.el.margin_start = 3; + var child_1 = new Xcls_Label3( _this ); + child_1.ref(); + this.el.append ( child_1.el ); + new Xcls_combo( _this ); + this.el.append ( _this.combo.el ); + } + + // user defined functions + } + public class Xcls_Label3 : Object + { + public Gtk.Label el; + private DialogTemplateSelect _this; + + + // my vars (def) + + // ctor + public Xcls_Label3(DialogTemplateSelect _owner ) + { + _this = _owner; + this.el = new Gtk.Label( "Select Template : " ); + + // my vars (dec) + + // set gobject values + } + + // user defined functions + } + + public class Xcls_combo : Object + { + public Gtk.ComboBox el; + private DialogTemplateSelect _this; + + + // my vars (def) + + // ctor + public Xcls_combo(DialogTemplateSelect _owner ) + { + _this = _owner; + _this.combo = this; + this.el = new Gtk.ComboBox(); + + // my vars (dec) + + // set gobject values + new Xcls_cellrenderer( _this ); + this.el.pack_start ( _this.cellrenderer.el , true ); + new Xcls_model( _this ); + this.el.set_model ( _this.model.el ); + + // init method + + this.el.add_attribute(_this.cellrenderer.el , "markup", 1 ); + } + + // user defined functions + } + public class Xcls_cellrenderer : Object + { + public Gtk.CellRendererText el; + private DialogTemplateSelect _this; + + + // my vars (def) + + // ctor + public Xcls_cellrenderer(DialogTemplateSelect _owner ) + { + _this = _owner; + _this.cellrenderer = this; + this.el = new Gtk.CellRendererText(); + + // my vars (dec) + + // set gobject values + } + + // user defined functions + } + + public class Xcls_model : Object + { + public Gtk.ListStore el; + private DialogTemplateSelect _this; + + + // my vars (def) + + // ctor + public Xcls_model(DialogTemplateSelect _owner ) + { + _this = _owner; + _this.model = this; + this.el = new Gtk.ListStore.newv( { typeof(string),typeof(string) } ); + + // my vars (dec) + + // set gobject values + } - // user defined functions - public void loadData (GLib.List data) { - this.el.clear(); - Gtk.TreeIter iter; - var el = this.el; - - /// el.append(out iter); - - - // el.set_value(iter, 0, ""); - // el.set_value(iter, 1, "aaa - Just add Element - aaa"); - - for (var i = 0; i < data.length();i++) { - - - el.append(out iter); - var str = data.nth_data(i); - var fn = Path.get_basename (str); - fn.replace(".json", ""); - - el.set_value(iter, 0, str); - el.set_value(iter, 1, fn); - - } - this.el.set_sort_column_id(1, Gtk.SortType.ASCENDING); - - } - } + // user defined functions + public void loadData (GLib.List data) { + this.el.clear(); + Gtk.TreeIter iter; + var el = this.el; + + /// el.append(out iter); + + + // el.set_value(iter, 0, ""); + // el.set_value(iter, 1, "aaa - Just add Element - aaa"); + + for (var i = 0; i < data.length();i++) { + + + el.append(out iter); + var str = data.nth_data(i); + var fn = Path.get_basename (str); + fn.replace(".json", ""); + + el.set_value(iter, 0, str); + el.set_value(iter, 1, fn); + + } + this.el.set_sort_column_id(1, Gtk.SortType.ASCENDING); + + } + } - public class Xcls_Box8 : Object - { - public Gtk.Box el; - private DialogTemplateSelect _this; - - - // my vars (def) + public class Xcls_Box7 : Object + { + public Gtk.Box el; + private DialogTemplateSelect _this; + + + // my vars (def) - // ctor - public Xcls_Box8(DialogTemplateSelect _owner ) - { - _this = _owner; - this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 ); + // ctor + public Xcls_Box7(DialogTemplateSelect _owner ) + { + _this = _owner; + this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 ); - // my vars (dec) + // my vars (dec) - // set gobject values - this.el.margin_end = 3; - this.el.margin_start = 3; - var child_1 = new Xcls_Label9( _this ); - child_1.ref(); - this.el.append ( child_1.el ); - new Xcls_dbcombo( _this ); - this.el.append ( _this.dbcombo.el ); - } + // set gobject values + this.el.margin_end = 3; + this.el.margin_start = 3; + var child_1 = new Xcls_Label8( _this ); + child_1.ref(); + this.el.append ( child_1.el ); + new Xcls_dbcombo( _this ); + this.el.append ( _this.dbcombo.el ); + } - // user defined functions - } - public class Xcls_Label9 : Object - { - public Gtk.Label el; - private DialogTemplateSelect _this; - - - // my vars (def) - - // ctor - public Xcls_Label9(DialogTemplateSelect _owner ) - { - _this = _owner; - this.el = new Gtk.Label( "Select Database Table : " ); - - // my vars (dec) - - // set gobject values - } - - // user defined functions - } - - public class Xcls_dbcombo : Object - { - public Gtk.ComboBox el; - private DialogTemplateSelect _this; - - - // my vars (def) - - // ctor - public Xcls_dbcombo(DialogTemplateSelect _owner ) - { - _this = _owner; - _this.dbcombo = this; - this.el = new Gtk.ComboBox(); - - // my vars (dec) - - // set gobject values - new Xcls_dbcellrenderer( _this ); - this.el.pack_start ( _this.dbcellrenderer.el , true ); - new Xcls_dbmodel( _this ); - this.el.set_model ( _this.dbmodel.el ); - - // init method - - this.el.add_attribute(_this.dbcellrenderer.el , "markup", 1 ); - } - - // user defined functions - } - public class Xcls_dbcellrenderer : Object - { - public Gtk.CellRendererText el; - private DialogTemplateSelect _this; - - - // my vars (def) + // user defined functions + } + public class Xcls_Label8 : Object + { + public Gtk.Label el; + private DialogTemplateSelect _this; + + + // my vars (def) + + // ctor + public Xcls_Label8(DialogTemplateSelect _owner ) + { + _this = _owner; + this.el = new Gtk.Label( "Select Database Table : " ); + + // my vars (dec) + + // set gobject values + } + + // user defined functions + } + + public class Xcls_dbcombo : Object + { + public Gtk.ComboBox el; + private DialogTemplateSelect _this; + + + // my vars (def) + + // ctor + public Xcls_dbcombo(DialogTemplateSelect _owner ) + { + _this = _owner; + _this.dbcombo = this; + this.el = new Gtk.ComboBox(); + + // my vars (dec) + + // set gobject values + new Xcls_dbcellrenderer( _this ); + this.el.pack_start ( _this.dbcellrenderer.el , true ); + new Xcls_dbmodel( _this ); + this.el.set_model ( _this.dbmodel.el ); + + // init method + + this.el.add_attribute(_this.dbcellrenderer.el , "markup", 1 ); + } + + // user defined functions + } + public class Xcls_dbcellrenderer : Object + { + public Gtk.CellRendererText el; + private DialogTemplateSelect _this; + + + // my vars (def) - // ctor - public Xcls_dbcellrenderer(DialogTemplateSelect _owner ) - { - _this = _owner; - _this.dbcellrenderer = this; - this.el = new Gtk.CellRendererText(); + // ctor + public Xcls_dbcellrenderer(DialogTemplateSelect _owner ) + { + _this = _owner; + _this.dbcellrenderer = this; + this.el = new Gtk.CellRendererText(); - // my vars (dec) + // my vars (dec) - // set gobject values - } + // set gobject values + } - // user defined functions - } + // user defined functions + } - public class Xcls_dbmodel : Object - { - public Gtk.ListStore el; - private DialogTemplateSelect _this; + public class Xcls_dbmodel : Object + { + public Gtk.ListStore el; + private DialogTemplateSelect _this; - // my vars (def) - - // ctor - public Xcls_dbmodel(DialogTemplateSelect _owner ) - { - _this = _owner; - _this.dbmodel = this; - this.el = new Gtk.ListStore.newv( { typeof(string),typeof(string) } ); + // my vars (def) + + // ctor + public Xcls_dbmodel(DialogTemplateSelect _owner ) + { + _this = _owner; + _this.dbmodel = this; + this.el = new Gtk.ListStore.newv( { typeof(string),typeof(string) } ); - // my vars (dec) + // my vars (dec) - // set gobject values - } + // set gobject values + } - // user defined functions - public void loadData (Gee.ArrayList data) { - this.el.clear(); - Gtk.TreeIter iter; - var el = this.el; - - /// el.append(out iter); - - - // el.set_value(iter, 0, ""); - // el.set_value(iter, 1, "aaa - Just add Element - aaa"); - - el.append(out iter); - - - el.set_value(iter, 0, ""); - el.set_value(iter, 1, "-- select a table --"); - - - for (var i = 0; i < data.size;i++) { - - - el.append(out iter); - - el.set_value(iter, 0, data.get(i)); - el.set_value(iter, 1, data.get(i)); - - } - this.el.set_sort_column_id(0, Gtk.SortType.ASCENDING); - - } - } + // user defined functions + public void loadData (Gee.ArrayList data) { + this.el.clear(); + Gtk.TreeIter iter; + var el = this.el; + + /// el.append(out iter); + + + // el.set_value(iter, 0, ""); + // el.set_value(iter, 1, "aaa - Just add Element - aaa"); + + el.append(out iter); + + + el.set_value(iter, 0, ""); + el.set_value(iter, 1, "-- select a table --"); + + + for (var i = 0; i < data.size;i++) { + + + el.append(out iter); + + el.set_value(iter, 0, data.get(i)); + el.set_value(iter, 1, data.get(i)); + + } + this.el.set_sort_column_id(0, Gtk.SortType.ASCENDING); + + } + } - public class Xcls_Button13 : Object - { - public Gtk.Button el; - private DialogTemplateSelect _this; + public class Xcls_Button12 : Object + { + public Gtk.Button el; + private DialogTemplateSelect _this; - // my vars (def) + // my vars (def) - // ctor - public Xcls_Button13(DialogTemplateSelect _owner ) - { - _this = _owner; - this.el = new Gtk.Button(); + // ctor + public Xcls_Button12(DialogTemplateSelect _owner ) + { + _this = _owner; + this.el = new Gtk.Button(); - // my vars (dec) + // my vars (dec) - // set gobject values - this.el.label = "Cancel"; - } + // set gobject values + this.el.label = "Cancel"; + } - // user defined functions - } + // user defined functions + } - public class Xcls_Button14 : Object - { - public Gtk.Button el; - private DialogTemplateSelect _this; + public class Xcls_Button13 : Object + { + public Gtk.Button el; + private DialogTemplateSelect _this; - // my vars (def) + // my vars (def) - // ctor - public Xcls_Button14(DialogTemplateSelect _owner ) - { - _this = _owner; - this.el = new Gtk.Button(); + // ctor + public Xcls_Button13(DialogTemplateSelect _owner ) + { + _this = _owner; + this.el = new Gtk.Button(); - // my vars (dec) + // my vars (dec) - // set gobject values - this.el.label = "Just add it"; - } + // set gobject values + this.el.label = "Just add it"; + } - // user defined functions - } - - public class Xcls_Button15 : Object - { - public Gtk.Button el; - private DialogTemplateSelect _this; + // user defined functions + } + + public class Xcls_Button14 : Object + { + public Gtk.Button el; + private DialogTemplateSelect _this; - // my vars (def) - - // ctor - public Xcls_Button15(DialogTemplateSelect _owner ) - { - _this = _owner; - this.el = new Gtk.Button(); + // my vars (def) + + // ctor + public Xcls_Button14(DialogTemplateSelect _owner ) + { + _this = _owner; + this.el = new Gtk.Button(); - // my vars (dec) - - // set gobject values - this.el.label = "OK"; - } - - // user defined functions - } + // my vars (dec) + + // set gobject values + this.el.label = "OK"; + } + + // user defined functions + } - } +}