"response" : "(self, response_id) => { \n \n this.el.hide();\n \n}"
},
"default_width" : 600,
- "$ deletable" : true,
"| void show" : "() => {\n\n \n this.el.set_deletable(false);\n this.el.show_all();\n // load clones..\n// this.get('/reposStore').load();\n \n //this.get('/ok_button').el.set_sensitive(false);\n \n // block until we return.\n// var run_ret = this.el.run();\n// if (run_ret < 1 ) {\n// return \"DONE\";\n// }\n// print(\"RUN RETURN : \" + run_ret);\n// return \"DONE\";\n //print(JSON.stringify(this.get('bug').getValue()));\n // return this.get('bug').getValue();\n //this.success = c.success;\n}\n",
+ "$ deletable" : true,
"title" : "Manage Clones",
"xtype" : "Dialog",
"default_height" : 500,
"items" : [
{
"id" : "Clones",
- "$ pack" : " function(p,e) {\n p.el.get_content_area().pack_start(e.el,true,true,0)\n }\n",
"xtype" : "VBox",
+ "$ pack" : " function(p,e) {\n p.el.get_content_area().pack_start(e.el,true,true,0)\n }\n",
"$ xns" : "Gtk",
"items" : [
{
"clicked" : "function (self) {\n\n var rv = this.get('/reposView');\n var rs = this.get('/reposStore');\n if (rv.el.get_selection().count_selected_rows() != 1) {\n //nothing?\n // error condition.\n return;\n }\n var Remotes = imports.Remotes.Remotes;\n \n \n var ret = {}; \n var s = rv.el.get_selection();\n var path = '';\n s.selected_foreach(function(model,p,iter) {\n \n path = model.get_value(iter, 6).value.get_string();\n \n }); \n\n var repo = false;\n rs.repos.forEach(function(r) {\n if (r.repopath == path) {\n repo = r;\n \n }\n \n });\n Remotes.repo = repo;\n Remotes.el.set_transient_for(Clones.el);\n Clones.el.set_title(\"Manage Clones - \" + repo.repopath);\n Remotes.show();\n Clones.el.set_title(\"Manage Clones\");\n\n \n \n \n \n\n \n \n \n}"
},
"label" : "Remotes / Clones",
- "xtype" : "Button",
"* pack" : "add",
+ "xtype" : "Button",
"$ xns" : "Gtk"
},
{
"clicked" : "function (self) {\n\n var rv = this.get('/reposView');\n var rs = this.get('/reposStore');\n if (rv.el.get_selection().count_selected_rows() != 1) {\n //nothing?\n // error condition.\n return;\n }\n var Branches = imports.Branches.Branches;\n \n \n var ret = {}; \n var s = rv.el.get_selection();\n var path = '';\n s.selected_foreach(function(model,p,iter) {\n \n path = model.get_value(iter, 6).value.get_string();\n \n }); \n\n var repo = false;\n rs.repos.forEach(function(r) {\n if (r.repopath == path) {\n repo = r;\n \n }\n \n });\n Branches.repo = repo;\n Branches.el.set_transient_for(Clones.el);\n Clones.el.set_title(\"Manage Clones - \" + repo.repopath);\n Branches.show();\n Clones.el.set_title(\"Manage Clones\");\n\n \n \n \n \n\n \n \n \n}"
},
"label" : "Branches",
- "xtype" : "Button",
"* pack" : "add",
+ "xtype" : "Button",
"$ xns" : "Gtk"
},
{
"listeners" : {
"clicked" : "function (self) {\n\n var rv = this.get('/reposView');\n var rs = this.get('/reposStore');\n if (rv.el.get_selection().count_selected_rows() != 1) {\n //nothing?\n // error condition.\n return;\n }\n var Merger = imports.Merger.Merger;\n \n \n var ret = {}; \n var s = rv.el.get_selection();\n var path = '';\n s.selected_foreach(function(model,p,iter) {\n \n path = model.get_value(iter, 6).value.get_string();\n \n }); \n\n var repo = false;\n rs.repos.forEach(function(r) {\n if (r.repopath == path) {\n repo = r;\n \n }\n \n });\n Merger.repo = repo;\n Merger.el.set_transient_for(Clones.el);\n Clones.el.set_title(\"Manage Clones - \" + repo.repopath);\n Merger.show();\n Clones.el.set_title(\"Manage Clones\");\n\n \n \n\n \n\n \n \n \n \n\n \n \n \n}"
},
- "label" : "Run Merger",
- "xtype" : "Button",
+ "label" : "Merge",
"* pack" : "add",
+ "xtype" : "Button",
"$ xns" : "Gtk"
},
{
"clicked" : "function (self) {\n \n \n \n \n \n \n}"
},
"label" : "Switch Branch",
- "xtype" : "Button",
"* pack" : "add",
+ "xtype" : "Button",
"$ xns" : "Gtk"
},
{
"clicked" : "function (self) {\n \n \n \n \n \n \n}"
},
"label" : "Pull",
- "xtype" : "Button",
"* pack" : "add",
+ "xtype" : "Button",
"$ xns" : "Gtk"
}
]
},
{
"* init" : "function() {\n XObject.prototype.init.call(this);\n this.el.add_attribute(this.items[0].el , 'active', 4 );\n this.items[0].el.set_activatable(true);\n\n}\n",
- "title" : "Auto Commit",
"* pack" : "append_column",
+ "title" : "Auto Commit",
"xtype" : "TreeViewColumn",
"min_width" : 50,
"$ xns" : "Gtk",
},
{
"* init" : "function() {\n XObject.prototype.init.call(this);\n this.el.add_attribute(this.items[0].el , 'active', 5 );\n this.items[0].el.set_activatable(true);\n}\n",
- "title" : "Auto Push",
"* pack" : "append_column",
+ "title" : "Auto Push",
"xtype" : "TreeViewColumn",
"min_width" : 50,
"$ xns" : "Gtk",
},
{
"* init" : "function() {\n XObject.prototype.init.call(this);\n this.el.add_attribute(this.items[0].el , 'markup', 0 );\n\n}\n",
- "* pack" : "append_column",
"title" : "Repo",
+ "* pack" : "append_column",
"xtype" : "TreeViewColumn",
"min_width" : 200,
"$ xns" : "Gtk",
},
{
"* init" : "function() {\n XObject.prototype.init.call(this);\n this.el.add_attribute(this.items[0].el , 'markup', 1 );\n this.el.add_attribute(this.items[0].el , 'cell-background', 7 );\n\n}\n",
- "title" : "Current Branch",
"* pack" : "append_column",
+ "title" : "Current Branch",
"xtype" : "TreeViewColumn",
"min_width" : 50,
"$ xns" : "Gtk",
},
{
"* init" : "function() {\n XObject.prototype.init.call(this);\n this.el.add_attribute(this.items[0].el , 'markup', 3 );\n\n}\n",
- "title" : "Last updated",
"* pack" : "append_column",
+ "title" : "Last updated",
"xtype" : "TreeViewColumn",
"min_width" : 50,
"$ xns" : "Gtk",
},
{
"* init" : "function() {\n XObject.prototype.init.call(this);\n this.el.add_attribute(this.items[0].el , 'markup', 2 );\n\n}\n",
- "* pack" : "append_column",
"title" : "All Branches",
+ "* pack" : "append_column",
"xtype" : "TreeViewColumn",
"min_width" : 50,
"$ xns" : "Gtk",
]
}
]
-}
+}
\ No newline at end of file