1 //<Script type="text/javascript">
3 GLib = imports.gi.GLib;
4 GObject = imports.gi.GObject;
6 XObject = imports.XObject.XObject;
7 console = imports.console;
12 AddPropertyPopup = new XObject({
23 tooltip_markup : "Using this.get('*someid') will find any id in an application.",
25 activate : function () {
26 var LeftPanel = imports.Builder.LeftPanel.LeftPanel;
27 LeftPanel.get('model').add( {
40 label : 'Gtk - Add "pack"',
41 tooltip_markup : "Set what type of packing is to be used.",
43 activate : function () {
44 var LeftPanel = imports.Builder.LeftPanel.LeftPanel;
45 LeftPanel.get('model').add( {
58 label : 'Gtk - Add "init"',
59 tooltip_markup : "Set what type of packing is to be used.",
61 activate : function () {
62 var LeftPanel = imports.Builder.LeftPanel.LeftPanel;
63 LeftPanel.get('model').add( {
66 val : "function() {\n XObject.prototype.init.call(this);\n}\n",
77 label : 'Add String Property (User defined)',
79 activate : function () {
80 var LeftPanel = imports.Builder.LeftPanel.LeftPanel;
81 LeftPanel.get('model').add( {
95 label : 'Add Number Property (User defined)',
97 activate : function () {
98 var LeftPanel = imports.Builder.LeftPanel.LeftPanel;
99 LeftPanel.get('model').add( {
111 xtype : Gtk.MenuItem,
113 label : 'Add Boolean Property (User defined)',
115 activate : function () {
116 var LeftPanel = imports.Builder.LeftPanel.LeftPanel;
117 LeftPanel.get('model').add( {
131 xtype : Gtk.MenuItem,
133 label : 'Add Function (User defined)',
135 activate : function () {
136 var LeftPanel = imports.Builder.LeftPanel.LeftPanel;
137 LeftPanel.get('model').add( {
140 val : "function() {\n \n}\n",