Esempio n. 1
0
 public void Read(IProject project, XmlElement elem)
 {
     icons.Clear ();
     foreach (XmlElement child in elem.SelectNodes ("icon-set")) {
         ProjectIconSet icon = new ProjectIconSet ();
         icon.Read (project, child);
         icons.Add (icon);
     }
 }
Esempio n. 2
0
 public void Read(IProject project, XmlElement elem)
 {
     icons.Clear();
     foreach (XmlElement child in elem.SelectNodes("icon-set"))
     {
         ProjectIconSet icon = new ProjectIconSet();
         icon.Read(project, child);
         icons.Add(icon);
     }
 }
Esempio n. 3
0
        public Gdk.Pixbuf RenderIcon(IProject project, string name, int size)
        {
            ProjectIconSet icon = GetIcon(name);

            if (icon == null)
            {
                return(null);
            }

            return(icon.Sources [0].Image.GetScaledImage(project, size, size));
        }
Esempio n. 4
0
        public Gdk.Pixbuf RenderIcon(IProject project, string name, Gtk.IconSize size)
        {
            ProjectIconSet icon = GetIcon(name);

            if (icon == null)
            {
                return(null);
            }

            foreach (ProjectIconSource src in icon.Sources)
            {
                if (src.SizeWildcarded || src.Size == size)
                {
                    return(src.Image.GetScaledImage(project, size));
                }
            }

            return(icon.Sources [0].Image.GetScaledImage(project, size));
        }
Esempio n. 5
0
 public void Remove(ProjectIconSet icon)
 {
     List.Remove (icon);
 }
Esempio n. 6
0
 public void Add(ProjectIconSet icon)
 {
     List.Add (icon);
 }
Esempio n. 7
0
 public void Remove(ProjectIconSet icon)
 {
     List.Remove(icon);
 }
Esempio n. 8
0
 public void Add(ProjectIconSet icon)
 {
     List.Add(icon);
 }