// set gobject values
this.el.label = "New Window";
+ this.el.show_all();
//listeners
this.el.activate.connect( ( ) => {
// my vars (dec)
// set gobject values
+ this.el.show_all();
}
// user defined functions
// set gobject values
this.el.label = "Download updated Resources";
+ this.el.show_all();
//listeners
this.el.activate.connect( ( ) => {
// set gobject values
this.el.label = "About the Builder";
+ this.el.show_all();
//listeners
this.el.activate.connect( () => {
// set gobject values
this.el.label = "Compile Status:";
+ this.el.show_all();
}
// user defined functions
var child_0 = new Xcls_Image35( _this );
child_0.ref();
this.el.set_image ( child_0.el );
+ this.el.show_all();
//listeners
this.el.button_press_event.connect( () => {
var child_0 = new Xcls_Image37( _this );
child_0.ref();
this.el.set_image ( child_0.el );
+ this.el.show_all();
//listeners
this.el.button_press_event.connect( () => {
var child_0 = new Xcls_Image39( _this );
child_0.ref();
this.el.set_image ( child_0.el );
+ this.el.show_all();
//listeners
this.el.button_press_event.connect( () => {
var child_0 = new Xcls_Image41( _this );
child_0.ref();
this.el.set_image ( child_0.el );
+ this.el.show_all();
//listeners
this.el.button_press_event.connect( () => {
"cursor_changed" : [
" ( ) => {",
" print(\"LEFT TREE Cursor Changed\\n\");",
- "\tif (!this.button_is_pressed && !this.key_is_pressed) {",
+ "\t//if (!this.button_is_pressed && !this.key_is_pressed) {",
"\t\t// then event was started by some other action",
"\t\t// which should manually trigger all the events..",
- "\t\tprint(\"SKIPPING select - no button or key pressed\\n\");",
- "\t\treturn;",
- "\t}",
+ "\t//\tprint(\"SKIPPING select - no button or key pressed\\n\");",
+ "\t//\treturn;",
+ "\t//}",
"",
"",
" if (this.blockChanges) { // probably not needed.. ",
});
this.el.cursor_changed.connect( ( ) => {
print("LEFT TREE Cursor Changed\n");
- if (!this.button_is_pressed && !this.key_is_pressed) {
+ //if (!this.button_is_pressed && !this.key_is_pressed) {
// then event was started by some other action
// which should manually trigger all the events..
- print("SKIPPING select - no button or key pressed\n");
- return;
- }
+ // print("SKIPPING select - no button or key pressed\n");
+ // return;
+ //}
if (this.blockChanges) { // probably not needed..
" ",
" this.node_selected = sel;",
" ",
- " this.updateGreySelection(scroll);",
+ " // this.updateGreySelection(scroll);",
" ",
" ",
" ",
" }",
" ltree.view.setCursor(tp, \"editor\");",
" // ltree.view.el.set_cursor(new Gtk.TreePath.from_string(tp), null, false); ",
- " this.nodeSelected(node,false);",
+ " //this.nodeSelected(node,false);",
" ",
" // scrolling is disabled... as node selection calls scroll 10ms after it changes.",
" ",
}
ltree.view.setCursor(tp, "editor");
// ltree.view.el.set_cursor(new Gtk.TreePath.from_string(tp), null, false);
- this.nodeSelected(node,false);
+ //this.nodeSelected(node,false);
// scrolling is disabled... as node selection calls scroll 10ms after it changes.
this.node_selected = sel;
- this.updateGreySelection(scroll);
+ // this.updateGreySelection(scroll);
});
// node selected -- only by clicking?
this.left_tree.node_selected.connect((sel, source) => {
- if (source == "editor") {
- return;
- }
+ //if (source == "editor") {
+ // return;
+ //}
if (this.file.xtype == "Roo") {
this.window_rooview.sourceview.nodeSelected(sel,true); // foce scroll.
} else {
this.addInitMyVars();
this.addWrappedProperties();
this.addChildren();
+ this.addAutoShow(); // autoshow menuitems
+
this.addInit();
this.addListeners();
this.addEndCtor();
+ }
+ public static Gee.ArrayList<string> menuitem_children = null;
+
+ void addAutoShow()
+ {
+ if (menuitem_children == null) {
+ menuitem_children = new Gee.ArrayList<string>();
+ menuitem_children.add("Gtk.MenuItem");
+ var gir = this.file.project.palete.getClass("Gtk.MenuItem");
+ foreach(var impl in gir.implementations) {
+ menuitem_children.add(impl);
+ }
+ }
+
+ if (menuitem_children.contains(this.node.fqn())) {
+ this.addLine(this.ipad + "this.el.show();");
+
+ }
}
void addInitMyVars()
continue;
}
this.generic_child_widgets.add(fqn);
- this.add_special_children(fqn, "Gtk.Menu", "_menu"); // fake propety
+
+
+
+ //this.add_special_children(fqn, "Gtk.Menu", "_menu"); // fake propety
}
}