src/Builder4/MainWindow.vala
"items" : [
{
"listeners" : {
- "clicked" : " ( ) => {\n switch (_this.state) {\n case \"edit\":\n \n _this.hideViewEditing();\n break; \n case \"files\":\n _this.showViewEditing();\n break; \n \n case \"addprop\":\n _this.hideAddProp();\n _this.hideViewEditing();\n break;\n case \"addlistener\":\n _this.hideAddListener();\n _this.hideViewEditing();\n break;\n \n case \"object\":\n _this.hideObject();\n _this.hideViewEditing();\n break; \n \n default:\n break;\n }\n return ; \n\n}"
+ "clicked" : " ( ) => {\n this.windowstate.switchState(WindowState.State.PROJECT);\n \n\n}"
},
"* pack" : false,
"xtype" : "Button",
// listeners
this.el.clicked.connect( ( ) => {
- switch (_this.state) {
- case "edit":
-
- _this.hideViewEditing();
- break;
- case "files":
- _this.showViewEditing();
- break;
-
- case "addprop":
- _this.hideAddProp();
- _this.hideViewEditing();
- break;
- case "addlistener":
- _this.hideAddListener();
- _this.hideViewEditing();
- break;
-
- case "object":
- _this.hideObject();
- _this.hideViewEditing();
- break;
-
- default:
- break;
- }
- return ;
+ this.windowstate.switchState(WindowState.State.PROJECT);
+
});
}