public Xcls_ClutterFiles clutterfiles;
public Xcls_WindowLeftProjects left_projects; // can not see where this is initialized..
+
+ public DialogTemplateSelect template_select;
+
+ // dialogs??
+ public Xcls_DialogPluginWebkit webkit_plugin;
+
// ctor
public WindowState(Xcls_MainWindow win)
{
- this.win = win;
- // initialize
-
- // left elements..
- this.leftTreeInit();
- this.propsListInit();
-
- // on clutter space...
- this.projectEditInit();
- this.codeEditInit();
- this.projectListInit();
- this.fileViewInit();
-
- // adding stuff
- this.objectAddInit();
- this.propsAddInit();
-
-
- // previews...
- this.gtkViewInit();
- this.webkitViewInit();
+ this.win = win;
+ // initialize
+
+ // left elements..
+ this.leftTreeInit();
+ this.propsListInit();
+
+ // on clutter space...
+ this.projectEditInit();
+ this.codeEditInit();
+ this.projectListInit();
+ this.fileViewInit();
- // dialogs
+ // adding stuff
+ this.objectAddInit();
+ this.propsAddInit();
- this.fileNewInit();
- this.children_loaded = true;
+ // previews...
+ this.gtkViewInit();
+ this.webkitViewInit();
+
+ // dialogs
+
+ this.fileNewInit();
+
+ this.webkit_plugin = new Xcls_DialogPluginWebkit();
+ this.template_select = new DialogTemplateSelect();
+ this.children_loaded = true;
}
break;
case State.PROJECT:
+ if (this.win.project.xtype == "Gtk") {
+ this.vala_projectsettings.save();
+ }
this.win.projecteditview.el.set_scale(0.0f,0.0f);
break;
// it's handled above..
print ("changing state to preview from NOT files..");
- this.resizeCanvasElements();
-
+
this.win.rooview.el.set_scale(1.0f,1.0f);
- this.win.rooview.el.restore_easing_state();
}
break;
if (ae == null) {
this.state = oldstate;
this.buttonsShowHide();
+ this.resizeCanvasElements();
+ this.easingRestoreAll();
return;
}
this.add_props.el.show_all();
// -- FIXME? this needs to be State aware?
- this.resizeCanvasElements();
-
+
this.win.rooview.el.set_pivot_point(1.0f,0.5f);
- this.win.rooview.el.restore_easing_state();
-
-
-
+
this.win.addpropsview.el.set_scale(1.0f,1.0f);
- this.win.addpropsview.el.restore_easing_state();
- break;
+ break;
case State.OBJECT:
var n = this.left_tree.getActiveElement();
this.rightpalete.load(this.left_tree.getActiveFile().palete(), n == null ? "*top" : n.fqn());
- // this.resizeCanvasElements();
- this.win.rooview.el.restore_easing_state();
-
-
+
this.win.objectview.el.set_scale(1.0f,1.0f);
- this.win.objectview.el.restore_easing_state();
+
break;
this.code_editor.el.show_all();
// caller needs to call editor - show....
- //this.resizeCanvasElements();
- this.win.rooview.el.restore_easing_state();
-
+
this.win.codeeditview.el.set_scale(1.0f,1.0f);
break;
case State.PROJECT:
- if (this.win.project.xtype == "Roo") {
+ if (this.win.project.xtype == "Roo") {
this.projectsettings.el.show_all();
this.projectsettings.show(this.win.project);
} else {
this.vala_projectsettings.show((Project.Gtk)this.win.project);
}
+ this.win.rooview.el.set_pivot_point(1.0f,1.0f); // bottom right..
- this.resizeCanvasElements();
this.win.projecteditview.el.set_scale(1.0f,1.0f);
- this.win.projecteditview.el.restore_easing_state();
- this.win.rooview.el.restore_easing_state();
+
break;
case State.FILES: // can only get here from PREVIEW state.. in theory..
this.win.projecteditview.el.set_size(alloc.width-50, alloc.height / 2.0f);
// this.win.rooview.el.save_easing_state();
- this.win.rooview.el.set_size(alloc.width / 2.0f, alloc.height / 2.0f);
+ //this.win.rooview.el.set_size(alloc.width / 2.0f, alloc.height / 2.0f);
+ this.win.rooview.el.set_scale(0.5f, 0.5f);
//this.win.rooview.el.restore_easing_state();
break;
this.win.addfilebutton.el.hide();
this.win.delprojectbutton.el.hide();
this.win.new_window.el.hide();
-
+ this.win.reload_resources.el.hide();
switch (this.state) {
this.win.addfilebutton.el.show();
this.win.delprojectbutton.el.show();
this.win.new_window.el.show();
+ this.win.reload_resources.el.show();
break;
}