public class Gtk : JsRender
{
+
+ public Project.Gtk gproject {
+ get {
+ return (Project.Gtk) this.project;
+ }
+ private set {}
+ }
public Gtk(Project.Project project, string path) {
- aconstruct( project, path);
+ base( project, path);
this.xtype = "Gtk";
this.language = "vala";
var obj = node.get_object ();
this.name = obj.get_string_member("name");
- this.parent = obj.get_string_member("parent");
- this.title = obj.get_string_member("title");
+
if (obj.has_member("build_module")) { // should check type really..
this.build_module = obj.get_string_member("build_module");
}
+ if (obj.has_member("gen_extended")) { // should check type really..
+ this.gen_extended = obj.get_boolean_member("gen_extended");
+ }
+
+
// load items[0] ??? into tree...
var bjs_version_str = this.jsonHasOrEmpty(obj, "bjs-version");
bjs_version_str = bjs_version_str == "" ? "1" : bjs_version_str;
// this.saveJS(); - disabled at present.. project settings will probably enable this later..
this.saveVala();
+ this.getLanguageServer().document_save(this);
}
// ignore these calls.
public override void saveHTML ( string html ) {}
}
+
+
+ public void updateCompileGroup(string old_target, string new_target)
+ {
+ if (old_target == new_target) {
+ return;
+ }
+ if (old_target != "") {
+ if (this.gproject.compilegroups.has_key(old_target)) {
+ var cg = this.gproject.compilegroups.get(old_target);
+ if (cg.sources.contains(this.relpath)) {
+ cg.sources.remove(this.relpath);
+ }
+ }
+ }
+ if (new_target != "") {
+ if (this.gproject.compilegroups.has_key(new_target)) {
+ var cg = this.gproject.compilegroups.get(new_target);
+ if (!cg.sources.contains(this.relpath)) {
+ cg.sources.add(this.relpath);
+ }
+ }
+ }
+
+
+ }
+
/*
valaCompileCmd : function()
{
},
*/
-
-
public override void findTransStrings(Node? node )
{
{
return NodeToGlade.mungeFile(this);
}
-
+ public override string language_id()
+ {
+ return "vala";
+ }