+ },
+ {
+ "$ xns" : "Gtk",
+ "bool has_frame" : false,
+ "listeners" : {
+ "clicked" : [
+ "( ) => {",
+ "\t",
+ "\tGLib.debug(\"undo clicked\");",
+ "\tif (_this.windowstate.file.xtype == \"PlainFile\") {",
+ "\t\t_this.windowstate.code_editor_tab.buffer.el.undo();",
+ "\t}",
+ "\tif (!_this.windowstate.file.undoStep(-1)) {",
+ "\t\treturn;",
+ "\t}",
+ "\t",
+ "\t ",
+ "\t_this.windowstate.switchState (WindowState.State.PREVIEW); ",
+ "\t// this triggers loadItems..",
+ "\t_this.windowstate.left_tree.model.loadFile(",
+ "\t\t_this.windowstate.file);",
+ "\t ",
+ "",
+ "\t",
+ " ",
+ "",
+ "\t// load it everywhere",
+ "}",
+ ""
+ ]
+ },
+ "string icon_name" : "edit-undo",
+ "xtype" : "Button"
+ },
+ {
+ "$ xns" : "Gtk",
+ "bool has_frame" : false,
+ "listeners" : {
+ "clicked" : [
+ "( ) => {",
+ "\t",
+ "\tGLib.debug(\"undo clicked\");",
+ "\tif (_this.windowstate.file.xtype == \"PlainFile\") {",
+ "\t\t_this.windowstate.code_editor_tab.buffer.el.redo();",
+ "\t}",
+ "\tif (!_this.windowstate.file.undoStep(1)) {",
+ "\t\treturn;",
+ "\t}",
+ "\t",
+ "\t ",
+ "\t_this.windowstate.switchState (WindowState.State.PREVIEW); ",
+ "\t// this triggers loadItems..",
+ "\t_this.windowstate.left_tree.model.loadFile(",
+ "\t\t_this.windowstate.file);",
+ "\t ",
+ "",
+ "\t",
+ " ",
+ "",
+ "\t// load it everywhere",
+ "}",
+ ""
+ ]
+ },
+ "string icon_name" : "edit-redo",
+ "xtype" : "Button"