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
- // dialogs
+ // left elements..
+ this.leftTreeInit();
+ this.propsListInit();
- this.fileNewInit();
+ // on clutter space...
+ this.projectEditInit();
+ this.codeEditInit();
+ this.projectListInit();
+ this.fileViewInit();
- this.children_loaded = true;
+ // adding stuff
+ this.objectAddInit();
+ this.propsAddInit();
+
+
+ // 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;
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.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;
}