default_height : 500,
id : "Window",
listeners : {
- "delete_event":function (self, event) {
+ delete_event : :function (self, event) {
return false;
},
- "destroy":function (self) {
+ destroy : :function (self) {
Gtk.main_quit();
},
- "show":function (self) {
+ show : :function (self) {
print("WINDOW SHOWING - trying to hide");
imports.Builder.Provider.ProjectManager.ProjectManager.loadConfig();
this.get('/MidPropTree').hideWin();
use_underline : true,
label : "New _Project",
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
var _this = this;
this.get('/EditProject').show({
success : function(pr) {
label : "_New File",
use_underline : true,
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
var fn = this.get('/LeftProjectTree.combo').getValue();
if (!fn) {
this.get('/LeftProjectTree').showNoProjectSelected();
pack : "add",
label : "D_elete Project",
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
var fn = this.get('/LeftProjectTree').get('combo').getValue();
if (!fn.length) {
label : "_Quit",
use_underline : true,
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
Gtk.main_quit();
}
}
items : [
{
xtype: Gtk.Menu,
- 'pro' : "submenu",
pack : "set_submenu",
+ listeners : {
+
+ },
items : [
{
xtype: Gtk.MenuItem,
label : "_About",
use_underline : true,
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
this.get('/About').el.run();
}
}
this.el.add_events (Gdk.EventMask.BUTTON_MOTION_MASK );
},
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
var nb = this.get('/LeftTopPanel.notebook');
if (this.el.expanded) {
// now expanded..
}
nb.el.set_current_page(0);
},
- "enter_notify_event":function (self, event) {
+ enter_notify_event : :function (self, event) {
this.el.expanded = !this.el.expanded;
//if (this.el.expanded ) {
this.listeners.activate.call(this);
this.el.scroll_to_cell(tp, null, false, 0,0);
},
listeners : {
- "button_press_event":function (self, ev) {
+ button_press_event : :function (self, ev) {
console.log("button press?");
if (ev.type != Gdk.EventType.BUTTON_PRESS || ev.button.button != 3) {
print("click" + ev.type);
print("click:" + res.path.to_string());
return false;
},
- "drag_begin":function (self, drag_context) {
+ drag_begin : :function (self, drag_context) {
print('SOURCE: drag-begin');
this.targetData = false;
// find what is selected in our tree...
return true;
},
- "drag_end":function (self, drag_context) {
+ drag_end : :function (self, drag_context) {
Seed.print('LEFT-TREE: drag-end');
this.el.dragData = false;
this.el.dropList = false;
this.get('/LeftTree.view').highlight(false);
return true;
},
- "drag_motion":function (self, ctx, x, y, time) {
+ drag_motion : :function (self, ctx, x, y, time) {
console.log("LEFT-TREE: drag-motion");
var src = Gtk.drag_get_source_widget(ctx);
return true;
},
- "drag_drop":function (w, ctx, x, y, time) {
+ drag_drop : :function (w, ctx, x, y, time) {
Seed.print("TARGET: drag-drop");
Gtk.drag_get_data
return true;
},
- "drag_data_received":function (self, ctx, x, y, sel_data, info, time) {
+ drag_data_received : :function (self, ctx, x, y, sel_data, info, time) {
print("Tree: drag-data-received");
var delete_selection_data = false;
Gtk.drag_finish (ctx, dnd_success, delete_selection_data, time);
return true;
},
- "cursor_changed":function (self) {
+ cursor_changed : :function (self) {
if (this.blockChanges) { // probably not needed..
return true;
}
pack : "add",
label : "Delete Element",
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
this.get('/LeftTree.model').deleteSelected();
}
return this.project;
},
listeners : {
- "leave_notify_event":function (self, event) {
+ leave_notify_event : :function (self, event) {
return false;
}
},
});
},
listeners : {
- "changed":function (self) {
+ changed : :function (self) {
var fn = this.getValue();
var pm = imports.Builder.Provider.ProjectManager.ProjectManager;
this.get('/LeftProjectTree.model').loadProject(pm.getByFn(fn))
},
id : "view",
listeners : {
- "cursor_changed":function (self) {
+ cursor_changed : :function (self) {
var iter = new Gtk.TreeIter();
if (this.selection.count_selected_rows() < 1) {
xtype: Gtk.Button,
pack : "add",
listeners : {
- "button_press_event":function (self, event) {
+ button_press_event : :function (self, event) {
this.get('/MidPropTree.model').showData('props');
return false;
}
xtype: Gtk.Button,
pack : "add",
listeners : {
- "button_press_event":function (self, event) {
+ button_press_event : :function (self, event) {
this.get('/MidPropTree.model').showData('events');
return false;
}
xtype: Gtk.Button,
pack : "add",
listeners : {
- "button_press_event":function (self, ev) {
+ button_press_event : :function (self, ev) {
var p = this.get('/AddPropertyPopup');
if (!p.el) {
p.init();
tooltip_markup : "Using this.get('*someid') will find any id in an application.",
label : "ID",
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
this.get('/LeftPanel.model').add( {
key : 'id',
tooltip_markup : "Add what type of packing is to be used",
label : "PACK",
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
this.get('/LeftPanel.model').add( {
key : 'pack',
tooltip_markup : "Override the init method",
label : "INIT",
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
this.get('/LeftPanel.model').add( {
key : '|init',
tooltip_markup : "Add a user defined string property",
label : "String",
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
this.get('/LeftPanel.model').add( {
key : '',
tooltip_markup : "Add a user defined number property",
label : "Number",
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
this.get('/LeftPanel.model').add( {
key : '',
tooltip_markup : "Add a user defined boolean property",
label : "Boolean",
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
this.get('/LeftPanel.model').add( {
key : '',
tooltip_markup : "Add a user function boolean property",
label : "Function",
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
this.get('/LeftPanel.model').add( {
key : '|',
this.el.modify_font(description);
},
listeners : {
- "button_press_event":function (self, ev) {
+ button_press_event : :function (self, ev) {
var res = { };
xtype: Gtk.CellRendererText,
pack : "pack_start",
listeners : {
- "editing_started":function (self, editable, path) {
+ editing_started : :function (self, editable, path) {
this.get('/LeftPanel.model').activePath = path;
},
- "edited":function (self, object, p0) {
+ edited : :function (self, object, p0) {
var model = this.get('/LeftPanel.model');
var path = model.activePath;
var iter = new Gtk.TreeIter();
]);
},
listeners : {
- "edited":function (self, object, p0) {
+ edited : :function (self, object, p0) {
this.get('/LeftPanel').editing = false;
print("EDITED? p:" + p0 + " t:" + p0);
this.get('/LeftPanel.model').changed(p0, true);
this.get('/LeftPanel.model').activePath = false;
},
- "editing_started":function (self, editable, path) {
+ editing_started : :function (self, editable, path) {
this.get('/LeftPanel').editing = true;
// console.log('editing started');
// r.has_entry = false;
pack : "append",
label : "Delete",
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
this.get('/LeftPanel.model').deleteSelected();
}
}
pack : "append",
label : "Edit",
listeners : {
- "activate":function (self) {
+ activate : :function (self) {
this.get('/LeftPanel.model').startEditing(false, 0);
}
}
},
pack : "add",
listeners : {
- "cursor_changed":function (self) {
+ cursor_changed : :function (self) {
var iter = new Gtk.TreeIter();
//console.log('changed');
pack : "pack_start,false,false,0",
label : "Redraw",
listeners : {
- "button_press_event":function (self, event) {
+ button_press_event : :function (self, event) {
var js = this.get('/LeftTree.model').toJS();
if (js && js[0]) {
this.get('/RightBrowser.view').renderJS(js[0]);
pack : "pack_start,false,false,0",
label : "Set extra HTML in render",
listeners : {
- "button_press_event":function (self, event) {
+ button_press_event : :function (self, event) {
this.get('/RooProjectProperties').show();
return false;
}
pack : "pack_start,false,false,0",
label : "test in Firefox",
listeners : {
- "button_press_event":function (self, event)
+ button_press_event : :function (self, event)
{
/* Firefox testing for debugging..
- we can create a /tmp directory, and put.
this.el.execute_script("Builder.render(" + JSON.stringify(data) + ");");
},
listeners : {
- "load_finished":function (self, object) {
+ load_finished : :function (self, object) {
// if (this.ready) { // dont do it twice!
// return;
//}
}
},
- "script_alert":function (self, object, p0) {
+ script_alert : :function (self, object, p0) {
print(p0);
return false;
return true; // do not display anything...
},
- "console_message":function (self, object, p0, p1) {
+ console_message : :function (self, object, p0, p1) {
// console.log(object);
if (!object.match(/^\{/)) {
//Seed.print('c:'+c);
return ret;
},
- "drag_motion":function (w, ctx, x, y, time, ud) {
+ drag_motion : :function (w, ctx, x, y, time, ud) {
// console.log('DRAG MOTION');
// status:
// if lastCurrentNode == this.currentNode.. -- don't change anything..
// for tree we should handle this...
return true;
},
- "drag_drop":function (w, ctx, x, y,time, ud) {
+ drag_drop : :function (w, ctx, x, y,time, ud) {
print("TARGET: drag-drop");
var is_valid_drop_site = true;
return is_valid_drop_site;
},
- "drag_data_received":function (w, ctx, x, y, sel_data, target_type, time, ud)
+ drag_data_received : :function (w, ctx, x, y, sel_data, target_type, time, ud)
{
print("Browser: drag-data-received");
var delete_selection_data = false;
pack : "pack_start,false,false,0",
label : "Run The Application",
listeners : {
- "button_press_event":function (self, event) {
+ button_press_event : :function (self, event) {
// call render on left tree - with special option!?!
//print("GET PROEJCT");
},
id : "view",
listeners : {
- "drag_motion":function (self, ctx, x, y, time) {
+ drag_motion : :function (self, ctx, x, y, time) {
// A) find out from drag all the places that node could be dropped.
var src = Gtk.drag_get_source_widget(ctx);
// for tree we should handle this...
return true;
},
- "drag_drop":function (self,ctx, x, y, time) {
+ drag_drop : :function (self,ctx, x, y, time) {
Seed.print("TARGET: drag-drop");
var is_valid_drop_site = true;
return is_valid_drop_site;
},
- "drag_data_received":function (w, ctx, x, y, sel_data, target_type, time, ud)
+ drag_data_received : :function (w, ctx, x, y, sel_data, target_type, time, ud)
{
Seed.print("GtkView: drag-data-received");
var delete_selection_data = false;
Gtk.drag_finish (ctx, dnd_success, delete_selection_data, time);
return true;
},
- "button_press_event":function (self, event) {
+ button_press_event : :function (self, event) {
this.pressed = false;
return false;
}
xtype: GtkSource.Buffer,
pack : "set_buffer",
listeners : {
- "changed":function (self) {
+ changed : :function (self) {
var s = new Gtk.TextIter();
var e = new Gtk.TextIter();
this.el.get_start_iter(s);
xtype: Gtk.Button,
pack : "pack_start,false,true",
listeners : {
- "clicked":function (self) {
+ clicked : :function (self) {
this.get('/RightPalete').show();
}
},
this.el.add_events ( Gdk.EventMask.BUTTON_MOTION_MASK );
},
listeners : {
- "enter_notify_event":function (self, event) {
+ enter_notify_event : :function (self, event) {
this.get('/RightPalete').show();
return false;
}
xtype: Gtk.Button,
pack : "pack_start,false,true",
listeners : {
- "clicked":function (self) {
+ clicked : :function (self) {
this.get('/RightPalete').hide();
}
},
headers_visible : false,
enable_tree_lines : true,
listeners : {
- "drag_begin":function (self, ctx) {
+ drag_begin : :function (self, ctx) {
// we could fill this in now...
Seed.print('SOURCE: drag-begin');
return true;
},
- "drag_data_get":function (self, drag_context, selection_data, info, time) {
+ drag_data_get : :function (self, drag_context, selection_data, info, time) {
//Seed.print('Palete: drag-data-get: ' + target_type);
if (this.el.dragData && this.el.dragData.length ) {
selection_data.set_text(this.el.dragData ,this.el.dragData.length);
},
- "drag_end":function (self, drag_context) {
+ drag_end : :function (self, drag_context) {
Seed.print('SOURCE: drag-end');
this.el.dragData = false;
this.el.dropList = false;