"delete_event" : " (self, event) =>{\n this.el.hide();\n return true;\n}"
},
"default_width" : 400,
- "xtype" : "Dialog",
"title" : "Add an Object",
+ "xtype" : "Dialog",
"default_height" : 200,
"$ modal" : true,
"$ xns" : "Gtk",
"items" : [
{
"label" : "Select Template : ",
- "* pack" : "pack_start,false,false",
"xtype" : "Label",
+ "* pack" : "pack_start,false,false",
"$ xns" : "Gtk"
},
{
"items" : [
{
"id" : "cellrenderer",
- "* pack" : "pack_start,true",
"xtype" : "CellRendererText",
+ "* pack" : "pack_start,true",
"$ xns" : "Gtk"
},
{
"id" : "model",
- "xtype" : "ListStore",
"* pack" : "set_model",
+ "xtype" : "ListStore",
"$ columns" : "typeof(string),typeof(string)",
"n_columns" : 2,
"$ xns" : "Gtk",
"| void loadData" : " (GLib.List<string> data) {\n this.el.clear(); \n Gtk.TreeIter iter;\n var el = this.el;\n \n /// el.append(out iter);\n \n \n // el.set_value(iter, 0, \"\");\n // el.set_value(iter, 1, \"aaa - Just add Element - aaa\");\n \n for (var i = 0; i < data.length();i++) {\n \n\n el.append(out iter);\n var str = data.nth_data(i);\n var fn = Path.get_basename (str);\n fn.replace(\".json\", \"\");\n \n el.set_value(iter, 0, str);\n el.set_value(iter, 1, fn);\n \n }\n this.el.set_sort_column_id(1, Gtk.SortType.ASCENDING); \n \n}\n"
}
]
+ },
+ {
+ "label" : "Select Template : ",
+ "* pack" : "pack_start,false,false",
+ "xtype" : "Label",
+ "$ xns" : "Gtk"
}
]
}
},
{
"label" : "Cancel",
- "* pack" : "add_action_widget,0",
"xtype" : "Button",
+ "* pack" : "add_action_widget,0",
"$ xns" : "Gtk"
},
{
"label" : "Just add it",
- "xtype" : "Button",
"* pack" : "add_action_widget,1",
+ "xtype" : "Button",
"$ xns" : "Gtk"
},
{
"label" : "OK",
- "* pack" : "add_action_widget,2",
"xtype" : "Button",
+ "* pack" : "add_action_widget,2",
"$ xns" : "Gtk"
}
]
var child_0 = new Xcls_VBox2( _this );
child_0.ref();
this.el.get_content_area().add ( child_0.el );
- var child_1 = new Xcls_Button8( _this );
+ var child_1 = new Xcls_Button9( _this );
child_1.ref();
this.el.add_action_widget ( child_1.el , 0 );
- var child_2 = new Xcls_Button9( _this );
+ var child_2 = new Xcls_Button10( _this );
child_2.ref();
this.el.add_action_widget ( child_2.el , 1 );
- var child_3 = new Xcls_Button10( _this );
+ var child_3 = new Xcls_Button11( _this );
child_3.ref();
this.el.add_action_widget ( child_3.el , 2 );
var child_1 = new Xcls_combo( _this );
child_1.ref();
this.el.add ( child_1.el );
+ var child_2 = new Xcls_Label8( _this );
+ child_2.ref();
+ this.el.pack_start ( child_2.el , false,false );
}
// user defined functions
}
}
- public class Xcls_Button8 : Object
+ public class Xcls_Label8 : Object
{
- public Gtk.Button el;
+ public Gtk.Label el;
private DialogTemplateSelect _this;
// my vars (def)
// ctor
- public Xcls_Button8(DialogTemplateSelect _owner )
+ public Xcls_Label8(DialogTemplateSelect _owner )
{
_this = _owner;
- this.el = new Gtk.Button();
+ this.el = new Gtk.Label( "Select Template : " );
// my vars (dec)
// set gobject values
- this.el.label = "Cancel";
}
// user defined functions
// my vars (dec)
// set gobject values
- this.el.label = "Just add it";
+ this.el.label = "Cancel";
}
// user defined functions
// my vars (dec)
+ // set gobject values
+ this.el.label = "Just add it";
+ }
+
+ // user defined functions
+ }
+ public class Xcls_Button11 : Object
+ {
+ public Gtk.Button el;
+ private DialogTemplateSelect _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Button11(DialogTemplateSelect _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Button();
+
+ // my vars (dec)
+
// set gobject values
this.el.label = "OK";
}