src/Builder4/CompileState.vala
authorAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 06:42:40 +0000 (14:42 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 06:42:40 +0000 (14:42 +0800)
src/Builder4/CompileState.vala [new file with mode: 0644]

diff --git a/src/Builder4/CompileState.vala b/src/Builder4/CompileState.vala
new file mode 100644 (file)
index 0000000..c4fbe0a
--- /dev/null
@@ -0,0 +1,28 @@
+/**
+ * as state management is a bit too complicated inside the builder
+ * it's better to seperate this into this class
+ * 
+ * This class has references to all the Class instances that make up the window..
+ * 
+ */
+public class CompileState : Object 
+{
+       public Xcls_MainWindow win;
+
+       public enum State {
+               NONE,
+               PREVIEW,
+               OBJECT,
+               PROP,
+               LISTENER,
+               CODE,
+               FILES,
+               PROJECT // project settings..
+       }
+
+       public State state = State.NONE;
+
+       public bool children_loaded = false;
+
+       
+       public X