src/Builder4/WindowState.vala
authorAlan Knowles <alan@roojs.com>
Wed, 11 Nov 2015 05:10:31 +0000 (13:10 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 11 Nov 2015 05:10:31 +0000 (13:10 +0800)
src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala
src/Builder4/WindowState.vala

index 3573a18..b1b6997 100644 (file)
                  "items" : [
                   {
                    "listeners" : {
-                    "clicked" : "  ( ) => {\n    \n     switch(_this.windowstate.state) {\n \t   case WindowState.State.FILES:\n\t \t   _this.windowstate.switchState(WindowState.State.FILEPROJECT);\n\t \t   break;\n \t   case WindowState.State.CODEONLY:\n \t \t   _this.windowstate.switchState(WindowState.State.PROJECTCODEONLY);\n\t \t   break;\n \t   default:\n \t     _this.windowstate.switchState(WindowState.State.PROJECT);\n \t     break;\n\t }     \n   \n\n\n}"
+                    "clicked" : "  ( ) => {\n    \n     switch(_this.windowstate.state) {\n \t   case WindowState.State.FILES:\n\t \t   _this.windowstate.switchState(WindowState.State.FILEPROJECT);\n\t \t   break;\n \t   case WindowState.State.CODEONLY:\n \t \t   _this.windowstate.switchState(WindowState.State.PROJECTCODEONLY);\n\t \t   break;\n \t   default:\n \t     _this.windowstate.switchState(WindowState.State.PROJECT);\n \t     break;\n\t }     \n    \n}"
                    },
                    "* pack" : false,
                    "xtype" : "Button",
index 05b8f82..48537c2 100644 (file)
@@ -1445,9 +1445,7 @@ public class Xcls_MainWindow : Object
                     _this.windowstate.switchState(WindowState.State.PROJECT);
                     break;
                 }     
-               
-            
-            
+                
             });
         }
 
index 74a6297..f78b5cf 100644 (file)
@@ -19,7 +19,8 @@ public class WindowState : Object
                CODEONLY,
                FILES,
                PROJECT, // project settings..
-               FILEPROJECT // project when in file mode
+               FILEPROJECT, // project when in file mode
+               PROJECTCODEONLY // when editing code...
        }
 
        public State state = State.NONE;