Exemple #1
0
 public FTagObject(string subpath, string ptags, string descript = "")
 {
     this.subpath  = subpath;
     this.descript = descript;
     tags          = FTagTool.GetTagList(ptags);
     tags.Sort();
 }
Exemple #2
0
 public List <FTagObject> SearchTag(
     List <string> andTags,
     List <string> orTags,
     List <string> notTags)
 {
     return(FTagTool.SearchTag(andTags, orTags, notTags, dic));
 }
Exemple #3
0
 public FTagGroup(string name, string tags, string descript = "")
 {
     group_name    = name;
     this.descript = descript;
     this.tags     = FTagTool.GetTagList(tags);
     this.tags.Sort();
 }
Exemple #4
0
 public bool RenameTag(string oldTag, string newTag)
 {
     if (GetTagList().Contains(newTag))
     {
         return(false);
     }
     FTagTool.RenameTag(oldTag, newTag, ref dic, ref group);
     save();
     return(true);
 }
Exemple #5
0
 public void SetProperty(string property, string contents)
 {
     if (this.property.ContainsKey(property))
     {
         this.property[FTagTool.Legalize(property)] = FTagTool.Legalize(contents);
     }
     else
     {
         this.property.Add(FTagTool.Legalize(property), FTagTool.Legalize(contents));
     }
 }
Exemple #6
0
 public void Extract(string subpath)
 {
     FTagTool.Extraction(dic, group, folder_path, subpath).save();
 }
Exemple #7
0
 public void Merge(FTagStream stream)
 {
     FTagTool.Merge(ref dic, ref group, stream.dic, stream.group,
                    folder_path, stream.folder_path);
     save();
 }
Exemple #8
0
 public void Move(List <FTagObject> source, string subpath)
 {
     FTagTool.Move(ref dic, source, folder_path, subpath);
     save();
 }
Exemple #9
0
 public void DeleteTag(string tag)
 {
     FTagTool.DeleteTag(tag, ref dic, ref group);
     save();
 }
Exemple #10
0
 public List <Tuple <string, int> > GetTagRank()
 {
     return(FTagTool.GetTagRank(dic));
 }
Exemple #11
0
 public string GetProperty(string property)
 {
     return(this.property[FTagTool.Legalize(property)]);
 }
Exemple #12
0
 public bool PropertyExists(string property)
 {
     return(this.property.ContainsKey(FTagTool.Legalize(property)));
 }