resources/RooUsage.txt
[app.Builder.js] / src / Builder4 / MainWindow.bjs
index ca0aa92..c1ec4a3 100644 (file)
@@ -16,7 +16,7 @@
    },
    "id" : "MainWindow",
    "default_width" : 800,
-   "* init" : " \n\t  \n    //this.el.show_all();\n    \n     ",
+   "* init" : " \n\t  \n    //this.el.show_all();\n    //try {\n         this.el.set_icon_name(\"roobuilder\");\n\t//} catch (Exception e) {\n\t//\tprint(\"no icon found\");\n//\t}",
    "| void openNewWindow" : "() {\n\tXcls_MainWindow.singleton().no_windows++;\n        var w = new Xcls_MainWindow();\n        w.ref();\n\n        w.el.show_all();\n        w.initChildren();\n        w.windowstate.switchState(WindowState.State.FILES);\n}\n",
    "# Project.Project project" : "null",
    "# string title" : "\"Application Builder\"",
          "id" : "openbtn",
          "* pack" : "add",
          "xtype" : "Button",
-         "width_request" : 50,
          "$ xns" : "Gtk",
-         "height_request" : 50,
          "$ tooltop_text" : "\"Open File\"",
          "items" : [
           {
          "utf8 tooltip_text" : "Back",
          "xtype" : "Button",
          "* pack" : "add",
-         "width_request" : 50,
          "$ xns" : "Gtk",
-         "height_request" : 50,
          "bool visible" : false,
          "items" : [
           {
                  "items" : [
                   {
                    "listeners" : {
-                    "clicked" : "  ( ) => {\n  \n    _this.windowstate.switchState(WindowState.State.PREVIEW);\n    \n\n}"
+                    "clicked" : "  ( ) => {\n   if (_this.windowstate.state == WindowState.State.FILEPROJECT) {\n    \n\t     _this.windowstate.switchState(WindowState.State.FILES);\n     } else { \n\t    _this.windowstate.switchState(WindowState.State.PREVIEW);\n    }\n    \n\n}"
                    },
                    "utf8 tooltip_text" : "Back",
                    "* pack" : false,
                  "items" : [
                   {
                    "listeners" : {
-                    "clicked" : "  ( ) => {\n     _this.windowstate.switchState(WindowState.State.PROJECT);\n   \n\n\n}"
+                    "clicked" : "  ( ) => {\n     \n     if (_this.windowstate.state == WindowState.State.FILES) {\n     \n\t     _this.windowstate.switchState(WindowState.State.FILEPROJECT);\n     } else {\n \t     _this.windowstate.switchState(WindowState.State.PROJECT);\n\t }     \n   \n\n\n}"
                    },
                    "* pack" : false,
                    "xtype" : "Button",