static DialogSaveTemplate _DialogSaveTemplate;
-public class DialogSaveTemplate : Object
+public class DialogSaveTemplate : Object
{
public Gtk.Dialog el;
private DialogSaveTemplate _this;
public Palete.Palete palete;
public JsRender.Node data;
- // ctor
+ // ctor
public DialogSaveTemplate()
{
_this = this;
this.el.default_height = 200;
this.el.default_width = 400;
this.el.modal = true;
- var child_0 = new Xcls_HBox2( _this );
+ var child_0 = new Xcls_Box2( _this );
child_0.ref();
this.el.get_content_area().add ( child_0.el );
var child_1 = new Xcls_Button5( _this );
child_2.ref();
this.el.add_action_widget ( child_2.el , 1 );
- // listeners
+ //listeners
this.el.delete_event.connect( (self, event) => {
this.el.response(Gtk.ResponseType.CANCEL);
return true;
});
}
- // user defined functions
+ // user defined functions
public void show (Gtk.Window parent, Palete.Palete palete, JsRender.Node data) {
// now we save it..
this.el.hide();
-
+
}
- public class Xcls_HBox2 : Object
+ public class Xcls_Box2 : Object
{
- public Gtk.HBox el;
+ public Gtk.Box el;
private DialogSaveTemplate _this;
// my vars (def)
- // ctor
- public Xcls_HBox2(DialogSaveTemplate _owner )
+ // ctor
+ public Xcls_Box2(DialogSaveTemplate _owner )
{
_this = _owner;
- this.el = new Gtk.HBox( true, 0 );
+ this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
// my vars (dec)
this.el.add ( child_1.el );
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_Label3 : Object
+ public class Xcls_Label3 : Object
{
public Gtk.Label el;
private DialogSaveTemplate _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_Label3(DialogSaveTemplate _owner )
{
_this = _owner;
// set gobject values
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_name : Object
+
+ public class Xcls_name : Object
{
public Gtk.Entry el;
private DialogSaveTemplate _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_name(DialogSaveTemplate _owner )
{
_this = _owner;
// set gobject values
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_Button5 : Object
+
+
+ public class Xcls_Button5 : Object
{
public Gtk.Button el;
private DialogSaveTemplate _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_Button5(DialogSaveTemplate _owner )
{
_this = _owner;
this.el.label = "Cancel";
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_Button6 : Object
+
+ public class Xcls_Button6 : Object
{
public Gtk.Button el;
private DialogSaveTemplate _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_Button6(DialogSaveTemplate _owner )
{
_this = _owner;
this.el.label = "OK";
}
- // user defined functions
+ // user defined functions
}
+
}