CODE,
CODEONLY,
FILES,
- PROJECT // project settings..
+ PROJECT, // project settings..
+ FILEPROJECT // project when in file mode
}
public State state = State.NONE;
public bool children_loaded = false;
-
-
+
public Project.Project project;
public JsRender.JsRender file;
this.win.objectview.el.set_scale(0.0f,0.0f);
break;
- case State.PROJECT:
+ case State.FILEPROJECT:
+ case State.PROJECT:
if (this.win.project.xtype == "Gtk") {
this.vala_projectsettings.save();
}
this.win.rooview.el.set_pivot_point(1.0f,0.5f);
break;
- case State.PROJECT:
- if (this.win.project.xtype == "Roo") {
+
+
+ case State.PROJECT:
+ this.win.rooview.el.set_pivot_point(1.0f,1.0f); // bottom right..
+
+ if (this.win.project.xtype == "Roo") {
this.projectsettings.el.show_all();
this.projectsettings.show(this.win.project);
} else {
this.vala_projectsettings.el.show_all();
this.vala_projectsettings.show((Project.Gtk)this.win.project);
}
-
- this.win.rooview.el.set_pivot_point(1.0f,1.0f); // bottom right..
-
+
this.win.projecteditview.el.set_scale(1.0f,1.0f);
+
+ break;
-
+ case State.FILEPROJECT:
+ var pr = this.left_projects.getSelectedProject();
+ if (pr.xtype == "Roo") {
+ this.projectsettings.el.show_all();
+ this.projectsettings.show(this.win.project);
+ } else {
+ this.vala_projectsettings.el.show_all();
+ this.vala_projectsettings.show((Project.Gtk)this.win.project);
+ }
+
+ this.win.projecteditview.el.set_scale(1.0f,1.0f);
+
break;
case State.FILES: // can only get here from PREVIEW (or code-only) state.. in theory..
this.win.backbutton.el.hide();
- this.win.projectbutton.el.hide(); // show file nav...
+
this.win.editfilebutton.el.hide();
this.win.projecteditbutton.el.hide();
case State.PREVIEW: // this is the default state when working...
- this.win.projectbutton.el.show(); // show file nav...
+
this.win.editfilebutton.el.show();
this.win.projecteditbutton.el.show();
+
this.win.objectshowbutton.el.show(); // add objects
this.win.addpropbutton.el.show();
this.win.addlistenerbutton.el.show();
this.win.search_entry.el.show();
+ this.win.openbtn.el.show();
+
break;
case State.CODEONLY:
- this.win.projectbutton.el.show();
+ this.win.openbtn.el.show();
+
this.win.search_entry.el.show();
break;
case State.FILES:
if (this.left_projects.getSelectedProject() != null ) {
if (this.left_tree.getActiveFile() != null) {
- this.win.backbutton.el.show();
+
+ this.win.openbackbtn.el.show();
}
this.win.addfilebutton.el.show();
this.win.search_entry.el.show();
-
+ this.win.projecteditbutton.el.show();
}
-
+
this.win.addprojectbutton.el.show();
this.win.delprojectbutton.el.show();