|
|
@@ -51,6 +51,7 @@ public class Project
|
|
|
public signal void file_removed(string type, string name);
|
|
|
public signal void tree_added(string name);
|
|
|
public signal void tree_removed(string name);
|
|
|
+ public signal void file_changed(string type, string name, uint64 size, uint64 mtime);
|
|
|
public signal void project_reset();
|
|
|
public signal void project_loaded();
|
|
|
|
|
|
@@ -424,6 +425,18 @@ public class Project
|
|
|
tree_removed(path);
|
|
|
}
|
|
|
|
|
|
+ public void change_file(string path, uint64 size, uint64 mtime)
|
|
|
+ {
|
|
|
+ string type = path_extension(path);
|
|
|
+ string name = type == "" ? path : path.substring(0, path.last_index_of("."));
|
|
|
+
|
|
|
+ Guid id = _map[path];
|
|
|
+ _files.set_property_string(id, "size", size.to_string());
|
|
|
+ _files.set_property_string(id, "mtime", mtime.to_string());
|
|
|
+
|
|
|
+ file_changed(type, name, size, mtime);
|
|
|
+ }
|
|
|
+
|
|
|
public string resource_filename(string absolute_path)
|
|
|
{
|
|
|
string prefix = _source_dir.get_path();
|