"items" : [
{
"# bool allow_edit" : false,
- "| void before_edit" : "()\n{\n\n print(\"before edit - stop editing\\n\");\n \n // these do not appear to trigger save...\n _this.keyrender.el.stop_editing(false);\n _this.keyrender.el.editable =false;\n\n _this.valrender.el.stop_editing(false);\n _this.valrender.el.editable =false; \n \n \n// technicall stop the popup editor..\n\n}\n",
"id" : "LeftProps",
+ "| void before_edit" : "()\n{\n\n print(\"before edit - stop editing\\n\");\n \n // these do not appear to trigger save...\n _this.keyrender.el.stop_editing(false);\n _this.keyrender.el.editable =false;\n\n _this.valrender.el.stop_editing(false);\n _this.valrender.el.editable =false; \n \n \n// technicall stop the popup editor..\n\n}\n",
"| string keySortFormat" : "(string key) {\n // listeners first - with 0\n // specials\n if (key[0] == '*') {\n return \"1 \" + key;\n }\n // functions\n \n var bits = key.split(\" \");\n \n if (key[0] == '|') {\n return \"2 \" + bits[bits.length -1];\n }\n // signals\n if (key[0] == '@') {\n return \"3 \" + bits[bits.length -1];\n }\n \n // props\n if (key[0] == '#') {\n return \"4 \" + bits[bits.length -1];\n }\n // the rest..\n return \"5 \" + bits[bits.length -1]; \n\n\n\n}",
"| void finish_editing" : "() {\n // \n this.before_edit();\n}",
"| bool startEditingValue" : "( Gtk.TreePath path) {\n\n // ONLY return true if editing is allowed - eg. combo..\n \n print(\"start editing?\\n\");\n if (!this.stop_editor()) {\n print(\"stop editor failed\\n\");\n return false;\n }\n \n Gtk.TreeIter iter;\n\n var mod = this.model.el;\n mod.get_iter (out iter, path);\n \n /*\n m.set(iter, \n 0, \"listener\",\n 1, miter.get_key(),\n 2, \"<b>\" + miter.get_key() + \"</b>\",\n 3, miter.get_value()\n ); \n \n */\n GLib.Value gval;\n mod.get_value(iter, 3 , out gval);\n var val = (string)gval;\n \n mod.get_value(iter, 1 , out gval);\n var key = (string)gval;\n var type_ar = key.split(\" \");\n \n string kname, kflag, ktype;\n this.node.normalize_key(key, out kname, out kflag, out ktype);\n \n \n mod.get_value(iter, 0 , out gval);\n var type = (string)gval; // listerner or prop..\n \n \n \n var use_textarea = false;\n\n //------------ things that require the text editor...\n \n if (type == \"listener\") {\n use_textarea = true;\n }\n if (key.length > 0 && key[0] == '|') { // user defined method\n use_textarea = true;\n }\n if (key.length > 0 && key[0] == '$') { // raw string\n use_textarea = true;\n }\n if (key.length > 0 && key == \"* init\") {\n use_textarea = true;\n }\n if (val.length > 40) { // long value...\n use_textarea = true;\n }\n \n \n \n if (use_textarea) {\n print(\"Call show editor\\n\");\n GLib.Timeout.add_full(GLib.Priority.DEFAULT,10 , () => {\n this.view.el.get_selection().select_path(path);\n \n this.show_editor(file, node, type, key);\n \n return false;\n });\n \n \n return false;\n }\n \n var pal = Palete.factory(this.file.project.xtype);\n \n string[] opts;\n var has_opts = pal.typeOptions(this.node.fqn(), kname, ktype, out opts);\n \n \n \n // others... - fill in options for true/false?\n print(\"turn on editing %s \\n\" , mod.get_path(iter).to_string());\n \n print (ktype.up());\n if (has_opts) {\n print(\"start editing try/false)???\");\n this.valrender.el.has_entry = false;\n \n this.valrender.setOptions(opts);\n \n this.valrender.el.has_entry = false;\n this.valrender.el.editable = true;\n this.allow_edit = true;\n GLib.Timeout.add_full(GLib.Priority.DEFAULT,100 , () => {\n this.view.el.set_cursor_on_cell(\n path,\n this.valcol.el,\n this.valrender.el,\n true\n );\n return false;\n });\n return true;\n }\n \n // see if type is a Enum.\n \n \n \n \n \n opts = { };\n this.valrender.setOptions(opts);\n \n GLib.Timeout.add_full(GLib.Priority.DEFAULT,10 , () => {\n \n // at this point - work out the type...\n // if its' a combo... then show the options..\n this.valrender.el.has_entry = true;\n \n this.valrender.el.editable = true; \n \n \n this.allow_edit = true;\n \n \n \n \n\n this.view.el.set_cursor_on_cell(\n path,\n this.valcol.el,\n this.valrender.el,\n true\n );\n return false;\n });\n return false;\n }\n",
"Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
"items" : [
{
+ "$ stock" : "Gtk.STOCK_ADD",
"* pack" : "add",
"xtype" : "Image",
- "$ stock" : "Gtk.STOCK_ADD",
"$ xns" : "Gtk",
"$ icon_size" : "Gtk.IconSize.MENU"
},
{
"label" : "Other",
- "* pack" : "add",
"xtype" : "Label",
+ "* pack" : "add",
"$ xns" : "Gtk"
}
]
},
{
"id" : "AddPropertyPopup",
- "* pack" : false,
"xtype" : "Menu",
+ "* pack" : false,
"$ xns" : "Gtk",
"items" : [
{
"activate" : " () => {\n _this.addProp( \"prop\", \"id\", \"\", \"\");\n}"
},
"label" : "id: _this.{ID} (Vala)",
- "* pack" : "append",
"xtype" : "MenuItem",
+ "* pack" : "append",
"tooltip_markup" : "Using _this.{ID} will map to this element",
"$ xns" : "Gtk"
},
"activate" : " ( ) => {\n\n _this.addProp( \"prop\", \"pack\",\"add\", \"*\");\n}"
},
"label" : "pack: Pack method (Vala)",
- "xtype" : "MenuItem",
"* pack" : "append",
+ "xtype" : "MenuItem",
"tooltip_markup" : "how to pack this element onto parent, (method, 2nd arg, 3rd arg) .. the 1st argument is filled by the element",
"$ xns" : "Gtk"
},
"activate" : " ( ) => {\n\n _this.addProp( \"prop\", \"ctor\",\"\", \"*\");\n}"
},
"label" : "ctor: Alterative to default contructor",
- "* pack" : "append",
"xtype" : "MenuItem",
+ "* pack" : "append",
"tooltip_markup" : "eg. \n\nnew Clutter.Image.from_file(.....)",
"$ xns" : "Gtk"
},
"activate" : " ( ) => {\n\n _this.addProp( \"prop\", \"init\", \"{\\n\\n}\\n\", \"*\" );\n}"
},
"label" : "init: initialziation code (vala)",
- "* pack" : "append",
"xtype" : "MenuItem",
+ "* pack" : "append",
"tooltip_markup" : "This code is called after the ctor",
"$ xns" : "Gtk"
},
"activate" : " (self) => {\n\n _this.addProp( \"prop\", \"XXXX\", \"\",\"string\");\n\n}"
},
"label" : "String",
- "* pack" : "append",
"xtype" : "MenuItem",
+ "* pack" : "append",
"tooltip_markup" : "Add a user defined string property",
"$ xns" : "Gtk"
},
"activate" : " ( ) =>{\n\n _this.addProp(\"prop\", \"XXX\", \"0\", \"int\");\n}"
},
"label" : "Number",
- "* pack" : "append",
"xtype" : "MenuItem",
+ "* pack" : "append",
"tooltip_markup" : "Add a user defined number property",
"$ xns" : "Gtk"
},
"activate" : " ( ) =>{\n\n _this.addProp( \"prop\", \"XXX\", \"true\", \"bool\");\n}"
},
"label" : "Boolean",
- "* pack" : "append",
"xtype" : "MenuItem",
+ "* pack" : "append",
"tooltip_markup" : "Add a user defined boolean property",
"$ xns" : "Gtk"
},
"activate" : " ( ) =>{\n\n _this.addProp(\"prop\", \"XXXX\", \"function() { }\", \"| function\");\n}"
},
"label" : "Javascript Function",
- "* pack" : "append",
"xtype" : "MenuItem",
+ "* pack" : "append",
"tooltip_markup" : "Add a user function boolean property",
"$ xns" : "Gtk"
},
"activate" : " ( ) =>{\n\n _this.addProp( \"prop\", \"XXXX\", \"() {\\n\\n}\\n\", \"| return_type\");\n}"
},
"label" : "Vala Method",
- "xtype" : "MenuItem",
"* pack" : "append",
+ "xtype" : "MenuItem",
"tooltip_markup" : "Add a user function boolean property",
"$ xns" : "Gtk"
},
"activate" : " ( ) =>{\n\n _this.addProp( \"prop\", \"XXXX\", \"()\", \"@ void\");\n}"
},
"label" : "Vala Signal",
- "* pack" : "append",
"xtype" : "MenuItem",
+ "* pack" : "append",
"tooltip_markup" : "Add a vala signal",
"$ xns" : "Gtk"
},
"activate" : " ( ) =>{\n\n _this.addProp(\"prop\", \"flexy:if\", \"value_or_condition\", \"string\");\n}"
},
"label" : "Flexy - If",
- "* pack" : "append",
"xtype" : "MenuItem",
+ "* pack" : "append",
"tooltip_markup" : "Add a flexy if (for HTML templates)",
"$ xns" : "Gtk"
},
"activate" : " ( ) =>{\n\n _this.addProp(\"prop\", \"flexy:include\", \"name_of_file.html\", \"string\");\n}"
},
"label" : "Flexy - Include",
- "xtype" : "MenuItem",
"* pack" : "append",
+ "xtype" : "MenuItem",
"tooltip_markup" : "Add a flexy include (for HTML templates)",
"$ xns" : "Gtk"
},
"activate" : " ( ) =>{\n\n _this.addProp(\"prop\", \"flexy:foreach\", \"array,key,value\", \"string\");\n}"
},
"label" : "Flexy - Foreach",
- "xtype" : "MenuItem",
"* pack" : "append",
+ "xtype" : "MenuItem",
"tooltip_markup" : "Add a flexy foreach (for HTML templates)",
"$ xns" : "Gtk"
}
"edited" : " (path, newtext) => {\n print(\"Keyrender - signal:edited\\n\");\n \n this.el.editable = false;\n \n \n\n Gtk.TreeIter iter;\n _this.model.el.get_iter(out iter, new Gtk.TreePath.from_string(path));\n GLib.Value gval;\n \n _this.model.el.get_value(iter,1, out gval);\n var oldval = (string)gval;\n \n _this.model.el.get_value(iter,0, out gval);\n var ktype = (string)gval;\n \n _this.model.el.set_value(iter, 1, newtext);\n \n if (oldval == newtext) {\n return;\n }\n \n \n print(\"ktype: %s\\n\",ktype);\n switch(ktype) {\n case \"listener\":\n var ov = _this.node.listeners.get(oldval);\n _this.node.listeners.set(newtext, ov);\n _this.node.listeners.unset(oldval);\n \n _this.updateIter(iter, ktype, newtext, ov);\n \n break;\n case \"props\":\n var ov = _this.node.props.get(oldval);\n _this.node.props.set(newtext, ov);\n _this.node.props.unset(oldval);\n _this.updateIter(iter, ktype, newtext, ov);\n break;\n }\n _this.changed();\n \n}"
},
"id" : "keyrender",
- "xtype" : "CellRendererText",
"* pack" : "pack_start,false",
+ "xtype" : "CellRendererText",
"$ xns" : "Gtk"
}
]
"edited" : " (path, newtext) => {\n print(\"Valrender - signal:edited\\n\");\n \n this.el.editable = false;\n/* \n m.set(iter, \n 0, \"listener\",\n 1, miter.get_key(),\n 2, \"<b>\" + miter.get_key() + \"</b>\",\n 3, miter.get_value(),\n 4, display_value(short);\n ); \n\n */ \n\n Gtk.TreeIter iter;\n _this.model.el.get_iter(out iter, new Gtk.TreePath.from_string(path));\n GLib.Value gval;\n \n _this.model.el.get_value(iter,0, out gval);\n var ktype = (string)gval;\n \n \n _this.model.el.get_value(iter,3, out gval);\n var oldval = (string)gval;\n \n _this.model.el.get_value(iter,1, out gval);\n var key = (string)gval;\n \n \n \n switch(ktype) {\n case \"listener\":\n _this.node.listeners.set(key, newtext);\n _this.updateIter(iter,ktype,key,newtext);\n break;\n case \"props\":\n _this.node.props.set(key,newtext);\n _this.updateIter(iter,ktype, key,newtext); \n break;\n }\n// _this.load(_this.file,_this.node);\n _this.changed();\n \n}"
},
"id" : "valrender",
- "* pack" : "pack_start,true",
"xtype" : "CellRendererCombo",
+ "* pack" : "pack_start,true",
"$ editable" : false,
"$ has_entry" : true,
"$ xns" : "Gtk",
"items" : [
{
"id" : "valrendermodel",
- "* pack" : false,
"xtype" : "ListStore",
+ "* pack" : false,
"$ columns" : "typeof(string)",
"n_columns" : 1,
"$ xns" : "Gtk",
},
{
"id" : "ContextMenu",
- "xtype" : "Menu",
"* pack" : false,
+ "xtype" : "Menu",
"$ xns" : "Gtk",
"items" : [
{
"activate" : " ( ) =>{\n \n var s = _this.view.el.get_selection();\n Gtk.TreeIter iter;\n Gtk.TreeModel model;\n s.get_selected (out model, out iter);\n _this.startEditingKey(model.get_path(iter));\n}"
},
"label" : "Edit",
- "xtype" : "MenuItem",
"* pack" : "append",
+ "xtype" : "MenuItem",
"$ xns" : "Gtk"
},
{
"activate" : " ( ) =>{\n\t_this.deleteSelected();\n}"
},
"label" : "Delete",
- "xtype" : "MenuItem",
"* pack" : "append",
+ "xtype" : "MenuItem",
"$ xns" : "Gtk"
}
]
static Xcls_LeftProps _LeftProps;
-public class Xcls_LeftProps : Object
+public class Xcls_LeftProps : Object
{
public Gtk.Box el;
private Xcls_LeftProps _this;
public Xcls_MainWindow main_window;
public JsRender.Node node;
- // ctor
+ // ctor
public Xcls_LeftProps()
{
_this = this;
this.el.pack_end ( child_1.el , true,true,0 );
}
- // user defined functions
+ // user defined functions
public void before_edit ()
{
6, this.keySortFormat(key)
);
}
- public class Xcls_Box2 : Object
+ public class Xcls_Box2 : Object
{
public Gtk.Box el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_Box2(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.add ( child_0.el );
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_Button3 : Object
+ public class Xcls_Button3 : Object
{
public Gtk.Button el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_Button3(Xcls_LeftProps _owner )
{
_this = _owner;
var child_1 = new Xcls_AddPropertyPopup( _this );
child_1.ref();
- // listeners
+ //listeners
this.el.button_press_event.connect( (self, ev) => {
_this.before_edit();
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_Box4 : Object
+ public class Xcls_Box4 : Object
{
public Gtk.Box el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_Box4(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.add ( child_1.el );
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_Image5 : Object
+ public class Xcls_Image5 : Object
{
public Gtk.Image el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_Image5(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.icon_size = Gtk.IconSize.MENU;
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_Label6 : Object
+
+ public class Xcls_Label6 : Object
{
public Gtk.Label el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_Label6(Xcls_LeftProps _owner )
{
_this = _owner;
// set gobject values
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_AddPropertyPopup : Object
+
+
+ public class Xcls_AddPropertyPopup : Object
{
public Gtk.Menu el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_AddPropertyPopup(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.append ( child_15.el );
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem8 : Object
+ public class Xcls_MenuItem8 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem8(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.tooltip_markup = "Using _this.{ID} will map to this element";
this.el.label = "id: _this.{ID} (Vala)";
- // listeners
+ //listeners
this.el.activate.connect( () => {
_this.addProp( "prop", "id", "", "");
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem9 : Object
+
+ public class Xcls_MenuItem9 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem9(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.tooltip_markup = "how to pack this element onto parent, (method, 2nd arg, 3rd arg) .. the 1st argument is filled by the element";
this.el.label = "pack: Pack method (Vala)";
- // listeners
+ //listeners
this.el.activate.connect( ( ) => {
_this.addProp( "prop", "pack","add", "*");
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem10 : Object
+
+ public class Xcls_MenuItem10 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem10(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.tooltip_markup = "eg. \n\nnew Clutter.Image.from_file(.....)";
this.el.label = "ctor: Alterative to default contructor";
- // listeners
+ //listeners
this.el.activate.connect( ( ) => {
_this.addProp( "prop", "ctor","", "*");
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem11 : Object
+
+ public class Xcls_MenuItem11 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem11(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.tooltip_markup = "This code is called after the ctor";
this.el.label = "init: initialziation code (vala)";
- // listeners
+ //listeners
this.el.activate.connect( ( ) => {
_this.addProp( "prop", "init", "{\n\n}\n", "*" );
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_SeparatorMenuItem12 : Object
+
+ public class Xcls_SeparatorMenuItem12 : Object
{
public Gtk.SeparatorMenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_SeparatorMenuItem12(Xcls_LeftProps _owner )
{
_this = _owner;
// set gobject values
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem13 : Object
+
+ public class Xcls_MenuItem13 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem13(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.tooltip_markup = "Add a user defined string property";
this.el.label = "String";
- // listeners
+ //listeners
this.el.activate.connect( (self) => {
_this.addProp( "prop", "XXXX", "","string");
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem14 : Object
+
+ public class Xcls_MenuItem14 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem14(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.tooltip_markup = "Add a user defined number property";
this.el.label = "Number";
- // listeners
+ //listeners
this.el.activate.connect( ( ) =>{
_this.addProp("prop", "XXX", "0", "int");
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem15 : Object
+
+ public class Xcls_MenuItem15 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem15(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.tooltip_markup = "Add a user defined boolean property";
this.el.label = "Boolean";
- // listeners
+ //listeners
this.el.activate.connect( ( ) =>{
_this.addProp( "prop", "XXX", "true", "bool");
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_SeparatorMenuItem16 : Object
+
+ public class Xcls_SeparatorMenuItem16 : Object
{
public Gtk.SeparatorMenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_SeparatorMenuItem16(Xcls_LeftProps _owner )
{
_this = _owner;
// set gobject values
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem17 : Object
+
+ public class Xcls_MenuItem17 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem17(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.tooltip_markup = "Add a user function boolean property";
this.el.label = "Javascript Function";
- // listeners
+ //listeners
this.el.activate.connect( ( ) =>{
_this.addProp("prop", "XXXX", "function() { }", "| function");
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem18 : Object
+
+ public class Xcls_MenuItem18 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem18(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.tooltip_markup = "Add a user function boolean property";
this.el.label = "Vala Method";
- // listeners
+ //listeners
this.el.activate.connect( ( ) =>{
_this.addProp( "prop", "XXXX", "() {\n\n}\n", "| return_type");
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem19 : Object
+
+ public class Xcls_MenuItem19 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem19(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.tooltip_markup = "Add a vala signal";
this.el.label = "Vala Signal";
- // listeners
+ //listeners
this.el.activate.connect( ( ) =>{
_this.addProp( "prop", "XXXX", "()", "@ void");
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_SeparatorMenuItem20 : Object
+
+ public class Xcls_SeparatorMenuItem20 : Object
{
public Gtk.SeparatorMenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_SeparatorMenuItem20(Xcls_LeftProps _owner )
{
_this = _owner;
// set gobject values
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem21 : Object
+
+ public class Xcls_MenuItem21 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem21(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.tooltip_markup = "Add a flexy if (for HTML templates)";
this.el.label = "Flexy - If";
- // listeners
+ //listeners
this.el.activate.connect( ( ) =>{
_this.addProp("prop", "flexy:if", "value_or_condition", "string");
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem22 : Object
+
+ public class Xcls_MenuItem22 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem22(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.tooltip_markup = "Add a flexy include (for HTML templates)";
this.el.label = "Flexy - Include";
- // listeners
+ //listeners
this.el.activate.connect( ( ) =>{
_this.addProp("prop", "flexy:include", "name_of_file.html", "string");
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem23 : Object
+
+ public class Xcls_MenuItem23 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem23(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.tooltip_markup = "Add a flexy foreach (for HTML templates)";
this.el.label = "Flexy - Foreach";
- // listeners
+ //listeners
this.el.activate.connect( ( ) =>{
_this.addProp("prop", "flexy:foreach", "array,key,value", "string");
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_EditProps : Object
+
+
+
+
+ public class Xcls_EditProps : Object
{
public Gtk.ScrolledWindow el;
private Xcls_LeftProps _this;
// my vars (def)
public bool editing;
- // ctor
+ // ctor
public Xcls_EditProps(Xcls_LeftProps _owner )
{
_this = _owner;
child_0.ref();
this.el.add ( child_0.el );
- // init method
+ // init method
{
}
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_view : Object
+ public class Xcls_view : Object
{
public Gtk.TreeView el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_view(Xcls_LeftProps _owner )
{
_this = _owner;
var child_3 = new Xcls_ContextMenu( _this );
child_3.ref();
- // init method
+ // init method
{
var selection = this.el.get_selection();
this.el.override_font(description);
}
- // listeners
+ //listeners
this.el.button_press_event.connect( ( ev) => {
Gtk.TreeViewColumn col;
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_model : Object
+ public class Xcls_model : Object
{
public Gtk.TreeStore el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_model(Xcls_LeftProps _owner )
{
_this = _owner;
// set gobject values
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_keycol : Object
+
+ public class Xcls_keycol : Object
{
public Gtk.TreeViewColumn el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_keycol(Xcls_LeftProps _owner )
{
_this = _owner;
child_0.ref();
this.el.pack_start ( child_0.el , false );
- // init method
+ // init method
this.el.add_attribute(_this.keyrender.el , "markup", 2 );
this.el.add_attribute(_this.keyrender.el , "text", 1 );
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_keyrender : Object
+ public class Xcls_keyrender : Object
{
public Gtk.CellRendererText el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_keyrender(Xcls_LeftProps _owner )
{
_this = _owner;
// set gobject values
- // listeners
+ //listeners
this.el.editing_started.connect( ( editable, path) => {
Gtk.TreeIter iter;
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_valcol : Object
+
+
+ public class Xcls_valcol : Object
{
public Gtk.TreeViewColumn el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_valcol(Xcls_LeftProps _owner )
{
_this = _owner;
child_0.ref();
this.el.pack_start ( child_0.el , true );
- // init method
+ // init method
{
}
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_valrender : Object
+ public class Xcls_valrender : Object
{
public Gtk.CellRendererCombo el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_valrender(Xcls_LeftProps _owner )
{
_this = _owner;
child_0.ref();
this.el.model = child_0.el;
- // listeners
+ //listeners
this.el.editing_started.connect( ( editable, path) => {
//_this.editing = true;
print("editing started called\n");
});
}
- // user defined functions
+ // user defined functions
public void setOptions (string[] ar) {
var m = _this.valrendermodel.el;
m.clear();
}
}
- public class Xcls_valrendermodel : Object
+ public class Xcls_valrendermodel : Object
{
public Gtk.ListStore el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_valrendermodel(Xcls_LeftProps _owner )
{
_this = _owner;
// set gobject values
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_ContextMenu : Object
+
+
+
+ public class Xcls_ContextMenu : Object
{
public Gtk.Menu el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_ContextMenu(Xcls_LeftProps _owner )
{
_this = _owner;
this.el.append ( child_2.el );
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem33 : Object
+ public class Xcls_MenuItem33 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem33(Xcls_LeftProps _owner )
{
_this = _owner;
// set gobject values
this.el.label = "Edit";
- // listeners
+ //listeners
this.el.activate.connect( ( ) =>{
var s = _this.view.el.get_selection();
});
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_SeparatorMenuItem34 : Object
+
+ public class Xcls_SeparatorMenuItem34 : Object
{
public Gtk.SeparatorMenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_SeparatorMenuItem34(Xcls_LeftProps _owner )
{
_this = _owner;
// set gobject values
}
- // user defined functions
+ // user defined functions
}
- public class Xcls_MenuItem35 : Object
+
+ public class Xcls_MenuItem35 : Object
{
public Gtk.MenuItem el;
private Xcls_LeftProps _this;
// my vars (def)
- // ctor
+ // ctor
public Xcls_MenuItem35(Xcls_LeftProps _owner )
{
_this = _owner;
// set gobject values
this.el.label = "Delete";
- // listeners
+ //listeners
this.el.activate.connect( ( ) =>{
_this.deleteSelected();
});
}
- // user defined functions
+ // user defined functions
}
+
+
+
+
}