" this.el.response(Gtk.ResponseType.CANCEL);",
" this.el.hide();",
" return true;",
+ " ",
"}",
""
]
-static DialogConfirm _DialogConfirm;
-
-public class DialogConfirm : Object
-{
- public Gtk.MessageDialog el;
- private DialogConfirm _this;
-
- public static DialogConfirm singleton()
- {
- if (_DialogConfirm == null) {
- _DialogConfirm= new DialogConfirm();
- }
- return _DialogConfirm;
- }
-
- // my vars (def)
-
- // ctor
- public DialogConfirm()
- {
- _this = this;
- this.el = new Gtk.MessageDialog( null, Gtk.DialogFlags.MODAL, Gtk.MessageType.QUESTION, Gtk.ButtonsType.YES_NO, "Test" );
-
- // my vars (dec)
-
- // set gobject values
- this.el.title = "Please Confirm ";
- this.el.name = "DialogConfirm";
- this.el.modal = true;
- this.el.use_markup = true;
-
- //listeners
- this.el.close_request.connect( (event) => {
- this.el.response(Gtk.ResponseType.CANCEL);
- this.el.hide();
- return true;
- });
- }
-
- // user defined functions
- public void showIt // caller needs to connect to the response - to get the result.
-
- (string title, string msg) {
- //if (!this.el) { this.init(); }
- //this.success = success;
- this.el.title = title;
- this.el.text = msg;
- this.el.show();
-
-
- }
-}
+ static DialogConfirm _DialogConfirm;
+
+ public class DialogConfirm : Object
+ {
+ public Gtk.MessageDialog el;
+ private DialogConfirm _this;
+
+ public static DialogConfirm singleton()
+ {
+ if (_DialogConfirm == null) {
+ _DialogConfirm= new DialogConfirm();
+ }
+ return _DialogConfirm;
+ }
+
+ // my vars (def)
+
+ // ctor
+ public DialogConfirm()
+ {
+ _this = this;
+ this.el = new Gtk.MessageDialog( null, Gtk.DialogFlags.MODAL, Gtk.MessageType.QUESTION, Gtk.ButtonsType.YES_NO, "Test" );
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.title = "Please Confirm ";
+ this.el.name = "DialogConfirm";
+ this.el.modal = true;
+ this.el.use_markup = true;
+
+ //listeners
+ this.el.close_request.connect( (event) => {
+ this.el.response(Gtk.ResponseType.CANCEL);
+ this.el.hide();
+ return true;
+
+ });
+ }
+
+ // user defined functions
+ public void showIt // caller needs to connect to the response - to get the result.
+
+ (string title, string msg) {
+ //if (!this.el) { this.init(); }
+ //this.success = success;
+ this.el.title = title;
+ this.el.text = msg;
+ this.el.show();
+
+
+ }
+ }
-g{
+{
"build_module" : "builder",
"gen_extended" : false,
"items" : [
"| void load" : [
"() {",
" // cl list...",
- " ",
+ " ",
+ " ",
" _this.is_loading = true;",
+ " ",
+ "",
" Project.Project.loadAll();",
" _this.project_list.el.set_model(new Gtk.SingleSelection(null));",
" Project.Project.loadIntoStore(this.projectmodel.el);",
" ",
" _this.projectselection.el.selected = Gtk.INVALID_LIST_POSITION; ",
"\t_this.btn_delfile.el.hide();",
+ " ",
+ " ",
"}",
""
],
}
],
"name" : "DialogFiles"
-}
+}
\ No newline at end of file
}//
public void load () {
// cl list...
-
+
+
_this.is_loading = true;
-
+
+
Project.Project.loadAll();
_this.project_list.el.set_model(new Gtk.SingleSelection(null));
Project.Project.loadIntoStore(this.projectmodel.el);
_this.projectselection.el.selected = Gtk.INVALID_LIST_POSITION;
_this.btn_delfile.el.hide();
+
+
}
public class Xcls_Box2 : Object
{
"\tvar oldcode = _this.prop.val;",
"\t",
"\t_this.prop.val = str;",
- "\t_this.node.updated_count++;",
" _this.file.getLanguageServer().document_change(_this.file);",
- " _this.node.updated_count++;",
" _this.prop.val = oldcode;",
" ",
" ",
var oldcode = _this.prop.val;
_this.prop.val = str;
- _this.node.updated_count++;
_this.file.getLanguageServer().document_change(_this.file);
- _this.node.updated_count++;
_this.prop.val = oldcode;
switch(prop.ptype) {
case PROP:
case RAW: // should they be the same?
-
+
props += "\n\t" + GLib.Markup.escape_text(prop.rtype) +
" <b>" + GLib.Markup.escape_text(i) +"</b> : " +
- GLib.Markup.escape_text(val == "" ? "" : val.split("\n")[0]);
+ GLib.Markup.escape_text(val.split("\n")[0]);
break;
case METHOD :
-
funcs += "\n\t" + GLib.Markup.escape_text(prop.rtype) +
" <b>" + GLib.Markup.escape_text(i) +"</b> : " +
- GLib.Markup.escape_text(val == "" ? "" : val.split("\n")[0]);
+ GLib.Markup.escape_text(val.split("\n")[0]);
break;
case USER : // user defined.
-
uprops += "\n\t<b>" +
GLib.Markup.escape_text(i) +"</b> : " +
- GLib.Markup.escape_text(val == "" ? "" : val.split("\n")[0]);
+ GLib.Markup.escape_text(val.split("\n")[0]);
break;
case SPECIAL : // * prop| args | ctor | init
-
-
spec += "\n\t<b>" +
GLib.Markup.escape_text(i) +"</b> : " +
- GLib.Markup.escape_text(val == "" ? "" : val.split("\n")[0]);
+ GLib.Markup.escape_text(val.split("\n")[0]);
break;
case LISTENER : return ""; // always raw...
this.rtype = rtype;
this.val = val;
this.childstore = new GLib.ListStore( typeof(NodeProp));
-
}
public override void startServer()
{
}
-
+ string generateTempContents(JsRender.JsRender file, JsRender.NodeProp? prop, string alt_code) {
+
+ var oldcode = "";
+ var contents = alt_code;
+ if (prop != null) {
+ oldcode = prop.val;
+ prop.val = alt_code;
+ contents = file.toSourceCode();
+ prop.val = oldcode;
+ }
+ return contents;
+ }
Process.spawn_async (
this.cwd,
this.args,
- this.env.length > 0 ? this.env : GLib.Environ.get (),
+ this.env.length > 0 ? this.env : null,
SpawnFlags.SEARCH_PATH | SpawnFlags.DO_NOT_REAP_CHILD,
null,
out pid);
this.ctx.quit();
this.ctx = null;
}
- // since it's closed - we might not need to remove the watches?
-
- this.err_src = -1;
- this.out_src = -1;
this.tidyup();
GLib.debug("DONE TIDYUP - calling complete");